Class: Increase::Models::CardPurchaseSupplement::LineItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::CardPurchaseSupplement::LineItem
- Defined in:
- lib/increase/models/card_purchase_supplement.rb
Defined Under Namespace
Modules: DetailIndicator, DiscountTreatmentCode
Instance Attribute Summary collapse
-
#detail_indicator ⇒ Symbol, ...
Indicates the type of line item.
-
#discount_amount ⇒ Integer?
Discount amount for this specific line item.
-
#discount_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the discount.
-
#discount_treatment_code ⇒ Symbol, ...
Indicates how the merchant applied the discount for this specific line item.
-
#id ⇒ String
The Card Purchase Supplement Line Item identifier.
-
#item_commodity_code ⇒ String?
Code used to categorize the purchase item.
-
#item_descriptor ⇒ String?
Description of the purchase item.
-
#item_quantity ⇒ String?
The number of units of the product being purchased.
-
#product_code ⇒ String?
Code used to categorize the product being purchased.
-
#sales_tax_amount ⇒ Integer?
Sales tax amount for this line item.
-
#sales_tax_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the sales tax assessed.
-
#sales_tax_rate ⇒ String?
Sales tax rate for this line item.
-
#total_amount ⇒ Integer?
Total amount of all line items.
-
#total_amount_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the total amount.
-
#unit_cost ⇒ String?
Cost of line item per unit of measure, in major units.
-
#unit_cost_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the unit cost.
-
#unit_of_measure_code ⇒ String?
Code indicating unit of measure (gallons, etc.).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: , detail_indicator: , discount_amount: , discount_currency: , discount_treatment_code: , item_commodity_code: , item_descriptor: , item_quantity: , product_code: , sales_tax_amount: , sales_tax_currency: , sales_tax_rate: , total_amount: , total_amount_currency: , unit_cost: , unit_cost_currency: , unit_of_measure_code: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see LineItem for more details.
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(id: , detail_indicator: , discount_amount: , discount_currency: , discount_treatment_code: , item_commodity_code: , item_descriptor: , item_quantity: , product_code: , sales_tax_amount: , sales_tax_currency: , sales_tax_rate: , total_amount: , total_amount_currency: , unit_cost: , unit_cost_currency: , unit_of_measure_code: ) ⇒ Object
Some parameter documentations has been truncated, see Increase::Models::CardPurchaseSupplement::LineItem for more details.
|
|
# File 'lib/increase/models/card_purchase_supplement.rb', line 361
|
Instance Attribute Details
#detail_indicator ⇒ Symbol, ...
Indicates the type of line item.
263 264 265 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 263 required :detail_indicator, enum: -> { Increase::CardPurchaseSupplement::LineItem::DetailIndicator }, nil?: true |
#discount_amount ⇒ Integer?
Discount amount for this specific line item.
271 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 271 required :discount_amount, Integer, nil?: true |
#discount_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the discount.
277 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 277 required :discount_currency, String, nil?: true |
#discount_treatment_code ⇒ Symbol, ...
Indicates how the merchant applied the discount for this specific line item.
283 284 285 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 283 required :discount_treatment_code, enum: -> { Increase::CardPurchaseSupplement::LineItem::DiscountTreatmentCode }, nil?: true |
#id ⇒ String
The Card Purchase Supplement Line Item identifier.
257 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 257 required :id, String |
#item_commodity_code ⇒ String?
Code used to categorize the purchase item.
291 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 291 required :item_commodity_code, String, nil?: true |
#item_descriptor ⇒ String?
Description of the purchase item.
297 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 297 required :item_descriptor, String, nil?: true |
#item_quantity ⇒ String?
The number of units of the product being purchased.
303 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 303 required :item_quantity, String, nil?: true |
#product_code ⇒ String?
Code used to categorize the product being purchased.
309 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 309 required :product_code, String, nil?: true |
#sales_tax_amount ⇒ Integer?
Sales tax amount for this line item.
315 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 315 required :sales_tax_amount, Integer, nil?: true |
#sales_tax_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the sales tax assessed.
322 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 322 required :sales_tax_currency, String, nil?: true |
#sales_tax_rate ⇒ String?
Sales tax rate for this line item.
328 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 328 required :sales_tax_rate, String, nil?: true |
#total_amount ⇒ Integer?
Total amount of all line items.
334 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 334 required :total_amount, Integer, nil?: true |
#total_amount_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the total amount.
341 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 341 required :total_amount_currency, String, nil?: true |
#unit_cost ⇒ String?
Cost of line item per unit of measure, in major units.
347 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 347 required :unit_cost, String, nil?: true |
#unit_cost_currency ⇒ String?
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the unit cost.
353 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 353 required :unit_cost_currency, String, nil?: true |
#unit_of_measure_code ⇒ String?
Code indicating unit of measure (gallons, etc.).
359 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 359 required :unit_of_measure_code, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/increase/models/card_purchase_supplement.rb', line 414
|