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)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(Identifier campaignId, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomData(Identifier campaignId, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(Identifier campaignId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model)java.util.Map<java.lang.String,java.lang.Object>createOrUpdateCustomDataForKey(Identifier campaignId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options)voiddelete(java.lang.String shopKey, java.lang.Integer campaignId)voiddelete(java.lang.String shopKey, java.lang.Integer campaignId, ApiOptions options)voiddeleteCustomData(Identifier campaignId)voiddeleteCustomData(Identifier campaignId, ApiOptions options)voiddeleteCustomDataForKey(Identifier campaignId, java.lang.String key)voiddeleteCustomDataForKey(Identifier campaignId, java.lang.String key, 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)java.util.Map<java.lang.String,java.lang.Object>getCustomData(Identifier campaignId)java.util.Map<java.lang.String,java.lang.Object>getCustomData(Identifier campaignId, ApiOptions options)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(Identifier campaignId, java.lang.String key)java.util.Map<java.lang.String,java.lang.Object>getCustomDataForKey(Identifier campaignId, java.lang.String key, 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
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(Identifier campaignId, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomData
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomData(Identifier campaignId, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(Identifier campaignId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomData
public void deleteCustomData(Identifier campaignId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(Identifier campaignId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData(Identifier campaignId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(Identifier campaignId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
createOrUpdateCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> createOrUpdateCustomDataForKey(Identifier campaignId, java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(Identifier campaignId, java.lang.String key) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
deleteCustomDataForKey
public void deleteCustomDataForKey(Identifier campaignId, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(Identifier campaignId, java.lang.String key) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
getCustomDataForKey
public java.util.Map<java.lang.String,java.lang.Object> getCustomDataForKey(Identifier campaignId, java.lang.String key, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-