Class: C2eCore::Drops::OrderServiceFeeDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/order_service_fee_drop.rb
Instance Method Summary collapse
-
#amount ⇒ Float
- Service fee amount rounded into service fee's currency.
-
#currency ⇒ CurrencyDrop
- Service fee's currency object.
-
#initialize(service_fee) ⇒ OrderServiceFeeDrop
constructor
A new instance of OrderServiceFeeDrop.
-
#order_payment_method ⇒ OrderPaymentMethodDrop?
- Order payment method used to pay the service fee as drop object, if present.
-
#payment_gate ⇒ PaymentGateDrop?
- Payment gate used to pay the service fee as drop object, if present.
-
#service_fee_tax_base ⇒ Float
- Tax base (net amount) of the service fee in service fee's currency.
-
#vat_amount ⇒ Float
- VAT portion of the service fee, converted and rounded into service fee's currency.
-
#vat_rate ⇒ Decimal
- VAT rate applicable to the service fee.
Constructor Details
#initialize(service_fee) ⇒ OrderServiceFeeDrop
Returns a new instance of OrderServiceFeeDrop.
Instance Method Details
#amount ⇒ Float
Returns - Service fee amount rounded into service fee's currency. E.g.: 20.
#currency ⇒ CurrencyDrop
Returns - Service fee's currency object.
#order_payment_method ⇒ OrderPaymentMethodDrop?
Returns - Order payment method used to pay the service fee as drop object, if present.
#payment_gate ⇒ PaymentGateDrop?
Returns - Payment gate used to pay the service fee as drop object, if present.
#service_fee_tax_base ⇒ Float
Returns - Tax base (net amount) of the service fee in service fee's currency. E.g.: 16.53.
#vat_amount ⇒ Float
Returns - VAT portion of the service fee, converted and rounded into service fee's currency. E.g.: 3.47.
#vat_rate ⇒ Decimal
Returns - VAT rate applicable to the service fee. E.g.: 21.0.