Skip to content

Commit

Permalink
chore: move RouterData Request types to hyperswitch_domain_models cra…
Browse files Browse the repository at this point in the history
…te (#4723)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
  • Loading branch information
hrithikesh026 and hyperswitch-bot[bot] authored May 23, 2024
1 parent 5e5eb5f commit ae77373
Show file tree
Hide file tree
Showing 38 changed files with 2,397 additions and 1,943 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion crates/hyperswitch_domain_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,25 @@ payouts = ["api_models/payouts"]

[dependencies]
# First party deps
api_models = { version = "0.1.0", path = "../api_models" }
api_models = { version = "0.1.0", path = "../api_models", features = ["errors"] }
common_enums = { version = "0.1.0", path = "../common_enums" }
common_utils = { version = "0.1.0", path = "../common_utils" }
masking = { version = "0.1.0", path = "../masking" }
diesel_models = { version = "0.1.0", path = "../diesel_models", features = ["kv_store"] }
cards = {version = "0.1.0", path = "../cards"}
router_derive = {version = "0.1.0", path = "../router_derive"}

# Third party deps
actix-web = "4.5.1"
async-trait = "0.1.79"
error-stack = "0.4.1"
http = "0.2.12"
mime = "0.3.17"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.115"
serde_with = "3.7.0"
thiserror = "1.0.58"
time = { version = "0.3.35", features = ["serde", "serde-well-known", "std"] }
url = { version = "2.5.0", features = ["serde"] }
utoipa = { version = "4.2.0", features = ["preserve_order", "preserve_path_order", "time"] }

1 change: 1 addition & 0 deletions crates/hyperswitch_domain_models/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod api_error_response;
use diesel_models::errors::DatabaseError;

pub type StorageResult<T> = error_stack::Result<T, StorageError>;
Expand Down
634 changes: 634 additions & 0 deletions crates/hyperswitch_domain_models/src/errors/api_error_response.rs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions crates/hyperswitch_domain_models/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
pub mod errors;
pub mod mandates;
pub mod payment_address;
pub mod payment_method_data;
pub mod payments;
#[cfg(feature = "payouts")]
pub mod payouts;
pub mod router_data;
pub mod router_request_types;

#[cfg(not(feature = "payouts"))]
pub trait PayoutAttemptInterface {}
Expand Down
Loading

0 comments on commit ae77373

Please sign in to comment.