Cancel a single funding source identified by id.
The identifier of the funding source to cancel.
The funding source that was cancelled.
FundingSourceNotFoundError No funding source matching the specified ID could be found.
Cancel a single provisional funding source identified by id.
The identifier of the provisional funding source to cancel.
The provisional funding source that was cancelled and is in a failed state.
FundingSourceNotFoundError No provisional funding source matching the specified ID could be found.
Cancel a virtual card.
Parameters used to cancel a virtual card.
The identifier of the card that was just cancelled.
CardNotFoundError No virtual card matching the ID specified could be found
Complete provisioning of a funding source.
Parameters used to complete the funding source.
The funding source to be provisioned.
DuplicateFundingSourceError User already has an active funding source matching the funding source being created.
FundingSourceCompletionDataInvalidError Completion data provided does not match provisional funding source specified.
IdentityVerificationNotVerifiedError Identity information associated with funding source does not sufficiently match identity information provided during identity verification.
ProvisionalFundingSourceNotFoundError No provisional funding source with the ID specified could be found.
UnacceptableFundingSourceError The funding source provided is not acceptable for use to fund virtual card transactions.
FundingSourceRequiresUserInteractionError The funding source requires additional user interaction for provisioning can complete. The error's provisioningData property contains provider specific data to be used in this process.
Create key pair and secret key for use by the Virtual Cards Client if they have not already been created.
The key pair is used to register a public key with the service for the encryption of virtual card and transaction details.
The secret key is used for client side encryption of user specific card metadata.
Get a funding source identified by id.
Parameters used to retrieve a funding source.
The funding source identified by id or undefined if the funding source cannot be found.
FundingSourceNotFoundError No funding source matching the specified ID could be found.
The configuration of the client funding source data.
Get a provisional card.
Parameters used to get a provisional card.
The card that is being queried, or undefined if not found.
Get a transaction.
Parameters used to get a transaction.
The transaction that is being queried, or undefined if not found.
Get a virtual card.
Parameters used to get a virtual card.
The card that is being queried, or undefined if not found.
Get the configuration data for the virtual cards service.
The configuration data for the virtual cards service.
Imports cryptographic keys from a key archive.
Key archive data to import the keys from.
Get a list of all created funding sources for the signed in user.
Optionalinput: ListFundingSourcesInputParameters used to retrieve a list of created funding sources.
An array of funding sources or an empty array if no matching funding sources can be found.
List provisional cards.
Parameters used to list provisional cards.
Result of the provisional card list.
Get a list of provisional funding sources. If no provisional funding sources can be found, an empty list will be returned.
Parameters used to list the provisional funding sources.
List all of a user's transactions.
Parameters used for listing transactions for a user.
Results of the transaction list.
List transactions for a virtual card.
Parameters used for listing a virtual card's transactions.
Results of the transaction list.
List transactions for a virtual card and transaction type.
Parameters used for listing a virtual card's transactions.
Results of the transaction list.
List virtual cards.
Parameters used to list virtual cards.
Result of the virtual card list.
Provision a virtual card.
Parameters used to provision a virtual card.
The card that is being provisioned. Please poll the card via the list methods to access the card.
FundingSourceNotFoundError No funding source matching the specified ID could be found.
FundingSourceNotActiveError The funding source matching the specified ID is not active.
VelocityExceededError Configured maximum rate of attempts to add a virtual card has been exceeded. Wait before retrying.
Removes any cached data maintained by this client.
Sets an optional callback to handle sign-in when operations are attempted while not signed in.
When set, all operations (exception subscriptions and initialization/reset) will check sign-in status before performing their normal behavior. If the client is not signed in, the callback will be invoked to allow the host app to perform sign-in. Once the callback completes, then the client will attempt the original operation that triggered the callback. If the callback throws an error, then the error will be propagated to the caller and the original operation will not be attempted. To clear the callback, call this method with no arguments or undefined.
Optionalcallback: SudoPlatformSignInCallbackInitiate provisioning of a new funding source.
Parameters used to setup the provisional funding source.
The provisional funding source.
InsufficientEntitlementsError User has insufficient entitlements to setup a new funding source.
VelocityExceededError Configured maximum rate of attempts to add a funding source has been exceeded or too many failed attempts have recently been made. Wait before retrying.
Subscribe to changes to funding sources
unique identifier to differentiate subscriptions; note that specifying a duplicate subscription id will replace the previous subscription.
implementation of callback to be invoked when funding source change occurs
Unsubscribe from changes to funding sources
unique identifier to differentiate subscription
Update a virtual card.
Parameters used to update a virtual card.
The virtual card that was updated.
CardNotFoundError No virtual card matching the ID specified could be found
CardStateError Card not in ISSUED state. It must be in ISSUED state in order to update.
Sudo Platform Virtual Cards client API
All methods should be expected to be able to throw the following errors defined in
@sudoplatform/sudo-common:Throws
NotSignedInError User not signed in. Sign in before performing the operation.
Throws
AccountLockedError Account has been locked. Contact support.
Throws
ServiceError Transient error at the service. Try the operation again