Class: Stripe::PaymentMethodUpdateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentMethodUpdateParams
- Defined in:
- lib/stripe/params/payment_method_update_params.rb
Defined Under Namespace
Classes: BillingDetails, Card, UsBankAccount
Instance Attribute Summary collapse
-
#allow_redisplay ⇒ Object
This field indicates whether this payment method can be shown again to its customer in a checkout flow.
-
#billing_details ⇒ Object
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
-
#card ⇒ Object
If this is a ‘card` PaymentMethod, this hash contains the user’s card details.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#us_bank_account ⇒ Object
If this is an ‘us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
Instance Method Summary collapse
-
#initialize(allow_redisplay: nil, billing_details: nil, card: nil, expand: nil, metadata: nil, us_bank_account: nil) ⇒ PaymentMethodUpdateParams
constructor
A new instance of PaymentMethodUpdateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(allow_redisplay: nil, billing_details: nil, card: nil, expand: nil, metadata: nil, us_bank_account: nil) ⇒ PaymentMethodUpdateParams
Returns a new instance of PaymentMethodUpdateParams.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 104 def initialize( allow_redisplay: nil, billing_details: nil, card: nil, expand: nil, metadata: nil, us_bank_account: nil ) @allow_redisplay = allow_redisplay @billing_details = billing_details @card = card @expand = @metadata = @us_bank_account = us_bank_account end |
Instance Attribute Details
#allow_redisplay ⇒ Object
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to ‘unspecified`.
92 93 94 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 92 def allow_redisplay @allow_redisplay end |
#billing_details ⇒ Object
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
94 95 96 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 94 def billing_details @billing_details end |
#card ⇒ Object
If this is a ‘card` PaymentMethod, this hash contains the user’s card details.
96 97 98 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 96 def card @card end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
98 99 100 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 98 def @expand end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
100 101 102 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 100 def @metadata end |
#us_bank_account ⇒ Object
If this is an ‘us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
102 103 104 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 102 def us_bank_account @us_bank_account end |