Class: Stripe::Checkout::SessionCreateParams::Item
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::Item
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Defined Under Namespace
Classes: Subscription
Instance Attribute Summary collapse
-
#subscription ⇒ Object
Configuration for the subscription item.
-
#type ⇒ Object
The type of item.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(subscription: nil, type: nil) ⇒ Item
constructor
A new instance of Item.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(subscription: nil, type: nil) ⇒ Item
Returns a new instance of Item.
802 803 804 805 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 802 def initialize(subscription: nil, type: nil) @subscription = subscription @type = type end |
Instance Attribute Details
#subscription ⇒ Object
Configuration for the subscription item.
798 799 800 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 798 def subscription @subscription end |
#type ⇒ Object
The type of item.
800 801 802 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 800 def type @type end |
Class Method Details
.field_encodings ⇒ Object
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 807 def self.field_encodings @field_encodings = { subscription: { kind: :object, fields: { items: { kind: :array, element: { kind: :object, fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } }, }, }, }, }, }, } end |