mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(router): Add payment_methods_session_delete_payment_method endpoint [V2] (#7409)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2781,6 +2781,14 @@ pub struct PaymentMethodSessionUpdateSavedPaymentMethod {
|
||||
pub payment_method_update_request: PaymentMethodUpdate,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct PaymentMethodSessionDeleteSavedPaymentMethod {
|
||||
/// The payment method id of the payment method to be updated
|
||||
#[schema(value_type = String, example = "12345_pm_01926c58bc6e77c09e809964e72af8c8")]
|
||||
pub payment_method_id: id_type::GlobalPaymentMethodId,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
#[derive(Debug, Clone, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct PaymentMethodSessionConfirmRequest {
|
||||
@ -2858,6 +2866,6 @@ pub struct AuthenticationDetails {
|
||||
pub status: common_enums::IntentStatus,
|
||||
|
||||
/// Error details of the authentication
|
||||
#[schema(value_type = ErrorDetails)]
|
||||
#[schema(value_type = Option<ErrorDetails>)]
|
||||
pub error: Option<payments::ErrorDetails>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user