Class: C2eCore::Drops::OrderPaymentMethodDrop

Inherits:
BaseDrop
  • Object
show all
Includes:
Helpers::OrderConversions
Defined in:
/build/app/mailers/c2e_core/drops/order_payment_method_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(order_payment_method) ⇒ OrderPaymentMethodDrop

Returns a new instance of OrderPaymentMethodDrop.

Instance Method Details

#formatted_price ⇒ String

Returns - The amount paid converted to the order's currency and formatted. E.g.: "123,45 Kč".

Returns:

  • (String) —
    • The amount paid converted to the order's currency and formatted. E.g.: "123,45 Kč".

#payment_method ⇒ PaymentMethodDrop

Returns - Payment method as a drop objects.

Returns:

#price ⇒ Float

Returns - The amount paid converted to the order's currency. E.g.: 123.45.

Returns:

  • (Float) —
    • The amount paid converted to the order's currency. E.g.: 123.45.

#price_without_service_fee ⇒ Float

Returns - The amount paid excluding the service fee, converted to the order's currency. E.g.: 123.45.

Returns:

  • (Float) —
    • The amount paid excluding the service fee, converted to the order's currency. E.g.: 123.45.