Class: Increase::Models::CardPurchaseSupplement::LineItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card_purchase_supplement.rb

Defined Under Namespace

Modules: DetailIndicator, DiscountTreatmentCode

Instance Attribute Summary collapse

Class Method Summary collapse

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(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.

Parameters:

  • id (String) (defaults to: )

    The Card Purchase Supplement Line Item identifier.

  • detail_indicator (Symbol, Increase::Models::CardPurchaseSupplement::LineItem::DetailIndicator, nil) (defaults to: )

    Indicates the type of line item.

  • discount_amount (Integer, nil) (defaults to: )

    Discount amount for this specific line item.

  • discount_currency (String, nil) (defaults to: )

    The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the discount.

  • discount_treatment_code (Symbol, Increase::Models::CardPurchaseSupplement::LineItem::DiscountTreatmentCode, nil) (defaults to: )

    Indicates how the merchant applied the discount for this specific line item.

  • item_commodity_code (String, nil) (defaults to: )

    Code used to categorize the purchase item.

  • item_descriptor (String, nil) (defaults to: )

    Description of the purchase item.

  • item_quantity (String, nil) (defaults to: )

    The number of units of the product being purchased.

  • product_code (String, nil) (defaults to: )

    Code used to categorize the product being purchased.

  • sales_tax_amount (Integer, nil) (defaults to: )

    Sales tax amount for this line item.

  • sales_tax_currency (String, nil) (defaults to: )

    The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the sales tax as

  • sales_tax_rate (String, nil) (defaults to: )

    Sales tax rate for this line item.

  • total_amount (Integer, nil) (defaults to: )

    Total amount of all line items.

  • total_amount_currency (String, nil) (defaults to: )

    The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the total amount

  • unit_cost (String, nil) (defaults to: )

    Cost of line item per unit of measure, in major units.

  • unit_cost_currency (String, nil) (defaults to: )

    The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the unit cost.

  • unit_of_measure_code (String, nil) (defaults to: )

    Code indicating unit of measure (gallons, etc.).



# File 'lib/increase/models/card_purchase_supplement.rb', line 361


Instance Attribute Details

#detail_indicatorSymbol, ...

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_amountInteger?

Discount amount for this specific line item.

Returns:

  • (Integer, nil)


271
# File 'lib/increase/models/card_purchase_supplement.rb', line 271

required :discount_amount, Integer, nil?: true

#discount_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the discount.

Returns:

  • (String, nil)


277
# File 'lib/increase/models/card_purchase_supplement.rb', line 277

required :discount_currency, String, nil?: true

#discount_treatment_codeSymbol, ...

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

#idString

The Card Purchase Supplement Line Item identifier.

Returns:

  • (String)


257
# File 'lib/increase/models/card_purchase_supplement.rb', line 257

required :id, String

#item_commodity_codeString?

Code used to categorize the purchase item.

Returns:

  • (String, nil)


291
# File 'lib/increase/models/card_purchase_supplement.rb', line 291

required :item_commodity_code, String, nil?: true

#item_descriptorString?

Description of the purchase item.

Returns:

  • (String, nil)


297
# File 'lib/increase/models/card_purchase_supplement.rb', line 297

required :item_descriptor, String, nil?: true

#item_quantityString?

The number of units of the product being purchased.

Returns:

  • (String, nil)


303
# File 'lib/increase/models/card_purchase_supplement.rb', line 303

required :item_quantity, String, nil?: true

#product_codeString?

Code used to categorize the product being purchased.

Returns:

  • (String, nil)


309
# File 'lib/increase/models/card_purchase_supplement.rb', line 309

required :product_code, String, nil?: true

#sales_tax_amountInteger?

Sales tax amount for this line item.

Returns:

  • (Integer, nil)


315
# File 'lib/increase/models/card_purchase_supplement.rb', line 315

required :sales_tax_amount, Integer, nil?: true

#sales_tax_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the sales tax assessed.

Returns:

  • (String, nil)


322
# File 'lib/increase/models/card_purchase_supplement.rb', line 322

required :sales_tax_currency, String, nil?: true

#sales_tax_rateString?

Sales tax rate for this line item.

Returns:

  • (String, nil)


328
# File 'lib/increase/models/card_purchase_supplement.rb', line 328

required :sales_tax_rate, String, nil?: true

#total_amountInteger?

Total amount of all line items.

Returns:

  • (Integer, nil)


334
# File 'lib/increase/models/card_purchase_supplement.rb', line 334

required :total_amount, Integer, nil?: true

#total_amount_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the total amount.

Returns:

  • (String, nil)


341
# File 'lib/increase/models/card_purchase_supplement.rb', line 341

required :total_amount_currency, String, nil?: true

#unit_costString?

Cost of line item per unit of measure, in major units.

Returns:

  • (String, nil)


347
# File 'lib/increase/models/card_purchase_supplement.rb', line 347

required :unit_cost, String, nil?: true

#unit_cost_currencyString?

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the unit cost.

Returns:

  • (String, nil)


353
# File 'lib/increase/models/card_purchase_supplement.rb', line 353

required :unit_cost_currency, String, nil?: true

#unit_of_measure_codeString?

Code indicating unit of measure (gallons, etc.).

Returns:

  • (String, nil)


359
# File 'lib/increase/models/card_purchase_supplement.rb', line 359

required :unit_of_measure_code, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/card_purchase_supplement.rb', line 414