Class: Stripe::BillingPortal::ConfigurationUpdateParams::Features::PaymentMethodUpdate
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::BillingPortal::ConfigurationUpdateParams::Features::PaymentMethodUpdate
- Defined in:
- lib/stripe/params/billing_portal/configuration_update_params.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Whether the feature is enabled.
-
#payment_method_configuration ⇒ Object
The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session.
Instance Method Summary collapse
-
#initialize(enabled: nil, payment_method_configuration: nil) ⇒ PaymentMethodUpdate
constructor
A new instance of PaymentMethodUpdate.
Methods inherited from RequestParams
Constructor Details
#initialize(enabled: nil, payment_method_configuration: nil) ⇒ PaymentMethodUpdate
Returns a new instance of PaymentMethodUpdate.
50 51 52 53 |
# File 'lib/stripe/params/billing_portal/configuration_update_params.rb', line 50 def initialize(enabled: nil, payment_method_configuration: nil) @enabled = enabled @payment_method_configuration = payment_method_configuration end |
Instance Attribute Details
#enabled ⇒ Object
Whether the feature is enabled.
46 47 48 |
# File 'lib/stripe/params/billing_portal/configuration_update_params.rb', line 46 def enabled @enabled end |
#payment_method_configuration ⇒ Object
The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
48 49 50 |
# File 'lib/stripe/params/billing_portal/configuration_update_params.rb', line 48 def payment_method_configuration @payment_method_configuration end |