public class OrganizationsApi extends Object
Constructor and Description |
---|
OrganizationsApi() |
OrganizationsApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
void |
addMember(UserDTO body)
Add a member to the authenticated user's organization
|
com.squareup.okhttp.Call |
addMemberAsync(UserDTO body,
ApiCallback<Void> callback)
Add a member to the authenticated user's organization (asynchronously)
|
ApiResponse<Void> |
addMemberWithHttpInfo(UserDTO body)
Add a member to the authenticated user's organization
|
OrganizationDTO |
createOrganization(OrganizationDTO body)
Create authenticated user's organization
|
com.squareup.okhttp.Call |
createOrganizationAsync(OrganizationDTO body,
ApiCallback<OrganizationDTO> callback)
Create authenticated user's organization (asynchronously)
|
ApiResponse<OrganizationDTO> |
createOrganizationWithHttpInfo(OrganizationDTO body)
Create authenticated user's organization
|
void |
deleteOrganization()
Delete authenticated user's organization
|
com.squareup.okhttp.Call |
deleteOrganizationAsync(ApiCallback<Void> callback)
Delete authenticated user's organization (asynchronously)
|
ApiResponse<Void> |
deleteOrganizationWithHttpInfo()
Delete authenticated user's organization
|
ApiClient |
getApiClient() |
List<AccountDTO> |
getMembers()
Get members of the authenticated user's organization
|
com.squareup.okhttp.Call |
getMembersAsync(ApiCallback<List<AccountDTO>> callback)
Get members of the authenticated user's organization (asynchronously)
|
ApiResponse<List<AccountDTO>> |
getMembersWithHttpInfo()
Get members of the authenticated user's organization
|
OrganizationDTO |
getOrganization()
Get organization for authenticated user
|
com.squareup.okhttp.Call |
getOrganizationAsync(ApiCallback<OrganizationDTO> callback)
Get organization for authenticated user (asynchronously)
|
ApiResponse<OrganizationDTO> |
getOrganizationWithHttpInfo()
Get organization for authenticated user
|
void |
moveMember(UserDTO body,
String direction)
Move a member up or down in the authenticated user's organization
|
com.squareup.okhttp.Call |
moveMemberAsync(UserDTO body,
String direction,
ApiCallback<Void> callback)
Move a member up or down in the authenticated user's organization (asynchronously)
|
ApiResponse<Void> |
moveMemberWithHttpInfo(UserDTO body,
String direction)
Move a member up or down in the authenticated user's organization
|
void |
removeMember(UserDTO body)
Remove a member to the authenticated user's organization
|
com.squareup.okhttp.Call |
removeMemberAsync(UserDTO body,
ApiCallback<Void> callback)
Remove a member to the authenticated user's organization (asynchronously)
|
ApiResponse<Void> |
removeMemberWithHttpInfo(UserDTO body)
Remove a member to the authenticated user's organization
|
void |
setApiClient(ApiClient apiClient) |
OrganizationDTO |
updateOrganization(OrganizationDTO body)
Update authenticated user's organization
|
com.squareup.okhttp.Call |
updateOrganizationAsync(OrganizationDTO body,
ApiCallback<OrganizationDTO> callback)
Update authenticated user's organization (asynchronously)
|
ApiResponse<OrganizationDTO> |
updateOrganizationWithHttpInfo(OrganizationDTO body)
Update authenticated user's organization
|
public OrganizationsApi()
public OrganizationsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public OrganizationDTO getOrganization() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OrganizationDTO> getOrganizationWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getOrganizationAsync(ApiCallback<OrganizationDTO> 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 OrganizationDTO updateOrganization(OrganizationDTO body) throws ApiException
body
- Updated organizationApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OrganizationDTO> updateOrganizationWithHttpInfo(OrganizationDTO body) throws ApiException
body
- Updated organizationApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateOrganizationAsync(OrganizationDTO body, ApiCallback<OrganizationDTO> callback) throws ApiException
body
- Updated organizationcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic OrganizationDTO createOrganization(OrganizationDTO body) throws ApiException
body
- Organization to createApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OrganizationDTO> createOrganizationWithHttpInfo(OrganizationDTO body) throws ApiException
body
- Organization to createApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createOrganizationAsync(OrganizationDTO body, ApiCallback<OrganizationDTO> callback) throws ApiException
body
- Organization to createcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void deleteOrganization() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteOrganizationWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteOrganizationAsync(ApiCallback<Void> 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 void addMember(UserDTO body) throws ApiException
body
- User to addApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> addMemberWithHttpInfo(UserDTO body) throws ApiException
body
- User to addApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call addMemberAsync(UserDTO body, ApiCallback<Void> callback) throws ApiException
body
- User to addcallback
- 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<AccountDTO> getMembers() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<AccountDTO>> getMembersWithHttpInfo() throws ApiException
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMembersAsync(ApiCallback<List<AccountDTO>> 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 void moveMember(UserDTO body, String direction) throws ApiException
body
- User to move updirection
- Direction (up/down)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> moveMemberWithHttpInfo(UserDTO body, String direction) throws ApiException
body
- User to move updirection
- Direction (up/down)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call moveMemberAsync(UserDTO body, String direction, ApiCallback<Void> callback) throws ApiException
body
- User to move updirection
- Direction (up/down)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 void removeMember(UserDTO body) throws ApiException
body
- User to removeApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> removeMemberWithHttpInfo(UserDTO body) throws ApiException
body
- User to removeApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call removeMemberAsync(UserDTO body, ApiCallback<Void> callback) throws ApiException
body
- User to removecallback
- 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 DocDoku. All rights reserved.