refactor(payment_methods): add requires_cvv field to customer payment method list api object (#1852)

This commit is contained in:
Chethan Rao
2023-08-03 15:36:07 +05:30
committed by GitHub
parent 829e68222e
commit 2dec2ca50b
3 changed files with 31 additions and 1 deletions

View File

@ -577,6 +577,10 @@ pub struct CustomerPaymentMethod {
#[cfg(feature = "payouts")]
#[schema(value_type = Option<Bank>)]
pub bank_transfer: Option<payouts::Bank>,
/// Whether this payment method requires CVV to be collected
#[schema(example = true)]
pub requires_cvv: bool,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct PaymentMethodId {