mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat: allow updating payment method details without authn/authz (#150)
This commit is contained in:
@ -16,6 +16,14 @@ pub struct CreatePaymentMethod {
|
||||
pub customer_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct UpdatePaymentMethod {
|
||||
pub card: Option<CardDetail>,
|
||||
// Add more payment method update field in future
|
||||
pub metadata: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct CardDetail {
|
||||
|
||||
Reference in New Issue
Block a user