public final class VaultController extends BaseController
GLOBAL_ERROR_CASES| Constructor and Description |
|---|
VaultController(io.apimatic.core.GlobalConfiguration globalConfig)
Initializes the controller.
|
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<PaymentTokenResponse> |
createPaymentToken(CreatePaymentTokenInput input)
Creates a Payment Token from the given payment source and adds it to the Vault of the
associated customer.
|
CompletableFuture<ApiResponse<PaymentTokenResponse>> |
createPaymentTokenAsync(CreatePaymentTokenInput input)
Creates a Payment Token from the given payment source and adds it to the Vault of the
associated customer.
|
ApiResponse<SetupTokenResponse> |
createSetupToken(CreateSetupTokenInput input)
Creates a Setup Token from the given payment source and adds it to the Vault of the
associated customer.
|
CompletableFuture<ApiResponse<SetupTokenResponse>> |
createSetupTokenAsync(CreateSetupTokenInput input)
Creates a Setup Token from the given payment source and adds it to the Vault of the
associated customer.
|
ApiResponse<Void> |
deletePaymentToken(String id)
Delete the payment token associated with the payment token id.
|
CompletableFuture<ApiResponse<Void>> |
deletePaymentTokenAsync(String id)
Delete the payment token associated with the payment token id.
|
ApiResponse<PaymentTokenResponse> |
getPaymentToken(String id)
Returns a readable representation of vaulted payment source associated with the payment token
id.
|
CompletableFuture<ApiResponse<PaymentTokenResponse>> |
getPaymentTokenAsync(String id)
Returns a readable representation of vaulted payment source associated with the payment token
id.
|
ApiResponse<SetupTokenResponse> |
getSetupToken(String id)
Returns a readable representation of temporarily vaulted payment source associated with the
setup token id.
|
CompletableFuture<ApiResponse<SetupTokenResponse>> |
getSetupTokenAsync(String id)
Returns a readable representation of temporarily vaulted payment source associated with the
setup token id.
|
ApiResponse<CustomerVaultPaymentTokensResponse> |
listCustomerPaymentTokens(ListCustomerPaymentTokensInput input)
Returns all payment tokens for a customer.
|
CompletableFuture<ApiResponse<CustomerVaultPaymentTokensResponse>> |
listCustomerPaymentTokensAsync(ListCustomerPaymentTokensInput input)
Returns all payment tokens for a customer.
|
getClientInstance, getGlobalConfiguration, getHttpCallbackpublic VaultController(io.apimatic.core.GlobalConfiguration globalConfig)
globalConfig - Configurations added in client.public ApiResponse<PaymentTokenResponse> createPaymentToken(CreatePaymentTokenInput input) throws ApiException, IOException
input - CreatePaymentTokenInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<PaymentTokenResponse>> createPaymentTokenAsync(CreatePaymentTokenInput input)
input - CreatePaymentTokenInput object containing request parameterspublic ApiResponse<CustomerVaultPaymentTokensResponse> listCustomerPaymentTokens(ListCustomerPaymentTokensInput input) throws ApiException, IOException
input - ListCustomerPaymentTokensInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<CustomerVaultPaymentTokensResponse>> listCustomerPaymentTokensAsync(ListCustomerPaymentTokensInput input)
input - ListCustomerPaymentTokensInput object containing request parameterspublic ApiResponse<PaymentTokenResponse> getPaymentToken(String id) throws ApiException, IOException
id - Required parameter: ID of the payment token.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<PaymentTokenResponse>> getPaymentTokenAsync(String id)
id - Required parameter: ID of the payment token.public ApiResponse<Void> deletePaymentToken(String id) throws ApiException, IOException
id - Required parameter: ID of the payment token.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<Void>> deletePaymentTokenAsync(String id)
id - Required parameter: ID of the payment token.public ApiResponse<SetupTokenResponse> createSetupToken(CreateSetupTokenInput input) throws ApiException, IOException
input - CreateSetupTokenInput object containing request parametersApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<SetupTokenResponse>> createSetupTokenAsync(CreateSetupTokenInput input)
input - CreateSetupTokenInput object containing request parameterspublic ApiResponse<SetupTokenResponse> getSetupToken(String id) throws ApiException, IOException
id - Required parameter: ID of the setup token.ApiException - Represents error response from the server.IOException - Signals that an I/O exception of some sort has occurred.public CompletableFuture<ApiResponse<SetupTokenResponse>> getSetupTokenAsync(String id)
id - Required parameter: ID of the setup token.Copyright © 2025. All rights reserved.