Class: Stripe::DelegatedCheckout::Order::LineItem
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::DelegatedCheckout::Order::LineItem
- Defined in:
- lib/stripe/resources/delegated_checkout/order.rb
Defined Under Namespace
Classes: ProductDetails, Quantity, Totals
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
The order line item key.
-
#product_details ⇒ Object
readonly
Attribute for field product_details.
-
#quantity ⇒ Object
readonly
Attribute for field quantity.
-
#sku_id ⇒ Object
readonly
The SKU ID of the line item.
-
#totals ⇒ Object
readonly
The totals for this line item.
-
#unit_amount ⇒ Object
readonly
The line item unit amount.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, field_encodings, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#key ⇒ Object (readonly)
The order line item key.
69 70 71 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 69 def key @key end |
#product_details ⇒ Object (readonly)
Attribute for field product_details
71 72 73 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 71 def product_details @product_details end |
#quantity ⇒ Object (readonly)
Attribute for field quantity
73 74 75 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 73 def quantity @quantity end |
#sku_id ⇒ Object (readonly)
The SKU ID of the line item.
75 76 77 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 75 def sku_id @sku_id end |
#totals ⇒ Object (readonly)
The totals for this line item.
77 78 79 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 77 def totals @totals end |
#unit_amount ⇒ Object (readonly)
The line item unit amount.
79 80 81 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 79 def unit_amount @unit_amount end |
Class Method Details
.field_remappings ⇒ Object
85 86 87 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 85 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
81 82 83 |
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 81 def self.inner_class_types @inner_class_types = { product_details: ProductDetails, quantity: Quantity, totals: Totals } end |