public class OrgApi
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Contact |
addAdminToOrg(Contact contact)
Add a new admin to this org
|
com.squareup.okhttp.Call |
addAdminToOrgAsync(Contact contact,
ApiCallback<Contact> callback)
Add a new admin to this org (asynchronously)
|
com.squareup.okhttp.Call |
addAdminToOrgCall(Contact contact,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for addAdminToOrg
|
ApiResponse<Contact> |
addAdminToOrgWithHttpInfo(Contact contact)
Add a new admin to this org
|
APIKey |
addAPIKeyToOrg()
Add a new API Key to an org
|
com.squareup.okhttp.Call |
addAPIKeyToOrgAsync(ApiCallback<APIKey> callback)
Add a new API Key to an org (asynchronously)
|
com.squareup.okhttp.Call |
addAPIKeyToOrgCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for addAPIKeyToOrg
|
ApiResponse<APIKey> |
addAPIKeyToOrgWithHttpInfo()
Add a new API Key to an org
|
Organization |
addOrganization(java.lang.String idToken,
java.lang.String stripeCustomerId,
java.lang.String orgName,
Contact contact)
Create a new organization.
|
com.squareup.okhttp.Call |
addOrganizationAsync(java.lang.String idToken,
java.lang.String stripeCustomerId,
java.lang.String orgName,
Contact contact,
ApiCallback<Organization> callback)
Create a new organization.
|
com.squareup.okhttp.Call |
addOrganizationCall(java.lang.String idToken,
java.lang.String stripeCustomerId,
java.lang.String orgName,
Contact contact,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for addOrganization
|
ApiResponse<Organization> |
addOrganizationWithHttpInfo(java.lang.String idToken,
java.lang.String stripeCustomerId,
java.lang.String orgName,
Contact contact)
Create a new organization.
|
void |
deleteAdminFromOrg(java.lang.String email)
Remove an existing admin from the org (You can not remove the last admin.
|
com.squareup.okhttp.Call |
deleteAdminFromOrgAsync(java.lang.String email,
ApiCallback<java.lang.Void> callback)
Remove an existing admin from the org (You can not remove the last admin.
|
com.squareup.okhttp.Call |
deleteAdminFromOrgCall(java.lang.String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteAdminFromOrg
|
ApiResponse<java.lang.Void> |
deleteAdminFromOrgWithHttpInfo(java.lang.String email)
Remove an existing admin from the org (You can not remove the last admin.
|
void |
deleteAPIKeyFromOrg(java.lang.String apikey)
Remove an existing API Key
|
com.squareup.okhttp.Call |
deleteAPIKeyFromOrgAsync(java.lang.String apikey,
ApiCallback<java.lang.Void> callback)
Remove an existing API Key (asynchronously)
|
com.squareup.okhttp.Call |
deleteAPIKeyFromOrgCall(java.lang.String apikey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteAPIKeyFromOrg
|
ApiResponse<java.lang.Void> |
deleteAPIKeyFromOrgWithHttpInfo(java.lang.String apikey)
Remove an existing API Key
|
void |
deleteOrganization(java.lang.String orgId)
Remove an existing organization
|
com.squareup.okhttp.Call |
deleteOrganizationAsync(java.lang.String orgId,
ApiCallback<java.lang.Void> callback)
Remove an existing organization (asynchronously)
|
com.squareup.okhttp.Call |
deleteOrganizationCall(java.lang.String orgId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteOrganization
|
ApiResponse<java.lang.Void> |
deleteOrganizationWithHttpInfo(java.lang.String orgId)
Remove an existing organization
|
ApiClient |
getApiClient() |
APIKey |
getCloudOrganizationAPIKey()
Get an access key for the peacemakr shared cloud org (all cloud key derivers must use this)
|
com.squareup.okhttp.Call |
getCloudOrganizationAPIKeyAsync(ApiCallback<APIKey> callback)
Get an access key for the peacemakr shared cloud org (all cloud key derivers must use this) (asynchronously)
|
com.squareup.okhttp.Call |
getCloudOrganizationAPIKeyCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getCloudOrganizationAPIKey
|
ApiResponse<APIKey> |
getCloudOrganizationAPIKeyWithHttpInfo()
Get an access key for the peacemakr shared cloud org (all cloud key derivers must use this)
|
Organization |
getOrganization(java.lang.String orgId)
Get an existing organization
|
com.squareup.okhttp.Call |
getOrganizationAsync(java.lang.String orgId,
ApiCallback<Organization> callback)
Get an existing organization (asynchronously)
|
com.squareup.okhttp.Call |
getOrganizationCall(java.lang.String orgId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getOrganization
|
Organization |
getOrganizationFromAPIKey(java.lang.String apikey)
Get an existing Organization
|
com.squareup.okhttp.Call |
getOrganizationFromAPIKeyAsync(java.lang.String apikey,
ApiCallback<Organization> callback)
Get an existing Organization (asynchronously)
|
com.squareup.okhttp.Call |
getOrganizationFromAPIKeyCall(java.lang.String apikey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getOrganizationFromAPIKey
|
ApiResponse<Organization> |
getOrganizationFromAPIKeyWithHttpInfo(java.lang.String apikey)
Get an existing Organization
|
ApiResponse<Organization> |
getOrganizationWithHttpInfo(java.lang.String orgId)
Get an existing organization
|
APIKey |
getTestOrganizationAPIKey()
Get an ephemeral test org api key
|
com.squareup.okhttp.Call |
getTestOrganizationAPIKeyAsync(ApiCallback<APIKey> callback)
Get an ephemeral test org api key (asynchronously)
|
com.squareup.okhttp.Call |
getTestOrganizationAPIKeyCall(ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getTestOrganizationAPIKey
|
ApiResponse<APIKey> |
getTestOrganizationAPIKeyWithHttpInfo()
Get an ephemeral test org api key
|
void |
setApiClient(ApiClient apiClient) |
APIKey |
updateStripeCustomerId(java.lang.String stripeCustomerId)
Update the stripe customer Id associated with this account
|
com.squareup.okhttp.Call |
updateStripeCustomerIdAsync(java.lang.String stripeCustomerId,
ApiCallback<APIKey> callback)
Update the stripe customer Id associated with this account (asynchronously)
|
com.squareup.okhttp.Call |
updateStripeCustomerIdCall(java.lang.String stripeCustomerId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for updateStripeCustomerId
|
ApiResponse<APIKey> |
updateStripeCustomerIdWithHttpInfo(java.lang.String stripeCustomerId)
Update the stripe customer Id associated with this account
|
public OrgApi()
public OrgApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call addAPIKeyToOrgCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic APIKey addAPIKeyToOrg() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<APIKey> addAPIKeyToOrgWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call addAPIKeyToOrgAsync(ApiCallback<APIKey> 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 com.squareup.okhttp.Call addAdminToOrgCall(Contact contact, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
contact - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Contact addAdminToOrg(Contact contact) throws ApiException
contact - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Contact> addAdminToOrgWithHttpInfo(Contact contact) throws ApiException
contact - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call addAdminToOrgAsync(Contact contact, ApiCallback<Contact> callback) throws ApiException
contact - (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 addOrganizationCall(java.lang.String idToken,
java.lang.String stripeCustomerId,
java.lang.String orgName,
Contact contact,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
idToken - (required)stripeCustomerId - (required)orgName - (required)contact - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Organization addOrganization(java.lang.String idToken, java.lang.String stripeCustomerId, java.lang.String orgName, Contact contact) throws ApiException
idToken - (required)stripeCustomerId - (required)orgName - (required)contact - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Organization> addOrganizationWithHttpInfo(java.lang.String idToken, java.lang.String stripeCustomerId, java.lang.String orgName, Contact contact) throws ApiException
idToken - (required)stripeCustomerId - (required)orgName - (required)contact - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call addOrganizationAsync(java.lang.String idToken,
java.lang.String stripeCustomerId,
java.lang.String orgName,
Contact contact,
ApiCallback<Organization> callback)
throws ApiException
idToken - (required)stripeCustomerId - (required)orgName - (required)contact - (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 deleteAPIKeyFromOrgCall(java.lang.String apikey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
apikey - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteAPIKeyFromOrg(java.lang.String apikey)
throws ApiException
apikey - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteAPIKeyFromOrgWithHttpInfo(java.lang.String apikey) throws ApiException
apikey - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteAPIKeyFromOrgAsync(java.lang.String apikey,
ApiCallback<java.lang.Void> callback)
throws ApiException
apikey - (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 deleteAdminFromOrgCall(java.lang.String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
email - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteAdminFromOrg(java.lang.String email)
throws ApiException
email - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteAdminFromOrgWithHttpInfo(java.lang.String email) throws ApiException
email - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteAdminFromOrgAsync(java.lang.String email,
ApiCallback<java.lang.Void> callback)
throws ApiException
email - (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 deleteOrganizationCall(java.lang.String orgId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
orgId - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteOrganization(java.lang.String orgId)
throws ApiException
orgId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<java.lang.Void> deleteOrganizationWithHttpInfo(java.lang.String orgId) throws ApiException
orgId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteOrganizationAsync(java.lang.String orgId,
ApiCallback<java.lang.Void> callback)
throws ApiException
orgId - (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 getCloudOrganizationAPIKeyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic APIKey getCloudOrganizationAPIKey() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<APIKey> getCloudOrganizationAPIKeyWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getCloudOrganizationAPIKeyAsync(ApiCallback<APIKey> 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 com.squareup.okhttp.Call getOrganizationCall(java.lang.String orgId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
orgId - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Organization getOrganization(java.lang.String orgId) throws ApiException
orgId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Organization> getOrganizationWithHttpInfo(java.lang.String orgId) throws ApiException
orgId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getOrganizationAsync(java.lang.String orgId,
ApiCallback<Organization> callback)
throws ApiException
orgId - (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 getOrganizationFromAPIKeyCall(java.lang.String apikey,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
apikey - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Organization getOrganizationFromAPIKey(java.lang.String apikey) throws ApiException
apikey - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Organization> getOrganizationFromAPIKeyWithHttpInfo(java.lang.String apikey) throws ApiException
apikey - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getOrganizationFromAPIKeyAsync(java.lang.String apikey,
ApiCallback<Organization> callback)
throws ApiException
apikey - (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 getTestOrganizationAPIKeyCall(ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic APIKey getTestOrganizationAPIKey() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<APIKey> getTestOrganizationAPIKeyWithHttpInfo() throws ApiException
ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getTestOrganizationAPIKeyAsync(ApiCallback<APIKey> 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 com.squareup.okhttp.Call updateStripeCustomerIdCall(java.lang.String stripeCustomerId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
throws ApiException
stripeCustomerId - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic APIKey updateStripeCustomerId(java.lang.String stripeCustomerId) throws ApiException
stripeCustomerId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<APIKey> updateStripeCustomerIdWithHttpInfo(java.lang.String stripeCustomerId) throws ApiException
stripeCustomerId - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateStripeCustomerIdAsync(java.lang.String stripeCustomerId,
ApiCallback<APIKey> callback)
throws ApiException
stripeCustomerId - (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 object