Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated SDKs #586

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading