Skip to content

Commit 679cd89

Browse files
committed
build(codegen): updating SDK
1 parent 73b7bb5 commit 679cd89

File tree

52 files changed

+2006
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2006
-94
lines changed

changes.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,15 @@
11
**Api changes**
22

33
<details>
4-
<summary>Required Property(s)</summary>
4+
<summary>Removed Property(s)</summary>
55

6-
- changed property `variantSelection` of type `ProductSelectionProductAddedMessage` to be optional
7-
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessage` to be optional
8-
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
9-
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
10-
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
11-
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
12-
- changed property `variantSelection` of type `ProductSelectionProductAddedMessagePayload` to be optional
13-
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessagePayload` to be optional
14-
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
15-
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
16-
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
17-
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
6+
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
187
</details>
198

209

2110
<details>
2211
<summary>Added Property(s)</summary>
2312

24-
- added property `interfaceId` to type `MyTransactionDraft`
25-
- added property `interfaceId` to type `Transaction`
26-
- added property `interfaceId` to type `TransactionDraft`
27-
</details>
28-
29-
30-
<details>
31-
<summary>Added Type(s)</summary>
32-
33-
- added type `PaymentTransactionInterfaceIdSetMessage`
34-
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
35-
- added type `PaymentSetTransactionInterfaceIdAction`
13+
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
3614
</details>
3715

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,6 +2021,7 @@ input CartDiscountValueBaseMoneyInput {
20212021

20222022
input CartDiscountValueInput {
20232023
relative: RelativeDiscountValueInput
2024+
relativeCart: RelativeCartDiscountValueInput
20242025
absolute: AbsoluteDiscountValueInput
20252026
absoluteCart: AbsoluteCartDiscountValueInput
20262027
fixed: FixedPriceDiscountValueInput
@@ -10963,7 +10964,7 @@ input RecurringOrderDraft {
1096310964
custom: CustomFieldsDraft
1096410965
cart: ResourceIdentifierInput!
1096510966
cartVersion: Long!
10966-
startsAt: DateTime!
10967+
startsAt: DateTime
1096710968
expiresAt: DateTime
1096810969
state: ResourceIdentifierInput
1096910970
recurringOrderState: RecurringOrderState
@@ -11117,6 +11118,17 @@ input RejectApprovalFlow {
1111711118
reason: String
1111811119
}
1111911120

11121+
type RelativeCartDiscountValue implements CartDiscountValue {
11122+
permyriad: Int!
11123+
applicationMode: DiscountApplicationMode!
11124+
type: String!
11125+
}
11126+
11127+
input RelativeCartDiscountValueInput {
11128+
permyriad: Int!
11129+
applicationMode: DiscountApplicationMode!
11130+
}
11131+
1112011132
type RelativeDiscountValue implements CartDiscountValue & ProductDiscountValue {
1112111133
permyriad: Int!
1112211134
type: String!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
package com.commercetools.api.client;
3+
4+
import java.util.List;
5+
6+
import io.vrap.rmf.base.client.utils.Generated;
7+
8+
/**
9+
* AttributefilteringTrait
10+
* @param <T> type of extending interface
11+
*/
12+
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
13+
public interface AttributefilteringTrait<T extends AttributefilteringTrait<T>> {
14+
List<String> getFilterAttributes();
15+
16+
/**
17+
* set filterAttributes with the specificied value
18+
* @param filterAttributes value to be set
19+
* @param <TValue> value type
20+
* @return AttributefilteringTrait
21+
*/
22+
<TValue> AttributefilteringTrait<T> withFilterAttributes(final TValue filterAttributes);
23+
24+
/**
25+
* add additional filterAttributes query parameter
26+
* @param filterAttributes value to be added
27+
* @param <TValue> value type
28+
* @return AttributefilteringTrait
29+
*/
30+
<TValue> AttributefilteringTrait<T> addFilterAttributes(final TValue filterAttributes);
31+
32+
default AttributefilteringTrait<T> asAttributefilteringTrait() {
33+
return this;
34+
}
35+
36+
@SuppressWarnings("unchecked")
37+
default T asAttributefilteringTraitToBaseType() {
38+
return (T) this;
39+
}
40+
41+
}

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet extends
4242
com.commercetools.api.client.ProjectionselectingtailoringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4343
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4444
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
45+
com.commercetools.api.client.AttributefilteringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4546
com.commercetools.api.client.ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4647
com.commercetools.api.client.ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
4748
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet> {
@@ -139,6 +140,10 @@ public List<String> getLocaleProjection() {
139140
return this.getQueryParam("localeProjection");
140141
}
141142

143+
public List<String> getFilterAttributes() {
144+
return this.getQueryParam("filter[attributes]");
145+
}
146+
142147
public List<String> getExpand() {
143148
return this.getQueryParam("expand");
144149
}
@@ -856,6 +861,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addLoc
856861
.collect(Collectors.toList()));
857862
}
858863

864+
/**
865+
* set filterAttributes with the specified value
866+
* @param filterAttributes value to be set
867+
* @param <TValue> value type
868+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
869+
*/
870+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
871+
final TValue filterAttributes) {
872+
return copy().withQueryParam("filter[attributes]", filterAttributes);
873+
}
874+
875+
/**
876+
* add additional filterAttributes query parameter
877+
* @param filterAttributes value to be added
878+
* @param <TValue> value type
879+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
880+
*/
881+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
882+
final TValue filterAttributes) {
883+
return copy().addQueryParam("filter[attributes]", filterAttributes);
884+
}
885+
886+
/**
887+
* set filterAttributes with the specified value
888+
* @param supplier supplier for the value to be set
889+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
890+
*/
891+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
892+
final Supplier<String> supplier) {
893+
return copy().withQueryParam("filter[attributes]", supplier.get());
894+
}
895+
896+
/**
897+
* add additional filterAttributes query parameter
898+
* @param supplier supplier for the value to be added
899+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
900+
*/
901+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
902+
final Supplier<String> supplier) {
903+
return copy().addQueryParam("filter[attributes]", supplier.get());
904+
}
905+
906+
/**
907+
* set filterAttributes with the specified value
908+
* @param op builder for the value to be set
909+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
910+
*/
911+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
912+
final Function<StringBuilder, StringBuilder> op) {
913+
return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
914+
}
915+
916+
/**
917+
* add additional filterAttributes query parameter
918+
* @param op builder for the value to be added
919+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
920+
*/
921+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
922+
final Function<StringBuilder, StringBuilder> op) {
923+
return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
924+
}
925+
926+
/**
927+
* set filterAttributes with the specified values
928+
* @param filterAttributes values to be set
929+
* @param <TValue> value type
930+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
931+
*/
932+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
933+
final Collection<TValue> filterAttributes) {
934+
return copy().withoutQueryParam("filter[attributes]")
935+
.addQueryParams(filterAttributes.stream()
936+
.map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
937+
.collect(Collectors.toList()));
938+
}
939+
940+
/**
941+
* add additional filterAttributes query parameters
942+
* @param filterAttributes values to be added
943+
* @param <TValue> value type
944+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
945+
*/
946+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
947+
final Collection<TValue> filterAttributes) {
948+
return copy().addQueryParams(filterAttributes.stream()
949+
.map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
950+
.collect(Collectors.toList()));
951+
}
952+
859953
/**
860954
* set expand with the specified value
861955
* @param expand value to be set

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet exten
4242
com.commercetools.api.client.ProjectionselectingtailoringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4343
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4444
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
45+
com.commercetools.api.client.AttributefilteringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4546
com.commercetools.api.client.ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4647
com.commercetools.api.client.ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
4748
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet> {
@@ -139,6 +140,10 @@ public List<String> getLocaleProjection() {
139140
return this.getQueryParam("localeProjection");
140141
}
141142

143+
public List<String> getFilterAttributes() {
144+
return this.getQueryParam("filter[attributes]");
145+
}
146+
142147
public List<String> getExpand() {
143148
return this.getQueryParam("expand");
144149
}
@@ -861,6 +866,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet ad
861866
.collect(Collectors.toList()));
862867
}
863868

869+
/**
870+
* set filterAttributes with the specified value
871+
* @param filterAttributes value to be set
872+
* @param <TValue> value type
873+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
874+
*/
875+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
876+
final TValue filterAttributes) {
877+
return copy().withQueryParam("filter[attributes]", filterAttributes);
878+
}
879+
880+
/**
881+
* add additional filterAttributes query parameter
882+
* @param filterAttributes value to be added
883+
* @param <TValue> value type
884+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
885+
*/
886+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
887+
final TValue filterAttributes) {
888+
return copy().addQueryParam("filter[attributes]", filterAttributes);
889+
}
890+
891+
/**
892+
* set filterAttributes with the specified value
893+
* @param supplier supplier for the value to be set
894+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
895+
*/
896+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
897+
final Supplier<String> supplier) {
898+
return copy().withQueryParam("filter[attributes]", supplier.get());
899+
}
900+
901+
/**
902+
* add additional filterAttributes query parameter
903+
* @param supplier supplier for the value to be added
904+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
905+
*/
906+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
907+
final Supplier<String> supplier) {
908+
return copy().addQueryParam("filter[attributes]", supplier.get());
909+
}
910+
911+
/**
912+
* set filterAttributes with the specified value
913+
* @param op builder for the value to be set
914+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
915+
*/
916+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
917+
final Function<StringBuilder, StringBuilder> op) {
918+
return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
919+
}
920+
921+
/**
922+
* add additional filterAttributes query parameter
923+
* @param op builder for the value to be added
924+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
925+
*/
926+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
927+
final Function<StringBuilder, StringBuilder> op) {
928+
return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
929+
}
930+
931+
/**
932+
* set filterAttributes with the specified values
933+
* @param filterAttributes values to be set
934+
* @param <TValue> value type
935+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
936+
*/
937+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
938+
final Collection<TValue> filterAttributes) {
939+
return copy().withoutQueryParam("filter[attributes]")
940+
.addQueryParams(filterAttributes.stream()
941+
.map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
942+
.collect(Collectors.toList()));
943+
}
944+
945+
/**
946+
* add additional filterAttributes query parameters
947+
* @param filterAttributes values to be added
948+
* @param <TValue> value type
949+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
950+
*/
951+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
952+
final Collection<TValue> filterAttributes) {
953+
return copy().addQueryParams(filterAttributes.stream()
954+
.map(s -> new ParamEntry<>("filter[attributes]", s.toString()))
955+
.collect(Collectors.toList()));
956+
}
957+
864958
/**
865959
* set expand with the specified value
866960
* @param expand value to be set

0 commit comments

Comments
 (0)