public class CustomerAddressService extends Object
| Constructor and Description |
|---|
CustomerAddressService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Long |
count(EntityQueryFilter filter,
Long spaceId,
Map<String,Object> params)
Count
Counts the number of items in the database as restricted by the given filter.
|
Long |
count(Long spaceId,
EntityQueryFilter filter)
Count
Counts the number of items in the database as restricted by the given filter.
|
com.google.api.client.http.HttpResponse |
countForHttpResponse(EntityQueryFilter filter,
Long spaceId,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
countForHttpResponse(Long spaceId,
EntityQueryFilter filter) |
com.google.api.client.http.HttpResponse |
countForHttpResponse(Long spaceId,
InputStream filter,
String mediaType) |
CustomerAddress |
create(Long spaceId,
CustomerAddressCreate entity)
Create
Creates the entity with the given properties.
|
CustomerAddress |
create(Long spaceId,
CustomerAddressCreate entity,
Map<String,Object> params)
Create
Creates the entity with the given properties.
|
com.google.api.client.http.HttpResponse |
createForHttpResponse(Long spaceId,
CustomerAddressCreate entity) |
com.google.api.client.http.HttpResponse |
createForHttpResponse(Long spaceId,
CustomerAddressCreate entity,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
createForHttpResponse(Long spaceId,
InputStream entity,
String mediaType) |
void |
delete(Long spaceId,
Long id)
Delete
Deletes the entity with the given id.
|
void |
delete(Long spaceId,
Long id,
Map<String,Object> params)
Delete
Deletes the entity with the given id.
|
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long spaceId,
InputStream id,
String mediaType) |
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long spaceId,
Long id) |
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long spaceId,
Long id,
Map<String,Object> params) |
ApiClient |
getApiClient() |
CustomerAddress |
read(Long spaceId,
Long id)
Read
Reads the entity with the given 'id' and returns it.
|
CustomerAddress |
read(Long spaceId,
Long id,
Map<String,Object> params)
Read
Reads the entity with the given 'id' and returns it.
|
com.google.api.client.http.HttpResponse |
readForHttpResponse(Long spaceId,
Long id) |
com.google.api.client.http.HttpResponse |
readForHttpResponse(Long spaceId,
Long id,
Map<String,Object> params) |
List<CustomerAddress> |
search(Long spaceId,
EntityQuery query)
Search
Searches for the entities as specified by the given query.
|
List<CustomerAddress> |
search(Long spaceId,
EntityQuery query,
Map<String,Object> params)
Search
Searches for the entities as specified by the given query.
|
com.google.api.client.http.HttpResponse |
searchForHttpResponse(Long spaceId,
EntityQuery query) |
com.google.api.client.http.HttpResponse |
searchForHttpResponse(Long spaceId,
EntityQuery query,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
searchForHttpResponse(Long spaceId,
InputStream query,
String mediaType) |
void |
selectDefaultAddress(Long spaceId,
Long id)
selectDefaultAddress
|
void |
selectDefaultAddress(Long spaceId,
Long id,
Map<String,Object> params)
selectDefaultAddress
|
com.google.api.client.http.HttpResponse |
selectDefaultAddressForHttpResponse(Long spaceId,
Long id) |
com.google.api.client.http.HttpResponse |
selectDefaultAddressForHttpResponse(Long spaceId,
Long id,
Map<String,Object> params) |
void |
setApiClient(ApiClient apiClient) |
CustomerAddress |
update(Long spaceId,
CustomerAddressActive entity)
Update
This updates the entity with the given properties.
|
CustomerAddress |
update(Long spaceId,
CustomerAddressActive entity,
Map<String,Object> params)
Update
This updates the entity with the given properties.
|
com.google.api.client.http.HttpResponse |
updateForHttpResponse(Long spaceId,
CustomerAddressActive entity) |
com.google.api.client.http.HttpResponse |
updateForHttpResponse(Long spaceId,
CustomerAddressActive entity,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
updateForHttpResponse(Long spaceId,
InputStream entity,
String mediaType) |
public CustomerAddressService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Long count(Long spaceId, EntityQueryFilter filter) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - filter - The filter which restricts the entities which are used to calculate the count.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Long count(EntityQueryFilter filter, Long spaceId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countForHttpResponse(Long spaceId, InputStream filter, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map<String,Object> params) throws IOException
IOExceptionpublic CustomerAddress create(Long spaceId, CustomerAddressCreate entity) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The customer object which should be created.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public CustomerAddress create(Long spaceId, CustomerAddressCreate entity, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The customer object which should be created.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse createForHttpResponse(Long spaceId, CustomerAddressCreate entity) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createForHttpResponse(Long spaceId, InputStream entity, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createForHttpResponse(Long spaceId, CustomerAddressCreate entity, Map<String,Object> params) throws IOException
IOExceptionpublic void delete(Long spaceId, Long id) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public void delete(Long spaceId, Long id, Map<String,Object> params) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse deleteForHttpResponse(Long spaceId, Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse deleteForHttpResponse(Long spaceId, InputStream id, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse deleteForHttpResponse(Long spaceId, Long id, Map<String,Object> params) throws IOException
IOExceptionpublic CustomerAddress read(Long spaceId, Long id) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - The id of the customer which should be returned.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public CustomerAddress read(Long spaceId, Long id, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - The id of the customer which should be returned.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse readForHttpResponse(Long spaceId, Long id, Map<String,Object> params) throws IOException
IOExceptionpublic List<CustomerAddress> search(Long spaceId, EntityQuery query) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - query - The query restricts the customers which are returned by the search.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<CustomerAddress> search(Long spaceId, EntityQuery query, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - query - The query restricts the customers which are returned by the search.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse searchForHttpResponse(Long spaceId, InputStream query, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map<String,Object> params) throws IOException
IOExceptionpublic void selectDefaultAddress(Long spaceId, Long id) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - The id of the customer address to set as default.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public void selectDefaultAddress(Long spaceId, Long id, Map<String,Object> params) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - The id of the customer address to set as default.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse selectDefaultAddressForHttpResponse(Long spaceId, Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse selectDefaultAddressForHttpResponse(Long spaceId, Long id, Map<String,Object> params) throws IOException
IOExceptionpublic CustomerAddress update(Long spaceId, CustomerAddressActive entity) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The customer object with the properties which should be updated.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public CustomerAddress update(Long spaceId, CustomerAddressActive entity, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The customer object with the properties which should be updated.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse updateForHttpResponse(Long spaceId, CustomerAddressActive entity) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse updateForHttpResponse(Long spaceId, InputStream entity, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse updateForHttpResponse(Long spaceId, CustomerAddressActive entity, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2023. All rights reserved.