TransferMethodRepository
public protocol TransferMethodRepository
Transfer method repository protocol
-
Creates a
HyperwalletTransferMethod
for 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
transferMethod
the
HyperwalletTransferMethod
being createdcompletion
the callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletTransferMethod
linked to the transfer method token specified. TheHyperwalletTransferMethod
being 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
transferMethod
the
HyperwalletTransferMethod
being deactivatedcompletion
the 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
queryParam
the ordering and filtering criteria
completion
the callback handler of responses from the Hyperwallet platform
-
updates the
HyperwalletTransferMethod
linked to the transfer method token specified. TheHyperwalletTransferMethod
being 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
transferMethod
the
HyperwalletTransferMethod
being updatedcompletion
the callback handler of responses from the Hyperwallet platform
-
Refreshes transfer methods
Declaration
Swift
func refreshTransferMethods()