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 Deprecated 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)ApiCollection<Customer>all(java.lang.String shopKey, java.lang.String countryCode)ApiCollection<Customer>all(java.lang.String shopKey, java.lang.String countryCode, 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)Deprecated.voidanonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, ApiOptions options)Deprecated.voidanonymizeAddressByIdentifier(java.lang.String shopKey, java.lang.String countryCode, Identifier addressIdentifier)voidanonymizeAddressByIdentifier(java.lang.String shopKey, java.lang.String countryCode, 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)CustomerMembershipcreateMembership(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerMembership model)CustomerMembershipcreateMembership(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerMembership 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)voiddeleteMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId)voiddeleteMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId, 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)ApiCollection<CustomerMembership>getMemberships(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier)ApiCollection<CustomerMembership>getMemberships(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)CustomerMembershipupdateMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId, CustomerMembership model)CustomerMembershipupdateMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId, CustomerMembership 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
-
all
public ApiCollection<Customer> all(java.lang.String shopKey, java.lang.String countryCode) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Customer> all(java.lang.String shopKey, java.lang.String countryCode, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
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
@Deprecated public void anonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier) throws ApiErrorException, ConnectionExceptionDeprecated.- Throws:
ApiErrorExceptionConnectionException
-
anonymizeAddress
@Deprecated public void anonymizeAddress(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, Identifier addressIdentifier, ApiOptions options) throws ApiErrorException, ConnectionExceptionDeprecated.- Throws:
ApiErrorExceptionConnectionException
-
anonymizeAddressByIdentifier
public void anonymizeAddressByIdentifier(java.lang.String shopKey, java.lang.String countryCode, Identifier addressIdentifier) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
anonymizeAddressByIdentifier
public void anonymizeAddressByIdentifier(java.lang.String shopKey, java.lang.String countryCode, 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
-
createMembership
public CustomerMembership createMembership(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerMembership model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createMembership
public CustomerMembership createMembership(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, CustomerMembership model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateMembership
public CustomerMembership updateMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId, CustomerMembership model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateMembership
public CustomerMembership updateMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId, CustomerMembership model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getMemberships
public ApiCollection<CustomerMembership> getMemberships(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getMemberships
public ApiCollection<CustomerMembership> getMemberships(java.lang.String shopKey, java.lang.String countryCode, Identifier customerIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteMembership
public void deleteMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteMembership
public void deleteMembership(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer membershipId, 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
-
-