Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jun 14, 2024
1 parent 399b29d commit 02ad396
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

/**
* <p>Removes the current projection of the Product. The staged projection is unaffected. To retrieve unpublished Products, the <code>staged</code> parameter must be set to <code>false</code> when querying/searching Product Projections. Produces the ProductUnpublished Message.</p>
* <p>Unpublished Products cannot be added to a Cart. However, if a Cart contains Line Items for Products that were added before the Product was unpublished, the Cart is unaffected and can still be used to create an Order. To prevent this, in addition to unpublishing the Product you should remove the Prices from the Product using Remove Price for Embedded Prices or Delete StandalonePrice for Standalone Prices.</p>
* <p>When a Product is unpublished, any associated Line Items already present in a Cart remain unaffected and can still be ordered. To prevent this, do the following:</p>
* <ul>
* <li>If the Product uses Embedded Prices, remove the Embedded Prices from the unpublished Product.</li>
* <li>If the Product uses Standalone Prices, inactivate or delete the Standalone Prices.</li>
* </ul>
*
* <hr>
* Example to create an instance using the builder pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@

/**
* <p>Removes the current projection of the Product. The staged projection is unaffected. To retrieve unpublished Products, the <code>staged</code> parameter must be set to <code>false</code> when querying/searching Product Projections. Produces the ProductUnpublished Message.</p>
* <p>Unpublished Products cannot be added to a Cart. However, if a Cart contains Line Items for Products that were added before the Product was unpublished, the Cart is unaffected and can still be used to create an Order. To prevent this, in addition to unpublishing the Product you should remove the Prices from the Product using Remove Price for Embedded Prices or Delete StandalonePrice for Standalone Prices.</p>
* <p>When a Product is unpublished, any associated Line Items already present in a Cart remain unaffected and can still be ordered. To prevent this, do the following:</p>
* <ul>
* <li>If the Product uses Embedded Prices, remove the Embedded Prices from the unpublished Product.</li>
* <li>If the Product uses Standalone Prices, inactivate or delete the Standalone Prices.</li>
* </ul>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ProductUnpublishActionImpl implements ProductUnpublishAction, ModelBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public interface StandalonePrice
public StagedStandalonePrice getStaged();

/**
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection.</p>
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.</p>
* @return active
*/
@NotNull
Expand Down Expand Up @@ -344,7 +344,7 @@ public interface StandalonePrice
public void setStaged(final StagedStandalonePrice staged);

/**
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection.</p>
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.</p>
* @param active value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ public StandalonePriceBuilder staged(
}

/**
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection.</p>
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.</p>
* @param active value to be set
* @return Builder
*/
Expand Down Expand Up @@ -737,7 +737,7 @@ public com.commercetools.api.models.standalone_price.StagedStandalonePrice getSt
}

/**
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection.</p>
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.</p>
* @return active
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public interface StandalonePriceDraft extends com.commercetools.api.models.Custo
public StagedPriceDraft getStaged();

/**
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Prodct price selection.</p>
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Product price selection.</p>
* @return active
*/

Expand Down Expand Up @@ -243,7 +243,7 @@ public interface StandalonePriceDraft extends com.commercetools.api.models.Custo
public void setStaged(final StagedPriceDraft staged);

/**
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Prodct price selection.</p>
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Product price selection.</p>
* @param active value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public StandalonePriceDraftBuilder staged(
}

/**
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Prodct price selection.</p>
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Product price selection.</p>
* @param active value to be set
* @return Builder
*/
Expand Down Expand Up @@ -563,7 +563,7 @@ public com.commercetools.api.models.standalone_price.StagedPriceDraft getStaged(
}

/**
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Prodct price selection.</p>
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Product price selection.</p>
* @return active
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public com.commercetools.api.models.standalone_price.StagedPriceDraft getStaged(
}

/**
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Prodct price selection.</p>
* <p>Set to <code>false</code>, if the StandalonePrice should not be considered during Product price selection.</p>
*/

public Boolean getActive() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public com.commercetools.api.models.standalone_price.StagedStandalonePrice getSt
}

/**
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection.</p>
* <p>If set to <code>true</code>, the StandalonePrice is considered during Product price selection. If set to <code>false</code>, the StandalonePrice is not considered during Product price selection and any associated Line Items in a Cart cannot be ordered.</p>
*/

public Boolean getActive() {
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,4 @@ d83eac0dbaa727c9b21149b44a8635d81e9c183b
e823fd2dd5228a125ad014c7733fb2e33269c734
a1588f9bea129df23185d9d40c70ea96ef1d8b6e
22b0c33fd2ee028ad43204b74430f87a970d6dfa
67d3b7a0760d16b674ecd7c8b805e897e6320171

0 comments on commit 02ad396

Please sign in to comment.