Class: Stripe::CustomerSessionCreateParams::Components

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/customer_session_create_params.rb

Defined Under Namespace

Classes: BuyButton, CustomerSheet, MobilePaymentElement, PaymentElement, PricingTable, TaxIdElement

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(buy_button: nil, customer_sheet: nil, mobile_payment_element: nil, payment_element: nil, pricing_table: nil, tax_id_element: nil) ⇒ Components

Returns a new instance of Components.



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/stripe/params/customer_session_create_params.rb', line 187

def initialize(
  buy_button: nil,
  customer_sheet: nil,
  mobile_payment_element: nil,
  payment_element: nil,
  pricing_table: nil,
  tax_id_element: nil
)
  @buy_button = buy_button
  @customer_sheet = customer_sheet
  @mobile_payment_element = mobile_payment_element
  @payment_element = payment_element
  @pricing_table = pricing_table
  @tax_id_element = tax_id_element
end

Instance Attribute Details

#buy_buttonObject

Configuration for buy button.



175
176
177
# File 'lib/stripe/params/customer_session_create_params.rb', line 175

def buy_button
  @buy_button
end

#customer_sheetObject

Configuration for the customer sheet.



177
178
179
# File 'lib/stripe/params/customer_session_create_params.rb', line 177

def customer_sheet
  @customer_sheet
end

#mobile_payment_elementObject

Configuration for the mobile payment element.



179
180
181
# File 'lib/stripe/params/customer_session_create_params.rb', line 179

def mobile_payment_element
  @mobile_payment_element
end

#payment_elementObject

Configuration for the Payment Element.



181
182
183
# File 'lib/stripe/params/customer_session_create_params.rb', line 181

def payment_element
  @payment_element
end

#pricing_tableObject

Configuration for the pricing table.



183
184
185
# File 'lib/stripe/params/customer_session_create_params.rb', line 183

def pricing_table
  @pricing_table
end

#tax_id_elementObject

Configuration for the Tax ID Element.



185
186
187
# File 'lib/stripe/params/customer_session_create_params.rb', line 185

def tax_id_element
  @tax_id_element
end