public class MerchantsApi extends Object
| Constructor and Description |
|---|
MerchantsApi() |
MerchantsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Merchant |
createMerchant(Merchant merchant)
Create a new merchant account.
|
com.squareup.okhttp.Call |
createMerchantAsync(Merchant merchant,
ApiCallback<Merchant> callback)
Create a new merchant account.
|
ApiResponse<Merchant> |
createMerchantWithHttpInfo(Merchant merchant)
Create a new merchant account.
|
ApiClient |
getApiClient() |
Merchant |
getMerchant(String merchantId)
Get details of a specific merchant
|
com.squareup.okhttp.Call |
getMerchantAsync(String merchantId,
ApiCallback<Merchant> callback)
Get details of a specific merchant (asynchronously)
|
List<ClientName> |
getMerchants()
Get a list of all merchant accounts the user has access to
|
com.squareup.okhttp.Call |
getMerchantsAsync(ApiCallback<List<ClientName>> callback)
Get a list of all merchant accounts the user has access to (asynchronously)
|
ApiResponse<List<ClientName>> |
getMerchantsWithHttpInfo()
Get a list of all merchant accounts the user has access to
|
ApiResponse<Merchant> |
getMerchantWithHttpInfo(String merchantId)
Get details of a specific merchant
|
void |
setApiClient(ApiClient apiClient) |
Merchant |
updateMerchant(String merchantId,
Merchant client)
Updates properties of a merchant account.
|
com.squareup.okhttp.Call |
updateMerchantAsync(String merchantId,
Merchant client,
ApiCallback<Merchant> callback)
Updates properties of a merchant account.
|
ApiResponse<Merchant> |
updateMerchantWithHttpInfo(String merchantId,
Merchant client)
Updates properties of a merchant account.
|
public MerchantsApi()
public MerchantsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Merchant createMerchant(Merchant merchant) throws ApiException
merchant - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Merchant> createMerchantWithHttpInfo(Merchant merchant) throws ApiException
merchant - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createMerchantAsync(Merchant merchant, ApiCallback<Merchant> callback) throws ApiException
merchant - (optional)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 Merchant getMerchant(String merchantId) throws ApiException
merchantId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Merchant> getMerchantWithHttpInfo(String merchantId) throws ApiException
merchantId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMerchantAsync(String merchantId, ApiCallback<Merchant> callback) throws ApiException
merchantId - (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 List<ClientName> getMerchants() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ClientName>> getMerchantsWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMerchantsAsync(ApiCallback<List<ClientName>> callback) throws ApiException
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 Merchant updateMerchant(String merchantId, Merchant client) throws ApiException
merchantId - (required)client - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Merchant> updateMerchantWithHttpInfo(String merchantId, Merchant client) throws ApiException
merchantId - (required)client - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateMerchantAsync(String merchantId, Merchant client, ApiCallback<Merchant> callback) throws ApiException
merchantId - (required)client - (optional)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.