Class: C2eCore::Drops::CreditsFundsTransferDrop

Inherits:
BaseDrop
  • Object
show all
Includes:
ActionView::Helpers::NumberHelper
Defined in:
/build/app/mailers/c2e_core/drops/credits_funds_transfer_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(funds_transfer) ⇒ CreditsFundsTransferDrop

Returns a new instance of CreditsFundsTransferDrop.

Instance Method Details

#amount ⇒ Float

Returns - The transferred amount, e.g. 123.45 or -67.89.

Returns:

  • (Float) —
    • The transferred amount, e.g. 123.45 or -67.89.

#cash_box ⇒ CashBoxDrop?

Returns - The cash register where the transfer was performed as a drop object, if present.

Returns:

  • (CashBoxDrop, nil) —
    • The cash register where the transfer was performed as a drop object, if present.

#company_branch ⇒ CompanyBranchDrop

Returns - Company branch to which the funds transfer belongs as a drop object.

Returns:

  • (CompanyBranchDrop) —
    • Company branch to which the funds transfer belongs as a drop object.

#currency ⇒ CurrencyDrop

Returns - The currency to which the funds transfer belongs to as a drop object.

Returns:

  • (CurrencyDrop) —
    • The currency to which the funds transfer belongs to as a drop object.

#data_from_terminal ⇒ String?

Returns - Data from the terminal about the last successful transaction related to the transfer, if present.

Returns:

  • (String, nil) —
    • Data from the terminal about the last successful transaction related to the transfer, if present.

#formatted_amount ⇒ String

Returns - The transferred amount formatted in its currency, e.g. "123,45 Kč" or "-67,89 Kč".

Returns:

  • (String) —
    • The transferred amount formatted in its currency, e.g. "123,45 Kč" or "-67,89 Kč".

#id ⇒ Integer

Returns - ID of the funds transfer in the database.

Returns:

  • (Integer) —
    • ID of the funds transfer in the database.

#order ⇒ OrderDrop?

Returns - The order the transfer is associate with as a drop object, if present.

Returns:

  • (OrderDrop, nil) —
    • The order the transfer is associate with as a drop object, if present.

#payment_method ⇒ PaymentMethodDrop?

Returns - The funds transfer payment method as a drop object, if present.

Returns:

  • (PaymentMethodDrop, nil) —
    • The funds transfer payment method as a drop object, if present.

#user ⇒ UserDrop

Returns - The user who created funds transfer as a drop object.

Returns:

  • (UserDrop) —
    • The user who created funds transfer as a drop object.

#wallet ⇒ CreditsWalletDrop?

Returns - The wallet to which the funds transfer belongs to as a drop object, if present.

Returns:

  • (CreditsWalletDrop, nil) —
    • The wallet to which the funds transfer belongs to as a drop object, if present.