mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat: expire client secret after a merchant configurable intent fufliment time (#956)
This commit is contained in:
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user