View Source Craftgate.Adapter.WalletAdapter (Craftgate v1.0.42)

Provides capabilities to manage member wallets, search for wallet transactions, and send or receive remittance

Link to this section Summary

Functions

Link to this section Functions

Link to this function

cancel_withdraw(id, options \\ [])

View Source
@spec cancel_withdraw(
  integer(),
  keyword()
) :: {:ok, Craftgate.Response.WithdrawResponse.t()} | {:error, any()}
Link to this function

cancel_withdraw!(id, options \\ [])

View Source
@spec cancel_withdraw!(
  integer(),
  keyword()
) :: Craftgate.Response.WithdrawResponse.t() | no_return()

Bangified version of cancel_withdraw/2

Link to this function

create_wallet(member_id, body, options \\ [])

View Source
@spec create_wallet(integer(), Craftgate.Request.CreateWalletRequest.t(), keyword()) ::
  {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
Link to this function

create_wallet!(member_id, body, options \\ [])

View Source

Bangified version of create_wallet/3

Link to this function

create_withdraw(body, options \\ [])

View Source
@spec create_withdraw(
  Craftgate.Request.CreateWithdrawRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.WithdrawResponse.t()} | {:error, any()}
Link to this function

create_withdraw!(body, options \\ [])

View Source

Bangified version of create_withdraw/2

Link to this function

receive_remittance(body, options \\ [])

View Source
@spec receive_remittance(
  Craftgate.Request.CreateRemittanceRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.RemittanceResponse.t()} | {:error, any()}
Link to this function

receive_remittance!(body, options \\ [])

View Source

Bangified version of receive_remittance/2

Link to this function

refund_wallet_transaction(wallet_transaction_id, body, options \\ [])

View Source
Link to this function

refund_wallet_transaction!(wallet_transaction_id, body, options \\ [])

View Source

Bangified version of refund_wallet_transaction/3

Link to this function

reset_merchant_member_wallet_balance(body, options \\ [])

View Source
@spec reset_merchant_member_wallet_balance(
  Craftgate.Request.ResetMerchantMemberWalletBalanceRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
Link to this function

reset_merchant_member_wallet_balance!(body, options \\ [])

View Source

Bangified version of reset_merchant_member_wallet_balance/2

Link to this function

retrieve_member_wallet(member_id, options \\ [])

View Source
@spec retrieve_member_wallet(
  integer(),
  keyword()
) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
Link to this function

retrieve_member_wallet!(member_id, options \\ [])

View Source
@spec retrieve_member_wallet!(
  integer(),
  keyword()
) :: Craftgate.Response.WalletResponse.t() | no_return()

Bangified version of retrieve_member_wallet/2

Link to this function

retrieve_merchant_member_wallet(options \\ [])

View Source
@spec retrieve_merchant_member_wallet(keyword()) ::
  {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
Link to this function

retrieve_merchant_member_wallet!(options \\ [])

View Source
@spec retrieve_merchant_member_wallet!(keyword()) ::
  Craftgate.Response.WalletResponse.t() | no_return()

Bangified version of retrieve_merchant_member_wallet/1

Link to this function

retrieve_refund_wallet_transaction(wallet_transaction_id, options \\ [])

View Source
@spec retrieve_refund_wallet_transaction(
  integer(),
  keyword()
) ::
  {:ok, Craftgate.Response.RefundWalletTransactionListResponse.t()}
  | {:error, any()}
Link to this function

retrieve_refund_wallet_transaction!(wallet_transaction_id, options \\ [])

View Source
@spec retrieve_refund_wallet_transaction!(
  integer(),
  keyword()
) :: Craftgate.Response.RefundWalletTransactionListResponse.t() | no_return()

Bangified version of retrieve_refund_wallet_transaction/2

Link to this function

retrieve_refundable_amount_of_wallet_transaction(wallet_transaction_id, options \\ [])

View Source
@spec retrieve_refundable_amount_of_wallet_transaction(
  integer(),
  keyword()
) ::
  {:ok, Craftgate.Response.WalletTransactionRefundableAmountResponse.t()}
  | {:error, any()}
Link to this function

retrieve_refundable_amount_of_wallet_transaction!(wallet_transaction_id, options \\ [])

View Source
@spec retrieve_refundable_amount_of_wallet_transaction!(
  integer(),
  keyword()
) ::
  Craftgate.Response.WalletTransactionRefundableAmountResponse.t() | no_return()

Bangified version of retrieve_refundable_amount_of_wallet_transaction/2

Link to this function

retrieve_remittance(id, options \\ [])

View Source
@spec retrieve_remittance(
  integer(),
  keyword()
) :: {:ok, Craftgate.Response.RemittanceResponse.t()} | {:error, any()}
Link to this function

retrieve_remittance!(id, options \\ [])

View Source
@spec retrieve_remittance!(
  integer(),
  keyword()
) :: Craftgate.Response.RemittanceResponse.t() | no_return()

Bangified version of retrieve_remittance/2

Link to this function

retrieve_withdraw(id, options \\ [])

View Source
@spec retrieve_withdraw(
  integer(),
  keyword()
) :: {:ok, Craftgate.Response.WithdrawResponse.t()} | {:error, any()}
Link to this function

retrieve_withdraw!(id, options \\ [])

View Source
@spec retrieve_withdraw!(
  integer(),
  keyword()
) :: Craftgate.Response.WithdrawResponse.t() | no_return()

Bangified version of retrieve_withdraw/2

Link to this function

search_wallet_transactions(wallet_id, params, options \\ [])

View Source
Link to this function

search_wallet_transactions!(wallet_id, params, options \\ [])

View Source

Bangified version of search_wallet_transactions/3

Link to this function

search_withdraws(params, options \\ [])

View Source
@spec search_withdraws(
  Craftgate.Request.SearchWithdrawsRequest.t(),
  keyword()
) :: {:ok, Craftgate.Response.WithdrawListResponse.t()} | {:error, any()}
Link to this function

search_withdraws!(params, options \\ [])

View Source

Bangified version of search_withdraws/2

Link to this function

send_remittance(body, options \\ [])

View Source
Link to this function

send_remittance!(body, options \\ [])

View Source

Bangified version of send_remittance/2

Link to this function

update_wallet(member_id, wallet_id, body, options \\ [])

View Source
@spec update_wallet(
  integer(),
  integer(),
  Craftgate.Request.UpdateWalletRequest.t(),
  keyword()
) ::
  {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
Link to this function

update_wallet!(member_id, wallet_id, body, options \\ [])

View Source

Bangified version of update_wallet/4