public interface ContactsService
Modifier and Type | Method and Description |
---|---|
SageContactResponse |
createContact(GUID shopGuid,
DetailedOrder order)
Creates a new contact in the sageone account associated
with the specified shop.
|
SageContactResponse |
deleteContact(GUID shopGuid,
java.lang.String contactId)
Deletes a specific contact from the sageone account
associated with the specified shop.
|
java.util.List<SageContactResponse> |
findContacts(GUID shopGuid,
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(GUID shopGuid,
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(GUID shopGuid,
java.lang.String contactId)
Gets a specific contact from the sageone account
associated with the specified shop.
|
SageContactResponse createContact(GUID shopGuid, DetailedOrder order) throws WebserviceException, javax.validation.ValidationException, DeserializationException
shopGuid
- GUID of the shop.order
- 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(GUID shopGuid, java.lang.String contactId) throws WebserviceException
shopGuid
- GUID of the shop.contactId
- Identifier of the desired contact.WebserviceException
- in case there was a error
with the remote API.java.util.List<SageContactResponse> findContacts(GUID shopGuid, java.lang.String email) throws WebserviceException
shopGuid
- GUID of the shop.email
- Email to search for.WebserviceException
- in case there was a error
with the remote API.java.util.List<SageContactResponse> findContacts(GUID shopGuid, java.lang.String email, java.lang.String search) throws WebserviceException
shopGuid
- GUID of the shop.email
- Email to search for.search
- Term to match in the contact name.WebserviceException
- in case there was a error
with the remote API.SageContactResponse deleteContact(GUID shopGuid, java.lang.String contactId) throws WebserviceException, javax.validation.ValidationException, DeserializationException
shopGuid
- GUID of the shop.contactId
- 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.