Class: Stripe::PaymentMethodUpdateParams

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

Defined Under Namespace

Classes: BillingDetails, Card, Payto, 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, 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
  @expand = expand
   = 
  @payto = payto
   = 
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`.



107
108
109
# File 'lib/stripe/params/payment_method_update_params.rb', line 107

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.



109
110
111
# File 'lib/stripe/params/payment_method_update_params.rb', line 109

def billing_details
  @billing_details
end

#cardObject

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

#expandObject

Specifies which fields in the response should be expanded.



113
114
115
# File 'lib/stripe/params/payment_method_update_params.rb', line 113

def expand
  @expand
end

#metadataObject

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

#paytoObject

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_accountObject

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 
  
end