Class: Stripe::PaymentMethodUpdateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/payment_method_update_params.rb

Defined Under Namespace

Classes: BillingDetails, Card, UsBankAccount

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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 = expand
  @metadata = 
  @us_bank_account = 
end

Instance Attribute Details

#allow_redisplayObject

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_detailsObject

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

#cardObject

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

#expandObject

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
  @expand
end

#metadataObject

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_accountObject

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
end