Class CustomerService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.CustomerService
-
public class CustomerService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description CustomerService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomeraddGroups(java.lang.String shopKey, java.lang.String countryCode, Identifier customerId, CustomerGroup model)CustomeraddGroups(java.lang.String shopKey, java.lang.String countryCode, Identifier customerId, CustomerGroup model, ApiOptions options)voidanonymize(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier)voidanonymize(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options)voidanonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier)voidanonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, ApiOptions options)Customercreate(java.lang.String shopKey, java.lang.String countryCode, Customer model)Customercreate(java.lang.String shopKey, java.lang.String countryCode, Customer model, ApiOptions options)CustomerAddresscreateAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerAddress model)CustomerAddresscreateAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerAddress model, ApiOptions options)voiddeleteGroup(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.String customerGroup)voiddeleteGroup(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.String customerGroup, ApiOptions options)Customerget(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier)Customerget(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options)CustomerAddressgetAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier)CustomerAddressgetAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, ApiOptions options)ApiCollection<CustomerAddress>getAddresses(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier)ApiCollection<CustomerAddress>getAddresses(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options)CustomerStatusgetStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier)CustomerStatusgetStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options)voidresetPassword(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier)voidresetPassword(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options)Customerupdate(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Customer model)Customerupdate(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Customer model, ApiOptions options)CustomerAddressupdateAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, CustomerAddress model)CustomerAddressupdateAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, CustomerAddress model, ApiOptions options)CustomerAddressupdateAddressReferenceKey(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.Integer addressId, CustomerAddressReferenceKey model)CustomerAddressupdateAddressReferenceKey(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.Integer addressId, CustomerAddressReferenceKey model, ApiOptions options)CustomerupdateReferenceKey(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer customerId, CustomerReferenceKey model)CustomerupdateReferenceKey(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer customerId, CustomerReferenceKey model, ApiOptions options)CustomerStatusupdateStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerStatus model)CustomerStatusupdateStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerStatus model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
CustomerService
public CustomerService(HttpClient httpClient)
-
-
Method Detail
-
get
public Customer get(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Customer get(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Customer create(java.lang.String shopKey, java.lang.String countryCode, Customer model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Customer create(java.lang.String shopKey, java.lang.String countryCode, Customer model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Customer update(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Customer model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Customer update(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Customer model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateReferenceKey
public Customer updateReferenceKey(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer customerId, CustomerReferenceKey model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateReferenceKey
public Customer updateReferenceKey(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer customerId, CustomerReferenceKey model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
anonymize
public void anonymize(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
anonymize
public void anonymize(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getStatus
public CustomerStatus getStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getStatus
public CustomerStatus getStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateStatus
public CustomerStatus updateStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerStatus model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateStatus
public CustomerStatus updateStatus(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerStatus model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAddresses
public ApiCollection<CustomerAddress> getAddresses(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAddresses
public ApiCollection<CustomerAddress> getAddresses(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAddress
public CustomerAddress getAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getAddress
public CustomerAddress getAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createAddress
public CustomerAddress createAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerAddress model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createAddress
public CustomerAddress createAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerAddress model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateAddress
public CustomerAddress updateAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, CustomerAddress model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateAddress
public CustomerAddress updateAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, CustomerAddress model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateAddressReferenceKey
public CustomerAddress updateAddressReferenceKey(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.Integer addressId, CustomerAddressReferenceKey model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateAddressReferenceKey
public CustomerAddress updateAddressReferenceKey(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.Integer addressId, CustomerAddressReferenceKey model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
anonymizeAddress
public void anonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
anonymizeAddress
public void anonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
resetPassword
public void resetPassword(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
resetPassword
public void resetPassword(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
addGroups
public Customer addGroups(java.lang.String shopKey, java.lang.String countryCode, Identifier customerId, CustomerGroup model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
addGroups
public Customer addGroups(java.lang.String shopKey, java.lang.String countryCode, Identifier customerId, CustomerGroup model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteGroup
public void deleteGroup(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.String customerGroup) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteGroup
public void deleteGroup(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, java.lang.String customerGroup, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-