Class: Lithic::Models::Transactions::Events::EnhancedData::Common::LineItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Lithic::Models::Transactions::Events::EnhancedData::Common::LineItem
- Defined in:
- lib/lithic/models/transactions/events/enhanced_data.rb
Instance Attribute Summary collapse
-
#amount ⇒ String?
The price of the item purchased in merchant currency.
-
#description ⇒ String?
A human-readable description of the item.
-
#product_code ⇒ String?
An identifier for the item purchased.
-
#quantity ⇒ String?
The quantity of the item purchased.
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(line_items:, tax:, customer_reference_number: nil, merchant_reference_number: nil, order_date: nil) ⇒ Object
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 90 class LineItem < Lithic::Internal::Type::BaseModel # @!attribute amount # The price of the item purchased in merchant currency. # # @return [String, nil] optional :amount, String, nil?: true # @!attribute description # A human-readable description of the item. # # @return [String, nil] optional :description, String, nil?: true # @!attribute product_code # An identifier for the item purchased. # # @return [String, nil] optional :product_code, String, nil?: true # @!attribute quantity # The quantity of the item purchased. # # @return [String, nil] optional :quantity, String, nil?: true # @!method initialize(amount: nil, description: nil, product_code: nil, quantity: nil) # An L2/L3 enhanced commercial data line item. # # @param amount [String, nil] The price of the item purchased in merchant currency. # # @param description [String, nil] A human-readable description of the item. # # @param product_code [String, nil] An identifier for the item purchased. # # @param quantity [String, nil] The quantity of the item purchased. end |
Instance Attribute Details
#amount ⇒ String?
The price of the item purchased in merchant currency.
95 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 95 optional :amount, String, nil?: true |
#description ⇒ String?
A human-readable description of the item.
101 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 101 optional :description, String, nil?: true |
#product_code ⇒ String?
An identifier for the item purchased.
107 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 107 optional :product_code, String, nil?: true |
#quantity ⇒ String?
The quantity of the item purchased.
113 |
# File 'lib/lithic/models/transactions/events/enhanced_data.rb', line 113 optional :quantity, String, nil?: true |