public interface ContactsService
Modifier and Type | Method and Description |
---|---|
SageContactResponse |
createContact(java.lang.String shopId,
DetailedOrder order)
Creates a new contact in the sageone account associated
with the specified shop.
|
SageContactResponse |
deleteContact(java.lang.String shopId,
java.lang.String contactId)
Deletes a specific contact from the sageone account
associated with the specified shop.
|
java.util.List<SageContactResponse> |
findContacts(java.lang.String shopId,
java.lang.String email)
Finds contacts with the specified email address in
the sageone account that is associated with the given shop.
|
java.util.List<SageContactResponse> |
findContacts(java.lang.String shopId,
java.lang.String email,
java.lang.String search)
Finds contacts that are matching the given email address
and search term in their contact name (not case sensitive),
in the sageone account that is associated with the given shop.
|
SageContactResponse |
getContact(java.lang.String shopId,
java.lang.String contactId)
Gets a specific contact from the sageone account
associated with the specified shop.
|
SageContactResponse createContact(java.lang.String shopId, DetailedOrder order) throws WebserviceException, javax.validation.ValidationException, DeserializationException
Identifier
- of the shop.Order
- to obtain the contact information from.WebserviceException
- in case there was a error
with the remote API.DeserializationException
- in case there was an error
while deserializing the sage response.javax.validation.ValidationException
- in case there was an error
while validating the sage response.SageContactResponse getContact(java.lang.String shopId, java.lang.String contactId) throws WebserviceException
Identifier
- of the shop.Identifier
- of the desired contact.WebserviceException
- in case there was a error
with the remote API.java.util.List<SageContactResponse> findContacts(java.lang.String shopId, java.lang.String email) throws WebserviceException
Identifier
- of the shop.Email
- to search for.WebserviceException
- in case there was a error
with the remote API.java.util.List<SageContactResponse> findContacts(java.lang.String shopId, java.lang.String email, java.lang.String search) throws WebserviceException
Identifier
- of the shop.Email
- to search for.Term
- to match in the contact name.WebserviceException
- in case there was a error
with the remote API.SageContactResponse deleteContact(java.lang.String shopId, java.lang.String contactId) throws WebserviceException, javax.validation.ValidationException, DeserializationException
Identifier
- of the shop.Identifier
- of the contact to delete.WebserviceException
- in case there was a error
with the remote API.DeserializationException
- in case there was an error
while deserializing the sage response.javax.validation.ValidationException
- in case there was an error
while validating the sage response.