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

#amount ⇒ Float

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

#currency ⇒ CurrencyDrop

Returns - Service fee's currency object.

Returns:

#order_payment_method ⇒ OrderPaymentMethodDrop?

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_gate ⇒ PaymentGateDrop?

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_base ⇒ Float

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_amount ⇒ Float

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_rate ⇒ Decimal

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