TransferMethodRepository
public protocol TransferMethodRepository
Transfer method repository protocol
-
Creates a
HyperwalletTransferMethodfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).Declaration
Swift
func createTransferMethod( _ transferMethod: HyperwalletTransferMethod, _ completion: @escaping (Result<HyperwalletTransferMethod?, HyperwalletErrorType>) -> Void)Parameters
transferMethodthe
HyperwalletTransferMethodbeing createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletTransferMethodlinked to the transfer method token specified. TheHyperwalletTransferMethodbeing deactivated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).Declaration
Swift
func deactivateTransferMethod( _ transferMethod: HyperwalletTransferMethod, _ completion: @escaping (Result<HyperwalletStatusTransition?, HyperwalletErrorType>) -> Void)Parameters
transferMethodthe
HyperwalletTransferMethodbeing deactivatedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletPageList<HyperwalletTransferMethod>(Bank Account, Bank Card, PayPay Account, Prepaid Card, Paper Checks,Venmo Account), or nil if non exist.Declaration
Swift
func listTransferMethods( _ completion: @escaping (Result<HyperwalletPageList<HyperwalletTransferMethod>?, HyperwalletErrorType>) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
updates the
HyperwalletTransferMethodlinked to the transfer method token specified. TheHyperwalletTransferMethodbeing updated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).Declaration
Swift
func updateTransferMethods( _ transferMethod: HyperwalletTransferMethod, _ completion: @escaping (Result<HyperwalletTransferMethod?, HyperwalletErrorType>) -> Void)Parameters
transferMethodthe
HyperwalletTransferMethodbeing updatedcompletionthe callback handler of responses from the Hyperwallet platform
-
Refreshes transfer methods
Declaration
Swift
func refreshTransferMethods()
View on GitHub