HyperwalletUI
@objcMembers
public final class HyperwalletUI : NSObject
Class responsible for initializing the Hyperwallet UI SDK. It contains methods to interact with the controllers used to interact with the Hyperwallet platform
-
Returns the previously initialized instance of the Hyperwallet UI SDK interface object
Declaration
Swift
public static var shared: HyperwalletUI { get }
-
Clears Hyperwallet and HyperwalletInsights instances.
Declaration
Swift
public static func clearInstance()
-
Creates a new instance of the Hyperwallet UI SDK interface object. If a previously created instance exists, it will be replaced.
Declaration
Swift
public static func setup(_ provider: HyperwalletAuthenticationTokenProvider)
Parameters
provider
a provider of Hyperwallet authentication tokens.
-
Clears TransferRepositoryFactory , TransferMethodRepositoryFactory and UserRepositoryFactory instances.
Declaration
Swift
static func transferUIClearInstance()
-
Create transfer funds from User Source
Declaration
Swift
func createTransferFromUserCoordinator(clientTransferId: String, parentController: UIViewController) -> CreateTransferCoordinator
Return Value
An instance of
CreateTransferCoordinator
-
Create transfer funds from Prepaid Card Token Source
Declaration
Swift
func createTransferFromPrepaidCardCoordinator(clientTransferId: String, sourceToken: String, parentController: UIViewController) -> CreateTransferCoordinator
Return Value
An instance of
CreateTransferCoordinator
-
Create transfer funds This function will show all the available sources to create a transfer from.
Declaration
Swift
func createTransferFromAllAvailableSourcesCoordinator(clientTransferId: String, parentController: UIViewController) -> CreateTransferCoordinator
Return Value
An instance of
CreateTransferCoordinator
-
Clears TransferMethodRepositoryFactory and UserRepositoryFactory instances.
Declaration
Swift
static func transferMethodUIClearInstance()
-
Lists the user’s transfer methods (bank account, bank card, PayPal account, prepaid card, paper check).
The user can deactivate and add a new transfer method.
Declaration
Swift
func listTransferMethodCoordinator(parentController: UIViewController) -> ListTransferMethodsCoordinator
Return Value
An instance of
ListTransferMethodsCoordinator
-
Lists all transfer method types available based on the country, currency and profile type to create a new transfer method (bank account, bank card, PayPal account, prepaid card, paper check).
Declaration
Swift
func selectTransferMethodTypeCoordinator(forceUpdateData: Bool = false, parentController: UIViewController) -> SelectTransferMethodTypeCoordinator
Parameters
forceUpdateData
Forces to refresh the cached data.
Return Value
An instance of
SelectTransferMethodTypeCoordinator
-
Controller to create a new transfer method.
The form fields are based on the country, currency, user’s profile type and transfer method type should be passed to this Controller to create new Transfer Method for those values.
Declaration
Swift
func addTransferMethodCoordinator( _ country: String, _ currency: String, _ profileType: String, _ transferMethodTypeCode: String, _ forceUpdateData: Bool = false, parentController: UIViewController) -> AddTransferMethodCoordinator
Parameters
country
The 2 letter ISO 3166-1 country code.
currency
The 3 letter ISO 4217-1 currency code.
profileType
The profile type. Possible values - INDIVIDUAL, BUSINESS.
transferMethodTypeCode
The transfer method type. Possible values - BANK_ACCOUNT, BANK_CARD.
forceUpdateData
Forces to refresh the cached data.
Return Value
An instance of
AddTransferMethodCoordinator
-
Controller to update a transfer method.
The form fields are based transfer method token passed to this controller to update transfer method
Declaration
Swift
func updateTransferMethodCoordinator(_ transferMethodToken: String, parentController: UIViewController) -> UpdateTransferMethodCoordinator
Parameters
transferMethodToken
The transfer method token
Return Value
An instance of
UpdateTransferMethodCoordinator
-
Clears ReceiptRepositoryFactory instance.
Declaration
Swift
static func receiptUIClearInstance()
-
Lists the user’s transactions.
Declaration
Swift
func listUserReceiptCoordinator(parentController: UIViewController) -> ListReceiptCoordinator
Return Value
An instance of
ListReceiptCoordinator
-
Lists the user’s prepaid card transactions.
Declaration
Swift
func listPrepaidCardReceiptCoordinator(parentController: UIViewController, prepaidCardToken: String) -> ListReceiptCoordinator
Parameters
prepaidCardToken
prepaid card token for which transactions are requested
Return Value
An instance of
ListReceiptCoordinator
-
Lists the user’s transactions from all sources - wallet and prepaid card
Declaration
Swift
func listAllAvailableSourcesReceiptCoordinator(parentController: UIViewController) -> ListReceiptCoordinator
Return Value
An instance of
ListReceiptCoordinator