Class: Falsify::DiscountAllocation
- Inherits:
-
Object
- Object
- Falsify::DiscountAllocation
- Defined in:
- lib/falsify/models/order/discount_allocation.rb
Overview
An amount allocated by discount applications. Each discount allocation is associated to a particular discount application.
Instance Attribute Summary collapse
-
#amount ⇒ String
The discount amount allocated to the line in the shop currency.
-
#amount_set ⇒ PriceSet
The discount amount allocated to the line item in shop and presentment currencies.
-
#discount_application_index ⇒ String
The index of the associated discount application in the order's discount_applications list.
Instance Attribute Details
#amount ⇒ String
The discount amount allocated to the line in the shop currency.
7 8 9 |
# File 'lib/falsify/models/order/discount_allocation.rb', line 7 def amount @amount end |
#amount_set ⇒ PriceSet
The discount amount allocated to the line item in shop and presentment currencies.
13 14 15 |
# File 'lib/falsify/models/order/discount_allocation.rb', line 13 def amount_set @amount_set end |
#discount_application_index ⇒ String
The index of the associated discount application in the order's discount_applications list.
10 11 12 |
# File 'lib/falsify/models/order/discount_allocation.rb', line 10 def discount_application_index @discount_application_index end |