Hyperwallet
@objcMembers
public final class Hyperwallet : NSObject
The Hyperwallet class is an iOS specific implementation of the
Hyperwallet platform User APIs.
A single instance of the Hyperwallet class is maintained. Resetting the current instance by calling
setup(_: HyperwalletAuthenticationTokenProvider) is critical when switching between authenticated Users.
Failure to do so will result in incorrect access and incorrect modifications to User data.
Authentication with the Hyperwallet platform is accomplished through the usage of JSON Web Tokens. At
instantiation an HyperwalletAuthenticationTokenProvider is set as a member variable to provide
the Hyperwallet class with an authentication token upon request.
-
Returns the previously initialized instance of the Hyperwallet Core SDK interface object
Declaration
Swift
public static var shared: Hyperwallet { get } -
Clears Hyperwallet instance.
Declaration
Swift
public static func clearInstance() -
Creates a new instance of the Hyperwallet Core SDK interface object. If a previously created instance exists, it will be replaced.
Declaration
Swift
public static func setup(_ provider: HyperwalletAuthenticationTokenProvider)Parameters
providera provider of Hyperwallet authentication tokens.
-
Retrieves a configuration if one exists - else using the authentication token from the provider, it tries to fetch the configuration object again and returns it else error
Declaration
Swift
public func getConfiguration(completion: @escaping (Configuration?, HyperwalletErrorType?) -> Void)Parameters
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletUserfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler)or nil if none exists.The
completion: @escaping (HyperwalletUser?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletUser) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func getUser(completion: @escaping (HyperwalletUser?, HyperwalletErrorType?) -> Void)Parameters
completionthe callback handler of responses from the Hyperwallet platform
-
Creates a
HyperwalletBankAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletBankAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletBankAccount) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func createBankAccount(account: HyperwalletBankAccount, completion: @escaping (HyperwalletBankAccount?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletBankAccountto be createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Creates a
HyperwalletPaperCheckfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletPaperCheck?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPaperCheck) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func createPaperCheck( account: HyperwalletPaperCheck, completion: @escaping (HyperwalletPaperCheck?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletPaperCheckto be createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Creates a
HyperwalletBankCardfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletBankCard?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletBankCard) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.@param bankCard @param listener
Declaration
Swift
public func createBankCard(account: HyperwalletBankCard, completion: @escaping (HyperwalletBankCard?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletBankCardto be createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Creates a
HyperwalletPayPalAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletPayPalAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPayPalAccount) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func createPayPalAccount(account: HyperwalletPayPalAccount, completion: @escaping (HyperwalletPayPalAccount?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletPayPalAccountto be createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Creates a
HyperwalletTransferfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletTransfer?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletTransfer) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func createTransfer(transfer: HyperwalletTransfer, completion: @escaping (HyperwalletTransfer?, HyperwalletErrorType?) -> Void)Parameters
transferthe
HyperwalletTransferto be createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Creates a
HyperwalletVenmoAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletVenmoAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletVenmoAccount) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func createVenmoAccount(account: HyperwalletVenmoAccount, completion: @escaping (HyperwalletVenmoAccount?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletVenmoAccountto be createdcompletionthe callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletBankAccountlinked to the transfer method token specified. TheHyperwalletBankAccountbeing deactivated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletStatusTransition) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via HyperwalletAuthenticationTokenProvider` if the current one is expired or is about to expire.
Declaration
Swift
public func deactivateBankAccount(transferMethodToken: String, notes: String? = nil, completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletBankAccountbeing deactivatednotesa note regarding the status change
completionthe callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletPaperChecklinked to the transfer method token specified. TheHyperwalletPaperCheckbeing deactivated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletStatusTransition) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via HyperwalletAuthenticationTokenProvider` if the current one is expired or is about to expire.
Declaration
Swift
public func deactivatePaperCheck(transferMethodToken: String, notes: String? = nil, completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletPaperCheckbeing deactivatednotesa note regarding the status change
completionthe callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletBankCardlinked to the transfer method token specified. TheHyperwalletBankCardbeing deactivated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletStatusTransition) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func deactivateBankCard(transferMethodToken: String, notes: String? = nil, completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletBankCardbeing deactivatednotesa note regarding the status change
completionthe callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletPayPalAccountlinked to the transfer method token specified. TheHyperwalletPayPalAccountbeing deactivated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletStatusTransition) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func deactivatePayPalAccount(transferMethodToken: String, notes: String? = nil, completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletPayPalAccountbeing deactivatednotesa note regarding the status change
completionthe callback handler of responses from the Hyperwallet platform
-
Deactivates the
HyperwalletVenmoAccountlinked to the transfer method token specified. TheHyperwalletVenmoAccountbeing deactivated must belong to the User that is associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletStatusTransition) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func deactivateVenmoAccount(transferMethodToken: String, notes: String? = nil, completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletVenmoAccountbeing deactivatednotesa note regarding the status change
completionthe callback handler of responses from the Hyperwallet platform
-
Schedules the
HyperwalletTransferlinked to the transfer method token specified.The
completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletStatusTransition) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func scheduleTransfer(transferToken: String, notes: String? = nil, completion: @escaping (HyperwalletStatusTransition?, HyperwalletErrorType?) -> Void)Parameters
transferTokenthe Hyperwallet specific unique identifier for the
HyperwalletTransferbeing commitednotesa note regarding the status change
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletBankAccountlinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletBankAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletBankAccount) or error(HyperwalletErrorType) from processing the request.Declaration
Swift
public func getBankAccount(transferMethodToken: String, completion: @escaping (HyperwalletBankAccount?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletBankAccountbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletPaperChecklinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletPaperCheck?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPaperCheck) or error(HyperwalletErrorType) from processing the request.Declaration
Swift
public func getPaperCheck( transferMethodToken: String, completion: @escaping (HyperwalletPaperCheck?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletPaperCheckbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletBankCardlinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletBankCard?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletBankCard) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func getBankCard(transferMethodToken: String, completion: @escaping (HyperwalletBankCard?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletBankCardbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletPayPalAccountlinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletPayPalAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPayPalAccount) or error(HyperwalletErrorType) from processing the request.Declaration
Swift
public func getPayPalAccount(transferMethodToken: String, completion: @escaping (HyperwalletPayPalAccount?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletPayPalAccountbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletPrepaidCardlinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletPrepaidCard?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPrepaidCard) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func getPrepaidCard(transferMethodToken: String, completion: @escaping (HyperwalletPrepaidCard?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletPrepaidCardbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletTransferlinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletTransfer?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletTransfer) or error(HyperwalletErrorType) from processing the request.Declaration
Swift
public func getTransfer(transferToken: String, completion: @escaping (HyperwalletTransfer?, HyperwalletErrorType?) -> Void)Parameters
transferTokenthe Hyperwallet specific unique identifier for the
HyperwalletTransferbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletVenmoAccountlinked to the transfer method token specified, or nil if none exists.The
completion: @escaping (HyperwalletVenmoAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletVenmoAccount) or error(HyperwalletErrorType) from processing the request.Declaration
Swift
public func getVenmoAccount(transferMethodToken: String, completion: @escaping (HyperwalletVenmoAccount?, HyperwalletErrorType?) -> Void)Parameters
transferMethodTokenthe Hyperwallet specific unique identifier for the
HyperwalletVenmoAccountbeing requestedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the list of
HyperwalletBankAccounts for the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletBankAccounts will be based on the criteria specified within theHyperwalletBankAccountQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied:- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Type: Bank Account
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletBankAccount>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listBankAccounts(queryParam: HyperwalletBankAccountQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletBankAccount>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the list of
HyperwalletPaperChecks for the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletPaperChecks will be based on the criteria specified within theHyperwalletPaperCheckQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied:- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Type: Paper Check
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletPaperCheck>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listPaperChecks(queryParam: HyperwalletPaperCheckQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletPaperCheck>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletBankCardfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletBankCardwill be based on the criteria specified within theHyperwalletBankAccountQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Type: Bank Card
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletBankCard>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listBankCards(queryParam: HyperwalletBankCardQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletBankCard>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletPayPalAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletPayPalAccountwill be based on the criteria specified within theHyperwalletPayPalAccountQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletPayPalAccount>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listPayPalAccounts(queryParam: HyperwalletPayPalAccountQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletPayPalAccount>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletTransferMethod(Bank Account, Bank Card, PayPay Account, Prepaid Card, Paper Checks) for the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletBankCardwill be based on the criteria specified within theHyperwalletBankAccountQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Type: All
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletTransferMethod>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listTransferMethods(queryParam: HyperwalletTransferMethodQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletTransferMethod>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletPrepaidCardfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletPrepaidCardwill be based on the criteria specified within theHyperwalletPrepaidCardQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletPrepaidCard>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listPrepaidCards(queryParam: HyperwalletPrepaidCardQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletPrepaidCard>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the
HyperwalletVenmoAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler), or nil if non exist.The ordering and filtering of
HyperwalletVenmoAccountwill be based on the criteria specified within theHyperwalletVenmoQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Status: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletVenmoAccount>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listVenmoAccounts(queryParam: HyperwalletVenmoQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletVenmoAccount>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the list of receipts for the User associated with the authentication token.
The ordering and filtering of
HyperwalletReceiptwill be based on the criteria specified within theHyperwalletReceiptQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- Currency: All
- Sort By: Created On
The
completion: @escaping (HyperwalletPageList<HyperwalletReceipt>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listUserReceipts(queryParam: HyperwalletReceiptQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletReceipt>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
The filtering of
HyperwalletReceiptwill be based on the criteria specified within theHyperwalletReceiptQueryParamobject. CreatedAfter needs to be provided to get the receipts. Receipts are returned sorted in ascending order of creation date- Created Before: N/A
- Created After: “Some Date”
- Currency: All
The
completion: @escaping (HyperwalletPageList<HyperwalletReceipt>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listPrepaidCardReceipts(prepaidCardToken: String, queryParam: HyperwalletReceiptQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletReceipt>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the list of transfers for the User associated with the authentication token.
The ordering and filtering of
HyperwalletTransferwill be based on the criteria specified within theHyperwalletTransferQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Created Before: N/A
- Created After: N/A
- clientTransferId: N/A
- destinationToken: N/A
- sourceToken: N/A
The
completion: @escaping (HyperwalletPageList<HyperwalletTransfer>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listTransfers(queryParam: HyperwalletTransferQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletTransfer>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the transfer method configuration field set for the User that is associated with the authentication token returned from
HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletTransferMethodConfigurationField?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletTransferMethodConfigurationField) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func retrieveTransferMethodConfigurationFields( request: HyperwalletTransferMethodConfigurationFieldQuery, completion: @escaping (HyperwalletTransferMethodConfigurationField?, HyperwalletErrorType?) -> Void)Parameters
requestcontaining a transfer method configuration key tuple of country, currency, transfer method type and profile
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the transfer method update configuration fields set for the User that is associated with the authentication token returned from
HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletTransferMethodUpdateConfigurationField?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletTransferMethodUpdateConfigurationField) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func retrieveTransferMethodUpdateConfigurationFields( request: HyperwalletTransferMethodUpdateConfigurationFieldQuery, completion: @escaping (HyperwalletTransferMethodUpdateConfigurationField?, HyperwalletErrorType?) -> Void)Parameters
requestGraphQL query containing transfer method token and required configuration fields
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the transfer method configuration key set for the User that is associated with the authentication token returned from
HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletTransferMethodConfigurationKey?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletTransferMethodConfigurationKey) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func retrieveTransferMethodConfigurationKeys( request: HyperwalletTransferMethodConfigurationKeysQuery, completion: @escaping (HyperwalletTransferMethodConfigurationKey?, HyperwalletErrorType?) -> Void)Parameters
requestcontaining the transfer method configuration key query
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the transfer method types, processing times, and fees for the User that is associated with the authentication token returned from
HyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).The
completion: @escaping (HyperwalletTransferMethodConfigurationKey?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletTransferMethodConfigurationKey) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func retrieveTransferMethodTypesFeesAndProcessingTimes( request: HyperwalletTransferMethodTypesFeesAndProcessingTimesQuery, completion: @escaping (HyperwalletTransferMethodConfigurationKey?, HyperwalletErrorType?) -> Void)Parameters
requestcontaining the transfer method configuration key query
completionthe callback handler of responses from the Hyperwallet platform
-
Updates the
HyperwalletBankAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).To identify the
HyperwalletBankAccountthat is going to be updated, the transfer method token must be set as part of theHyperwalletBankAccountobject passed in.The
completion: @escaping (HyperwalletBankAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletBankAccount) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func updateBankAccount(account: HyperwalletBankAccount, completion: @escaping (HyperwalletBankAccount?, HyperwalletErrorType?) -> Void) -
Updates the
HyperwalletPaperCheckfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).To identify the
HyperwalletPaperCheckthat is going to be updated, the transfer method token must be set as part of theHyperwalletPaperCheckobject passed in.The
completion: @escaping (HyperwalletPaperCheck?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPaperCheck) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func updatePaperCheck( account: HyperwalletPaperCheck, completion: @escaping (HyperwalletPaperCheck?, HyperwalletErrorType?) -> Void) -
Updates the
HyperwalletBankCardfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).To identify the
HyperwalletBankCardthat is going to be updated, the transfer method token must be set as part of theHyperwalletBankCardobject passed in.The
completion: @escaping (HyperwalletBankCard?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletBankCard) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func updateBankCard(account: HyperwalletBankCard, completion: @escaping (HyperwalletBankCard?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletBankCardto be updatedcompletionthe callback handler of responses from the Hyperwallet platform
-
Updates the
HyperwalletPayPalAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).To identify the
HyperwalletPayPalAccountthat is going to be updated, the transfer method token must be set as part of theHyperwalletPayPalAccountobject passed in.The
completion: @escaping (HyperwalletPayPalAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPayPalAccount) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func updatePayPalAccount(account: HyperwalletPayPalAccount, completion: @escaping (HyperwalletPayPalAccount?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletPayPalAccountto be updatedcompletionthe callback handler of responses from the Hyperwallet platform
-
Updates the
HyperwalletVenmoAccountfor the User associated with the authentication token returned fromHyperwalletAuthenticationTokenProvider.retrieveAuthenticationToken(_ : @escaping CompletionHandler).To identify the
HyperwalletVenmoAccountthat is going to be updated, the transfer method token must be set as part of theHyperwalletVenmoAccountobject passed in.The
completion: @escaping (HyperwalletVenmoAccount?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletVenmoAccount) or error(HyperwalletErrorType) from processing the request.This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func updateVenmoAccount(account: HyperwalletVenmoAccount, completion: @escaping (HyperwalletVenmoAccount?, HyperwalletErrorType?) -> Void)Parameters
accountthe
HyperwalletVenmoAccountto be updatedcompletionthe callback handler of responses from the Hyperwallet platform
-
Returns the list of balances for the User associated with the authentication token.
The ordering and filtering of
HyperwalletBalancewill be based on the criteria specified within theHyperwalletBalanceQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Currency: All
- Sort By: currency
The
completion: @escaping (HyperwalletPageList<HyperwalletBalance>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listUserBalances(queryParam: HyperwalletBalanceQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletBalance>?, HyperwalletErrorType?) -> Void)Parameters
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
-
Returns the list of prepaid card balances for the User associated with the authentication token.
The ordering and filtering of
HyperwalletBalancewill be based on the criteria specified within theHyperwalletPrepaidCardBalanceQueryParamobject, if it is not nil. Otherwise the default ordering and filtering will be applied.- Offset: 0
- Limit: 10
- Sort By: currency
The
completion: @escaping (HyperwalletPageList<HyperwalletBalance>?, HyperwalletErrorType?) -> Voidthat is passed in to this method invocation will receive the successful response(HyperwalletPageList?) or error(HyperwalletErrorType) from processing the request. This function will request a new authentication token via
HyperwalletAuthenticationTokenProviderif the current one is expired or is about to expire.Declaration
Swift
public func listPrepaidCardBalances(prepaidCardToken: String, queryParam: HyperwalletPrepaidCardBalanceQueryParam? = nil, completion: @escaping (HyperwalletPageList<HyperwalletBalance>?, HyperwalletErrorType?) -> Void)Parameters
prepaidCardTokenthe prepaid card token
queryParamthe ordering and filtering criteria
completionthe callback handler of responses from the Hyperwallet platform
View on GitHub