Class VoucherService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.VoucherService
-
public class VoucherService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description VoucherService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Voucher>all(java.lang.String shopKey, java.lang.String countryCode)ApiCollection<Voucher>all(java.lang.String shopKey, java.lang.String countryCode, ApiOptions options)Vouchercreate(java.lang.String shopKey, java.lang.String countryCode, Voucher model)Vouchercreate(java.lang.String shopKey, java.lang.String countryCode, Voucher model, ApiOptions options)VoucherCriterioncreateCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, VoucherCriterion model)VoucherCriterioncreateCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, VoucherCriterion model, ApiOptions options)voiddelete(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId)voiddelete(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, ApiOptions options)voiddeleteCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId)voiddeleteCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, ApiOptions options)Voucherget(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId)Voucherget(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, ApiOptions options)ApiCollection<VoucherCriterion>getCriteria(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId)ApiCollection<VoucherCriterion>getCriteria(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, ApiOptions options)VoucherCriteriongetCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId)VoucherCriteriongetCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, ApiOptions options)Voucherupdate(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, Voucher model)Voucherupdate(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, Voucher model, ApiOptions options)VoucherCriterionupdateCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, VoucherCriterion model)VoucherCriterionupdateCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, VoucherCriterion model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
VoucherService
public VoucherService(HttpClient httpClient)
-
-
Method Detail
-
all
public ApiCollection<Voucher> all(java.lang.String shopKey, java.lang.String countryCode) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Voucher> all(java.lang.String shopKey, java.lang.String countryCode, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Voucher get(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Voucher get(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Voucher create(java.lang.String shopKey, java.lang.String countryCode, Voucher model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Voucher create(java.lang.String shopKey, java.lang.String countryCode, Voucher model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Voucher update(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, Voucher model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Voucher update(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, Voucher model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
getCriteria
public ApiCollection<VoucherCriterion> getCriteria(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCriteria
public ApiCollection<VoucherCriterion> getCriteria(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCriterion
public VoucherCriterion getCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCriterion
public VoucherCriterion getCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createCriterion
public VoucherCriterion createCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, VoucherCriterion model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createCriterion
public VoucherCriterion createCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, VoucherCriterion model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateCriterion
public VoucherCriterion updateCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, VoucherCriterion model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
updateCriterion
public VoucherCriterion updateCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, VoucherCriterion model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCriterion
public void deleteCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteCriterion
public void deleteCriterion(java.lang.String shopKey, java.lang.String countryCode, java.lang.Integer voucherId, java.lang.Integer voucherCriterionId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-