feat: expire client secret after a merchant configurable intent fufliment time (#956)

This commit is contained in:
Prajjwal Kumar
2023-05-03 16:08:13 +05:30
committed by GitHub
parent ed99655ebc
commit 03a96432a9
21 changed files with 201 additions and 49 deletions

View File

@ -75,6 +75,10 @@ pub struct MerchantAccountCreate {
#[cfg(not(feature = "multiple_mca"))]
#[schema(value_type = Option<PrimaryBusinessDetails>)]
pub primary_business_details: Option<Vec<PrimaryBusinessDetails>>,
///Will be used to expire client secret after certain amount of time to be supplied in seconds
///(900) for 15 mins
#[schema(example = 900)]
pub intent_fulfillment_time: Option<u32>,
}
#[derive(Clone, Debug, Deserialize, ToSchema)]
@ -135,6 +139,10 @@ pub struct MerchantAccountUpdate {
///Default business details for connector routing
pub primary_business_details: Option<Vec<PrimaryBusinessDetails>>,
///Will be used to expire client secret after certain amount of time to be supplied in seconds
///(900) for 15 mins
pub intent_fulfillment_time: Option<u32>,
}
#[derive(Clone, Debug, ToSchema, Serialize)]
@ -201,6 +209,10 @@ pub struct MerchantAccountResponse {
///Default business details for connector routing
#[schema(value_type = Vec<PrimaryBusinessDetails>)]
pub primary_business_details: Vec<PrimaryBusinessDetails>,
///Will be used to expire client secret after certain amount of time to be supplied in seconds
///(900) for 15 mins
pub intent_fulfillment_time: Option<i64>,
}
#[derive(Clone, Debug, Deserialize, ToSchema, Serialize)]