Class CampaignService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.CampaignService
-
public class CampaignService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description CampaignService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Campaign>all(java.lang.String shopKey)ApiCollection<Campaign>all(java.lang.String shopKey, ApiOptions options)ApiCollection<ProductVariantCampaignReduction>allReductions(java.lang.String shopKey, java.lang.Integer campaignId)ApiCollection<ProductVariantCampaignReduction>allReductions(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options)Campaigncreate(java.lang.String shopKey, Campaign model)Campaigncreate(java.lang.String shopKey, Campaign model, ApiOptions options)voiddelete(java.lang.String shopKey, java.lang.Integer campaignId)voiddelete(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options)voiddeleteReductions(java.lang.String shopKey, java.lang.Integer campaignId)voiddeleteReductions(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options)Campaignget(java.lang.String shopKey, java.lang.Integer campaignId)Campaignget(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options)Campaignupdate(java.lang.String shopKey, java.lang.Integer campaignId, Campaign model)Campaignupdate(java.lang.String shopKey, java.lang.Integer campaignId, Campaign model, ApiOptions options)voidupdateOrCreateProductReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model)voidupdateOrCreateProductReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model, ApiOptions options)voidupdateOrCreateVariantReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model)voidupdateOrCreateVariantReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
CampaignService
public CampaignService(HttpClient httpClient)
-
-
Method Detail
-
create
public Campaign create(java.lang.String shopKey, Campaign model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Campaign create(java.lang.String shopKey, Campaign model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Campaign> all(java.lang.String shopKey) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Campaign> all(java.lang.String shopKey, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Campaign get(java.lang.String shopKey, java.lang.Integer campaignId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Campaign get(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Campaign update(java.lang.String shopKey, java.lang.Integer campaignId, Campaign model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Campaign update(java.lang.String shopKey, java.lang.Integer campaignId, Campaign model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.String shopKey, java.lang.Integer campaignId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateVariantReductions
public void updateOrCreateVariantReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateVariantReductions
public void updateOrCreateVariantReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProductReductions
public void updateOrCreateProductReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProductReductions
public void updateOrCreateProductReductions(java.lang.String shopKey, java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
allReductions
public ApiCollection<ProductVariantCampaignReduction> allReductions(java.lang.String shopKey, java.lang.Integer campaignId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allReductions
public ApiCollection<ProductVariantCampaignReduction> allReductions(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteReductions
public void deleteReductions(java.lang.String shopKey, java.lang.Integer campaignId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteReductions
public void deleteReductions(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-