Skip to content

Update generated SDKs #678

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

Merged
merged 1 commit into from
Jun 19, 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
41 changes: 10 additions & 31 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
**Api changes**

<details>
<summary>Changed Property(s)</summary>

- :warning: changed property `value` of type `DirectDiscountDraft` from type `CartDiscountValue` to `CartDiscountValueDraft`
- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessage` from type `Money` to `CentPrecisionMoney`
- :warning: changed property `value` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney`
- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney`
- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessagePayload` from type `Money` to `CentPrecisionMoney`
- :warning: changed property `value` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney`
- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney`
- :warning: changed property `price` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney`
- :warning: changed property `freeAbove` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney`
</details>


<details>
<summary>Required Property(s)</summary>

- changed property `stores` of type `BusinessUnit` to be optional
- changed property `stores` of type `Company` to be optional
- changed property `stores` of type `Division` to be optional
- changed property `isOnStock` of type `ProductVariantAvailability` to be optional
</details>


<details>
<summary>Added Type(s)</summary>

- added type `StagedOrderSetShippingCustomFieldAction`
- added type `StagedOrderSetShippingCustomTypeAction`
- added type `OrderSetShippingCustomFieldAction`
- added type `OrderSetShippingCustomTypeAction`
<summary>Removed QueryParameter(s)</summary>

- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products`
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products`
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/key={key}`
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/key={key}`
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/key={key}`
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}`
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}`
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ public List<String> getPriceChannel() {
return this.getQueryParam("priceChannel");
}

public List<String> getLocaleProjection() {
return this.getQueryParam("localeProjection");
}

public List<String> getVersion() {
return this.getQueryParam("version");
}
Expand Down Expand Up @@ -457,87 +453,6 @@ public <TValue> ByProjectKeyProductsByIDDelete addPriceChannel(final Collection<
.collect(Collectors.toList()));
}

/**
* set localeProjection with the specified value
* @param localeProjection value to be set
* @param <TValue> value type
* @return ByProjectKeyProductsByIDDelete
*/
public <TValue> ByProjectKeyProductsByIDDelete withLocaleProjection(final TValue localeProjection) {
return copy().withQueryParam("localeProjection", localeProjection);
}

/**
* add additional localeProjection query parameter
* @param localeProjection value to be added
* @param <TValue> value type
* @return ByProjectKeyProductsByIDDelete
*/
public <TValue> ByProjectKeyProductsByIDDelete addLocaleProjection(final TValue localeProjection) {
return copy().addQueryParam("localeProjection", localeProjection);
}

/**
* set localeProjection with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyProductsByIDDelete
*/
public ByProjectKeyProductsByIDDelete withLocaleProjection(final Supplier<String> supplier) {
return copy().withQueryParam("localeProjection", supplier.get());
}

/**
* add additional localeProjection query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyProductsByIDDelete
*/
public ByProjectKeyProductsByIDDelete addLocaleProjection(final Supplier<String> supplier) {
return copy().addQueryParam("localeProjection", supplier.get());
}

/**
* set localeProjection with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyProductsByIDDelete
*/
public ByProjectKeyProductsByIDDelete withLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
return copy().withQueryParam("localeProjection", op.apply(new StringBuilder()));
}

/**
* add additional localeProjection query parameter
* @param op builder for the value to be added
* @return ByProjectKeyProductsByIDDelete
*/
public ByProjectKeyProductsByIDDelete addLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("localeProjection", op.apply(new StringBuilder()));
}

/**
* set localeProjection with the specified values
* @param localeProjection values to be set
* @param <TValue> value type
* @return ByProjectKeyProductsByIDDelete
*/
public <TValue> ByProjectKeyProductsByIDDelete withLocaleProjection(final Collection<TValue> localeProjection) {
return copy().withoutQueryParam("localeProjection")
.addQueryParams(localeProjection.stream()
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
.collect(Collectors.toList()));
}

/**
* add additional localeProjection query parameters
* @param localeProjection values to be added
* @param <TValue> value type
* @return ByProjectKeyProductsByIDDelete
*/
public <TValue> ByProjectKeyProductsByIDDelete addLocaleProjection(final Collection<TValue> localeProjection) {
return copy().addQueryParams(localeProjection.stream()
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
.collect(Collectors.toList()));
}

/**
* set version with the specified value
* @param version value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ public List<String> getPriceChannel() {
return this.getQueryParam("priceChannel");
}

public List<String> getLocaleProjection() {
return this.getQueryParam("localeProjection");
}

public List<String> getExpand() {
return this.getQueryParam("expand");
}
Expand Down Expand Up @@ -449,87 +445,6 @@ public <TValue> ByProjectKeyProductsByIDGet addPriceChannel(final Collection<TVa
.collect(Collectors.toList()));
}

/**
* set localeProjection with the specified value
* @param localeProjection value to be set
* @param <TValue> value type
* @return ByProjectKeyProductsByIDGet
*/
public <TValue> ByProjectKeyProductsByIDGet withLocaleProjection(final TValue localeProjection) {
return copy().withQueryParam("localeProjection", localeProjection);
}

/**
* add additional localeProjection query parameter
* @param localeProjection value to be added
* @param <TValue> value type
* @return ByProjectKeyProductsByIDGet
*/
public <TValue> ByProjectKeyProductsByIDGet addLocaleProjection(final TValue localeProjection) {
return copy().addQueryParam("localeProjection", localeProjection);
}

/**
* set localeProjection with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyProductsByIDGet
*/
public ByProjectKeyProductsByIDGet withLocaleProjection(final Supplier<String> supplier) {
return copy().withQueryParam("localeProjection", supplier.get());
}

/**
* add additional localeProjection query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyProductsByIDGet
*/
public ByProjectKeyProductsByIDGet addLocaleProjection(final Supplier<String> supplier) {
return copy().addQueryParam("localeProjection", supplier.get());
}

/**
* set localeProjection with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyProductsByIDGet
*/
public ByProjectKeyProductsByIDGet withLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
return copy().withQueryParam("localeProjection", op.apply(new StringBuilder()));
}

/**
* add additional localeProjection query parameter
* @param op builder for the value to be added
* @return ByProjectKeyProductsByIDGet
*/
public ByProjectKeyProductsByIDGet addLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("localeProjection", op.apply(new StringBuilder()));
}

/**
* set localeProjection with the specified values
* @param localeProjection values to be set
* @param <TValue> value type
* @return ByProjectKeyProductsByIDGet
*/
public <TValue> ByProjectKeyProductsByIDGet withLocaleProjection(final Collection<TValue> localeProjection) {
return copy().withoutQueryParam("localeProjection")
.addQueryParams(localeProjection.stream()
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
.collect(Collectors.toList()));
}

/**
* add additional localeProjection query parameters
* @param localeProjection values to be added
* @param <TValue> value type
* @return ByProjectKeyProductsByIDGet
*/
public <TValue> ByProjectKeyProductsByIDGet addLocaleProjection(final Collection<TValue> localeProjection) {
return copy().addQueryParams(localeProjection.stream()
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
.collect(Collectors.toList()));
}

/**
* set expand with the specified value
* @param expand value to be set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ public List<String> getPriceChannel() {
return this.getQueryParam("priceChannel");
}

public List<String> getLocaleProjection() {
return this.getQueryParam("localeProjection");
}

public List<String> getExpand() {
return this.getQueryParam("expand");
}
Expand Down Expand Up @@ -459,87 +455,6 @@ public <TValue> ByProjectKeyProductsByIDPost addPriceChannel(final Collection<TV
.collect(Collectors.toList()));
}

/**
* set localeProjection with the specified value
* @param localeProjection value to be set
* @param <TValue> value type
* @return ByProjectKeyProductsByIDPost
*/
public <TValue> ByProjectKeyProductsByIDPost withLocaleProjection(final TValue localeProjection) {
return copy().withQueryParam("localeProjection", localeProjection);
}

/**
* add additional localeProjection query parameter
* @param localeProjection value to be added
* @param <TValue> value type
* @return ByProjectKeyProductsByIDPost
*/
public <TValue> ByProjectKeyProductsByIDPost addLocaleProjection(final TValue localeProjection) {
return copy().addQueryParam("localeProjection", localeProjection);
}

/**
* set localeProjection with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyProductsByIDPost
*/
public ByProjectKeyProductsByIDPost withLocaleProjection(final Supplier<String> supplier) {
return copy().withQueryParam("localeProjection", supplier.get());
}

/**
* add additional localeProjection query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyProductsByIDPost
*/
public ByProjectKeyProductsByIDPost addLocaleProjection(final Supplier<String> supplier) {
return copy().addQueryParam("localeProjection", supplier.get());
}

/**
* set localeProjection with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyProductsByIDPost
*/
public ByProjectKeyProductsByIDPost withLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
return copy().withQueryParam("localeProjection", op.apply(new StringBuilder()));
}

/**
* add additional localeProjection query parameter
* @param op builder for the value to be added
* @return ByProjectKeyProductsByIDPost
*/
public ByProjectKeyProductsByIDPost addLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("localeProjection", op.apply(new StringBuilder()));
}

/**
* set localeProjection with the specified values
* @param localeProjection values to be set
* @param <TValue> value type
* @return ByProjectKeyProductsByIDPost
*/
public <TValue> ByProjectKeyProductsByIDPost withLocaleProjection(final Collection<TValue> localeProjection) {
return copy().withoutQueryParam("localeProjection")
.addQueryParams(localeProjection.stream()
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
.collect(Collectors.toList()));
}

/**
* add additional localeProjection query parameters
* @param localeProjection values to be added
* @param <TValue> value type
* @return ByProjectKeyProductsByIDPost
*/
public <TValue> ByProjectKeyProductsByIDPost addLocaleProjection(final Collection<TValue> localeProjection) {
return copy().addQueryParams(localeProjection.stream()
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
.collect(Collectors.toList()));
}

/**
* set expand with the specified value
* @param expand value to be set
Expand Down
Loading
Loading