mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
refactor(payment_methods): update api contract for update payment method endpoint (#4641)
This commit is contained in:
@ -88,24 +88,6 @@ pub struct PaymentMethodUpdate {
|
||||
"card_holder_name": "John Doe"}))]
|
||||
pub card: Option<CardDetailUpdate>,
|
||||
|
||||
/// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
|
||||
#[schema(value_type = Option<CardNetwork>,example = "Visa")]
|
||||
pub card_network: Option<api_enums::CardNetwork>,
|
||||
|
||||
/// Payment method details from locker
|
||||
#[cfg(feature = "payouts")]
|
||||
#[schema(value_type = Option<Bank>)]
|
||||
pub bank_transfer: Option<payouts::Bank>,
|
||||
|
||||
/// Payment method details from locker
|
||||
#[cfg(feature = "payouts")]
|
||||
#[schema(value_type = Option<Wallet>)]
|
||||
pub wallet: Option<payouts::Wallet>,
|
||||
|
||||
/// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
|
||||
#[schema(value_type = Option<Object>,example = json!({ "city": "NY", "unit": "245" }))]
|
||||
pub metadata: Option<pii::SecretSerdeValue>,
|
||||
|
||||
/// This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK
|
||||
#[schema(max_length = 30, min_length = 30, example = "secret_k2uj3he2893eiu2d")]
|
||||
pub client_secret: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user