Class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete,CartDiscount>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete>, VersionedTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyDelete>, io.vrap.rmf.base.client.ClientRequestCommand<CartDiscount>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<CartDiscount>

To delete a CartDiscount, specify the manage_cart_discounts:{projectKey}:{storeKey} scope for all Stores associated with the CartDiscount.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart_discount.CartDiscount>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .cartDiscounts()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()