public class PaymentInstrumentApi extends Object
| Constructor and Description |
|---|
PaymentInstrumentApi() |
PaymentInstrumentApi(ApiClient apiClient) |
public PaymentInstrumentApi()
public PaymentInstrumentApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createPaymentInstrumentCall(String profileId, CreatePaymentInstrumentRequest createPaymentInstrumentRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)createPaymentInstrumentRequest - Specify the customer's payment details for card or bank account. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments createPaymentInstrument(String profileId, CreatePaymentInstrumentRequest createPaymentInstrumentRequest) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)createPaymentInstrumentRequest - Specify the customer's payment details for card or bank account. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments> createPaymentInstrumentWithHttpInfo(String profileId, CreatePaymentInstrumentRequest createPaymentInstrumentRequest) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)createPaymentInstrumentRequest - Specify the customer's payment details for card or bank account. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createPaymentInstrumentAsync(String profileId, CreatePaymentInstrumentRequest createPaymentInstrumentRequest, ApiCallback<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments> callback) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)createPaymentInstrumentRequest - Specify the customer's payment details for card or bank account. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call deletePaymentInstrumentCall(String profileId, String tokenId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deletePaymentInstrument(String profileId, String tokenId) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deletePaymentInstrumentWithHttpInfo(String profileId, String tokenId) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deletePaymentInstrumentAsync(String profileId, String tokenId, ApiCallback<Void> callback) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getPaymentInstrumentCall(String profileId, String tokenId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments getPaymentInstrument(String profileId, String tokenId) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments> getPaymentInstrumentWithHttpInfo(String profileId, String tokenId) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getPaymentInstrumentAsync(String profileId, String tokenId, ApiCallback<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments> callback) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call updatePaymentInstrumentCall(String profileId, String tokenId, UpdatePaymentInstrumentRequest updatePaymentInstrumentRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)updatePaymentInstrumentRequest - Specify the customer's payment details. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments updatePaymentInstrument(String profileId, String tokenId, UpdatePaymentInstrumentRequest updatePaymentInstrumentRequest) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)updatePaymentInstrumentRequest - Specify the customer's payment details. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments> updatePaymentInstrumentWithHttpInfo(String profileId, String tokenId, UpdatePaymentInstrumentRequest updatePaymentInstrumentRequest) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)updatePaymentInstrumentRequest - Specify the customer's payment details. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updatePaymentInstrumentAsync(String profileId, String tokenId, UpdatePaymentInstrumentRequest updatePaymentInstrumentRequest, ApiCallback<TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedPaymentInstruments> callback) throws ApiException
profileId - The id of a profile containing user specific TMS configuration. (required)tokenId - The TokenId of a Payment Instrument. (required)updatePaymentInstrumentRequest - Specify the customer's payment details. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.