public class CreditApi extends Object
| Constructor and Description |
|---|
CreditApi() |
CreditApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
InlineResponse2014 |
createCredit(CreateCreditRequest createCreditRequest)
Process a Credit
POST to the credit resource to credit funds to a specified credit card.
|
com.squareup.okhttp.Call |
createCreditAsync(CreateCreditRequest createCreditRequest,
ApiCallback<InlineResponse2014> callback)
Process a Credit (asynchronously)
POST to the credit resource to credit funds to a specified credit card.
|
com.squareup.okhttp.Call |
createCreditCall(CreateCreditRequest createCreditRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createCredit
|
ApiResponse<InlineResponse2014> |
createCreditWithHttpInfo(CreateCreditRequest createCreditRequest)
Process a Credit
POST to the credit resource to credit funds to a specified credit card.
|
ApiClient |
getApiClient() |
InlineResponse2006 |
getCredit(String id)
Retrieve a Credit
Include the credit ID in the GET request to return details of the credit.
|
com.squareup.okhttp.Call |
getCreditAsync(String id,
ApiCallback<InlineResponse2006> callback)
Retrieve a Credit (asynchronously)
Include the credit ID in the GET request to return details of the credit.
|
com.squareup.okhttp.Call |
getCreditCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getCredit
|
ApiResponse<InlineResponse2006> |
getCreditWithHttpInfo(String id)
Retrieve a Credit
Include the credit ID in the GET request to return details of the credit.
|
void |
setApiClient(ApiClient apiClient) |
public CreditApi()
public CreditApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call createCreditCall(CreateCreditRequest createCreditRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createCreditRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest) throws ApiException
createCreditRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2014> createCreditWithHttpInfo(CreateCreditRequest createCreditRequest) throws ApiException
createCreditRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createCreditAsync(CreateCreditRequest createCreditRequest, ApiCallback<InlineResponse2014> callback) throws ApiException
createCreditRequest - (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 getCreditCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The credit ID returned from a previous stand-alone credit request. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic InlineResponse2006 getCredit(String id) throws ApiException
id - The credit ID returned from a previous stand-alone credit request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<InlineResponse2006> getCreditWithHttpInfo(String id) throws ApiException
id - The credit ID returned from a previous stand-alone credit request. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getCreditAsync(String id, ApiCallback<InlineResponse2006> callback) throws ApiException
id - The credit ID returned from a previous stand-alone credit 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.