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
34 changes: 34 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,45 @@
</details>


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

- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products`
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/key={key}`
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/key={key}`
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/key={key}`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/{ID}`
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/{ID}`
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/{ID}`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/search`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/key={key}`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/{ID}`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}`
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
</details>


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

- added type `BusinessUnitAssociateResponse`
- added type `BestDeal`
- added type `DiscountTypeCombination`
- added type `Stacking`
- added type `CustomerGroupAssignment`
- added type `CustomerGroupAssignmentDraft`
- added type `CustomerAddCustomerGroupAssignmentAction`
- added type `CustomerRemoveCustomerGroupAssignmentAction`
- added type `CustomerSetCustomerGroupAssignmentsAction`
- added type `CustomerGroupAssignmentAddedMessage`
- added type `CustomerGroupAssignmentRemovedMessage`
- added type `CustomerGroupAssignmentsSetMessage`
- added type `OrderBusinessUnitSetMessage`
- added type `CustomerGroupAssignmentAddedMessagePayload`
- added type `CustomerGroupAssignmentRemovedMessagePayload`
- added type `CustomerGroupAssignmentsSetMessagePayload`
- added type `OrderBusinessUnitSetMessagePayload`
- added type `StagedOrderSetBusinessUnitAction`
- added type `OrderSetBusinessUnitAction`
Expand Down Expand Up @@ -66,8 +97,11 @@
<summary>Added Property(s)</summary>

- added property `discountTypeCombination` to type `Cart`
- added property `customerGroupAssignments` to type `Customer`
- added property `customerGroupAssignments` to type `CustomerDraft`
- added property `discountTypeCombination` to type `StagedOrder`
- added property `discountTypeCombination` to type `Order`
- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams`
</details>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ input AddCustomerBillingAddressId {
addressKey: String
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input AddCustomerGroupAssignment {
customerGroupAssignment: CustomerGroupAssignmentDraft!
}

input AddCustomerShippingAddressId {
addressId: String
addressKey: String
Expand Down Expand Up @@ -3521,6 +3526,9 @@ type Customer implements Versioned & ReferenceExpandable {
billingAddresses: [Address!]!
storesRef: [KeyReference!]!
stores: [Store!]!

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
customerGroupAssignments: [CustomerGroupAssignment!]
custom: CustomFieldsType
id: String!
version: Long!
Expand Down Expand Up @@ -3677,6 +3685,35 @@ type CustomerGroup implements Versioned & ReferenceExpandable {
lastModifiedBy: Initiator
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CustomerGroupAssignment {
customerGroupRef: Reference
customerGroup: CustomerGroup
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CustomerGroupAssignmentAdded implements MessagePayload {
customerGroupAssignment: CustomerGroupAssignment!
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input CustomerGroupAssignmentDraft {
customerGroup: ResourceIdentifierInput!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CustomerGroupAssignmentRemoved implements MessagePayload {
customerGroupAssignment: CustomerGroupAssignment!
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CustomerGroupAssignmentsSet implements MessagePayload {
customerGroupAssignments: [CustomerGroupAssignment!]!
type: String!
}

type CustomerGroupCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
Expand Down Expand Up @@ -3910,6 +3947,9 @@ input CustomerSignUpDraft {
anonymousCart: ResourceIdentifierInput
externalId: String
customerGroup: ResourceIdentifierInput

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
customerGroupAssignments: [CustomerGroupAssignmentDraft!]
isEmailVerified: Boolean
anonymousId: String
authenticationMode: AuthenticationMode
Expand All @@ -3923,12 +3963,18 @@ type CustomerTitleSet implements MessagePayload {
input CustomerUpdateAction {
addAddress: AddCustomerAddress
addBillingAddressId: AddCustomerBillingAddressId

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
addCustomerGroupAssignment: AddCustomerGroupAssignment
addShippingAddressId: AddCustomerShippingAddressId
addStore: AddCustomerStore
changeAddress: ChangeCustomerAddress
changeEmail: ChangeCustomerEmail
removeAddress: RemoveCustomerAddress
removeBillingAddressId: RemoveCustomerBillingAddressId

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
removeCustomerGroupAssignment: RemoveCustomerGroupAssignment
removeShippingAddressId: RemoveCustomerShippingAddressId
removeStore: RemoveCustomerStore
setCompanyName: SetCustomerCompanyName
Expand All @@ -3938,6 +3984,9 @@ input CustomerUpdateAction {
setCustomField: SetCustomerCustomField
setCustomType: SetCustomerCustomType
setCustomerGroup: SetCustomerGroup

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setCustomerGroupAssignments: SetCustomerGroupAssignments
setKey: SetCustomerKey
setLocale: SetCustomerLocale
setCustomerNumber: SetCustomerNumber
Expand Down Expand Up @@ -8999,7 +9048,7 @@ type ProductVariant {
prices: [ProductPrice!]

"Returns a single price based on the price selection rules."
price(currency: Currency!, country: Country, customerGroupId: String, channelId: String, date: DateTime): ProductPrice
price(currency: Currency!, country: Country, customerGroupId: String, customerGroupAssignmentIds: [String!], channelId: String, date: DateTime): ProductPrice
images: [Image!]!
assets: [Asset!]!
availability: ProductVariantAvailabilityWithChannels
Expand Down Expand Up @@ -10050,6 +10099,11 @@ input RemoveCustomerBillingAddressId {
addressKey: String
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input RemoveCustomerGroupAssignment {
customerGroup: ResourceIdentifierInput!
}

input RemoveCustomerShippingAddressId {
addressId: String
addressKey: String
Expand Down Expand Up @@ -11289,6 +11343,11 @@ input SetCustomerGroup {
customerGroup: ResourceIdentifierInput
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input SetCustomerGroupAssignments {
customerGroupAssignments: [CustomerGroupAssignmentDraft!]!
}

input SetCustomerGroupCustomField {
name: String!
value: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ public List<String> getPriceCustomerGroup() {
return this.getQueryParam("priceCustomerGroup");
}

public List<String> getPriceCustomerGroupAssignments() {
return this.getQueryParam("priceCustomerGroupAssignments");
}

public List<String> getPriceChannel() {
return this.getQueryParam("priceChannel");
}
Expand Down Expand Up @@ -497,6 +501,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPri
.collect(Collectors.toList()));
}

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

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

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

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

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

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

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

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

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