Skip to content

Commit 1146efc

Browse files
committed
build(codegen): updating SDK
1 parent e910cb5 commit 1146efc

10 files changed

Lines changed: 420 additions & 157 deletions

changes.md

Lines changed: 5 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,11 @@
11
**Api changes**
22

33
<details>
4-
<summary>Added Enum(s)</summary>
4+
<summary>Added QueryParameter(s)</summary>
55

6-
- added enum `ReserveOnCart` to type `InventoryMode`
7-
- added enum `reservation` to type `ReferenceTypeId`
8-
- added enum `reservation` to type `ResourceTypeId`
9-
</details>
10-
11-
12-
<details>
13-
<summary>Added Type(s)</summary>
14-
15-
- added type `ReservationReference`
16-
- added type `CartSetReservationExpirationInMinutesAction`
17-
- added type `NonStandardCurrency`
18-
- added type `CircularDependencyError`
19-
- added type `ExtensionChainTooDeepError`
20-
- added type `ExtensionChainTooWideError`
21-
- added type `ExtensionDependencyExistsError`
22-
- added type `LineItemQuantityAboveLimitError`
23-
- added type `LineItemQuantityBelowLimitError`
24-
- added type `MissingDependencyError`
25-
- added type `GraphQLCircularDependencyError`
26-
- added type `GraphQLExtensionChainTooDeepError`
27-
- added type `GraphQLExtensionChainTooWideError`
28-
- added type `GraphQLExtensionDependencyExistsError`
29-
- added type `GraphQLLineItemQuantityAboveLimitError`
30-
- added type `GraphQLLineItemQuantityBelowLimitError`
31-
- added type `GraphQLMissingDependencyError`
32-
- added type `ExtensionAdditionalContext`
33-
- added type `ExtensionAdditionalContextDraft`
34-
- added type `ExtensionReference`
35-
- added type `ExtensionResourceIdentifier`
36-
- added type `ExtensionSetAdditionalContextAction`
37-
- added type `ExtensionSetDependenciesAction`
38-
- added type `ExtensionSetExpansionPathsAction`
39-
- added type `InventoryEntryStockLevels`
40-
- added type `InventoryEntrySetReorderPointAction`
41-
- added type `InventoryEntrySetReservationExpirationInMinutesAction`
42-
- added type `InventoryEntrySetSafetyStockAction`
43-
- added type `InventoryEntryOutOfStockMessage`
44-
- added type `InventoryEntryReorderPointMessage`
45-
- added type `InventoryEntryReservationExpirationInMinutesSetMessage`
46-
- added type `InventoryEntrySafetyStockMessage`
47-
- added type `InventoryEntryOutOfStockMessagePayload`
48-
- added type `InventoryEntryReorderPointMessagePayload`
49-
- added type `InventoryEntryReservationExpirationInMinutesSetMessagePayload`
50-
- added type `InventoryEntrySafetyStockMessagePayload`
51-
- added type `InventoryConfiguration`
52-
- added type `ProjectSetReleaseExpiredReservationsAction`
53-
- added type `ProjectSetReservationExpirationInMinutesAction`
54-
- added type `Reservation`
55-
- added type `ReservationState`
56-
- added type `CannotChangeReservationExpiryWarning`
57-
- added type `CannotCreateReservationWarning`
58-
- added type `CannotUpdateReservationWarning`
59-
</details>
60-
61-
62-
<details>
63-
<summary>Added Property(s)</summary>
64-
65-
- added property `warnings` to type `Cart`
66-
- added property `reservation` to type `LineItem`
67-
- added property `dependencies` to type `Extension`
68-
- added property `expansionPaths` to type `Extension`
69-
- added property `additionalContext` to type `Extension`
70-
- added property `dependencies` to type `ExtensionDraft`
71-
- added property `expansionPaths` to type `ExtensionDraft`
72-
- added property `additionalContext` to type `ExtensionDraft`
73-
- added property `oldResource` to type `ExtensionInput`
74-
- added property `reservationExpirationInMinutes` to type `InventoryEntry`
75-
- added property `stockLevels` to type `InventoryEntry`
76-
- added property `reservationExpirationInMinutes` to type `InventoryEntryDraft`
77-
- added property `stockLevels` to type `InventoryEntryDraft`
78-
- added property `inventory` to type `Project`
79-
</details>
80-
81-
**Import changes**
82-
83-
<details>
84-
<summary>Added Resource(s)</summary>
85-
86-
- added resource `/{projectKey}/product-tailorings`
87-
- added resource `/{projectKey}/product-tailorings/import-containers`
88-
- added resource `/{projectKey}/product-tailorings/import-containers/{importContainerKey}`
89-
</details>
90-
91-
92-
<details>
93-
<summary>Added Enum(s)</summary>
94-
95-
- added enum `product-tailoring` to type `ImportResourceType`
96-
</details>
97-
98-
99-
<details>
100-
<summary>Added Type(s)</summary>
101-
102-
- added type `ProductTailoringImportRequest`
103-
- added type `ProductVariantTailoringImport`
104-
- added type `ProductTailoringImport`
105-
</details>
106-
107-
108-
<details>
109-
<summary>Added Method(s)</summary>
110-
111-
- added method `apiRoot.withProjectKeyValue().productTailorings().importContainers().withImportContainerKeyValue().post()`
112-
</details>
113-
114-
115-
<details>
116-
<summary>Added Property(s)</summary>
117-
118-
- added property `reservationExpirationInMinutes` to type `InventoryImport`
119-
- added property `active` to type `StandalonePriceImport`
120-
</details>
121-
122-
**History changes**
123-
124-
<details>
125-
<summary>Added Enum(s)</summary>
126-
127-
- added enum `setReservationExpirationInMinutes` to type `UpdateType`
128-
</details>
129-
130-
131-
<details>
132-
<summary>Added Type(s)</summary>
133-
134-
- added type `SetTransactionInterfaceIdChange`
135-
</details>
136-
137-
138-
<details>
139-
<summary>Added Property(s)</summary>
140-
141-
- added property `catalogData` to type `ChangeLocalizedNameChange`
142-
- added property `catalogData` to type `SetLocalizedDescriptionChange`
143-
</details>
144-
145-
**Checkout changes**
146-
147-
<details>
148-
<summary>Added Enum(s)</summary>
149-
150-
- added enum `eu-central-1.aws` to type `Region`
151-
- added enum `us-east-2.aws` to type `Region`
152-
</details>
153-
154-
155-
<details>
156-
<summary>Removed Type(s)</summary>
157-
158-
- :warning: removed type `SetConnectorDeploymentUpdateAction`
6+
- added query parameter `dataErasure` to method `delete /{projectKey}/business-units/key={key}`
7+
- added query parameter `dataErasure` to method `delete /{projectKey}/business-units/{ID}`
8+
- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/key={key}`
9+
- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/{ID}`
15910
</details>
16011

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

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
3939
public class ByProjectKeyBusinessUnitsByIDDelete extends
4040
TypeApiMethod<ByProjectKeyBusinessUnitsByIDDelete, com.commercetools.api.models.business_unit.BusinessUnit>
41-
implements com.commercetools.api.client.VersionedTrait<ByProjectKeyBusinessUnitsByIDDelete>,
41+
implements com.commercetools.api.client.DataerasureTrait<ByProjectKeyBusinessUnitsByIDDelete>,
42+
com.commercetools.api.client.VersionedTrait<ByProjectKeyBusinessUnitsByIDDelete>,
4243
com.commercetools.api.client.ConflictingTrait<ByProjectKeyBusinessUnitsByIDDelete>,
4344
com.commercetools.api.client.ExpandableTrait<ByProjectKeyBusinessUnitsByIDDelete>,
4445
com.commercetools.api.client.ErrorableTrait<ByProjectKeyBusinessUnitsByIDDelete>,
@@ -96,6 +97,10 @@ public String getID() {
9697
return this.ID;
9798
}
9899

100+
public List<String> getDataErasure() {
101+
return this.getQueryParam("dataErasure");
102+
}
103+
99104
public List<String> getVersion() {
100105
return this.getQueryParam("version");
101106
}
@@ -112,6 +117,86 @@ public void setID(final String ID) {
112117
this.ID = ID;
113118
}
114119

120+
/**
121+
* set dataErasure with the specified value
122+
* @param dataErasure value to be set
123+
* @param <TValue> value type
124+
* @return ByProjectKeyBusinessUnitsByIDDelete
125+
*/
126+
public <TValue> ByProjectKeyBusinessUnitsByIDDelete withDataErasure(final TValue dataErasure) {
127+
return copy().withQueryParam("dataErasure", dataErasure);
128+
}
129+
130+
/**
131+
* add additional dataErasure query parameter
132+
* @param dataErasure value to be added
133+
* @param <TValue> value type
134+
* @return ByProjectKeyBusinessUnitsByIDDelete
135+
*/
136+
public <TValue> ByProjectKeyBusinessUnitsByIDDelete addDataErasure(final TValue dataErasure) {
137+
return copy().addQueryParam("dataErasure", dataErasure);
138+
}
139+
140+
/**
141+
* set dataErasure with the specified value
142+
* @param supplier supplier for the value to be set
143+
* @return ByProjectKeyBusinessUnitsByIDDelete
144+
*/
145+
public ByProjectKeyBusinessUnitsByIDDelete withDataErasure(final Supplier<Boolean> supplier) {
146+
return copy().withQueryParam("dataErasure", supplier.get());
147+
}
148+
149+
/**
150+
* add additional dataErasure query parameter
151+
* @param supplier supplier for the value to be added
152+
* @return ByProjectKeyBusinessUnitsByIDDelete
153+
*/
154+
public ByProjectKeyBusinessUnitsByIDDelete addDataErasure(final Supplier<Boolean> supplier) {
155+
return copy().addQueryParam("dataErasure", supplier.get());
156+
}
157+
158+
/**
159+
* set dataErasure with the specified value
160+
* @param op builder for the value to be set
161+
* @return ByProjectKeyBusinessUnitsByIDDelete
162+
*/
163+
public ByProjectKeyBusinessUnitsByIDDelete withDataErasure(final Function<StringBuilder, StringBuilder> op) {
164+
return copy().withQueryParam("dataErasure", op.apply(new StringBuilder()));
165+
}
166+
167+
/**
168+
* add additional dataErasure query parameter
169+
* @param op builder for the value to be added
170+
* @return ByProjectKeyBusinessUnitsByIDDelete
171+
*/
172+
public ByProjectKeyBusinessUnitsByIDDelete addDataErasure(final Function<StringBuilder, StringBuilder> op) {
173+
return copy().addQueryParam("dataErasure", op.apply(new StringBuilder()));
174+
}
175+
176+
/**
177+
* set dataErasure with the specified values
178+
* @param dataErasure values to be set
179+
* @param <TValue> value type
180+
* @return ByProjectKeyBusinessUnitsByIDDelete
181+
*/
182+
public <TValue> ByProjectKeyBusinessUnitsByIDDelete withDataErasure(final Collection<TValue> dataErasure) {
183+
return copy().withoutQueryParam("dataErasure")
184+
.addQueryParams(dataErasure.stream()
185+
.map(s -> new ParamEntry<>("dataErasure", s.toString()))
186+
.collect(Collectors.toList()));
187+
}
188+
189+
/**
190+
* add additional dataErasure query parameters
191+
* @param dataErasure values to be added
192+
* @param <TValue> value type
193+
* @return ByProjectKeyBusinessUnitsByIDDelete
194+
*/
195+
public <TValue> ByProjectKeyBusinessUnitsByIDDelete addDataErasure(final Collection<TValue> dataErasure) {
196+
return copy().addQueryParams(
197+
dataErasure.stream().map(s -> new ParamEntry<>("dataErasure", s.toString())).collect(Collectors.toList()));
198+
}
199+
115200
/**
116201
* set version with the specified value
117202
* @param version value to be set

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

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
3939
public class ByProjectKeyBusinessUnitsKeyByKeyDelete extends
4040
TypeApiMethod<ByProjectKeyBusinessUnitsKeyByKeyDelete, com.commercetools.api.models.business_unit.BusinessUnit>
41-
implements com.commercetools.api.client.VersionedTrait<ByProjectKeyBusinessUnitsKeyByKeyDelete>,
41+
implements com.commercetools.api.client.DataerasureTrait<ByProjectKeyBusinessUnitsKeyByKeyDelete>,
42+
com.commercetools.api.client.VersionedTrait<ByProjectKeyBusinessUnitsKeyByKeyDelete>,
4243
com.commercetools.api.client.ConflictingTrait<ByProjectKeyBusinessUnitsKeyByKeyDelete>,
4344
com.commercetools.api.client.ExpandableTrait<ByProjectKeyBusinessUnitsKeyByKeyDelete>,
4445
com.commercetools.api.client.ErrorableTrait<ByProjectKeyBusinessUnitsKeyByKeyDelete>,
@@ -96,6 +97,10 @@ public String getKey() {
9697
return this.key;
9798
}
9899

100+
public List<String> getDataErasure() {
101+
return this.getQueryParam("dataErasure");
102+
}
103+
99104
public List<String> getVersion() {
100105
return this.getQueryParam("version");
101106
}
@@ -112,6 +117,86 @@ public void setKey(final String key) {
112117
this.key = key;
113118
}
114119

120+
/**
121+
* set dataErasure with the specified value
122+
* @param dataErasure value to be set
123+
* @param <TValue> value type
124+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
125+
*/
126+
public <TValue> ByProjectKeyBusinessUnitsKeyByKeyDelete withDataErasure(final TValue dataErasure) {
127+
return copy().withQueryParam("dataErasure", dataErasure);
128+
}
129+
130+
/**
131+
* add additional dataErasure query parameter
132+
* @param dataErasure value to be added
133+
* @param <TValue> value type
134+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
135+
*/
136+
public <TValue> ByProjectKeyBusinessUnitsKeyByKeyDelete addDataErasure(final TValue dataErasure) {
137+
return copy().addQueryParam("dataErasure", dataErasure);
138+
}
139+
140+
/**
141+
* set dataErasure with the specified value
142+
* @param supplier supplier for the value to be set
143+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
144+
*/
145+
public ByProjectKeyBusinessUnitsKeyByKeyDelete withDataErasure(final Supplier<Boolean> supplier) {
146+
return copy().withQueryParam("dataErasure", supplier.get());
147+
}
148+
149+
/**
150+
* add additional dataErasure query parameter
151+
* @param supplier supplier for the value to be added
152+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
153+
*/
154+
public ByProjectKeyBusinessUnitsKeyByKeyDelete addDataErasure(final Supplier<Boolean> supplier) {
155+
return copy().addQueryParam("dataErasure", supplier.get());
156+
}
157+
158+
/**
159+
* set dataErasure with the specified value
160+
* @param op builder for the value to be set
161+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
162+
*/
163+
public ByProjectKeyBusinessUnitsKeyByKeyDelete withDataErasure(final Function<StringBuilder, StringBuilder> op) {
164+
return copy().withQueryParam("dataErasure", op.apply(new StringBuilder()));
165+
}
166+
167+
/**
168+
* add additional dataErasure query parameter
169+
* @param op builder for the value to be added
170+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
171+
*/
172+
public ByProjectKeyBusinessUnitsKeyByKeyDelete addDataErasure(final Function<StringBuilder, StringBuilder> op) {
173+
return copy().addQueryParam("dataErasure", op.apply(new StringBuilder()));
174+
}
175+
176+
/**
177+
* set dataErasure with the specified values
178+
* @param dataErasure values to be set
179+
* @param <TValue> value type
180+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
181+
*/
182+
public <TValue> ByProjectKeyBusinessUnitsKeyByKeyDelete withDataErasure(final Collection<TValue> dataErasure) {
183+
return copy().withoutQueryParam("dataErasure")
184+
.addQueryParams(dataErasure.stream()
185+
.map(s -> new ParamEntry<>("dataErasure", s.toString()))
186+
.collect(Collectors.toList()));
187+
}
188+
189+
/**
190+
* add additional dataErasure query parameters
191+
* @param dataErasure values to be added
192+
* @param <TValue> value type
193+
* @return ByProjectKeyBusinessUnitsKeyByKeyDelete
194+
*/
195+
public <TValue> ByProjectKeyBusinessUnitsKeyByKeyDelete addDataErasure(final Collection<TValue> dataErasure) {
196+
return copy().addQueryParams(
197+
dataErasure.stream().map(s -> new ParamEntry<>("dataErasure", s.toString())).collect(Collectors.toList()));
198+
}
199+
115200
/**
116201
* set version with the specified value
117202
* @param version value to be set

0 commit comments

Comments
 (0)