TransferMethodRepository

public protocol TransferMethodRepository

Transfer method repository protocol

  • Creates a HyperwalletTransferMethod for the User associated with the authentication token returned from HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).

    Declaration

    Swift

    func createTransferMethod(
        _ transferMethod: HyperwalletTransferMethod,
        _ completion: @escaping (Result<HyperwalletTransferMethod?, HyperwalletErrorType>) -> Void)

    Parameters

    transferMethod

    the HyperwalletTransferMethod being created

    completion

    the callback handler of responses from the Hyperwallet platform

  • Deactivates the HyperwalletTransferMethod linked to the transfer method token specified. The HyperwalletTransferMethod being deactivated must belong to the User that is associated with the authentication token returned from HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).

    Declaration

    Swift

    func deactivateTransferMethod(
        _ transferMethod: HyperwalletTransferMethod,
        _ completion: @escaping (Result<HyperwalletStatusTransition?, HyperwalletErrorType>) -> Void)

    Parameters

    transferMethod

    the HyperwalletTransferMethod being deactivated

    completion

    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. The HyperwalletTransferMethod being updated must belong to the User that is associated with the authentication token returned from HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).

    Declaration

    Swift

    func updateTransferMethods(
        _ transferMethod: HyperwalletTransferMethod,
        _ completion: @escaping (Result<HyperwalletTransferMethod?, HyperwalletErrorType>) -> Void)

    Parameters

    transferMethod

    the HyperwalletTransferMethod being updated

    completion

    the callback handler of responses from the Hyperwallet platform

  • Refreshes transfer methods

    Declaration

    Swift

    func refreshTransferMethods()