Home Reference Source Test
import TransferTokenRequest from 'token-io/src/main/TransferTokenRequest.js'
public class | source

TransferTokenRequest

Extends:

TokenRequest → TransferTokenRequest

Constructor Summary

Public Constructor
public

constructor(payload: *)

Method Summary

Public Methods
public

Adds a transfer destination to a transfer token request.

public

Sets the maximum amount per charge on a transfer token request.

public

setDestinationCountry(destinationCountry: string): TokenRequest

Sets the destination country in order to narrow down the country selection in the web-app UI.

Inherited Summary

From class TokenRequest
public static

Creates a TokenRequest object

public
public

options: {}

public

payload: *

public
public
public
public

Sets acting as on the token.

public

Sets a default bank ID for the TokenRequest

public

Sets the CSRF token

public

Sets the callback state

public

Sets customization id for the TokenRequest

public

Sets the description of the token.

public

setDestinationCountry(destinationCountry: string): TokenRequest

Sets a destination country for the TokenRequest

public
this method was deprecated. use setFromAlias instead

Sets a default email for the TokenRequest

public

Sets the alias of the payer/grantor

public

setFromMemberId(fromMemberId: *): TokenRequest

Sets the member ID of the payer/grantor.

public

Sets the receiptRequested flag on the TokenRequest.

public

Sets a redirect URL for the TokenRequest

public

Sets the source account ID.

public

Sets the alias of the payee/grantee.

public

setToMemberId(toMemberId: *): TokenRequest

Sets the member ID of the payee/grantee.

public

Sets a user ref ID for the TokenRequest

Public Constructors

public constructor(payload: *) source

Constructs a TokenRequest.

Override:

TokenRequest#constructor

Params:

NameTypeAttributeDescription
payload *

Public Methods

public addDestination(destination: Object): TokenRequest source

Adds a transfer destination to a transfer token request.

Params:

NameTypeAttributeDescription
destination Object

Return:

TokenRequest

token request

public setChargeAmount(amount: number): TokenRequest source

Sets the maximum amount per charge on a transfer token request.

Params:

NameTypeAttributeDescription
amount number

Return:

TokenRequest

token request

public setDestinationCountry(destinationCountry: string): TokenRequest source

Sets the destination country in order to narrow down the country selection in the web-app UI.

Override:

TokenRequest#setDestinationCountry

Params:

NameTypeAttributeDescription
destinationCountry string

Return:

TokenRequest

token request