Class MerchantService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.MerchantService
-
public class MerchantService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description MerchantService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Merchant>all()ApiCollection<Merchant>all(ApiOptions options)ApiCollection<MerchantContact>allContacts(Identifier merchantIdentifier)ApiCollection<MerchantContact>allContacts(Identifier merchantIdentifier, ApiOptions options)ApiCollection<MerchantReturnAddress>allReturnAddresses(Identifier merchantIdentifier)ApiCollection<MerchantReturnAddress>allReturnAddresses(Identifier merchantIdentifier, ApiOptions options)voidattachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode)voidattachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode, ApiOptions options)Merchantcreate(Merchant model)Merchantcreate(Merchant model, ApiOptions options)MerchantContactcreateContact(Identifier merchantIdentifier, MerchantContact model)MerchantContactcreateContact(Identifier merchantIdentifier, MerchantContact model, ApiOptions options)MerchantReturnAddresscreateReturnAddress(Identifier merchantIdentifier, MerchantReturnAddress model)MerchantReturnAddresscreateReturnAddress(Identifier merchantIdentifier, MerchantReturnAddress model, ApiOptions options)voiddeleteContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId)voiddeleteContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, ApiOptions options)voiddeleteReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId)voiddeleteReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, ApiOptions options)voiddetachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode)voiddetachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode, ApiOptions options)Merchantget(Identifier merchantIdentifier)Merchantget(Identifier merchantIdentifier, ApiOptions options)MerchantContactgetContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId)MerchantContactgetContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, ApiOptions options)MerchantReturnAddressgetReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId)MerchantReturnAddressgetReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, ApiOptions options)Merchantupdate(Identifier merchantIdentifier, Merchant model)Merchantupdate(Identifier merchantIdentifier, Merchant model, ApiOptions options)MerchantContactupdateContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, MerchantContact model)MerchantContactupdateContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, MerchantContact model, ApiOptions options)MerchantReturnAddressupdateReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, MerchantReturnAddress model)MerchantReturnAddressupdateReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, MerchantReturnAddress model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
MerchantService
public MerchantService(HttpClient httpClient)
-
-
Method Detail
-
all
public ApiCollection<Merchant> all() throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Merchant> all(ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Merchant get(Identifier merchantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Merchant get(Identifier merchantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Merchant create(Merchant model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Merchant create(Merchant model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Merchant update(Identifier merchantIdentifier, Merchant model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Merchant update(Identifier merchantIdentifier, Merchant model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allContacts
public ApiCollection<MerchantContact> allContacts(Identifier merchantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allContacts
public ApiCollection<MerchantContact> allContacts(Identifier merchantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getContact
public MerchantContact getContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getContact
public MerchantContact getContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createContact
public MerchantContact createContact(Identifier merchantIdentifier, MerchantContact model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createContact
public MerchantContact createContact(Identifier merchantIdentifier, MerchantContact model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateContact
public MerchantContact updateContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, MerchantContact model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateContact
public MerchantContact updateContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, MerchantContact model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteContact
public void deleteContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteContact
public void deleteContact(Identifier merchantIdentifier, java.lang.Integer merchantContactId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allReturnAddresses
public ApiCollection<MerchantReturnAddress> allReturnAddresses(Identifier merchantIdentifier) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allReturnAddresses
public ApiCollection<MerchantReturnAddress> allReturnAddresses(Identifier merchantIdentifier, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getReturnAddress
public MerchantReturnAddress getReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getReturnAddress
public MerchantReturnAddress getReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createReturnAddress
public MerchantReturnAddress createReturnAddress(Identifier merchantIdentifier, MerchantReturnAddress model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createReturnAddress
public MerchantReturnAddress createReturnAddress(Identifier merchantIdentifier, MerchantReturnAddress model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateReturnAddress
public MerchantReturnAddress updateReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, MerchantReturnAddress model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateReturnAddress
public MerchantReturnAddress updateReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, MerchantReturnAddress model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteReturnAddress
public void deleteReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteReturnAddress
public void deleteReturnAddress(Identifier merchantIdentifier, java.lang.Integer merchantReturnAddressId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
attachCarrier
public void attachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
attachCarrier
public void attachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
detachCarrier
public void detachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
detachCarrier
public void detachCarrier(Identifier merchantIdentifier, Identifier carrierIdentifier, java.lang.String countryCode, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-