Class: Stripe::V2::Payments::OffSessionPayment::AmountDetails::LineItem

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

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?, #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_amountObject (readonly)

The amount an item was discounted for. Positive integer.



29
30
31
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 29

def discount_amount
  @discount_amount
end

#product_codeObject (readonly)

Unique identifier of the product. At most 12 characters long.



31
32
33
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 31

def product_code
  @product_code
end

#product_nameObject (readonly)

Name of the product. At most 100 characters long.



33
34
35
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 33

def product_name
  @product_name
end

#quantityObject (readonly)

Number of items of the product. Positive integer.



35
36
37
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 35

def quantity
  @quantity
end

#taxObject (readonly)

Contains information about the tax on the item.



37
38
39
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 37

def tax
  @tax
end

#unit_costObject (readonly)

Cost of the product. Non-negative integer.



39
40
41
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 39

def unit_cost
  @unit_cost
end

Class Method Details

.field_remappingsObject



45
46
47
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 45

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



41
42
43
# File 'lib/stripe/resources/v2/payments/off_session_payment.rb', line 41

def self.inner_class_types
  @inner_class_types = { tax: Tax }
end