Class: Stripe::Checkout::SessionCreateParams::InvoiceCreation
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::InvoiceCreation
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Defined Under Namespace
Classes: InvoiceData
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Set to ‘true` to enable invoice creation.
-
#invoice_data ⇒ Object
Parameters passed when creating invoices for payment-mode Checkout Sessions.
Instance Method Summary collapse
-
#initialize(enabled: nil, invoice_data: nil) ⇒ InvoiceCreation
constructor
A new instance of InvoiceCreation.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(enabled: nil, invoice_data: nil) ⇒ InvoiceCreation
Returns a new instance of InvoiceCreation.
448 449 450 451 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 448 def initialize(enabled: nil, invoice_data: nil) @enabled = enabled @invoice_data = invoice_data end |
Instance Attribute Details
#enabled ⇒ Object
Set to ‘true` to enable invoice creation.
444 445 446 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 444 def enabled @enabled end |
#invoice_data ⇒ Object
Parameters passed when creating invoices for payment-mode Checkout Sessions.
446 447 448 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 446 def invoice_data @invoice_data end |