Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(business_profile): introduce domain models for business profile v1 and v2 APIs #5497

Merged
merged 14 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/api_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ openapi = ["common_enums/openapi", "olap", "recon", "dummy_connector", "olap"]
recon = []
v2 = []
v1 = []
merchant_connector_account_v2 = []
business_profile_v2 = []
customer_v2 = []
merchant_account_v2 = []
merchant_connector_account_v2 = []
payment_v2 = []

[dependencies]
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 @@ -3032,3 +3032,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 = []
payment_v2 = []
Expand Down
Loading
Loading