mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payments): add client_secret auth for payments retrieve (#1663)
This commit is contained in:
committed by
GitHub
parent
be5d55c98f
commit
b428298030
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user