Class: Falsify::DiscountAllocation

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#amountString

The discount amount allocated to the line in the shop currency.

Returns:

  • (String)


7
8
9
# File 'lib/falsify/models/order/discount_allocation.rb', line 7

def amount
  @amount
end

#amount_setPriceSet

The discount amount allocated to the line item in shop and presentment currencies.

Returns:



13
14
15
# File 'lib/falsify/models/order/discount_allocation.rb', line 13

def amount_set
  @amount_set
end

#discount_application_indexString

The index of the associated discount application in the order's discount_applications list.

Returns:

  • (String)


10
11
12
# File 'lib/falsify/models/order/discount_allocation.rb', line 10

def discount_application_index
  @discount_application_index
end