.Net SDK
|
Public Member Functions | |
TokenIO | Sync () |
Returns a synchronous version of the API. More... | |
Task< Boolean > | AliasExists (Alias alias) |
Checks if a given alias already exists. More... | |
Task< string > | GetMemberId (Alias alias) |
Looks up member id for a given alias. More... | |
Task< MemberAsync > | CreateMember (Alias alias, CreateMemberType createMemberType) |
Creates a new Token member with a set of auto-generated keys, an alias, and member type. More... | |
Task< MemberAsync > | CreateMember () |
Creates a new personal-use Token member with a set of auto generated keys and no alias. More... | |
Task< MemberAsync > | CreateMember (Alias alias) |
Creates a new personal-use Token member with a set of auto generated keys and the given alias. More... | |
Task< MemberAsync > | CreateBusinessMember (Alias alias) |
Creates a new business-use Token member with a set of auto-generated keys and alias. More... | |
Task< DeviceInfo > | ProvisionDevice (Alias alias) |
Provisions a new device for an existing user. The call generates a set of keys that are returned back. The keys need to be approved by an existing device/keys. More... | |
Task< MemberAsync > | GetMember (string memberId) |
Return a MemberAsync set up to use some Token member's keys (assuming we have them). More... | |
Task< Proto.Common.TokenProtos.TokenRequest > | RetrieveTokenRequest (string requestId) |
Returns a token request for a specified token request id. More... | |
Task< NotifyStatus > | NotifyAddKey (Alias alias, IList< Key > keys, DeviceMetadata deviceMetadata) |
Notifies to add a key. More... | |
Task< NotifyStatus > | NotifyPaymentRequest (TokenPayload tokenPayload) |
Sends a notification to request a payment. More... | |
Task< string > | BeginRecovery (Alias alias) |
Begins account recovery. More... | |
Task< MemberRecoveryOperation.Types.Authorization > | CreateRecoveryAuthorization (string memberId, Key privilegedKey) |
Create a recovery authorization for some agent to sign. More... | |
Task< MemberRecoveryOperation > | GetRecoveryAuthorization (string verificationId, string code, Key key) |
Gets recovery authorization from Token. More... | |
Task< MemberAsync > | CompleteRecovery (string memberId, IList< MemberRecoveryOperation > recoveryOperations, Key privilegedKey, ICryptoEngine cryptoEngine) |
Completes account recovery. More... | |
Task< MemberAsync > | CompleteRecoveryWithDefaultRule (string memberId, string verificationId, string code) |
Completes account recovery if the default recovery rule was set. More... | |
Task< PagedBanks > | GetBanks () |
Returns the first 200 available banks for linking. More... | |
Task< PagedBanks > | GetBanks (IList< string > ids) |
Returns banks from a given list of bank IDs (case-insensitive). More... | |
Task< PagedBanks > | GetBanks (string search) |
Return banks whose 'name' or 'identifier' contains the given search string (case-insensitive). More... | |
Task< PagedBanks > | GetBanks (int page, int perPage) |
Returns banks with specified paging information. More... | |
Task< PagedBanks > | GetBanks (string country, int page, int perPage) |
Return banks whose 'country' matches the given country code (case-insensitive). More... | |
Task< PagedBanks > | GetBanks (IList< string > ids, string search, string country, int? page, int? perPage, string sort) |
Return banks that satisfy given filtering requirements. More... | |
Task< string > | GenerateTokenRequestUrl (string requestId) |
Generates a Token request URL from a request ID, and state. This does not set a CSRF token or pass in a state. More... | |
Task< string > | GenerateTokenRequestUrl (string requestId, string state) |
Generates a Token request URL from a request ID, and state. This does not set a CSRF token. More... | |
Task< string > | GenerateTokenRequestUrl (string requestId, string state, string csrfToken) |
Generates a Token request URL from a request ID, an original state and a CSRF token. More... | |
Task< TokenRequestCallback > | ParseTokenRequestCallbackUrl (string callbackUrl) |
Parse the token request callback URL to extract the state and the token ID. This assumes that no CSRF token was set. More... | |
Task< TokenRequestCallback > | ParseTokenRequestCallbackUrl (string callbackUrl, string csrfToken) |
Parse the token request callback URL to extract the state and the token ID. Verify that the state contains the CSRF token hash and that the signature on the state and CSRF token is valid. More... | |
Task< TokenRequestResult > | GetTokenRequestResult (string tokenRequestId) |
Get the token request result based on a token's tokenRequestId. More... | |
void | Dispose () |
|
inline |
Checks if a given alias already exists.
alias | the alias to check |
|
inline |
Begins account recovery.
alias | the used to recover |
|
inline |
Completes account recovery.
memberId | the member id |
recoveryOperations | the member recovery operations |
privilegedKey | the privileged public key in the member recovery operations |
cryptoEngine | the new crypto engine |
|
inline |
Completes account recovery if the default recovery rule was set.
memberId | the member id |
verificationId | the verification id |
code | the code |
|
inline |
Creates a new business-use Token member with a set of auto-generated keys and alias.
alias | the alias to be associated with member |
|
inline |
Creates a new Token member with a set of auto-generated keys, an alias, and member type.
alias | nullable member alias to use, must be unique. If null, then no alias will be created with the member |
createMemberType | the type of member to register |
|
inline |
Creates a new personal-use Token member with a set of auto generated keys and no alias.
|
inline |
Creates a new personal-use Token member with a set of auto generated keys and the given alias.
alias | the member alias to use, must be unique |
|
inline |
Create a recovery authorization for some agent to sign.
memberId | the ID of the member we claim to be. |
privilegedKey | the new privileged key we want to use. |
|
inline |
Generates a Token request URL from a request ID, and state. This does not set a CSRF token or pass in a state.
requestId | the request id |
|
inline |
Generates a Token request URL from a request ID, and state. This does not set a CSRF token.
requestId | the request id |
state | the state |
|
inline |
Generates a Token request URL from a request ID, an original state and a CSRF token.
requestId | the request id |
state | the state |
csrfToken | the csrf token |
|
inline |
Returns the first 200 available banks for linking.
|
inline |
Returns banks from a given list of bank IDs (case-insensitive).
ids | the bank IDs |
|
inline |
Return banks whose 'name' or 'identifier' contains the given search string (case-insensitive).
search | the keyword to search for |
|
inline |
Returns banks with specified paging information.
page | the result page to retrieve |
perPage | max number of records per page, can be at most 200 |
|
inline |
Return banks whose 'country' matches the given country code (case-insensitive).
country | the ISO 3166-1 alpha-2 country code |
page | the result page to retrieve |
perPage | max number of records per page, can be at most 200 |
|
inline |
Return banks that satisfy given filtering requirements.
ids | the bank IDs to fetch |
search | the keyword to search the fields 'name' and 'identifier' for |
country | ISO 3166-1 alpha-2 country code of the banks |
page | the result page to retrieve |
perPage | max number of records per page, can be at most 200 |
sort | the key to sort the results, one of: name, provider and country |
All fields are optional. Set to null if absent. The default value for page is 1; the default value for perPage is 200. Values set out of range will be treated as default value.
|
inline |
Return a MemberAsync set up to use some Token member's keys (assuming we have them).
memberId | the member ID |
|
inline |
Looks up member id for a given alias.
alias | the alias to check |
|
inline |
Gets recovery authorization from Token.
verificationId | the verification id |
code | the verification code |
key | the privileged key |
|
inline |
Get the token request result based on a token's tokenRequestId.
tokenRequestId | the token request id |
|
inline |
Notifies to add a key.
alias | alias to notify |
keys | keys that need approval |
deviceMetadata | device metadata of the keys |
|
inline |
Sends a notification to request a payment.
tokenPayload | the payload of a token to be sent |
|
inline |
Parse the token request callback URL to extract the state and the token ID. This assumes that no CSRF token was set.
callbackUrl | the token request callback url |
|
inline |
Parse the token request callback URL to extract the state and the token ID. Verify that the state contains the CSRF token hash and that the signature on the state and CSRF token is valid.
callbackUrl | the token request callback url |
csrfToken | the csrf token |
|
inline |
Provisions a new device for an existing user. The call generates a set of keys that are returned back. The keys need to be approved by an existing device/keys.
alias | the alias to provision the device for |
|
inline |
Returns a token request for a specified token request id.
requestId | the request id |
|
inline |
Returns a synchronous version of the API.