Class: Stripe::DelegatedCheckout::Order::LineItem

Inherits:
StripeObject
  • Object
show all
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

Attributes inherited from StripeObject

#last_response

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

#keyObject (readonly)

The order line item key.



69
70
71
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 69

def key
  @key
end

#product_detailsObject (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

#quantityObject (readonly)

Attribute for field quantity



73
74
75
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 73

def quantity
  @quantity
end

#sku_idObject (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

#totalsObject (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_amountObject (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_remappingsObject



85
86
87
# File 'lib/stripe/resources/delegated_checkout/order.rb', line 85

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



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