Class: C2eCore::Drops::OrderPriceDrop
- Includes:
- Helpers::OrderConversions
- Defined in:
- /build/app/mailers/c2e_core/drops/order_price_drop.rb
Instance Method Summary collapse
-
#collect_from_customer ⇒ Float
- The amount that should be collected from customer.
-
#discounts ⇒ Array[OrderDiscountDrop]
- Array of all order discounts.
-
#external_discounts_sum ⇒ Float
- Sum of all discounts from external integrators converted into order's currency.
-
#extra_charge ⇒ Float
- Price for extra charge (only used by DameJidlo now) converted into order's currency.
-
#extra_fees ⇒ Array[OrderExternalFeeDrop]
- Array of all extra fees.
-
#initialize(order) ⇒ OrderPriceDrop
constructor
A new instance of OrderPriceDrop.
-
#min_order_charge ⇒ Float
- Price of the extra charge applied to reach the delivery threshold, converted into order's currency.
-
#rounding ⇒ Float
- Rounding of total_raw to cash rounding unit.
-
#tip ⇒ Float
- Value of tip given by customer converted into order's currency.
-
#tip_percentage ⇒ Integer
- Percentage value of tip given by customer.
-
#total ⇒ Float
- Total price of order converted into order's currency.
-
#total_discount ⇒ Float
- Sum of all discounts converted into order's currency.
-
#total_raw ⇒ Float
- Total price of order converted into order's currency.
-
#total_vouchers ⇒ Float
- Sum of all vouchers converted into order's currency.
-
#transportation ⇒ Float
- Price for delivery converted into order's currency.
-
#vats ⇒ Array[OrderVatDrop]
- Array of all order discounts.
-
#vouchers ⇒ Array[OrderDiscountDrop]
- Array of all order vouchers.
Constructor Details
#initialize(order) ⇒ OrderPriceDrop
Returns a new instance of OrderPriceDrop.
Instance Method Details
#collect_from_customer ⇒ Float
Returns - The amount that should be collected from customer.
#discounts ⇒ Array[OrderDiscountDrop]
Returns - Array of all order discounts.
#external_discounts_sum ⇒ Float
Returns - Sum of all discounts from external integrators converted into order's currency. E.g.: 78.
#extra_charge ⇒ Float
Returns - Price for extra charge (only used by DameJidlo now) converted into order's currency. E.g.: 28.
#extra_fees ⇒ Array[OrderExternalFeeDrop]
Returns - Array of all extra fees.
#min_order_charge ⇒ Float
Returns - Price of the extra charge applied to reach the delivery threshold, converted into order's currency. E.g.: 28.
#rounding ⇒ Float
Returns - Rounding of total_raw to cash rounding unit. E.g.: SK(EUR) -> 0.05, CZ(CZK) -> 1.00.
#tip ⇒ Float
Returns - Value of tip given by customer converted into order's currency. E.g.: 34.8.
#tip_percentage ⇒ Integer
Returns - Percentage value of tip given by customer. E.g.: 25.
#total ⇒ Float
Returns - Total price of order converted into order's currency. E.g.: 378.
#total_discount ⇒ Float
Returns - Sum of all discounts converted into order's currency. E.g.: 78.
#total_raw ⇒ Float
Returns - Total price of order converted into order's currency. E.g.: 378.
#total_vouchers ⇒ Float
Returns - Sum of all vouchers converted into order's currency. E.g.: 78.
#transportation ⇒ Float
Returns - Price for delivery converted into order's currency. E.g.: 50.
#vats ⇒ Array[OrderVatDrop]
Returns - Array of all order discounts.
#vouchers ⇒ Array[OrderDiscountDrop]
Returns - Array of all order vouchers.