Class: Stripe::V2::Payments::OffSessionPayment::AmountDetails::LineItem
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::V2::Payments::OffSessionPayment::AmountDetails::LineItem
- Defined in:
- lib/stripe/resources/v2/payments/off_session_payment.rb
Defined Under Namespace
Classes: Tax
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#discount_amount ⇒ Object
readonly
The amount an item was discounted for.
-
#product_code ⇒ Object
readonly
Unique identifier of the product.
-
#product_name ⇒ Object
readonly
Name of the product.
-
#quantity ⇒ Object
readonly
Number of items of the product.
-
#tax ⇒ Object
readonly
Contains information about the tax on the item.
-
#unit_cost ⇒ Object
readonly
Cost of the product.
-
#unit_of_measure ⇒ Object
readonly
Unit of measure for the product.
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
#discount_amount ⇒ Object (readonly)
The amount an item was discounted for. Positive integer.
49 50 51 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 49 def discount_amount @discount_amount end |
#product_code ⇒ Object (readonly)
Unique identifier of the product. At most 12 characters long.
51 52 53 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 51 def product_code @product_code end |
#product_name ⇒ Object (readonly)
Name of the product. At most 100 characters long.
53 54 55 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 53 def product_name @product_name end |
#quantity ⇒ Object (readonly)
Number of items of the product. Positive integer.
55 56 57 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 55 def quantity @quantity end |
#tax ⇒ Object (readonly)
Contains information about the tax on the item.
57 58 59 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 57 def tax @tax end |
#unit_cost ⇒ Object (readonly)
Cost of the product. Non-negative integer.
59 60 61 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 59 def unit_cost @unit_cost end |
#unit_of_measure ⇒ Object (readonly)
Unit of measure for the product. At most 12 characters long.
61 62 63 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 61 def unit_of_measure @unit_of_measure end |
Class Method Details
.field_remappings ⇒ Object
67 68 69 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 67 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
63 64 65 |
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 63 def self.inner_class_types @inner_class_types = { tax: Tax } end |