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

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/card_purchase_supplement.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#detail_indicatorSymbol

Indicates the type of line item.

Returns:

  • (Symbol)


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

required :detail_indicator, Increase::Enum.new(:normal, :credit, :payment)

#discount_amountInteger

Discount amount for this specific line item.

Returns:

  • (Integer)


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

required :discount_amount, Integer

#discount_currencyString

The ISO 4217 code for the discount.

Returns:

  • (String)


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

required :discount_currency, String

#discount_treatment_codeSymbol

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

Returns:

  • (Symbol)


154
155
156
157
158
159
# File 'lib/increase/models/card_purchase_supplement.rb', line 154

required :discount_treatment_code,
Increase::Enum.new(
  :no_line_item_level_discount_provided,
  :tax_calculated_on_post_discount_line_item_total,
  :tax_calculated_on_pre_discount_line_item_total
)

#idString

The Card Purchase Supplement Line Item identifier.

Returns:

  • (String)


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

required :id, String

#item_commodity_codeString

Code used to categorize the purchase item.

Returns:

  • (String)


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

required :item_commodity_code, String

#item_descriptorString

Description of the purchase item.

Returns:

  • (String)


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

required :item_descriptor, String

#item_quantityString

The number of units of the product being purchased.

Returns:

  • (String)


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

required :item_quantity, String

#product_codeString

Code used to categorize the product being purchased.

Returns:

  • (String)


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

required :product_code, String

#sales_tax_amountInteger

Sales tax amount for this line item.

Returns:

  • (Integer)


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

required :sales_tax_amount, Integer

#sales_tax_currencyString

The ISO 4217 code for the sales tax assessed.

Returns:

  • (String)


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

required :sales_tax_currency, String

#sales_tax_rateString

Sales tax rate for this line item.

Returns:

  • (String)


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

required :sales_tax_rate, String

#total_amountInteger

Total amount of all line items.

Returns:

  • (Integer)


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

required :total_amount, Integer

#total_amount_currencyString

The ISO 4217 code for the total amount.

Returns:

  • (String)


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

required :total_amount_currency, String

#unit_costString

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

Returns:

  • (String)


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

required :unit_cost, String

#unit_cost_currencyString

The ISO 4217 code for the unit cost.

Returns:

  • (String)


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

required :unit_cost_currency, String

#unit_of_measure_codeString

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

Returns:

  • (String)


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

required :unit_of_measure_code, String