mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(core): Add a new endpoint for Complete Authorize flow (#4686)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -4343,6 +4343,18 @@ pub struct PaymentRetrieveBodyWithCredentials {
|
||||
pub merchant_connector_details: Option<admin::MerchantConnectorDetailsWrap>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct PaymentsCompleteAuthorizeRequest {
|
||||
/// The unique identifier for the payment
|
||||
#[serde(skip_deserializing)]
|
||||
pub payment_id: String,
|
||||
/// The shipping address for the payment
|
||||
pub shipping: Option<Address>,
|
||||
/// Client Secret
|
||||
#[schema(value_type = String)]
|
||||
pub client_secret: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct PaymentsCancelRequest {
|
||||
/// The identifier for the payment
|
||||
|
||||
Reference in New Issue
Block a user