Skip to content
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
28 changes: 3 additions & 25 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,15 @@
**Api changes**

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

- changed property `variantSelection` of type `ProductSelectionProductAddedMessage` to be optional
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessage` to be optional
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessage` to be optional
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessage` to be optional
- changed property `variantSelection` of type `ProductSelectionProductAddedMessagePayload` to be optional
- changed property `variantExclusion` of type `ProductSelectionProductExcludedMessagePayload` to be optional
- changed property `oldVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
- changed property `newVariantExclusion` of type `ProductSelectionVariantExclusionChangedMessagePayload` to be optional
- changed property `oldVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
- changed property `newVariantSelection` of type `ProductSelectionVariantSelectionChangedMessagePayload` to be optional
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
</details>


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

- added property `interfaceId` to type `MyTransactionDraft`
- added property `interfaceId` to type `Transaction`
- added property `interfaceId` to type `TransactionDraft`
</details>


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

- added type `PaymentTransactionInterfaceIdSetMessage`
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
- added type `PaymentSetTransactionInterfaceIdAction`
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -2021,6 +2021,7 @@ input CartDiscountValueBaseMoneyInput {

input CartDiscountValueInput {
relative: RelativeDiscountValueInput
relativeCart: RelativeCartDiscountValueInput
absolute: AbsoluteDiscountValueInput
absoluteCart: AbsoluteCartDiscountValueInput
fixed: FixedPriceDiscountValueInput
Expand Down Expand Up @@ -10963,7 +10964,7 @@ input RecurringOrderDraft {
custom: CustomFieldsDraft
cart: ResourceIdentifierInput!
cartVersion: Long!
startsAt: DateTime!
startsAt: DateTime
expiresAt: DateTime
state: ResourceIdentifierInput
recurringOrderState: RecurringOrderState
Expand Down Expand Up @@ -11117,6 +11118,17 @@ input RejectApprovalFlow {
reason: String
}

type RelativeCartDiscountValue implements CartDiscountValue {
permyriad: Int!
applicationMode: DiscountApplicationMode!
type: String!
}

input RelativeCartDiscountValueInput {
permyriad: Int!
applicationMode: DiscountApplicationMode!
}

type RelativeDiscountValue implements CartDiscountValue & ProductDiscountValue {
permyriad: Int!
type: String!
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

package com.commercetools.api.client;

import java.util.List;

import io.vrap.rmf.base.client.utils.Generated;

/**
* AttributefilteringTrait
* @param <T> type of extending interface
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface AttributefilteringTrait<T extends AttributefilteringTrait<T>> {
List<String> getFilterAttributes();

/**
* set filterAttributes with the specificied value
* @param filterAttributes value to be set
* @param <TValue> value type
* @return AttributefilteringTrait
*/
<TValue> AttributefilteringTrait<T> withFilterAttributes(final TValue filterAttributes);

/**
* add additional filterAttributes query parameter
* @param filterAttributes value to be added
* @param <TValue> value type
* @return AttributefilteringTrait
*/
<TValue> AttributefilteringTrait<T> addFilterAttributes(final TValue filterAttributes);

default AttributefilteringTrait<T> asAttributefilteringTrait() {
return this;
}

@SuppressWarnings("unchecked")
default T asAttributefilteringTraitToBaseType() {
return (T) this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet extends
com.commercetools.api.client.ProjectionselectingtailoringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
com.commercetools.api.client.AttributefilteringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
com.commercetools.api.client.ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
com.commercetools.api.client.ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet>,
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet> {
Expand Down Expand Up @@ -139,6 +140,10 @@ public List<String> getLocaleProjection() {
return this.getQueryParam("localeProjection");
}

public List<String> getFilterAttributes() {
return this.getQueryParam("filter[attributes]");
}

public List<String> getExpand() {
return this.getQueryParam("expand");
}
Expand Down Expand Up @@ -856,6 +861,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addLoc
.collect(Collectors.toList()));
}

/**
* set filterAttributes with the specified value
* @param filterAttributes value to be set
* @param <TValue> value type
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
final TValue filterAttributes) {
return copy().withQueryParam("filter[attributes]", filterAttributes);
}

/**
* add additional filterAttributes query parameter
* @param filterAttributes value to be added
* @param <TValue> value type
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
final TValue filterAttributes) {
return copy().addQueryParam("filter[attributes]", filterAttributes);
}

/**
* set filterAttributes with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
final Supplier<String> supplier) {
return copy().withQueryParam("filter[attributes]", supplier.get());
}

/**
* add additional filterAttributes query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
final Supplier<String> supplier) {
return copy().addQueryParam("filter[attributes]", supplier.get());
}

/**
* set filterAttributes with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withFilterAttributes(
final Function<StringBuilder, StringBuilder> op) {
return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
}

/**
* add additional filterAttributes query parameter
* @param op builder for the value to be added
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
final Function<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
}

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

/**
* add additional filterAttributes query parameters
* @param filterAttributes values to be added
* @param <TValue> value type
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
*/
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addFilterAttributes(
final Collection<TValue> filterAttributes) {
return copy().addQueryParams(filterAttributes.stream()
.map(s -> new ParamEntry<>("filter[attributes]", 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 @@ -42,6 +42,7 @@ public class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet exten
com.commercetools.api.client.ProjectionselectingtailoringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
com.commercetools.api.client.PriceselectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
com.commercetools.api.client.LocaleprojectingTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
com.commercetools.api.client.AttributefilteringTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
com.commercetools.api.client.ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
com.commercetools.api.client.ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet>,
com.commercetools.api.client.Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet> {
Expand Down Expand Up @@ -139,6 +140,10 @@ public List<String> getLocaleProjection() {
return this.getQueryParam("localeProjection");
}

public List<String> getFilterAttributes() {
return this.getQueryParam("filter[attributes]");
}

public List<String> getExpand() {
return this.getQueryParam("expand");
}
Expand Down Expand Up @@ -861,6 +866,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet ad
.collect(Collectors.toList()));
}

/**
* set filterAttributes with the specified value
* @param filterAttributes value to be set
* @param <TValue> value type
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
*/
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
final TValue filterAttributes) {
return copy().withQueryParam("filter[attributes]", filterAttributes);
}

/**
* add additional filterAttributes query parameter
* @param filterAttributes value to be added
* @param <TValue> value type
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
*/
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
final TValue filterAttributes) {
return copy().addQueryParam("filter[attributes]", filterAttributes);
}

/**
* set filterAttributes with the specified value
* @param supplier supplier for the value to be set
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
final Supplier<String> supplier) {
return copy().withQueryParam("filter[attributes]", supplier.get());
}

/**
* add additional filterAttributes query parameter
* @param supplier supplier for the value to be added
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
final Supplier<String> supplier) {
return copy().addQueryParam("filter[attributes]", supplier.get());
}

/**
* set filterAttributes with the specified value
* @param op builder for the value to be set
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withFilterAttributes(
final Function<StringBuilder, StringBuilder> op) {
return copy().withQueryParam("filter[attributes]", op.apply(new StringBuilder()));
}

/**
* add additional filterAttributes query parameter
* @param op builder for the value to be added
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
*/
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addFilterAttributes(
final Function<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("filter[attributes]", op.apply(new StringBuilder()));
}

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

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

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