Class: Increase::Models::CardPurchaseSupplement::LineItem
- Defined in:
- lib/increase/models/card_purchase_supplement.rb
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 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 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 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 code for the unit cost.
-
#unit_of_measure_code ⇒ String
Code indicating unit of measure (gallons, etc.).
Method Summary
Methods inherited from BaseModel
Instance Attribute Details
#detail_indicator ⇒ Symbol
Indicates the type of line item.
139 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 139 required :detail_indicator, Increase::Enum.new(:normal, :credit, :payment) |
#discount_amount ⇒ Integer
Discount amount for this specific line item.
144 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 144 required :discount_amount, Integer |
#discount_currency ⇒ String
The ISO 4217 code for the discount.
149 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 149 required :discount_currency, String |
#discount_treatment_code ⇒ Symbol
Indicates how the merchant applied the discount for this specific line item.
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 ) |
#id ⇒ String
The Card Purchase Supplement Line Item identifier.
134 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 134 required :id, String |
#item_commodity_code ⇒ String
Code used to categorize the purchase item.
164 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 164 required :item_commodity_code, String |
#item_descriptor ⇒ String
Description of the purchase item.
169 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 169 required :item_descriptor, String |
#item_quantity ⇒ String
The number of units of the product being purchased.
174 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 174 required :item_quantity, String |
#product_code ⇒ String
Code used to categorize the product being purchased.
179 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 179 required :product_code, String |
#sales_tax_amount ⇒ Integer
Sales tax amount for this line item.
184 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 184 required :sales_tax_amount, Integer |
#sales_tax_currency ⇒ String
The ISO 4217 code for the sales tax assessed.
189 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 189 required :sales_tax_currency, String |
#sales_tax_rate ⇒ String
Sales tax rate for this line item.
194 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 194 required :sales_tax_rate, String |
#total_amount ⇒ Integer
Total amount of all line items.
199 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 199 required :total_amount, Integer |
#total_amount_currency ⇒ String
The ISO 4217 code for the total amount.
204 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 204 required :total_amount_currency, String |
#unit_cost ⇒ String
Cost of line item per unit of measure, in major units.
209 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 209 required :unit_cost, String |
#unit_cost_currency ⇒ String
The ISO 4217 code for the unit cost.
214 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 214 required :unit_cost_currency, String |
#unit_of_measure_code ⇒ String
Code indicating unit of measure (gallons, etc.).
219 |
# File 'lib/increase/models/card_purchase_supplement.rb', line 219 required :unit_of_measure_code, String |