Skip to content

Commit

Permalink
Merge pull request #600 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Mar 18, 2024
2 parents 3ab4dbf + eb704de commit 0251e8a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@
import io.vrap.rmf.base.client.utils.Generated;

/**
* <p>Indicates how a Line Item is added to a Cart.</p>
* <p>Indicates how a Line Item was added to a Cart.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface LineItemMode extends JsonEnum {

/**
<p>The Line Item is added during Cart creation or using the Add LineItem update action. The Line Item quantity can be changed without restriction.</p> */
<p>The Line Item was added during Cart creation or the Add LineItem update action. The Line Item quantity can be changed without restriction.</p> */
LineItemMode STANDARD = LineItemModeEnum.STANDARD;
/**
<p>The Line Item is added automatically by a Cart Discount with CartDiscountValueGiftLineItem.</p>
<p>The quantity cannot be increased, and it won't be merged when the same Line Item is added to the Cart. If the gift is removed, an entry is added to the <code>refusedGifts</code> array and the discount won't be applied to the Cart. The price cannot be changed externally.</p>
<p>One Line Item was added automatically to a Cart by a Cart Discount with CartDiscountValueGiftLineItemDraft.</p>
<p>The quantity cannot be increased, and it won't be merged when adding the same Line Item to the Cart. If the gift is removed, an entry is added to the <code>refusedGifts</code> array and the discount won't be applied to the Cart. The price cannot be changed externally.</p>
<p>All other updates, such as the ones related to Custom Fields, can be used.</p> */
LineItemMode GIFT_LINE_ITEM = LineItemModeEnum.GIFT_LINE_ITEM;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public interface CartDiscountValueGiftLineItem extends CartDiscountValue, CartDi

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
* @return product
*/
@NotNull
Expand Down Expand Up @@ -74,6 +75,7 @@ public interface CartDiscountValueGiftLineItem extends CartDiscountValue, CartDi

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
* @param product value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class CartDiscountValueGiftLineItemBuilder implements Builder<CartDiscoun

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
* @param builder function to build the product value
* @return Builder
*/
Expand All @@ -49,6 +50,7 @@ public CartDiscountValueGiftLineItemBuilder product(

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
* @param builder function to build the product value
* @return Builder
*/
Expand All @@ -61,6 +63,7 @@ public CartDiscountValueGiftLineItemBuilder withProduct(

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
* @param product value to be set
* @return Builder
*/
Expand Down Expand Up @@ -157,6 +160,7 @@ public CartDiscountValueGiftLineItemBuilder distributionChannel(

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
* @return product
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public interface CartDiscountValueGiftLineItemDraft

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
* @return product
*/
@NotNull
Expand Down Expand Up @@ -75,6 +76,7 @@ public interface CartDiscountValueGiftLineItemDraft

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
* @param product value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class CartDiscountValueGiftLineItemDraftBuilder implements Builder<CartDi

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
* @param builder function to build the product value
* @return Builder
*/
Expand All @@ -50,6 +51,7 @@ public CartDiscountValueGiftLineItemDraftBuilder product(

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
* @param builder function to build the product value
* @return Builder
*/
Expand All @@ -62,6 +64,7 @@ public CartDiscountValueGiftLineItemDraftBuilder withProduct(

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
* @param product value to be set
* @return Builder
*/
Expand Down Expand Up @@ -161,6 +164,7 @@ public CartDiscountValueGiftLineItemDraftBuilder distributionChannel(

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
* @return product
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public String getType() {

/**
* <p>ResourceIdentifier of a Product.</p>
* <p>A Gift Line Item is added to a Cart even if the referenced Product is unpublished.</p>
*/

public com.commercetools.api.models.product.ProductResourceIdentifier getProduct() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public String getType() {

/**
* <p>Reference to a Product.</p>
* <p>A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.</p>
*/

public com.commercetools.api.models.product.ProductReference getProduct() {
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,4 @@ ffed231e91d01608e1bb08ecc1883cf00d9d9293
c11681240a69eb894764895d5dcfd21bf6812352
3ba147b34feaa34fdb19e7df9a6ad6bf8acc06e4
aeaa4f5f426544504aa4f04360ef75e79738a01a
774adcfcaf63b6994bc3154966bfaa922e0d2c8a

0 comments on commit 0251e8a

Please sign in to comment.