Skip to content

Commit

Permalink
feat(business_profile): introduce domain models for business profile …
Browse files Browse the repository at this point in the history
…v1 and v2 APIs (#5497)
  • Loading branch information
SanchithHegde authored Aug 1, 2024
1 parent b4eb601 commit 537630f
Show file tree
Hide file tree
Showing 17 changed files with 1,458 additions and 61 deletions.
7 changes: 4 additions & 3 deletions crates/api_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ frm = []
olap = []
openapi = ["common_enums/openapi", "olap", "recon", "dummy_connector", "olap"]
recon = []
v1 =[]
v1 = []
v2 = []
routing_v2 = []
merchant_connector_account_v2 = []
business_profile_v2 = []
customer_v2 = []
merchant_account_v2 = []
merchant_connector_account_v2 = []
payment_v2 = []
routing_v2 = []

[dependencies]
actix-web = { version = "4.5.1", optional = true }
Expand Down
21 changes: 21 additions & 0 deletions crates/common_enums/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3054,3 +3054,24 @@ pub enum PayoutRetryType {
SingleConnector,
MultiConnector,
}

#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
serde::Deserialize,
serde::Serialize,
strum::Display,
strum::EnumString,
ToSchema,
Hash,
)]
#[router_derive::diesel_enum(storage_type = "db_enum")]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum OrderFulfillmentTimeOrigin {
Create,
Confirm,
}
3 changes: 2 additions & 1 deletion crates/diesel_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ readme = "README.md"
license.workspace = true

[features]
default = ["kv_store", "v1"]
default = ["kv_store", "v1"]
kv_store = []
v1 =[]
v2 = []
business_profile_v2 = []
customer_v2 = []
merchant_account_v2 = []
merchant_connector_account_v2 = []
Expand Down
Loading

0 comments on commit 537630f

Please sign in to comment.