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

#amountFloat

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

Returns:

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

#cash_boxCashBoxDrop?

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_branchCompanyBranchDrop

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.

#currencyCurrencyDrop

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_terminalString?

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_amountString

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č".

#idInteger

Returns - ID of the funds transfer in the database.

Returns:

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

#orderOrderDrop?

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_methodPaymentMethodDrop?

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.

#userUserDrop

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

Returns:

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

#walletCreditsWalletDrop?

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.