public class SubaccountController extends BaseController
httpCallBack| Constructor and Description |
|---|
SubaccountController() |
| Modifier and Type | Method and Description |
|---|---|
String |
createSubaccount(Subaccount subaccount)
Create new subaccount
|
void |
createSubaccountAsync(Subaccount subaccount,
APICallBack<String> callBack)
Create new subaccount
|
String |
deleteSubaccount(int subaccountId)
Delete a subaccount
|
void |
deleteSubaccountAsync(int subaccountId,
APICallBack<String> callBack)
Delete a subaccount
|
static SubaccountController |
getInstance()
Singleton pattern implementation
|
String |
getSubaccount(int subaccountId)
Get specific subaccount
|
void |
getSubaccountAsync(int subaccountId,
APICallBack<String> callBack)
Get specific subaccount
|
String |
getSubaccounts()
Get all subaccounts
|
void |
getSubaccountsAsync(APICallBack<String> callBack)
Get all subaccounts
|
String |
regenerateApiKey(int subaccountId)
Regenerate an API Key
|
void |
regenerateApiKeyAsync(int subaccountId,
APICallBack<String> callBack)
Regenerate an API Key
|
String |
updateSubaccount(int subaccountId,
Subaccount subaccount)
Update subaccount
|
void |
updateSubaccountAsync(int subaccountId,
Subaccount subaccount,
APICallBack<String> callBack)
Update subaccount
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static SubaccountController getInstance()
public String getSubaccounts() throws Throwable
Throwablepublic void getSubaccountsAsync(APICallBack<String> callBack)
public String updateSubaccount(int subaccountId, Subaccount subaccount) throws Throwable
subaccountId - Required parameter: Example:subaccount - Required parameter: Example:Throwablepublic void updateSubaccountAsync(int subaccountId,
Subaccount subaccount,
APICallBack<String> callBack)
throws com.fasterxml.jackson.core.JsonProcessingException
subaccountId - Required parameter: Example:subaccount - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getSubaccount(int subaccountId) throws Throwable
subaccountId - Required parameter: Example:Throwablepublic void getSubaccountAsync(int subaccountId,
APICallBack<String> callBack)
subaccountId - Required parameter: Example:public String deleteSubaccount(int subaccountId) throws Throwable
subaccountId - Required parameter: Example:Throwablepublic void deleteSubaccountAsync(int subaccountId,
APICallBack<String> callBack)
subaccountId - Required parameter: Example:public String regenerateApiKey(int subaccountId) throws Throwable
subaccountId - Required parameter: Example:Throwablepublic void regenerateApiKeyAsync(int subaccountId,
APICallBack<String> callBack)
subaccountId - Required parameter: Example:public String createSubaccount(Subaccount subaccount) throws Throwable
subaccount - Required parameter: Example:Throwablepublic void createSubaccountAsync(Subaccount subaccount, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
subaccount - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2017. All rights reserved.