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
Bangified version of cancel_withdraw/2
Bangified version of create_wallet/3
Bangified version of create_withdraw/2
Bangified version of receive_remittance/2
Bangified version of refund_wallet_transaction/3
Bangified version of reset_merchant_member_wallet_balance/2
Bangified version of retrieve_member_wallet/2
Bangified version of retrieve_merchant_member_wallet/1
Bangified version of retrieve_refund_wallet_transaction/2
Bangified version of retrieve_refundable_amount_of_wallet_transaction/2
Bangified version of retrieve_remittance/2
Bangified version of retrieve_withdraw/2
Bangified version of search_wallet_transactions/3
Bangified version of search_withdraws/2
Bangified version of send_remittance/2
Bangified version of update_wallet/4
Link to this section Functions
@spec cancel_withdraw( integer(), keyword() ) :: {:ok, Craftgate.Response.WithdrawResponse.t()} | {:error, any()}
@spec cancel_withdraw!( integer(), keyword() ) :: Craftgate.Response.WithdrawResponse.t() | no_return()
Bangified version of cancel_withdraw/2
@spec create_wallet(integer(), Craftgate.Request.CreateWalletRequest.t(), keyword()) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
@spec create_wallet!(integer(), Craftgate.Request.CreateWalletRequest.t(), keyword()) :: Craftgate.Response.WalletResponse.t() | no_return()
Bangified version of create_wallet/3
@spec create_withdraw( Craftgate.Request.CreateWithdrawRequest.t(), keyword() ) :: {:ok, Craftgate.Response.WithdrawResponse.t()} | {:error, any()}
@spec create_withdraw!( Craftgate.Request.CreateWithdrawRequest.t(), keyword() ) :: Craftgate.Response.WithdrawResponse.t() | no_return()
Bangified version of create_withdraw/2
@spec receive_remittance( Craftgate.Request.CreateRemittanceRequest.t(), keyword() ) :: {:ok, Craftgate.Response.RemittanceResponse.t()} | {:error, any()}
@spec receive_remittance!( Craftgate.Request.CreateRemittanceRequest.t(), keyword() ) :: Craftgate.Response.RemittanceResponse.t() | no_return()
Bangified version of receive_remittance/2
refund_wallet_transaction(wallet_transaction_id, body, options \\ [])
View Source@spec refund_wallet_transaction( integer(), Craftgate.Request.RefundWalletTransactionToCardRequest.t(), keyword() ) :: {:ok, Craftgate.Response.RefundWalletTransactionResponse.t()} | {:error, any()}
refund_wallet_transaction!(wallet_transaction_id, body, options \\ [])
View Source@spec refund_wallet_transaction!( integer(), Craftgate.Request.RefundWalletTransactionToCardRequest.t(), keyword() ) :: Craftgate.Response.RefundWalletTransactionResponse.t() | no_return()
Bangified version of refund_wallet_transaction/3
@spec reset_merchant_member_wallet_balance( Craftgate.Request.ResetMerchantMemberWalletBalanceRequest.t(), keyword() ) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
@spec reset_merchant_member_wallet_balance!( Craftgate.Request.ResetMerchantMemberWalletBalanceRequest.t(), keyword() ) :: Craftgate.Response.WalletResponse.t() | no_return()
Bangified version of reset_merchant_member_wallet_balance/2
@spec retrieve_member_wallet( integer(), keyword() ) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
@spec retrieve_member_wallet!( integer(), keyword() ) :: Craftgate.Response.WalletResponse.t() | no_return()
Bangified version of retrieve_member_wallet/2
@spec retrieve_merchant_member_wallet(keyword()) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
@spec retrieve_merchant_member_wallet!(keyword()) :: Craftgate.Response.WalletResponse.t() | no_return()
Bangified version of retrieve_merchant_member_wallet/1
retrieve_refund_wallet_transaction(wallet_transaction_id, options \\ [])
View Source@spec retrieve_refund_wallet_transaction( integer(), keyword() ) :: {:ok, Craftgate.Response.RefundWalletTransactionListResponse.t()} | {:error, any()}
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
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()}
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
@spec retrieve_remittance( integer(), keyword() ) :: {:ok, Craftgate.Response.RemittanceResponse.t()} | {:error, any()}
@spec retrieve_remittance!( integer(), keyword() ) :: Craftgate.Response.RemittanceResponse.t() | no_return()
Bangified version of retrieve_remittance/2
@spec retrieve_withdraw( integer(), keyword() ) :: {:ok, Craftgate.Response.WithdrawResponse.t()} | {:error, any()}
@spec retrieve_withdraw!( integer(), keyword() ) :: Craftgate.Response.WithdrawResponse.t() | no_return()
Bangified version of retrieve_withdraw/2
@spec search_wallet_transactions( integer(), Craftgate.Request.SearchWalletTransactionsRequest.t(), keyword() ) :: {:ok, Craftgate.Response.WalletTransactionListResponse.t()} | {:error, any()}
@spec search_wallet_transactions!( integer(), Craftgate.Request.SearchWalletTransactionsRequest.t(), keyword() ) :: Craftgate.Response.WalletTransactionListResponse.t() | no_return()
Bangified version of search_wallet_transactions/3
@spec search_withdraws( Craftgate.Request.SearchWithdrawsRequest.t(), keyword() ) :: {:ok, Craftgate.Response.WithdrawListResponse.t()} | {:error, any()}
@spec search_withdraws!( Craftgate.Request.SearchWithdrawsRequest.t(), keyword() ) :: Craftgate.Response.WithdrawListResponse.t() | no_return()
Bangified version of search_withdraws/2
@spec send_remittance( Craftgate.Request.CreateRemittanceRequest.t(), keyword() ) :: {:ok, Craftgate.Response.RemittanceResponse.t()} | {:error, any()}
@spec send_remittance!( Craftgate.Request.CreateRemittanceRequest.t(), keyword() ) :: Craftgate.Response.RemittanceResponse.t() | no_return()
Bangified version of send_remittance/2
@spec update_wallet( integer(), integer(), Craftgate.Request.UpdateWalletRequest.t(), keyword() ) :: {:ok, Craftgate.Response.WalletResponse.t()} | {:error, any()}
@spec update_wallet!( integer(), integer(), Craftgate.Request.UpdateWalletRequest.t(), keyword() ) :: Craftgate.Response.WalletResponse.t() | no_return()
Bangified version of update_wallet/4