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()ApiCollection<Campaign>all(ApiOptions options)ApiCollection<ProductVariantCampaignReduction>allReductions(java.lang.Integer campaignId)ApiCollection<ProductVariantCampaignReduction>allReductions(java.lang.Integer campaignId, ApiOptions options)Campaigncreate(Campaign model)Campaigncreate(Campaign model, ApiOptions options)voiddelete(java.lang.Integer campaignId)voiddelete(java.lang.Integer campaignId, ApiOptions options)voiddeleteReductions(java.lang.Integer campaignId)voiddeleteReductions(java.lang.Integer campaignId, ApiOptions options)Campaignget(java.lang.Integer campaignId)Campaignget(java.lang.Integer campaignId, ApiOptions options)Campaignupdate(java.lang.Integer campaignId, Campaign model)Campaignupdate(java.lang.Integer campaignId, Campaign model, ApiOptions options)voidupdateOrCreateProductReductions(java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model)voidupdateOrCreateProductReductions(java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model, ApiOptions options)voidupdateOrCreateVariantReductions(java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model)voidupdateOrCreateVariantReductions(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(Campaign model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Campaign create(Campaign model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Campaign> all() throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Campaign> all(ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Campaign get(java.lang.Integer campaignId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Campaign get(java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Campaign update(java.lang.Integer campaignId, Campaign model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Campaign update(java.lang.Integer campaignId, Campaign model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.Integer campaignId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
delete
public void delete(java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateVariantReductions
public void updateOrCreateVariantReductions(java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateVariantReductions
public void updateOrCreateVariantReductions(java.lang.Integer campaignId, java.util.List<ProductVariantCampaignReduction> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProductReductions
public void updateOrCreateProductReductions(java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
updateOrCreateProductReductions
public void updateOrCreateProductReductions(java.lang.Integer campaignId, java.util.List<ProductCampaignReduction> model, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
allReductions
public ApiCollection<ProductVariantCampaignReduction> allReductions(java.lang.Integer campaignId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
allReductions
public ApiCollection<ProductVariantCampaignReduction> allReductions(java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteReductions
public void deleteReductions(java.lang.Integer campaignId) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
deleteReductions
public void deleteReductions(java.lang.Integer campaignId, ApiOptions options) throws ApiErrorException, ConnectionException- Throws:
ApiErrorExceptionConnectionException
-
-