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, Payto, 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](docs.stripe.com/api/metadata) that you can attach to an object.
-
#payto ⇒ Object
If this is a ‘payto` PaymentMethod, this hash contains details about the PayTo payment method.
-
#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, payto: 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, payto: nil, us_bank_account: nil) ⇒ PaymentMethodUpdateParams
Returns a new instance of PaymentMethodUpdateParams.
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 121 def initialize( allow_redisplay: nil, billing_details: nil, card: nil, expand: nil, metadata: nil, payto: nil, us_bank_account: nil ) @allow_redisplay = allow_redisplay @billing_details = billing_details @card = card = = @payto = payto @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`.
107 108 109 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 107 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.
109 110 111 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 109 def billing_details @billing_details end |
#card ⇒ Object
If this is a ‘card` PaymentMethod, this hash contains the user’s card details.
111 112 113 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 111 def card @card end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
113 114 115 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 113 def end |
#metadata ⇒ Object
Set of [key-value pairs](docs.stripe.com/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`.
115 116 117 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 115 def end |
#payto ⇒ Object
If this is a ‘payto` PaymentMethod, this hash contains details about the PayTo payment method.
117 118 119 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 117 def payto @payto end |
#us_bank_account ⇒ Object
If this is an ‘us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
119 120 121 |
# File 'lib/stripe/params/payment_method_update_params.rb', line 119 def us_bank_account @us_bank_account end |