Class: C2eCore::Drops::OrderServiceFeeDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/order_service_fee_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(service_fee) ⇒ OrderServiceFeeDrop

Returns a new instance of OrderServiceFeeDrop.

Instance Method Details

#amountFloat

Returns - Service fee amount rounded into service fee's currency. E.g.: 20.

Returns:

  • (Float)
    • Service fee amount rounded into service fee's currency. E.g.: 20

#currencyCurrencyDrop

Returns - Service fee's currency object.

Returns:

#order_payment_methodOrderPaymentMethodDrop?

Returns - Order payment method used to pay the service fee as drop object, if present.

Returns:

  • (OrderPaymentMethodDrop, nil)
    • Order payment method used to pay the service fee as drop object, if present.

#payment_gatePaymentGateDrop?

Returns - Payment gate used to pay the service fee as drop object, if present.

Returns:

  • (PaymentGateDrop, nil)
    • Payment gate used to pay the service fee as drop object, if present.

#service_fee_tax_baseFloat

Returns - Tax base (net amount) of the service fee in service fee's currency. E.g.: 16.53.

Returns:

  • (Float)
    • Tax base (net amount) of the service fee in service fee's currency. E.g.: 16.53

#vat_amountFloat

Returns - VAT portion of the service fee, converted and rounded into service fee's currency. E.g.: 3.47.

Returns:

  • (Float)
    • VAT portion of the service fee, converted and rounded into service fee's currency. E.g.: 3.47

#vat_rateDecimal

Returns - VAT rate applicable to the service fee. E.g.: 21.0.

Returns:

  • (Decimal)
    • VAT rate applicable to the service fee. E.g.: 21.0