public class SubaccountsApi extends Object
| Constructor and Description |
|---|
SubaccountsApi() |
SubaccountsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
void |
subaccountsEmailCreditsDelete(String notes,
String email,
Integer credits,
Boolean removeAll)
Remove email, template or litmus credits from a sub-account
|
com.squareup.okhttp.Call |
subaccountsEmailCreditsDeleteAsync(String notes,
String email,
Integer credits,
Boolean removeAll,
ApiCallback<Void> callback)
Remove email, template or litmus credits from a sub-account (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsEmailCreditsDeleteCall(String notes,
String email,
Integer credits,
Boolean removeAll,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsEmailCreditsDelete
|
ApiResponse<Void> |
subaccountsEmailCreditsDeleteWithHttpInfo(String notes,
String email,
Integer credits,
Boolean removeAll)
Remove email, template or litmus credits from a sub-account
|
void |
subaccountsEmailCreditsPost(SubaccountCreditsPayload body,
String email)
Add email credits to a sub-account
|
com.squareup.okhttp.Call |
subaccountsEmailCreditsPostAsync(SubaccountCreditsPayload body,
String email,
ApiCallback<Void> callback)
Add email credits to a sub-account (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsEmailCreditsPostCall(SubaccountCreditsPayload body,
String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsEmailCreditsPost
|
ApiResponse<Void> |
subaccountsEmailCreditsPostWithHttpInfo(SubaccountCreditsPayload body,
String email)
Add email credits to a sub-account
|
void |
subaccountsEmailDelete(String email)
Deletes specified Subaccount
|
com.squareup.okhttp.Call |
subaccountsEmailDeleteAsync(String email,
ApiCallback<Void> callback)
Deletes specified Subaccount (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsEmailDeleteCall(String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsEmailDelete
|
ApiResponse<Void> |
subaccountsEmailDeleteWithHttpInfo(String email)
Deletes specified Subaccount
|
SubAccount |
subaccountsEmailGet(String email)
Retrieve info about one of your subaccounts
|
com.squareup.okhttp.Call |
subaccountsEmailGetAsync(String email,
ApiCallback<SubAccount> callback)
Retrieve info about one of your subaccounts (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsEmailGetCall(String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsEmailGet
|
ApiResponse<SubAccount> |
subaccountsEmailGetWithHttpInfo(String email)
Retrieve info about one of your subaccounts
|
SubAccountSettings |
subaccountsEmailSettingsGet(String email)
Loads settings of subaccount
|
com.squareup.okhttp.Call |
subaccountsEmailSettingsGetAsync(String email,
ApiCallback<SubAccountSettings> callback)
Loads settings of subaccount (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsEmailSettingsGetCall(String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsEmailSettingsGet
|
ApiResponse<SubAccountSettings> |
subaccountsEmailSettingsGetWithHttpInfo(String email)
Loads settings of subaccount
|
SubAccountSettings |
subaccountsEmailSettingsPut(String email,
SubAccountSettings body)
Updates settings of specified subaccount
|
com.squareup.okhttp.Call |
subaccountsEmailSettingsPutAsync(String email,
SubAccountSettings body,
ApiCallback<SubAccountSettings> callback)
Updates settings of specified subaccount (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsEmailSettingsPutCall(String email,
SubAccountSettings body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsEmailSettingsPut
|
ApiResponse<SubAccountSettings> |
subaccountsEmailSettingsPutWithHttpInfo(String email,
SubAccountSettings body)
Updates settings of specified subaccount
|
List<SubAccount> |
subaccountsGet(Integer limit,
Integer offset)
Lists all of your subaccounts
|
com.squareup.okhttp.Call |
subaccountsGetAsync(Integer limit,
Integer offset,
ApiCallback<List<SubAccount>> callback)
Lists all of your subaccounts (asynchronously)
|
com.squareup.okhttp.Call |
subaccountsGetCall(Integer limit,
Integer offset,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsGet
|
ApiResponse<List<SubAccount>> |
subaccountsGetWithHttpInfo(Integer limit,
Integer offset)
Lists all of your subaccounts
|
Account |
subaccountsPost(SubaccountPayload body)
Create new subaccount and provide most important data about it.
|
com.squareup.okhttp.Call |
subaccountsPostAsync(SubaccountPayload body,
ApiCallback<Account> callback)
Create new subaccount and provide most important data about it.
|
com.squareup.okhttp.Call |
subaccountsPostCall(SubaccountPayload body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for subaccountsPost
|
ApiResponse<Account> |
subaccountsPostWithHttpInfo(SubaccountPayload body)
Create new subaccount and provide most important data about it.
|
public SubaccountsApi()
public SubaccountsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call subaccountsEmailCreditsDeleteCall(String notes, String email, Integer credits, Boolean removeAll, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
notes - Specific notes about the transaction (required)email - Email address of sub-account (required)credits - Amount of credits to remove (optional)removeAll - Remove all credits of this type from sub-account (overrides credits if provided) (optional, default to False)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void subaccountsEmailCreditsDelete(String notes, String email, Integer credits, Boolean removeAll) throws ApiException
notes - Specific notes about the transaction (required)email - Email address of sub-account (required)credits - Amount of credits to remove (optional)removeAll - Remove all credits of this type from sub-account (overrides credits if provided) (optional, default to False)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> subaccountsEmailCreditsDeleteWithHttpInfo(String notes, String email, Integer credits, Boolean removeAll) throws ApiException
notes - Specific notes about the transaction (required)email - Email address of sub-account (required)credits - Amount of credits to remove (optional)removeAll - Remove all credits of this type from sub-account (overrides credits if provided) (optional, default to False)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsEmailCreditsDeleteAsync(String notes, String email, Integer credits, Boolean removeAll, ApiCallback<Void> callback) throws ApiException
notes - Specific notes about the transaction (required)email - Email address of sub-account (required)credits - Amount of credits to remove (optional)removeAll - Remove all credits of this type from sub-account (overrides credits if provided) (optional, default to False)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 subaccountsEmailCreditsPostCall(SubaccountCreditsPayload body, String email, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body - Amount of credits to add (required)email - Email address of sub-account (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void subaccountsEmailCreditsPost(SubaccountCreditsPayload body, String email) throws ApiException
body - Amount of credits to add (required)email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> subaccountsEmailCreditsPostWithHttpInfo(SubaccountCreditsPayload body, String email) throws ApiException
body - Amount of credits to add (required)email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsEmailCreditsPostAsync(SubaccountCreditsPayload body, String email, ApiCallback<Void> callback) throws ApiException
body - Amount of credits to add (required)email - Email address of sub-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 subaccountsEmailDeleteCall(String email, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Email address of sub-account (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void subaccountsEmailDelete(String email) throws ApiException
email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> subaccountsEmailDeleteWithHttpInfo(String email) throws ApiException
email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsEmailDeleteAsync(String email, ApiCallback<Void> callback) throws ApiException
email - Email address of sub-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 subaccountsEmailGetCall(String email, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Email address of sub-account (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic SubAccount subaccountsEmailGet(String email) throws ApiException
email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubAccount> subaccountsEmailGetWithHttpInfo(String email) throws ApiException
email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsEmailGetAsync(String email, ApiCallback<SubAccount> callback) throws ApiException
email - Email address of sub-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 subaccountsEmailSettingsGetCall(String email, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Email address of sub-account (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic SubAccountSettings subaccountsEmailSettingsGet(String email) throws ApiException
email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubAccountSettings> subaccountsEmailSettingsGetWithHttpInfo(String email) throws ApiException
email - Email address of sub-account (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsEmailSettingsGetAsync(String email, ApiCallback<SubAccountSettings> callback) throws ApiException
email - Email address of sub-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 subaccountsEmailSettingsPutCall(String email, SubAccountSettings body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Email address of sub-account (required)body - Http notification settings serialized to JSON (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic SubAccountSettings subaccountsEmailSettingsPut(String email, SubAccountSettings body) throws ApiException
email - Email address of sub-account (required)body - Http notification settings serialized to JSON (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubAccountSettings> subaccountsEmailSettingsPutWithHttpInfo(String email, SubAccountSettings body) throws ApiException
email - Email address of sub-account (required)body - Http notification settings serialized to JSON (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsEmailSettingsPutAsync(String email, SubAccountSettings body, ApiCallback<SubAccountSettings> callback) throws ApiException
email - Email address of sub-account (required)body - Http notification settings serialized to JSON (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 subaccountsGetCall(Integer limit, Integer offset, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<SubAccount> subaccountsGet(Integer limit, Integer offset) throws ApiException
limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<SubAccount>> subaccountsGetWithHttpInfo(Integer limit, Integer offset) throws ApiException
limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsGetAsync(Integer limit, Integer offset, ApiCallback<List<SubAccount>> callback) throws ApiException
limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)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 subaccountsPostCall(SubaccountPayload body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Account subaccountsPost(SubaccountPayload body) throws ApiException
body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Account> subaccountsPostWithHttpInfo(SubaccountPayload body) throws ApiException
body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call subaccountsPostAsync(SubaccountPayload body, ApiCallback<Account> callback) throws ApiException
body - (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.