mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor(payment_methods): added clone derivation for PaymentMethodId (#1568)
Co-authored-by: Sarthak Soni <sarthak.soni@juspay.in> Co-authored-by: Sampras Lopes <lsampras@protonmail.com>
This commit is contained in:
@ -93,7 +93,7 @@ pub struct CustomerResponse {
|
||||
pub metadata: Option<pii::SecretSerdeValue>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Deserialize, Serialize)]
|
||||
#[derive(Default, Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct CustomerId {
|
||||
pub customer_id: String,
|
||||
}
|
||||
|
||||
@ -293,7 +293,7 @@ pub struct RequestPaymentMethodTypes {
|
||||
}
|
||||
|
||||
//List Payment Method
|
||||
#[derive(Debug, serde::Serialize, Default, ToSchema)]
|
||||
#[derive(Debug, Clone, serde::Serialize, Default, ToSchema)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct PaymentMethodListRequest {
|
||||
/// This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK
|
||||
@ -543,7 +543,7 @@ pub struct CustomerPaymentMethod {
|
||||
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
|
||||
pub created: Option<time::PrimitiveDateTime>,
|
||||
}
|
||||
#[derive(Debug, serde::Serialize, serde::Deserialize)]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct PaymentMethodId {
|
||||
pub payment_method_id: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user