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 Feb 21, 2024
1 parent b1476a0 commit bf66eaf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<details>
<summary>Required Property(s)</summary>

- changed property `priceMode` of type `CustomLineItemDraft` to be optional
- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessage` to be optional
- changed property `oldOrderState` of type `OrderStateChangedMessage` to be optional
- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessagePayload` to be optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* .name(nameBuilder -> nameBuilder)
* .money(moneyBuilder -> moneyBuilder)
* .slug("{slug}")
* .priceMode(CustomLineItemPriceMode.STANDARD)
* .build()
* </code></pre>
* </div>
Expand Down Expand Up @@ -120,7 +119,7 @@ public interface CustomLineItemDraft extends com.commercetools.api.models.Custom
* </ul>
* @return priceMode
*/
@NotNull

@JsonProperty("priceMode")
public CustomLineItemPriceMode getPriceMode();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* .name(nameBuilder -> nameBuilder)
* .money(moneyBuilder -> moneyBuilder)
* .slug("{slug}")
* .priceMode(CustomLineItemPriceMode.STANDARD)
* .build()
* </code></pre>
* </div>
Expand Down Expand Up @@ -51,6 +50,7 @@ public class CustomLineItemDraftBuilder implements Builder<CustomLineItemDraft>
@Nullable
private com.commercetools.api.models.cart.ItemShippingDetailsDraft shippingDetails;

@Nullable
private com.commercetools.api.models.cart.CustomLineItemPriceMode priceMode;

/**
Expand Down Expand Up @@ -315,7 +315,7 @@ public CustomLineItemDraftBuilder shippingDetails(
*/

public CustomLineItemDraftBuilder priceMode(
final com.commercetools.api.models.cart.CustomLineItemPriceMode priceMode) {
@Nullable final com.commercetools.api.models.cart.CustomLineItemPriceMode priceMode) {
this.priceMode = priceMode;
return this;
}
Expand Down Expand Up @@ -415,6 +415,7 @@ public com.commercetools.api.models.cart.ItemShippingDetailsDraft getShippingDet
* @return priceMode
*/

@Nullable
public com.commercetools.api.models.cart.CustomLineItemPriceMode getPriceMode() {
return this.priceMode;
}
Expand All @@ -427,7 +428,6 @@ public CustomLineItemDraft build() {
Objects.requireNonNull(name, CustomLineItemDraft.class + ": name is missing");
Objects.requireNonNull(money, CustomLineItemDraft.class + ": money is missing");
Objects.requireNonNull(slug, CustomLineItemDraft.class + ": slug is missing");
Objects.requireNonNull(priceMode, CustomLineItemDraft.class + ": priceMode is missing");
return new CustomLineItemDraftImpl(name, key, quantity, money, slug, taxCategory, externalTaxRate, custom,
shippingDetails, priceMode);
}
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,4 @@ be578831c2178be70f96067afc7f51dc08a513e3
ffed231e91d01608e1bb08ecc1883cf00d9d9293
2645451ae6aef245e333b2f30cf5cb3627f71403
85b828533f486b4a2906e3b93c08761f9d723732
65619eef7e065950cbb92467d72eaacc68004a14

0 comments on commit bf66eaf

Please sign in to comment.