Skip to content

Commit 216b621

Browse files
committed
build(codegen): updating SDK
1 parent 19f13b3 commit 216b621

17 files changed

+11
-1087
lines changed

changes.md

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
11
**Api changes**
22

33
<details>
4-
<summary>Changed Property(s)</summary>
5-
6-
- :warning: changed property `value` of type `DirectDiscountDraft` from type `CartDiscountValue` to `CartDiscountValueDraft`
7-
- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessage` from type `Money` to `CentPrecisionMoney`
8-
- :warning: changed property `value` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney`
9-
- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessage` from type `Money` to `TypedMoney`
10-
- :warning: changed property `totalPrice` of type `OrderLineItemDiscountSetMessagePayload` from type `Money` to `CentPrecisionMoney`
11-
- :warning: changed property `value` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney`
12-
- :warning: changed property `oldValue` of type `StandalonePriceValueChangedMessagePayload` from type `Money` to `TypedMoney`
13-
- :warning: changed property `price` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney`
14-
- :warning: changed property `freeAbove` of type `ShippingRate` from type `TypedMoney` to `CentPrecisionMoney`
15-
</details>
16-
17-
18-
<details>
19-
<summary>Required Property(s)</summary>
20-
21-
- changed property `stores` of type `BusinessUnit` to be optional
22-
- changed property `stores` of type `Company` to be optional
23-
- changed property `stores` of type `Division` to be optional
24-
- changed property `isOnStock` of type `ProductVariantAvailability` to be optional
25-
</details>
26-
27-
28-
<details>
29-
<summary>Added Type(s)</summary>
30-
31-
- added type `StagedOrderSetShippingCustomFieldAction`
32-
- added type `StagedOrderSetShippingCustomTypeAction`
33-
- added type `OrderSetShippingCustomFieldAction`
34-
- added type `OrderSetShippingCustomTypeAction`
4+
<summary>Removed QueryParameter(s)</summary>
5+
6+
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products`
7+
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products`
8+
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/key={key}`
9+
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/key={key}`
10+
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/key={key}`
11+
- :warning: removed query parameter `localeProjection` from method `get /{projectKey}/products/{ID}`
12+
- :warning: removed query parameter `localeProjection` from method `post /{projectKey}/products/{ID}`
13+
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}`
3514
</details>
3615

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDDelete.java

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ public List<String> getPriceChannel() {
113113
return this.getQueryParam("priceChannel");
114114
}
115115

116-
public List<String> getLocaleProjection() {
117-
return this.getQueryParam("localeProjection");
118-
}
119-
120116
public List<String> getVersion() {
121117
return this.getQueryParam("version");
122118
}
@@ -457,87 +453,6 @@ public <TValue> ByProjectKeyProductsByIDDelete addPriceChannel(final Collection<
457453
.collect(Collectors.toList()));
458454
}
459455

460-
/**
461-
* set localeProjection with the specified value
462-
* @param localeProjection value to be set
463-
* @param <TValue> value type
464-
* @return ByProjectKeyProductsByIDDelete
465-
*/
466-
public <TValue> ByProjectKeyProductsByIDDelete withLocaleProjection(final TValue localeProjection) {
467-
return copy().withQueryParam("localeProjection", localeProjection);
468-
}
469-
470-
/**
471-
* add additional localeProjection query parameter
472-
* @param localeProjection value to be added
473-
* @param <TValue> value type
474-
* @return ByProjectKeyProductsByIDDelete
475-
*/
476-
public <TValue> ByProjectKeyProductsByIDDelete addLocaleProjection(final TValue localeProjection) {
477-
return copy().addQueryParam("localeProjection", localeProjection);
478-
}
479-
480-
/**
481-
* set localeProjection with the specified value
482-
* @param supplier supplier for the value to be set
483-
* @return ByProjectKeyProductsByIDDelete
484-
*/
485-
public ByProjectKeyProductsByIDDelete withLocaleProjection(final Supplier<String> supplier) {
486-
return copy().withQueryParam("localeProjection", supplier.get());
487-
}
488-
489-
/**
490-
* add additional localeProjection query parameter
491-
* @param supplier supplier for the value to be added
492-
* @return ByProjectKeyProductsByIDDelete
493-
*/
494-
public ByProjectKeyProductsByIDDelete addLocaleProjection(final Supplier<String> supplier) {
495-
return copy().addQueryParam("localeProjection", supplier.get());
496-
}
497-
498-
/**
499-
* set localeProjection with the specified value
500-
* @param op builder for the value to be set
501-
* @return ByProjectKeyProductsByIDDelete
502-
*/
503-
public ByProjectKeyProductsByIDDelete withLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
504-
return copy().withQueryParam("localeProjection", op.apply(new StringBuilder()));
505-
}
506-
507-
/**
508-
* add additional localeProjection query parameter
509-
* @param op builder for the value to be added
510-
* @return ByProjectKeyProductsByIDDelete
511-
*/
512-
public ByProjectKeyProductsByIDDelete addLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
513-
return copy().addQueryParam("localeProjection", op.apply(new StringBuilder()));
514-
}
515-
516-
/**
517-
* set localeProjection with the specified values
518-
* @param localeProjection values to be set
519-
* @param <TValue> value type
520-
* @return ByProjectKeyProductsByIDDelete
521-
*/
522-
public <TValue> ByProjectKeyProductsByIDDelete withLocaleProjection(final Collection<TValue> localeProjection) {
523-
return copy().withoutQueryParam("localeProjection")
524-
.addQueryParams(localeProjection.stream()
525-
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
526-
.collect(Collectors.toList()));
527-
}
528-
529-
/**
530-
* add additional localeProjection query parameters
531-
* @param localeProjection values to be added
532-
* @param <TValue> value type
533-
* @return ByProjectKeyProductsByIDDelete
534-
*/
535-
public <TValue> ByProjectKeyProductsByIDDelete addLocaleProjection(final Collection<TValue> localeProjection) {
536-
return copy().addQueryParams(localeProjection.stream()
537-
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
538-
.collect(Collectors.toList()));
539-
}
540-
541456
/**
542457
* set version with the specified value
543458
* @param version value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDGet.java

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ public List<String> getPriceChannel() {
109109
return this.getQueryParam("priceChannel");
110110
}
111111

112-
public List<String> getLocaleProjection() {
113-
return this.getQueryParam("localeProjection");
114-
}
115-
116112
public List<String> getExpand() {
117113
return this.getQueryParam("expand");
118114
}
@@ -449,87 +445,6 @@ public <TValue> ByProjectKeyProductsByIDGet addPriceChannel(final Collection<TVa
449445
.collect(Collectors.toList()));
450446
}
451447

452-
/**
453-
* set localeProjection with the specified value
454-
* @param localeProjection value to be set
455-
* @param <TValue> value type
456-
* @return ByProjectKeyProductsByIDGet
457-
*/
458-
public <TValue> ByProjectKeyProductsByIDGet withLocaleProjection(final TValue localeProjection) {
459-
return copy().withQueryParam("localeProjection", localeProjection);
460-
}
461-
462-
/**
463-
* add additional localeProjection query parameter
464-
* @param localeProjection value to be added
465-
* @param <TValue> value type
466-
* @return ByProjectKeyProductsByIDGet
467-
*/
468-
public <TValue> ByProjectKeyProductsByIDGet addLocaleProjection(final TValue localeProjection) {
469-
return copy().addQueryParam("localeProjection", localeProjection);
470-
}
471-
472-
/**
473-
* set localeProjection with the specified value
474-
* @param supplier supplier for the value to be set
475-
* @return ByProjectKeyProductsByIDGet
476-
*/
477-
public ByProjectKeyProductsByIDGet withLocaleProjection(final Supplier<String> supplier) {
478-
return copy().withQueryParam("localeProjection", supplier.get());
479-
}
480-
481-
/**
482-
* add additional localeProjection query parameter
483-
* @param supplier supplier for the value to be added
484-
* @return ByProjectKeyProductsByIDGet
485-
*/
486-
public ByProjectKeyProductsByIDGet addLocaleProjection(final Supplier<String> supplier) {
487-
return copy().addQueryParam("localeProjection", supplier.get());
488-
}
489-
490-
/**
491-
* set localeProjection with the specified value
492-
* @param op builder for the value to be set
493-
* @return ByProjectKeyProductsByIDGet
494-
*/
495-
public ByProjectKeyProductsByIDGet withLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
496-
return copy().withQueryParam("localeProjection", op.apply(new StringBuilder()));
497-
}
498-
499-
/**
500-
* add additional localeProjection query parameter
501-
* @param op builder for the value to be added
502-
* @return ByProjectKeyProductsByIDGet
503-
*/
504-
public ByProjectKeyProductsByIDGet addLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
505-
return copy().addQueryParam("localeProjection", op.apply(new StringBuilder()));
506-
}
507-
508-
/**
509-
* set localeProjection with the specified values
510-
* @param localeProjection values to be set
511-
* @param <TValue> value type
512-
* @return ByProjectKeyProductsByIDGet
513-
*/
514-
public <TValue> ByProjectKeyProductsByIDGet withLocaleProjection(final Collection<TValue> localeProjection) {
515-
return copy().withoutQueryParam("localeProjection")
516-
.addQueryParams(localeProjection.stream()
517-
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
518-
.collect(Collectors.toList()));
519-
}
520-
521-
/**
522-
* add additional localeProjection query parameters
523-
* @param localeProjection values to be added
524-
* @param <TValue> value type
525-
* @return ByProjectKeyProductsByIDGet
526-
*/
527-
public <TValue> ByProjectKeyProductsByIDGet addLocaleProjection(final Collection<TValue> localeProjection) {
528-
return copy().addQueryParams(localeProjection.stream()
529-
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
530-
.collect(Collectors.toList()));
531-
}
532-
533448
/**
534449
* set expand with the specified value
535450
* @param expand value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDPost.java

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ public List<String> getPriceChannel() {
119119
return this.getQueryParam("priceChannel");
120120
}
121121

122-
public List<String> getLocaleProjection() {
123-
return this.getQueryParam("localeProjection");
124-
}
125-
126122
public List<String> getExpand() {
127123
return this.getQueryParam("expand");
128124
}
@@ -459,87 +455,6 @@ public <TValue> ByProjectKeyProductsByIDPost addPriceChannel(final Collection<TV
459455
.collect(Collectors.toList()));
460456
}
461457

462-
/**
463-
* set localeProjection with the specified value
464-
* @param localeProjection value to be set
465-
* @param <TValue> value type
466-
* @return ByProjectKeyProductsByIDPost
467-
*/
468-
public <TValue> ByProjectKeyProductsByIDPost withLocaleProjection(final TValue localeProjection) {
469-
return copy().withQueryParam("localeProjection", localeProjection);
470-
}
471-
472-
/**
473-
* add additional localeProjection query parameter
474-
* @param localeProjection value to be added
475-
* @param <TValue> value type
476-
* @return ByProjectKeyProductsByIDPost
477-
*/
478-
public <TValue> ByProjectKeyProductsByIDPost addLocaleProjection(final TValue localeProjection) {
479-
return copy().addQueryParam("localeProjection", localeProjection);
480-
}
481-
482-
/**
483-
* set localeProjection with the specified value
484-
* @param supplier supplier for the value to be set
485-
* @return ByProjectKeyProductsByIDPost
486-
*/
487-
public ByProjectKeyProductsByIDPost withLocaleProjection(final Supplier<String> supplier) {
488-
return copy().withQueryParam("localeProjection", supplier.get());
489-
}
490-
491-
/**
492-
* add additional localeProjection query parameter
493-
* @param supplier supplier for the value to be added
494-
* @return ByProjectKeyProductsByIDPost
495-
*/
496-
public ByProjectKeyProductsByIDPost addLocaleProjection(final Supplier<String> supplier) {
497-
return copy().addQueryParam("localeProjection", supplier.get());
498-
}
499-
500-
/**
501-
* set localeProjection with the specified value
502-
* @param op builder for the value to be set
503-
* @return ByProjectKeyProductsByIDPost
504-
*/
505-
public ByProjectKeyProductsByIDPost withLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
506-
return copy().withQueryParam("localeProjection", op.apply(new StringBuilder()));
507-
}
508-
509-
/**
510-
* add additional localeProjection query parameter
511-
* @param op builder for the value to be added
512-
* @return ByProjectKeyProductsByIDPost
513-
*/
514-
public ByProjectKeyProductsByIDPost addLocaleProjection(final Function<StringBuilder, StringBuilder> op) {
515-
return copy().addQueryParam("localeProjection", op.apply(new StringBuilder()));
516-
}
517-
518-
/**
519-
* set localeProjection with the specified values
520-
* @param localeProjection values to be set
521-
* @param <TValue> value type
522-
* @return ByProjectKeyProductsByIDPost
523-
*/
524-
public <TValue> ByProjectKeyProductsByIDPost withLocaleProjection(final Collection<TValue> localeProjection) {
525-
return copy().withoutQueryParam("localeProjection")
526-
.addQueryParams(localeProjection.stream()
527-
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
528-
.collect(Collectors.toList()));
529-
}
530-
531-
/**
532-
* add additional localeProjection query parameters
533-
* @param localeProjection values to be added
534-
* @param <TValue> value type
535-
* @return ByProjectKeyProductsByIDPost
536-
*/
537-
public <TValue> ByProjectKeyProductsByIDPost addLocaleProjection(final Collection<TValue> localeProjection) {
538-
return copy().addQueryParams(localeProjection.stream()
539-
.map(s -> new ParamEntry<>("localeProjection", s.toString()))
540-
.collect(Collectors.toList()));
541-
}
542-
543458
/**
544459
* set expand with the specified value
545460
* @param expand value to be set

0 commit comments

Comments
 (0)