feat(business_profile): add profile id in affected tables and modify api contract (#1971)

This commit is contained in:
Narayan Bhat
2023-08-23 19:34:37 +05:30
committed by GitHub
parent bca9d5013b
commit fe8d4c2eec
29 changed files with 346 additions and 76 deletions

View File

@ -294,6 +294,10 @@ pub struct PaymentsRequest {
/// additional data that might be required by hyperswitch
pub feature_metadata: Option<FeatureMetadata>,
/// The business profile to use for this payment, if not passed the default business profile
/// associated with the merchant account will be used.
pub profile_id: Option<String>,
}
#[derive(
@ -1898,6 +1902,9 @@ pub struct PaymentsResponse {
/// reference to the payment at connector side
#[schema(value_type = Option<String>, example = "993672945374576J")]
pub reference_id: Option<String>,
/// The business profile that is associated with this payment
pub profile_id: Option<String>,
}
#[derive(Clone, Debug, serde::Deserialize, ToSchema)]