feat(payments): add client_secret auth for payments retrieve (#1663)

This commit is contained in:
Abhishek Marrivagu
2023-07-10 13:21:10 +05:30
committed by GitHub
parent be5d55c98f
commit b428298030
9 changed files with 52 additions and 14 deletions

View File

@ -1790,6 +1790,8 @@ pub struct PaymentsRetrieveRequest {
/// Merchant connector details used to make payments.
#[schema(value_type = Option<MerchantConnectorDetailsWrap>)]
pub merchant_connector_details: Option<admin::MerchantConnectorDetailsWrap>,
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
pub client_secret: Option<String>,
}
#[derive(Debug, Default, Eq, PartialEq, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
@ -2181,6 +2183,8 @@ pub struct PaymentRetrieveBody {
pub merchant_id: Option<String>,
/// Decider to enable or disable the connector call for retrieve request
pub force_sync: Option<bool>,
/// This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK
pub client_secret: Option<String>,
}
#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]