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:
Swangi Kumari
2024-05-20 21:32:36 +05:30
committed by GitHub
parent 36409bdc91
commit 226c337399
14 changed files with 267 additions and 21 deletions

View File

@ -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