public class PaymentsApi extends Object
| Constructor and Description |
|---|
PaymentsApi() |
PaymentsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
PtsV2PaymentsPost201Response |
createPayment(CreatePaymentRequest createPaymentRequest)
Process a Payment Authorize the payment for the transaction.
|
com.squareup.okhttp.Call |
createPaymentAsync(CreatePaymentRequest createPaymentRequest,
ApiCallback<PtsV2PaymentsPost201Response> callback)
Process a Payment (asynchronously) Authorize the payment for the
transaction.
|
com.squareup.okhttp.Call |
createPaymentCall(CreatePaymentRequest createPaymentRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createPayment
|
ApiResponse<PtsV2PaymentsPost201Response> |
createPaymentWithHttpInfo(CreatePaymentRequest createPaymentRequest)
Process a Payment Authorize the payment for the transaction.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public PaymentsApi()
public PaymentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createPaymentCall(CreatePaymentRequest createPaymentRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createPaymentRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PtsV2PaymentsPost201Response createPayment(CreatePaymentRequest createPaymentRequest) throws ApiException
createPaymentRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot
deserialize the response bodypublic ApiResponse<PtsV2PaymentsPost201Response> createPaymentWithHttpInfo(CreatePaymentRequest createPaymentRequest) throws ApiException
createPaymentRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot
deserialize the response bodypublic com.squareup.okhttp.Call createPaymentAsync(CreatePaymentRequest createPaymentRequest, ApiCallback<PtsV2PaymentsPost201Response> callback) throws ApiException
createPaymentRequest - (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 © 2018. All rights reserved.