feat: allow updating payment method details without authn/authz (#150)

This commit is contained in:
Manoj Ghorela
2022-12-15 20:34:43 +05:30
committed by GitHub
parent bd19dad616
commit bf7f24125f
8 changed files with 88 additions and 20 deletions

View File

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