public class PaymentApi extends Object
| Constructor and Description |
|---|
PaymentApi() |
PaymentApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
InlineResponse201 |
createPayment(CreatePaymentRequest createPaymentRequest)
Process a Payment
Authorize the payment for the transaction.
|
com.squareup.okhttp.Call |
createPaymentAsync(CreatePaymentRequest createPaymentRequest,
ApiCallback<InlineResponse201> 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<InlineResponse201> |
createPaymentWithHttpInfo(CreatePaymentRequest createPaymentRequest)
Process a Payment
Authorize the payment for the transaction.
|
ApiClient |
getApiClient() |
InlineResponse2002 |
getPayment(String id)
Retrieve a Payment
Include the payment ID in the GET request to retrieve the payment details.
|
com.squareup.okhttp.Call |
getPaymentAsync(String id,
ApiCallback<InlineResponse2002> callback)
Retrieve a Payment (asynchronously)
Include the payment ID in the GET request to retrieve the payment details.
|
com.squareup.okhttp.Call |
getPaymentCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPayment
|
ApiResponse<InlineResponse2002> |
getPaymentWithHttpInfo(String id)
Retrieve a Payment
Include the payment ID in the GET request to retrieve the payment details.
|
void |
setApiClient(ApiClient apiClient) |
public PaymentApi()
public PaymentApi(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 InlineResponse201 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<InlineResponse201> 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<InlineResponse201> 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 objectpublic com.squareup.okhttp.Call getPaymentCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The payment ID returned from a previous payment request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2002 getPayment(String id) throws ApiException
id - The payment ID returned from a previous payment request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2002> getPaymentWithHttpInfo(String id) throws ApiException
id - The payment ID returned from a previous payment request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getPaymentAsync(String id, ApiCallback<InlineResponse2002> callback) throws ApiException
id - The payment ID returned from a previous payment request. (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.