diff --git a/changes.md b/changes.md
index 662adc79ee2..924fcbf460d 100644
--- a/changes.md
+++ b/changes.md
@@ -1,213 +1,110 @@
**Api changes**
-Added Type(s)
-
-- added type `BulkOperationMaxItemsExceededError`
-- added type `OverlappingPriceValidityError`
-- added type `GraphQLBulkOperationMaxItemsExceededError`
-- added type `GraphQLOverlappingPriceValidityError`
-- added type `CartLockedMessage`
-- added type `CartUnlockedMessage`
-- added type `VariantCreatedMessage`
-- added type `VariantDeletedMessage`
-- added type `VariantImageAddedMessage`
-- added type `VariantImagesSetMessage`
-- added type `VariantKeySetMessage`
-- added type `VariantPublishedMessage`
-- added type `VariantSkuSetMessage`
-- added type `VariantStagedChangesRemovedMessage`
-- added type `VariantUnpublishedMessage`
-- added type `CartLockedMessagePayload`
-- added type `CartUnlockedMessagePayload`
-- added type `VariantCreatedMessagePayload`
-- added type `VariantDeletedMessagePayload`
-- added type `VariantImageAddedMessagePayload`
-- added type `VariantImagesSetMessagePayload`
-- added type `VariantKeySetMessagePayload`
-- added type `VariantPublishedMessagePayload`
-- added type `VariantSkuSetMessagePayload`
-- added type `VariantStagedChangesRemovedMessagePayload`
-- added type `VariantUnpublishedMessagePayload`
-- added type `ProductSetDefaultVariantAction`
-- added type `ProductCatalogModel`
-- added type `ProjectSetProductCatalogModelAction`
-- added type `ShippingMethodAddStoreAction`
-- added type `ShippingMethodRemoveStoreAction`
-- added type `ShippingMethodSetStoresAction`
-- added type `VariantAttributes`
-- added type `VariantAttributesAttributeMetadata`
-- added type `VariantAttributesAvailability`
-- added type `VariantAttributesChannelAvailability`
-- added type `VariantAttributesChannelAvailabilityMap`
-- added type `VariantAttributesVariant`
-- added type `Variant`
-- added type `VariantBulkUpdate`
-- added type `VariantBulkUpdateFailResult`
-- added type `VariantBulkUpdateItem`
-- added type `VariantBulkUpdateResource`
-- added type `VariantBulkUpdateResponse`
-- added type `VariantBulkUpdateResult`
-- added type `VariantBulkUpdateSuccessResult`
-- added type `VariantData`
-- added type `VariantDraft`
-- added type `VariantPagedQueryResponse`
-- added type `VariantProjection`
-- added type `VariantProjectionPagedQueryResponse`
-- added type `VariantReference`
-- added type `VariantResourceIdentifier`
-- added type `VariantUpdate`
-- added type `VariantUpdateAction`
-- added type `VariantAddAssetAction`
-- added type `VariantAddExternalImageAction`
-- added type `VariantChangeAssetNameAction`
-- added type `VariantChangeAssetOrderAction`
-- added type `VariantPublishAction`
-- added type `VariantRemoveAssetAction`
-- added type `VariantRemoveImageAction`
-- added type `VariantRemoveStagedChangesAction`
-- added type `VariantSetAssetCustomFieldAction`
-- added type `VariantSetAssetCustomTypeAction`
-- added type `VariantSetAssetDescriptionAction`
-- added type `VariantSetAssetKeyAction`
-- added type `VariantSetAssetSourcesAction`
-- added type `VariantSetAssetTagsAction`
-- added type `VariantSetAssetsAction`
-- added type `VariantSetAttributeAction`
-- added type `VariantSetAttributesAction`
-- added type `VariantSetImagesAction`
-- added type `VariantSetKeyAction`
-- added type `VariantSetSkuAction`
-- added type `VariantUnpublishAction`
-
-
-
-
-Added QueryParameter(s)
-
-- added query parameter `dataErasure` to method `delete /{projectKey}/business-units/key={key}`
-- added query parameter `dataErasure` to method `delete /{projectKey}/business-units/{ID}`
-- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/key={key}`
-- added query parameter `dataErasure` to method `delete /{projectKey}/in-store/key={storeKey}/business-units/{ID}`
-
-
-
-
-Added Resource(s)
+Added Method(s)
-- added resource `/{projectKey}/variant-projections`
-- added resource `/{projectKey}/variants`
-- added resource `/{projectKey}/product-projections/key={key}/variant-attributes`
-- added resource `/{projectKey}/product-projections/{ID}/variant-attributes`
-- added resource `/{projectKey}/variant-projections/key={key}`
-- added resource `/{projectKey}/variant-projections/{ID}`
-- added resource `/{projectKey}/variants/bulk`
-- added resource `/{projectKey}/variants/key={key}`
-- added resource `/{projectKey}/variants/{ID}`
-- added resource `/{projectKey}/in-store/key={storeKey}/variant-projections`
-- added resource `/{projectKey}/in-store/key={storeKey}/product-projections/key={key}/variant-attributes`
-- added resource `/{projectKey}/in-store/key={storeKey}/product-projections/{ID}/variant-attributes`
-- added resource `/{projectKey}/in-store/key={storeKey}/variant-projections/key={key}`
-- added resource `/{projectKey}/in-store/key={storeKey}/variant-projections/{ID}`
+- added method `apiRoot.withProjectKey().mcpServers().get()`
+- added method `apiRoot.withProjectKey().mcpServers().post()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().get()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().head()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().get()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withKey().head()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().get()`
+- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().discountCodes().withId().head()`
+- added method `apiRoot.withProjectKey().mcpServers().types().get()`
+- added method `apiRoot.withProjectKey().mcpServers().withKey().get()`
+- added method `apiRoot.withProjectKey().mcpServers().withKey().post()`
+- added method `apiRoot.withProjectKey().mcpServers().withKey().delete()`
+- added method `apiRoot.withProjectKey().mcpServers().withId().get()`
+- added method `apiRoot.withProjectKey().mcpServers().withId().post()`
+- added method `apiRoot.withProjectKey().mcpServers().withId().delete()`
+- added method `apiRoot.withProjectKey().mcpServers().types().withMcpServerType().get()`
Added Property(s)
-- added property `defaultVariant` to type `ProductData`
-- added property `productCatalogModel` to type `Project`
-- added property `stores` to type `ShippingMethod`
-- added property `stores` to type `ShippingMethodDraft`
+- added property `stores` to type `DiscountCode`
-Added Method(s)
+Added Type(s)
-- added method `apiRoot.withProjectKey().variantProjections().get()`
-- added method `apiRoot.withProjectKey().variantProjections().head()`
-- added method `apiRoot.withProjectKey().variants().get()`
-- added method `apiRoot.withProjectKey().variants().post()`
-- added method `apiRoot.withProjectKey().variants().head()`
-- added method `apiRoot.withProjectKey().productProjections().withKey().variantAttributes().get()`
-- added method `apiRoot.withProjectKey().productProjections().withId().variantAttributes().get()`
-- added method `apiRoot.withProjectKey().variantProjections().withKey().get()`
-- added method `apiRoot.withProjectKey().variantProjections().withKey().head()`
-- added method `apiRoot.withProjectKey().variantProjections().withId().get()`
-- added method `apiRoot.withProjectKey().variantProjections().withId().head()`
-- added method `apiRoot.withProjectKey().variants().bulk().post()`
-- added method `apiRoot.withProjectKey().variants().withKey().get()`
-- added method `apiRoot.withProjectKey().variants().withKey().head()`
-- added method `apiRoot.withProjectKey().variants().withKey().post()`
-- added method `apiRoot.withProjectKey().variants().withKey().delete()`
-- added method `apiRoot.withProjectKey().variants().withId().get()`
-- added method `apiRoot.withProjectKey().variants().withId().head()`
-- added method `apiRoot.withProjectKey().variants().withId().post()`
-- added method `apiRoot.withProjectKey().variants().withId().delete()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().get()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withKey().variantAttributes().get()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withId().variantAttributes().get()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withKey().get()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withId().get()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().variantProjections().withId().head()`
+- added type `UnauthorizedError`
+- added type `GraphQLUnauthorizedError`
+- added type `CommerceMcpServerConfig`
+- added type `CommerceMcpServerConfigDraft`
+- added type `McpServer`
+- added type `McpServerConfig`
+- added type `McpServerConfigDraft`
+- added type `McpServerDraft`
+- added type `McpServerJsonOutputFiltering`
+- added type `McpServerJsonOutputFilteringMatcher`
+- added type `McpServerPagedQueryResponse`
+- added type `McpServerState`
+- added type `McpServerTool`
+- added type `McpServerToolOutputFormatting`
+- added type `McpServerType`
+- added type `McpServerTypeTool`
+- added type `McpServerUpdate`
+- added type `McpServerUpdateAction`
+- added type `ParameterOverride`
+- added type `RemoveToolCustomizationTarget`
+- added type `ToolCustomization`
+- added type `McpServerAddToolAction`
+- added type `McpServerAddToolCustomizationAction`
+- added type `McpServerRemoveToolAction`
+- added type `McpServerRemoveToolCustomizationAction`
+- added type `McpServerSetDescriptionAction`
+- added type `McpServerSetJsonOutputFilteringAction`
+- added type `McpServerSetNameAction`
+- added type `McpServerSetStateAction`
+- added type `McpServerSetToolCustomizationsAction`
+- added type `McpServerSetToolOutputFormattingAction`
+- added type `McpServerSetToolsAction`
+- added type `ProductTailoringKeySetMessage`
+- added type `ProductTailoringKeySetMessagePayload`
+- added type `ProductTailoringSetKeyAction`
Added Enum(s)
-- added enum `variant` to type `ReferenceTypeId`
-
-
-**Import changes**
-
-
-Added Type(s)
-
-- added type `VariantImportRequest`
-- added type `VariantImport`
+- added enum `variant` to type `AttributeReferenceTypeId`
+- added enum `variant` to type `CustomFieldReferenceValue`
Added Resource(s)
-- added resource `/{projectKey}/variants`
-- added resource `/{projectKey}/variants/import-containers`
-- added resource `/{projectKey}/variants/import-containers/{importContainerKey}`
-
-
-
-
-Added Method(s)
-
-- added method `apiRoot.withProjectKeyValue().variants().importContainers().withImportContainerKeyValue().post()`
+- added resource `/{projectKey}/mcp-servers`
+- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes`
+- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/key={key}`
+- added resource `/{projectKey}/in-store/key={storeKey}/discount-codes/{ID}`
+- added resource `/{projectKey}/mcp-servers/types`
+- added resource `/{projectKey}/mcp-servers/key={key}`
+- added resource `/{projectKey}/mcp-servers/{ID}`
+- added resource `/{projectKey}/mcp-servers/types/{mcpServerType}`
+**History changes**
-Added Enum(s)
-
-- added enum `variant` to type `ImportResourceType`
-- added enum `variant` to type `ReferenceType`
-
-
-**Checkout changes**
-
-
-Changed MethodResponseBody(s)
+Added QueryParameter(s)
-- :warning: changed response body for `200: application/json` of method `post /{projectKey}/payment-intents/{paymentId}` from type `any` to `PaymentIntentResponse`
+- added query parameter `withTotal` to method `get /{projectKey}`
+- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}`
+- added query parameter `withTotal` to method `get /{projectKey}/{resourceType}/{ID}`
-Added Type(s)
+Required Property(s)
-- added type `PaymentIntentOutcome`
-- added type `PaymentIntentResponse`
+- changed property `total` of type `RecordPagedQueryResponse` to be optional
diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
index 6d69029b652..046101b0183 100644
--- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
+++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
@@ -1787,6 +1787,20 @@ type CommerceMcpServerConfig implements McpServerConfig {
toolOutputFormatting: McpServerToolOutputFormatting
}
+"""
+Skeleton shopper-facing MCP server config. Carries only the shared
+`McpServerConfig` fields — no response-shaping (`jsonOutputFiltering`,
+`toolOutputFormatting`) yet, as the skeleton exposes a single demo tool.
+Those fields can be added later without breaking existing clients.
+"""
+type UcpShopperMcpServerConfig implements McpServerConfig {
+ type: McpServerType!
+ majorVersion: String!
+ url: String!
+ tools: [String!]!
+ toolCustomizations: [ToolCustomization!]!
+}
+
"""
Customization applied to a single tool at `tools/list` and `tools/call`
time. At least one of `description` or a non-empty `parameters` list MUST
@@ -1830,8 +1844,8 @@ type McpServerTypeCatalogEntry {
type McpServerCatalogTool {
name: String!
description: String
- operationType: McpToolOperationType!
- groups: [String!]!
+ operationType: McpToolOperationType
+ groups: [String!]
}
type Product implements Versioned & ReviewTarget & ReferenceExpandable {
@@ -3178,6 +3192,12 @@ type CartDiscountVisualizationSearchConfiguration {
lastModifiedAt: DateTime!
}
+type CartEstimatedDeliverySet implements MessagePayload {
+ estimatedDelivery: EstimatedDelivery
+ shippingKey: String
+ type: String!
+}
+
type CartFrozen implements MessagePayload {
type: String!
}
@@ -4494,6 +4514,11 @@ type EnumValue {
label: String!
}
+type EstimatedDelivery {
+ from: DateTime
+ until: DateTime
+}
+
type EventBridgeDestination implements Destination {
source: String!
region: String!
@@ -5840,6 +5865,12 @@ type OrderEditQueryResult {
results: [OrderEdit!]!
}
+type OrderEstimatedDeliverySet implements MessagePayload & OrderMessagePayload {
+ estimatedDelivery: EstimatedDelivery
+ shippingKey: String
+ type: String!
+}
+
type OrderExcerpt {
totalPrice: Money!
taxedPrice: TaxedPrice
@@ -7518,6 +7549,15 @@ type ProductTailoringImagesSet implements MessagePayload {
type: String!
}
+type ProductTailoringKeySet implements MessagePayload {
+ key: String
+ oldKey: String
+ storeRef: KeyReference!
+ productRef: Reference!
+ productKey: String
+ type: String!
+}
+
type ProductTailoringNameSet implements MessagePayload {
storeRef: KeyReference!
productRef: Reference!
@@ -8711,6 +8751,7 @@ type SetStagedOrderCustomShippingMethodOutput implements StagedOrderUpdateAction
taxCategoryResId: ResourceIdentifier
externalTaxRate: ExternalTaxRateDraftOutput
custom: CustomFieldsCommand
+ estimatedDelivery: EstimatedDelivery
}
type SetStagedOrderCustomTypeOutput implements StagedOrderUpdateActionOutput {
@@ -8782,6 +8823,12 @@ type SetStagedOrderDirectDiscountsOutput implements StagedOrderUpdateActionOutpu
discounts: [DirectDiscountDraftOutput!]!
}
+type SetStagedOrderEstimatedDeliveryOutput implements StagedOrderUpdateActionOutput {
+ type: String!
+ estimatedDelivery: EstimatedDelivery
+ shippingKey: String
+}
+
type SetStagedOrderItemShippingAddressCustomFieldOutput implements StagedOrderUpdateActionOutput {
type: String!
addressKey: String!
@@ -8995,6 +9042,7 @@ type SetStagedOrderShippingMethodOutput implements StagedOrderUpdateActionOutput
type: String!
shippingMethodResId: ResourceIdentifier
externalTaxRate: ExternalTaxRateDraftOutput
+ estimatedDelivery: EstimatedDelivery
}
type SetStagedOrderShippingMethodTaxAmountOutput implements StagedOrderUpdateActionOutput {
@@ -9046,6 +9094,7 @@ type ShippingInfo {
deliveries: [Delivery!]!
discountedPrice: DiscountedLineItemPrice
shippingMethodState: ShippingMethodState!
+ estimatedDelivery: EstimatedDelivery
shippingMethod: ShippingMethod
shippingMethodRef: Reference
taxCategory: TaxCategory
@@ -9060,6 +9109,7 @@ type ShippingMethod implements Versioned & ReferenceExpandable {
isDefault: Boolean!
predicate: String
key: String
+ carrier: String
taxCategoryRef: Reference
localizedDescriptionAllLocales: [LocalizedString!]
localizedNameAllLocales: [LocalizedString!]
@@ -9599,6 +9649,7 @@ type Store implements Versioned & ReferenceExpandable {
distributionChannels: [Channel!]!
supplyChannelsRef: [Reference!]!
supplyChannels: [Channel!]!
+ storefront: Storefront
createdAt: DateTime!
lastModifiedAt: DateTime!
custom: CustomFieldsType
@@ -9606,6 +9657,21 @@ type Store implements Versioned & ReferenceExpandable {
lastModifiedBy: Initiator
}
+type StoreCheckoutUrlTemplateSet implements MessagePayload {
+ checkoutUrlTemplate: String
+ type: String!
+}
+
+type StoreContactUrlSet implements MessagePayload {
+ contactUrl: String
+ type: String!
+}
+
+type StoreCookiePolicyUrlSet implements MessagePayload {
+ cookiePolicyUrl: String
+ type: String!
+}
+
type StoreCountriesChanged implements MessagePayload {
addedCountries: [StoreCountry!]
removedCountries: [StoreCountry!]
@@ -9633,6 +9699,7 @@ type StoreCreated implements MessagePayload {
distributionChannels: [Channel!]!
supplyChannels: [Channel!]!
countries: [StoreCountry!]
+ storefront: Storefront
distributionChannelsRef: [Reference!]!
supplyChannelsRef: [Reference!]!
productSelectionsRef: [Reference!]!
@@ -9652,6 +9719,16 @@ type StoreDistributionChannelsChanged implements MessagePayload {
type: String!
}
+type StoreFaqUrlSet implements MessagePayload {
+ faqUrl: String
+ type: String!
+}
+
+type StoreImprintUrlSet implements MessagePayload {
+ imprintUrl: String
+ type: String!
+}
+
type StoreLanguagesChanged implements MessagePayload {
addedLanguages: [Locale!]
removedLanguages: [Locale!]
@@ -9686,6 +9763,16 @@ type StoreNameSet implements MessagePayload {
type: String!
}
+type StoreOrderUrlTemplateSet implements MessagePayload {
+ orderUrlTemplate: String
+ type: String!
+}
+
+type StorePrivacyPolicyUrlSet implements MessagePayload {
+ privacyPolicyUrl: String
+ type: String!
+}
+
type StoreProductSelectionsChanged implements MessagePayload {
addedProductSelections: [ProductSelectionSetting!]
removedProductSelections: [ProductSelectionSetting!]
@@ -9701,6 +9788,16 @@ type StoreQueryResult {
results: [Store!]!
}
+type StoreRefundPolicyUrlSet implements MessagePayload {
+ refundPolicyUrl: String
+ type: String!
+}
+
+type StoreShippingPolicyUrlSet implements MessagePayload {
+ shippingPolicyUrl: String
+ type: String!
+}
+
type StoreSupplyChannelsChanged implements MessagePayload {
addedSupplyChannels: [Channel!]
removedSupplyChannels: [Channel!]
@@ -9709,6 +9806,24 @@ type StoreSupplyChannelsChanged implements MessagePayload {
type: String!
}
+type StoreTermsOfServiceUrlSet implements MessagePayload {
+ termsOfServiceUrl: String
+ type: String!
+}
+
+type Storefront {
+ checkoutUrlTemplate: String
+ orderUrlTemplate: String
+ termsOfServiceUrl: String
+ privacyPolicyUrl: String
+ refundPolicyUrl: String
+ shippingPolicyUrl: String
+ cookiePolicyUrl: String
+ imprintUrl: String
+ faqUrl: String
+ contactUrl: String
+}
+
type StringAttribute implements Attribute {
value: String!
name: String!
@@ -10763,9 +10878,11 @@ interface ShippingRatePriceTier {
enum AttributionSource {
Export
Import
+ ManagedCommerceMCP
}
enum McpServerType {
CommerceMCP
+ UCPShopperMCP
}
enum McpServerAuthenticationMode {
CommercetoolsIdentity
@@ -11493,6 +11610,7 @@ input McpServerDraft {
input McpServerConfigDraft {
commerce: CommerceMcpServerConfigDraft
+ ucpShopper: UcpShopperMcpServerConfigDraft
}
input CommerceMcpServerConfigDraft {
@@ -11503,6 +11621,17 @@ input CommerceMcpServerConfigDraft {
toolOutputFormatting: McpServerToolOutputFormatting
}
+"""
+Draft for a shopper-facing UCP MCP server. Mirrors the shared fields of
+`CommerceMcpServerConfigDraft` without the response-shaping options the
+skeleton does not yet support.
+"""
+input UcpShopperMcpServerConfigDraft {
+ majorVersion: String!
+ tools: [String!]!
+ toolCustomizations: [ToolCustomizationDraft!]
+}
+
"""
Draft for `ToolCustomization`. At least one of `description` or a
non-empty `parameters` list MUST be present; parameter names within
@@ -11963,6 +12092,7 @@ input AddCartShippingMethod {
shippingRateInput: ShippingRateInputDraft
custom: CustomFieldsDraft
deliveries: [DeliveryDraft!] = []
+ estimatedDelivery: EstimatedDeliveryDraft
}
input AddCartShoppingList {
@@ -12852,6 +12982,7 @@ input CartUpdateAction {
setCustomerId: SetCartCustomerId
setDeleteDaysAfterLastModification: SetCartDeleteDaysAfterLastModification
setDirectDiscounts: SetCartDirectDiscounts
+ setEstimatedDelivery: SetCartEstimatedDelivery
setItemShippingAddressCustomField: SetCartItemShippingAddressCustomField
setItemShippingAddressCustomType: SetCartItemShippingAddressCustomType
setLineItemCustomField: SetCartLineItemCustomField
@@ -13682,6 +13813,7 @@ input CreateStore {
supplyChannels: [ResourceIdentifierInput!]
productSelections: [ProductSelectionSettingDraft!]
custom: CustomFieldsDraft
+ storefront: StorefrontInput
}
input CreateZone {
@@ -14099,6 +14231,11 @@ input EnumValueInput {
label: String!
}
+input EstimatedDeliveryDraft {
+ from: DateTime
+ until: DateTime
+}
+
input EventBridgeDestinationInput {
region: String!
accountId: String!
@@ -15320,6 +15457,7 @@ input ProductTailoringUpdateAction {
setAttributeInAllVariants: SetProductTailoringAttributeInAllVariants
setDescription: SetProductTailoringDescription
setImageLabel: SetProductTailoringImageLabel
+ setKey: SetProductTailoringKey
setMetaAttributes: SetProductTailoringMetaAttributes
setMetaDescription: SetProductTailoringMetaDescription
setMetaKeywords: SetProductTailoringMetaKeywords
@@ -16336,6 +16474,7 @@ input SetCartCustomShippingMethod {
taxCategory: ResourceIdentifierInput
externalTaxRate: ExternalTaxRateDraft
custom: CustomFieldsDraft
+ estimatedDelivery: EstimatedDeliveryDraft
}
input SetCartCustomType {
@@ -16411,6 +16550,11 @@ input SetCartDiscountValidUntil {
validUntil: DateTime
}
+input SetCartEstimatedDelivery {
+ estimatedDelivery: EstimatedDeliveryDraft
+ shippingKey: String
+}
+
input SetCartItemShippingAddressCustomField {
addressKey: String!
name: String!
@@ -16543,6 +16687,7 @@ input SetCartShippingCustomType {
input SetCartShippingMethod {
shippingMethod: ResourceIdentifierInput
externalTaxRate: ExternalTaxRateDraft
+ estimatedDelivery: EstimatedDeliveryDraft
}
input SetCartShippingMethodTaxAmount {
@@ -17758,6 +17903,10 @@ input SetProductTailoringImages {
staged: Boolean = true
}
+input SetProductTailoringKey {
+ key: String
+}
+
input SetProductTailoringMetaAttributes {
metaDescription: [LocalizedStringItemInputType!]
metaKeywords: [LocalizedStringItemInputType!]
@@ -17996,6 +18145,10 @@ input SetSearchKeywords {
staged: Boolean
}
+input SetShippingMethodCarrier {
+ carrier: String
+}
+
input SetShippingMethodCustomField {
name: String!
value: String
@@ -18185,6 +18338,7 @@ input SetStagedOrderCustomShippingMethod {
taxCategory: ResourceIdentifierInput
externalTaxRate: ExternalTaxRateDraft
custom: CustomFieldsDraft
+ estimatedDelivery: EstimatedDeliveryDraft
}
input SetStagedOrderCustomType {
@@ -18254,6 +18408,11 @@ input SetStagedOrderDirectDiscounts {
discounts: [DirectDiscountDraft!]!
}
+input SetStagedOrderEstimatedDelivery {
+ estimatedDelivery: EstimatedDeliveryDraft
+ shippingKey: String
+}
+
input SetStagedOrderItemShippingAddressCustomField {
addressKey: String!
name: String!
@@ -18453,6 +18612,7 @@ input SetStagedOrderShippingCustomType {
input SetStagedOrderShippingMethod {
shippingMethod: ResourceIdentifierInput
externalTaxRate: ExternalTaxRateDraft
+ estimatedDelivery: EstimatedDeliveryDraft
}
input SetStagedOrderShippingMethodTaxAmount {
@@ -18539,6 +18699,18 @@ input SetStateTransitions {
transitions: [ResourceIdentifierInput!]
}
+input SetStoreCheckoutUrlTemplate {
+ checkoutUrlTemplate: String
+}
+
+input SetStoreContactUrl {
+ contactUrl: String
+}
+
+input SetStoreCookiePolicyUrl {
+ cookiePolicyUrl: String
+}
+
input SetStoreCountries {
countries: [StoreCountryInput!]
}
@@ -18559,6 +18731,14 @@ input SetStoreDistributionChannels {
distributionChannels: [ResourceIdentifierInput!]
}
+input SetStoreFaqUrl {
+ faqUrl: String
+}
+
+input SetStoreImprintUrl {
+ imprintUrl: String
+}
+
input SetStoreLanguages {
languages: [Locale!]
}
@@ -18567,14 +18747,34 @@ input SetStoreName {
name: [LocalizedStringItemInputType!]
}
+input SetStoreOrderUrlTemplate {
+ orderUrlTemplate: String
+}
+
+input SetStorePrivacyPolicyUrl {
+ privacyPolicyUrl: String
+}
+
input SetStoreProductSelections {
productSelections: [ProductSelectionSettingInActionInput!]
}
+input SetStoreRefundPolicyUrl {
+ refundPolicyUrl: String
+}
+
+input SetStoreShippingPolicyUrl {
+ shippingPolicyUrl: String
+}
+
input SetStoreSupplyChannels {
supplyChannels: [ResourceIdentifierInput!]
}
+input SetStoreTermsOfServiceUrl {
+ termsOfServiceUrl: String
+}
+
input SetSubscriptionChanges {
changes: [ChangeSubscriptionInput!]!
}
@@ -18756,6 +18956,7 @@ input ShippingMethodDraft {
key: String
custom: CustomFieldsDraft
stores: [ResourceIdentifierInput!]
+ carrier: String
}
input ShippingMethodTargetDraft {
@@ -18779,6 +18980,7 @@ input ShippingMethodUpdateAction {
removeStore: RemoveShippingMethodStore
removeShippingRate: RemoveShippingMethodShippingRate
removeZone: RemoveShippingMethodZone
+ setCarrier: SetShippingMethodCarrier
setCustomField: SetShippingMethodCustomField
setCustomType: SetShippingMethodCustomType
"""This action is deprecated in favor of using 'setLocalizedDescription'"""
@@ -18970,6 +19172,7 @@ input StagedOrderUpdateAction {
setDeliveryCustomType: SetStagedOrderDeliveryCustomType
setDeliveryItems: SetStagedOrderDeliveryItems
setDirectDiscounts: SetStagedOrderDirectDiscounts
+ setEstimatedDelivery: SetStagedOrderEstimatedDelivery
setItemShippingAddressCustomField: SetStagedOrderItemShippingAddressCustomField
setItemShippingAddressCustomType: SetStagedOrderItemShippingAddressCustomType
setLineItemCustomField: SetStagedOrderLineItemCustomField
@@ -19105,13 +19308,36 @@ input StoreUpdateAction {
removeDistributionChannel: RemoveStoreDistributionChannel
removeSupplyChannel: RemoveStoreSupplyChannel
setProductSelections: SetStoreProductSelections
+ setCheckoutUrlTemplate: SetStoreCheckoutUrlTemplate
+ setContactUrl: SetStoreContactUrl
+ setCookiePolicyUrl: SetStoreCookiePolicyUrl
setCountries: SetStoreCountries
setCustomField: SetStoreCustomField
setCustomType: SetStoreCustomType
setDistributionChannels: SetStoreDistributionChannels
+ setFaqUrl: SetStoreFaqUrl
+ setImprintUrl: SetStoreImprintUrl
setLanguages: SetStoreLanguages
setName: SetStoreName
+ setOrderUrlTemplate: SetStoreOrderUrlTemplate
+ setPrivacyPolicyUrl: SetStorePrivacyPolicyUrl
+ setRefundPolicyUrl: SetStoreRefundPolicyUrl
+ setShippingPolicyUrl: SetStoreShippingPolicyUrl
setSupplyChannels: SetStoreSupplyChannels
+ setTermsOfServiceUrl: SetStoreTermsOfServiceUrl
+}
+
+input StorefrontInput {
+ checkoutUrlTemplate: String
+ orderUrlTemplate: String
+ termsOfServiceUrl: String
+ privacyPolicyUrl: String
+ refundPolicyUrl: String
+ shippingPolicyUrl: String
+ cookiePolicyUrl: String
+ imprintUrl: String
+ faqUrl: String
+ contactUrl: String
}
input SubRateDraft {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java
index a78b16f103d..6633a647c15 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPost.java
@@ -20,13 +20,20 @@
import tools.jackson.core.type.TypeReference;
/**
- *
Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request. Creating a Cart can fail with an InvalidOperation if the referenced ShippingMethod in the CartDraft has a predicate that does not match the Cart.
+ * Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request.
* Specific Error Codes:
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java
index 879398083f3..e55295642aa 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsPostString.java
@@ -21,13 +21,20 @@
import tools.jackson.core.type.TypeReference;
/**
- * Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request. Creating a Cart can fail with an InvalidOperation if the referenced ShippingMethod in the CartDraft has a predicate that does not match the Cart.
+ * Creates a Cart in the BusinessUnit referenced by businessUnitKey. As such, the businessUnit field on CartDraft is ignored for this request.
* Specific Error Codes:
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java
index 2070f8535bd..346e1a9ce64 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePost.java
@@ -17,6 +17,14 @@
/**
* Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.
+ *
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
+ *
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java
index a31b98a4a42..8d0c4bd001a 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdMergePostString.java
@@ -18,6 +18,14 @@
/**
*
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.
+ *
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
+ *
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java
index f8c4e289fc1..fbd0a6ec7fb 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPost.java
@@ -21,13 +21,6 @@
/**
*
Creates a Cart in the Project.
- *
An InvalidOperation error is returned in one of the following cases:
- *
- * - If the referenced Shipping Method has a predicate that does not match the Cart.
- * - If the referenced Shipping Method is not active.
- * - If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
- * - If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.
- *
*
When using InventoryMode ReserveOnCart:
*
* - If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.
@@ -39,6 +32,13 @@
* - InvalidItemShippingDetails
* - MatchingPriceNotFound
* - MissingTaxRateForCountry
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method has a predicate that does not match the Cart.
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java
index 477db8d27ad..ae16e8eb445 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsPostString.java
@@ -22,13 +22,6 @@
/**
*
Creates a Cart in the Project.
- *
An InvalidOperation error is returned in one of the following cases:
- *
- * - If the referenced Shipping Method has a predicate that does not match the Cart.
- * - If the referenced Shipping Method is not active.
- * - If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
- * - If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.
- *
*
When using InventoryMode ReserveOnCart:
*
* - If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.
@@ -40,6 +33,13 @@
* - InvalidItemShippingDetails
* - MatchingPriceNotFound
* - MissingTaxRateForCountry
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method has a predicate that does not match the Cart.
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java
index b0e630be5ea..5bbae0c1a9c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePost.java
@@ -18,6 +18,14 @@
/**
*
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
*
If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.
+ *
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
+ *
*
For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java
index 23be856c897..d50011f9471 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString.java
@@ -19,6 +19,14 @@
/**
*
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart.
*
If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.
+ *
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
+ *
*
For more information about merge mode behaviors, merge rules, and tax recalculation, see Merge a Cart.
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java
index 80c33cc0d13..6449fe84fd2 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPost.java
@@ -21,12 +21,6 @@
/**
*
Creates a Cart in a Store.
- *
An InvalidOperation error is returned in one of the following cases:
- *
- * - If the referenced Shipping Method has a predicate that does not match the Cart.
- * - If the referenced Shipping Method is not active.
- * - If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
- *
*
Specific Error Codes:
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java
index ec92ac14448..96c0ecf28f7 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsPostString.java
@@ -22,12 +22,6 @@
/**
*
Creates a Cart in a Store.
- *
An InvalidOperation error is returned in one of the following cases:
- *
- * - If the referenced Shipping Method has a predicate that does not match the Cart.
- * - If the referenced Shipping Method is not active.
- * - If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
- *
*
Specific Error Codes:
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java
new file mode 100644
index 00000000000..8548585ecad
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet.java
@@ -0,0 +1,228 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .discountCodes()
+ * .withId("{ID}")
+ * .get()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet extends
+ TypeApiMethod
+ implements com.commercetools.api.client.ExpandableTrait,
+ com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String storeKey;
+ private String ID;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(final ApiHttpClient apiHttpClient, String projectKey,
+ String storeKey, String ID) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ this.ID = ID;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.storeKey = t.storeKey;
+ this.ID = t.ID;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/%s", encodePathParam(this.projectKey),
+ encodePathParam(this.storeKey), encodePathParam(this.ID));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(
+ final ApiHttpClient client, final Duration timeout) {
+ return executeBlocking(client, timeout, com.commercetools.api.models.discount_code.DiscountCode.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(
+ final ApiHttpClient client) {
+ return execute(client, com.commercetools.api.models.discount_code.DiscountCode.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getStoreKey() {
+ return this.storeKey;
+ }
+
+ public String getID() {
+ return this.ID;
+ }
+
+ public List getExpand() {
+ return this.getQueryParam("expand");
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setStoreKey(final String storeKey) {
+ this.storeKey = storeKey;
+ }
+
+ public void setID(final String ID) {
+ this.ID = ID;
+ }
+
+ /**
+ * set expand with the specified value
+ * @param expand value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(final TValue expand) {
+ return copy().withQueryParam("expand", expand);
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param expand value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(final TValue expand) {
+ return copy().addQueryParam("expand", expand);
+ }
+
+ /**
+ * set expand with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(final Supplier supplier) {
+ return copy().withQueryParam("expand", supplier.get());
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(final Supplier supplier) {
+ return copy().addQueryParam("expand", supplier.get());
+ }
+
+ /**
+ * set expand with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(
+ final Function op) {
+ return copy().withQueryParam("expand", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(
+ final Function op) {
+ return copy().addQueryParam("expand", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set expand with the specified values
+ * @param expand values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet withExpand(final Collection expand) {
+ return copy().withoutQueryParam("expand")
+ .addQueryParams(
+ expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional expand query parameters
+ * @param expand values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet addExpand(final Collection expand) {
+ return copy().addQueryParams(
+ expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList()));
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey)
+ .append(storeKey, that.storeKey)
+ .append(ID, that.ID)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet copy() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java
new file mode 100644
index 00000000000..d1c78c233f9
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead.java
@@ -0,0 +1,137 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ * Checks if a DiscountCode exists with the provided id. Returns a 200 status if the DiscountCode exists, or a 404 status otherwise.
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .discountCodes()
+ * .withId("{ID}")
+ * .head()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead
+ extends TypeApiMethod
+ implements com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String storeKey;
+ private String ID;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(final ApiHttpClient apiHttpClient, String projectKey,
+ String storeKey, String ID) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ this.ID = ID;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.storeKey = t.storeKey;
+ this.ID = t.ID;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/%s", encodePathParam(this.projectKey),
+ encodePathParam(this.storeKey), encodePathParam(this.ID));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(final ApiHttpClient client,
+ final Duration timeout) {
+ return executeBlocking(client, timeout, tools.jackson.databind.JsonNode.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(final ApiHttpClient client) {
+ return execute(client, tools.jackson.databind.JsonNode.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getStoreKey() {
+ return this.storeKey;
+ }
+
+ public String getID() {
+ return this.ID;
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setStoreKey(final String storeKey) {
+ this.storeKey = storeKey;
+ }
+
+ public void setID(final String ID) {
+ this.ID = ID;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey)
+ .append(storeKey, that.storeKey)
+ .append(ID, that.ID)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(ID).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead copy() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java
new file mode 100644
index 00000000000..42c0508d3df
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder.java
@@ -0,0 +1,31 @@
+
+package com.commercetools.api.client;
+
+import io.vrap.rmf.base.client.ApiHttpClient;
+import io.vrap.rmf.base.client.utils.Generated;
+
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder {
+
+ private final ApiHttpClient apiHttpClient;
+ private final String projectKey;
+ private final String storeKey;
+ private final String ID;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder(final ApiHttpClient apiHttpClient,
+ final String projectKey, final String storeKey, final String ID) {
+ this.apiHttpClient = apiHttpClient;
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ this.ID = ID;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet get() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDGet(apiHttpClient, projectKey, storeKey, ID);
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead head() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDHead(apiHttpClient, projectKey, storeKey, ID);
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java
new file mode 100644
index 00000000000..8083be4aad3
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet.java
@@ -0,0 +1,689 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .discountCodes()
+ * .get()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet extends
+ TypeApiMethod
+ implements com.commercetools.api.client.ExpandableTrait,
+ com.commercetools.api.client.SortableTrait,
+ com.commercetools.api.client.PagingTrait,
+ com.commercetools.api.client.QueryTrait,
+ com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String storeKey;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(final ApiHttpClient apiHttpClient, String projectKey,
+ String storeKey) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.storeKey = t.storeKey;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes", encodePathParam(this.projectKey),
+ encodePathParam(this.storeKey));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(
+ final ApiHttpClient client, final Duration timeout) {
+ return executeBlocking(client, timeout,
+ com.commercetools.api.models.discount_code.DiscountCodePagedQueryResponse.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(
+ final ApiHttpClient client) {
+ return execute(client, com.commercetools.api.models.discount_code.DiscountCodePagedQueryResponse.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getStoreKey() {
+ return this.storeKey;
+ }
+
+ public List getExpand() {
+ return this.getQueryParam("expand");
+ }
+
+ public List getSort() {
+ return this.getQueryParam("sort");
+ }
+
+ public List getLimit() {
+ return this.getQueryParam("limit");
+ }
+
+ public List getOffset() {
+ return this.getQueryParam("offset");
+ }
+
+ public List getWithTotal() {
+ return this.getQueryParam("withTotal");
+ }
+
+ public List getWhere() {
+ return this.getQueryParam("where");
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setStoreKey(final String storeKey) {
+ this.storeKey = storeKey;
+ }
+
+ /**
+ * set expand with the specified value
+ * @param expand value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(final TValue expand) {
+ return copy().withQueryParam("expand", expand);
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param expand value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final TValue expand) {
+ return copy().addQueryParam("expand", expand);
+ }
+
+ /**
+ * set expand with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(final Supplier supplier) {
+ return copy().withQueryParam("expand", supplier.get());
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final Supplier supplier) {
+ return copy().addQueryParam("expand", supplier.get());
+ }
+
+ /**
+ * set expand with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(
+ final Function op) {
+ return copy().withQueryParam("expand", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final Function op) {
+ return copy().addQueryParam("expand", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set expand with the specified values
+ * @param expand values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withExpand(final Collection expand) {
+ return copy().withoutQueryParam("expand")
+ .addQueryParams(
+ expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional expand query parameters
+ * @param expand values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addExpand(final Collection expand) {
+ return copy().addQueryParams(
+ expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * set sort with the specified value
+ * @param sort value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final TValue sort) {
+ return copy().withQueryParam("sort", sort);
+ }
+
+ /**
+ * add additional sort query parameter
+ * @param sort value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final TValue sort) {
+ return copy().addQueryParam("sort", sort);
+ }
+
+ /**
+ * set sort with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final Supplier supplier) {
+ return copy().withQueryParam("sort", supplier.get());
+ }
+
+ /**
+ * add additional sort query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final Supplier supplier) {
+ return copy().addQueryParam("sort", supplier.get());
+ }
+
+ /**
+ * set sort with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final Function op) {
+ return copy().withQueryParam("sort", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional sort query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final Function op) {
+ return copy().addQueryParam("sort", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set sort with the specified values
+ * @param sort values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withSort(final Collection sort) {
+ return copy().withoutQueryParam("sort")
+ .addQueryParams(
+ sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional sort query parameters
+ * @param sort values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addSort(final Collection sort) {
+ return copy().addQueryParams(
+ sort.stream().map(s -> new ParamEntry<>("sort", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * set limit with the specified value
+ * @param limit value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final TValue limit) {
+ return copy().withQueryParam("limit", limit);
+ }
+
+ /**
+ * add additional limit query parameter
+ * @param limit value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final TValue limit) {
+ return copy().addQueryParam("limit", limit);
+ }
+
+ /**
+ * set limit with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final Supplier supplier) {
+ return copy().withQueryParam("limit", supplier.get());
+ }
+
+ /**
+ * add additional limit query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final Supplier supplier) {
+ return copy().addQueryParam("limit", supplier.get());
+ }
+
+ /**
+ * set limit with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final Function op) {
+ return copy().withQueryParam("limit", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional limit query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final Function op) {
+ return copy().addQueryParam("limit", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set limit with the specified values
+ * @param limit values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withLimit(final Collection limit) {
+ return copy().withoutQueryParam("limit")
+ .addQueryParams(
+ limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional limit query parameters
+ * @param limit values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addLimit(final Collection limit) {
+ return copy().addQueryParams(
+ limit.stream().map(s -> new ParamEntry<>("limit", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * set offset with the specified value
+ * @param offset value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(final TValue offset) {
+ return copy().withQueryParam("offset", offset);
+ }
+
+ /**
+ * add additional offset query parameter
+ * @param offset value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final TValue offset) {
+ return copy().addQueryParam("offset", offset);
+ }
+
+ /**
+ * set offset with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(final Supplier supplier) {
+ return copy().withQueryParam("offset", supplier.get());
+ }
+
+ /**
+ * add additional offset query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final Supplier supplier) {
+ return copy().addQueryParam("offset", supplier.get());
+ }
+
+ /**
+ * set offset with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(
+ final Function op) {
+ return copy().withQueryParam("offset", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional offset query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final Function op) {
+ return copy().addQueryParam("offset", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set offset with the specified values
+ * @param offset values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withOffset(final Collection offset) {
+ return copy().withoutQueryParam("offset")
+ .addQueryParams(
+ offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional offset query parameters
+ * @param offset values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addOffset(final Collection offset) {
+ return copy().addQueryParams(
+ offset.stream().map(s -> new ParamEntry<>("offset", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * set withTotal with the specified value
+ * @param withTotal value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(final TValue withTotal) {
+ return copy().withQueryParam("withTotal", withTotal);
+ }
+
+ /**
+ * add additional withTotal query parameter
+ * @param withTotal value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(final TValue withTotal) {
+ return copy().addQueryParam("withTotal", withTotal);
+ }
+
+ /**
+ * set withTotal with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(final Supplier supplier) {
+ return copy().withQueryParam("withTotal", supplier.get());
+ }
+
+ /**
+ * add additional withTotal query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(final Supplier supplier) {
+ return copy().addQueryParam("withTotal", supplier.get());
+ }
+
+ /**
+ * set withTotal with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(
+ final Function op) {
+ return copy().withQueryParam("withTotal", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional withTotal query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(
+ final Function op) {
+ return copy().addQueryParam("withTotal", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set withTotal with the specified values
+ * @param withTotal values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWithTotal(final Collection withTotal) {
+ return copy().withoutQueryParam("withTotal")
+ .addQueryParams(withTotal.stream()
+ .map(s -> new ParamEntry<>("withTotal", s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional withTotal query parameters
+ * @param withTotal values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWithTotal(final Collection withTotal) {
+ return copy().addQueryParams(
+ withTotal.stream().map(s -> new ParamEntry<>("withTotal", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * set where with the specified value
+ * @param where value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final TValue where) {
+ return copy().withQueryParam("where", where);
+ }
+
+ /**
+ * add additional where query parameter
+ * @param where value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final TValue where) {
+ return copy().addQueryParam("where", where);
+ }
+
+ /**
+ * set where with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final Supplier supplier) {
+ return copy().withQueryParam("where", supplier.get());
+ }
+
+ /**
+ * add additional where query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final Supplier supplier) {
+ return copy().addQueryParam("where", supplier.get());
+ }
+
+ /**
+ * set where with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final Function op) {
+ return copy().withQueryParam("where", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional where query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final Function op) {
+ return copy().addQueryParam("where", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set where with the specified values
+ * @param where values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withWhere(final Collection where) {
+ return copy().withoutQueryParam("where")
+ .addQueryParams(
+ where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional where query parameters
+ * @param where values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addWhere(final Collection where) {
+ return copy().addQueryParams(
+ where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * set predicateVar with the specificied value
+ * @param value type
+ * @param varName parameter name
+ * @param predicateVar parameter value
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withPredicateVar(final String varName,
+ final TValue predicateVar) {
+ return copy().withQueryParam(String.format("var.%s", varName), predicateVar);
+ }
+
+ /**
+ * add additional predicateVar query parameter
+ * @param value type
+ * @param varName parameter name
+ * @param predicateVar parameter value
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addPredicateVar(final String varName,
+ final TValue predicateVar) {
+ return copy().addQueryParam(String.format("var.%s", varName), predicateVar);
+ }
+
+ /**
+ * set predicateVar with the specificied values
+ * @param value type
+ * @param varName parameter name
+ * @param predicateVar parameter values
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet withPredicateVar(final String varName,
+ final Collection predicateVar) {
+ final String placeholderName = String.format("var.%s", varName);
+ return copy().withoutQueryParam(placeholderName)
+ .addQueryParams(predicateVar.stream()
+ .map(s -> new ParamEntry<>(placeholderName, s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional predicateVar query parameters
+ * @param value type
+ * @param varName parameter name
+ * @param predicateVar parameter values
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet addPredicateVar(final String varName,
+ final Collection predicateVar) {
+ final String placeholderName = String.format("var.%s", varName);
+ return copy().addQueryParams(predicateVar.stream()
+ .map(s -> new ParamEntry<>(placeholderName, s.toString()))
+ .collect(Collectors.toList()));
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet copy() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java
new file mode 100644
index 00000000000..78cb3e7c122
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead.java
@@ -0,0 +1,209 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ * Checks if one or more DiscountCodes exist for the provided query predicate in a Store. Returns a 200 status if any DiscountCodes match the query predicate, or a 404 status otherwise.
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .discountCodes()
+ * .head()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ extends TypeApiMethod
+ implements com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String storeKey;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(final ApiHttpClient apiHttpClient, String projectKey,
+ String storeKey) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.storeKey = t.storeKey;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes", encodePathParam(this.projectKey),
+ encodePathParam(this.storeKey));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(final ApiHttpClient client,
+ final Duration timeout) {
+ return executeBlocking(client, timeout, tools.jackson.databind.JsonNode.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(final ApiHttpClient client) {
+ return execute(client, tools.jackson.databind.JsonNode.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getStoreKey() {
+ return this.storeKey;
+ }
+
+ public List getWhere() {
+ return this.getQueryParam("where");
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setStoreKey(final String storeKey) {
+ this.storeKey = storeKey;
+ }
+
+ /**
+ * set where with the specified value
+ * @param where value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(final TValue where) {
+ return copy().withQueryParam("where", where);
+ }
+
+ /**
+ * add additional where query parameter
+ * @param where value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final TValue where) {
+ return copy().addQueryParam("where", where);
+ }
+
+ /**
+ * set where with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(final Supplier supplier) {
+ return copy().withQueryParam("where", supplier.get());
+ }
+
+ /**
+ * add additional where query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final Supplier supplier) {
+ return copy().addQueryParam("where", supplier.get());
+ }
+
+ /**
+ * set where with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(
+ final Function op) {
+ return copy().withQueryParam("where", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional where query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final Function op) {
+ return copy().addQueryParam("where", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set where with the specified values
+ * @param where values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead withWhere(final Collection where) {
+ return copy().withoutQueryParam("where")
+ .addQueryParams(
+ where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional where query parameters
+ * @param where values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead addWhere(final Collection where) {
+ return copy().addQueryParams(
+ where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList()));
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey).append(storeKey, that.storeKey).isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead copy() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java
new file mode 100644
index 00000000000..3e0f94fd083
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet.java
@@ -0,0 +1,231 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .discountCodes()
+ * .withKey("{key}")
+ * .get()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet extends
+ TypeApiMethod
+ implements
+ com.commercetools.api.client.ExpandableTrait,
+ com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String storeKey;
+ private String key;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(final ApiHttpClient apiHttpClient,
+ String projectKey, String storeKey, String key) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ this.key = key;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.storeKey = t.storeKey;
+ this.key = t.key;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/key=%s",
+ encodePathParam(this.projectKey), encodePathParam(this.storeKey), encodePathParam(this.key));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(
+ final ApiHttpClient client, final Duration timeout) {
+ return executeBlocking(client, timeout, com.commercetools.api.models.discount_code.DiscountCode.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(
+ final ApiHttpClient client) {
+ return execute(client, com.commercetools.api.models.discount_code.DiscountCode.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getStoreKey() {
+ return this.storeKey;
+ }
+
+ public String getKey() {
+ return this.key;
+ }
+
+ public List getExpand() {
+ return this.getQueryParam("expand");
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setStoreKey(final String storeKey) {
+ this.storeKey = storeKey;
+ }
+
+ public void setKey(final String key) {
+ this.key = key;
+ }
+
+ /**
+ * set expand with the specified value
+ * @param expand value to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand(final TValue expand) {
+ return copy().withQueryParam("expand", expand);
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param expand value to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand(final TValue expand) {
+ return copy().addQueryParam("expand", expand);
+ }
+
+ /**
+ * set expand with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand(final Supplier supplier) {
+ return copy().withQueryParam("expand", supplier.get());
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand(final Supplier supplier) {
+ return copy().addQueryParam("expand", supplier.get());
+ }
+
+ /**
+ * set expand with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand(
+ final Function op) {
+ return copy().withQueryParam("expand", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional expand query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand(
+ final Function op) {
+ return copy().addQueryParam("expand", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set expand with the specified values
+ * @param expand values to be set
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet withExpand(
+ final Collection expand) {
+ return copy().withoutQueryParam("expand")
+ .addQueryParams(
+ expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional expand query parameters
+ * @param expand values to be added
+ * @param value type
+ * @return ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet
+ */
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet addExpand(
+ final Collection expand) {
+ return copy().addQueryParams(
+ expand.stream().map(s -> new ParamEntry<>("expand", s.toString())).collect(Collectors.toList()));
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey)
+ .append(storeKey, that.storeKey)
+ .append(key, that.key)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet copy() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java
new file mode 100644
index 00000000000..dd88f632c2e
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead.java
@@ -0,0 +1,138 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ * Checks if a DiscountCode exists with the provided key. Returns a 200 status if the DiscountCode exists, or a 404 status otherwise.
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .inStoreKeyWithStoreKeyValue("{storeKey}")
+ * .discountCodes()
+ * .withKey("{key}")
+ * .head()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead extends
+ TypeApiMethod
+ implements
+ com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String storeKey;
+ private String key;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(final ApiHttpClient apiHttpClient,
+ String projectKey, String storeKey, String key) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ this.key = key;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.storeKey = t.storeKey;
+ this.key = t.key;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/in-store/key=%s/discount-codes/key=%s",
+ encodePathParam(this.projectKey), encodePathParam(this.storeKey), encodePathParam(this.key));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.HEAD, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(final ApiHttpClient client,
+ final Duration timeout) {
+ return executeBlocking(client, timeout, tools.jackson.databind.JsonNode.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(final ApiHttpClient client) {
+ return execute(client, tools.jackson.databind.JsonNode.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getStoreKey() {
+ return this.storeKey;
+ }
+
+ public String getKey() {
+ return this.key;
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setStoreKey(final String storeKey) {
+ this.storeKey = storeKey;
+ }
+
+ public void setKey(final String key) {
+ this.key = key;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead that = (ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey)
+ .append(storeKey, that.storeKey)
+ .append(key, that.key)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(storeKey).append(key).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead copy() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java
new file mode 100644
index 00000000000..aaadafe7f9f
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder.java
@@ -0,0 +1,31 @@
+
+package com.commercetools.api.client;
+
+import io.vrap.rmf.base.client.ApiHttpClient;
+import io.vrap.rmf.base.client.utils.Generated;
+
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder {
+
+ private final ApiHttpClient apiHttpClient;
+ private final String projectKey;
+ private final String storeKey;
+ private final String key;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder(final ApiHttpClient apiHttpClient,
+ final String projectKey, final String storeKey, final String key) {
+ this.apiHttpClient = apiHttpClient;
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ this.key = key;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet get() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyGet(apiHttpClient, projectKey, storeKey, key);
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead head() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyHead(apiHttpClient, projectKey, storeKey, key);
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java
new file mode 100644
index 00000000000..88185ed2f0e
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder.java
@@ -0,0 +1,39 @@
+
+package com.commercetools.api.client;
+
+import io.vrap.rmf.base.client.ApiHttpClient;
+import io.vrap.rmf.base.client.utils.Generated;
+
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder {
+
+ private final ApiHttpClient apiHttpClient;
+ private final String projectKey;
+ private final String storeKey;
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder(final ApiHttpClient apiHttpClient,
+ final String projectKey, final String storeKey) {
+ this.apiHttpClient = apiHttpClient;
+ this.projectKey = projectKey;
+ this.storeKey = storeKey;
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet get() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesGet(apiHttpClient, projectKey, storeKey);
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead head() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesHead(apiHttpClient, projectKey, storeKey);
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder withKey(String key) {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesKeyByKeyRequestBuilder(apiHttpClient, projectKey,
+ storeKey, key);
+ }
+
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder withId(String ID) {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesByIDRequestBuilder(apiHttpClient, projectKey, storeKey,
+ ID);
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java
index f207acace13..5366b4b2d72 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPost.java
@@ -18,6 +18,12 @@
/**
* Authenticates a Customer associated with a Store.
* Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ * The anonymous Cart is not merged in any of the following cases:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
* If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java
index c4a43b8a85a..287a4ab2318 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyLoginPostString.java
@@ -19,6 +19,12 @@
/**
* Authenticates a Customer associated with a Store.
* Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ * The anonymous Cart is not merged in any of the following cases:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
* If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java
index 9e6572cdd71..fa8750d0905 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyRequestBuilder.java
@@ -34,6 +34,10 @@ public ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder customers() {
return new ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder(apiHttpClient, projectKey, storeKey);
}
+ public ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder discountCodes() {
+ return new ByProjectKeyInStoreKeyByStoreKeyDiscountCodesRequestBuilder(apiHttpClient, projectKey, storeKey);
+ }
+
public ByProjectKeyInStoreKeyByStoreKeyMeRequestBuilder me() {
return new ByProjectKeyInStoreKeyByStoreKeyMeRequestBuilder(apiHttpClient, projectKey, storeKey);
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java
index d666c1e21bd..fb4bf5fc3e3 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPost.java
@@ -21,6 +21,14 @@
/**
* Creates a StagedQuote in a Store.
+ *
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
+ * - The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.
+ *
+ *
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java
index 873c757377f..0dee81cd51c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesPostString.java
@@ -22,6 +22,14 @@
/**
*
Creates a StagedQuote in a Store.
+ *
+ * - InvalidOperation is returned in several cases, including the following:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Store referenced by the Quote Request.
+ * - The referenced Shipping Method is scoped to a Store, but the Quote Request does not belong to a Store.
+ *
+ *
*
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java
index 403ff7895aa..c3bb24d3558 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsByIDGet.java
@@ -22,6 +22,7 @@
/**
*
Retrieves a Variant Projection by its ID in the specified Store.
*
Only returns Variants belonging to Products distributed through the Store's configured channels.
+ *
If a ProductTailoring exists for the Product and the given Store, the returned Variant Projection includes the tailored Product name, slug, and description, along with the tailored Variant images, assets, and attributes. The staged query parameter selects either the current or staged tailored data. When no Product Tailoring exists for the Product and Store, the Variant Projection is returned without Product Tailoring data.
*
Required access scopes:
*
* To retrieve the current representation, the view_published_products:{projectKey} scope is required.
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java
index 1f740d0613a..41d7e4381bd 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsGet.java
@@ -22,6 +22,7 @@
/**
* Queries Variant Projections in the specified Store.
* Only Variants belonging to Products distributed through the Store's configured channels are returned. By default, this endpoint returns the current representation of Variants where the published flag is true.
+ * If a ProductTailoring exists for a Product and the given Store, the returned Variant Projections include the tailored Product name, slug, and description, along with the tailored Variant images, assets, and attributes. The staged query parameter selects either the current or staged tailored data. When no Product Tailoring exists for a Product and Store, the Variant Projection is returned without Product Tailoring data.
* Required access scopes:
*
* To retrieve the current representation of published Variants, the view_published_products:{projectKey} scope is required.
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java
index c189508354f..b01fb1ea20f 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyVariantProjectionsKeyByKeyGet.java
@@ -22,6 +22,7 @@
/**
* Retrieves a Variant Projection by its key in the specified Store.
* Only returns Variants belonging to Products distributed through the Store's configured channels.
+ * If a ProductTailoring exists for the Product and the given Store, the returned Variant Projection includes the tailored Product name, slug, and description, along with the tailored Variant images, assets, and attributes. The staged query parameter selects either the current or staged tailored data. When no Product Tailoring exists for the Product and Store, the Variant Projection is returned without Product Tailoring data.
* Required access scopes:
*
* To retrieve the current representation, the view_published_products:{projectKey} scope is required.
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java
index a48e958936c..afa9b0cdc7e 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPost.java
@@ -18,6 +18,12 @@
/**
* Authenticates a global Customer.
* Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ * The anonymous Cart is not merged in any of the following cases:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
* If an account with the given credentials is not found, an InvalidCredentials error is returned.
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java
index f9418967b94..e1d8b606c10 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyLoginPostString.java
@@ -19,6 +19,12 @@
/**
* Authenticates a global Customer.
* Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.
+ * The anonymous Cart is not merged in any of the following cases:
+ *
+ * - The referenced Shipping Method is not active.
+ * - The referenced Shipping Method is scoped to a Store that differs from the Cart's Store.
+ * - The referenced Shipping Method is scoped to a Store, but the Cart does not belong to a Store.
+ *
* If an account with the given credentials is not found, an InvalidCredentials error is returned.
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java
new file mode 100644
index 00000000000..6f24dd0ab08
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDDelete.java
@@ -0,0 +1,211 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+import java.util.function.Function;
+import java.util.function.Supplier;
+import java.util.stream.Collectors;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .mcpServers()
+ * .withId("{ID}")
+ * .delete()
+ * .withVersion(version)
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyMcpServersByIDDelete
+ extends TypeApiMethod
+ implements com.commercetools.api.client.VersionedTrait,
+ com.commercetools.api.client.ConflictingTrait,
+ com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String ID;
+
+ public ByProjectKeyMcpServersByIDDelete(final ApiHttpClient apiHttpClient, String projectKey, String ID) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.ID = ID;
+ }
+
+ public ByProjectKeyMcpServersByIDDelete(ByProjectKeyMcpServersByIDDelete t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.ID = t.ID;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/mcp-servers/%s", encodePathParam(this.projectKey),
+ encodePathParam(this.ID));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.DELETE, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(
+ final ApiHttpClient client, final Duration timeout) {
+ return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(
+ final ApiHttpClient client) {
+ return execute(client, com.commercetools.api.models.mcp_server.McpServer.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getID() {
+ return this.ID;
+ }
+
+ public List getVersion() {
+ return this.getQueryParam("version");
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setID(final String ID) {
+ this.ID = ID;
+ }
+
+ /**
+ * set version with the specified value
+ * @param version value to be set
+ * @param value type
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete withVersion(final TValue version) {
+ return copy().withQueryParam("version", version);
+ }
+
+ /**
+ * add additional version query parameter
+ * @param version value to be added
+ * @param value type
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete addVersion(final TValue version) {
+ return copy().addQueryParam("version", version);
+ }
+
+ /**
+ * set version with the specified value
+ * @param supplier supplier for the value to be set
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete withVersion(final Supplier supplier) {
+ return copy().withQueryParam("version", supplier.get());
+ }
+
+ /**
+ * add additional version query parameter
+ * @param supplier supplier for the value to be added
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete addVersion(final Supplier supplier) {
+ return copy().addQueryParam("version", supplier.get());
+ }
+
+ /**
+ * set version with the specified value
+ * @param op builder for the value to be set
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete withVersion(final Function op) {
+ return copy().withQueryParam("version", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * add additional version query parameter
+ * @param op builder for the value to be added
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete addVersion(final Function op) {
+ return copy().addQueryParam("version", op.apply(new StringBuilder()));
+ }
+
+ /**
+ * set version with the specified values
+ * @param version values to be set
+ * @param value type
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete withVersion(final Collection version) {
+ return copy().withoutQueryParam("version")
+ .addQueryParams(
+ version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList()));
+ }
+
+ /**
+ * add additional version query parameters
+ * @param version values to be added
+ * @param value type
+ * @return ByProjectKeyMcpServersByIDDelete
+ */
+ public ByProjectKeyMcpServersByIDDelete addVersion(final Collection version) {
+ return copy().addQueryParams(
+ version.stream().map(s -> new ParamEntry<>("version", s.toString())).collect(Collectors.toList()));
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyMcpServersByIDDelete that = (ByProjectKeyMcpServersByIDDelete) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyMcpServersByIDDelete copy() {
+ return new ByProjectKeyMcpServersByIDDelete(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java
new file mode 100644
index 00000000000..ec5507f4072
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDGet.java
@@ -0,0 +1,121 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .mcpServers()
+ * .withId("{ID}")
+ * .get()
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyMcpServersByIDGet
+ extends TypeApiMethod
+ implements com.commercetools.api.client.ErrorableTrait,
+ com.commercetools.api.client.Deprecatable200Trait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String ID;
+
+ public ByProjectKeyMcpServersByIDGet(final ApiHttpClient apiHttpClient, String projectKey, String ID) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.ID = ID;
+ }
+
+ public ByProjectKeyMcpServersByIDGet(ByProjectKeyMcpServersByIDGet t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.ID = t.ID;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/mcp-servers/%s", encodePathParam(this.projectKey),
+ encodePathParam(this.ID));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.GET, URI.create(httpRequestPath), getHeaders(), null);
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(
+ final ApiHttpClient client, final Duration timeout) {
+ return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(
+ final ApiHttpClient client) {
+ return execute(client, com.commercetools.api.models.mcp_server.McpServer.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getID() {
+ return this.ID;
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setID(final String ID) {
+ this.ID = ID;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyMcpServersByIDGet that = (ByProjectKeyMcpServersByIDGet) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey).append(ID, that.ID).isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(ID).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyMcpServersByIDGet copy() {
+ return new ByProjectKeyMcpServersByIDGet(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java
new file mode 100644
index 00000000000..02bd4f7cdd2
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPost.java
@@ -0,0 +1,146 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ * Specific Error Codes:
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .mcpServers()
+ * .withId("{ID}")
+ * .post(null)
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyMcpServersByIDPost extends
+ TypeBodyApiMethod
+ implements com.commercetools.api.client.ConflictingTrait,
+ com.commercetools.api.client.ErrorableTrait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String ID;
+
+ private com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate;
+
+ public ByProjectKeyMcpServersByIDPost(final ApiHttpClient apiHttpClient, String projectKey, String ID,
+ com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.ID = ID;
+ this.mcpServerUpdate = mcpServerUpdate;
+ }
+
+ public ByProjectKeyMcpServersByIDPost(ByProjectKeyMcpServersByIDPost t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.ID = t.ID;
+ this.mcpServerUpdate = t.mcpServerUpdate;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/mcp-servers/%s", encodePathParam(this.projectKey),
+ encodePathParam(this.ID));
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(),
+ io.vrap.rmf.base.client.utils.json.JsonUtils
+ .executing(() -> apiHttpClient().getSerializerService().toJsonByteArray(mcpServerUpdate)));
+
+ }
+
+ @Override
+ public ApiHttpResponse executeBlocking(
+ final ApiHttpClient client, final Duration timeout) {
+ return executeBlocking(client, timeout, com.commercetools.api.models.mcp_server.McpServer.class);
+ }
+
+ @Override
+ public CompletableFuture> execute(
+ final ApiHttpClient client) {
+ return execute(client, com.commercetools.api.models.mcp_server.McpServer.class);
+ }
+
+ public String getProjectKey() {
+ return this.projectKey;
+ }
+
+ public String getID() {
+ return this.ID;
+ }
+
+ public void setProjectKey(final String projectKey) {
+ this.projectKey = projectKey;
+ }
+
+ public void setID(final String ID) {
+ this.ID = ID;
+ }
+
+ public com.commercetools.api.models.mcp_server.McpServerUpdate getBody() {
+ return mcpServerUpdate;
+ }
+
+ public ByProjectKeyMcpServersByIDPost withBody(
+ com.commercetools.api.models.mcp_server.McpServerUpdate mcpServerUpdate) {
+ ByProjectKeyMcpServersByIDPost t = copy();
+ t.mcpServerUpdate = mcpServerUpdate;
+ return t;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ ByProjectKeyMcpServersByIDPost that = (ByProjectKeyMcpServersByIDPost) o;
+
+ return new EqualsBuilder().append(projectKey, that.projectKey)
+ .append(ID, that.ID)
+ .append(mcpServerUpdate, that.mcpServerUpdate)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(projectKey).append(ID).append(mcpServerUpdate).toHashCode();
+ }
+
+ @Override
+ protected ByProjectKeyMcpServersByIDPost copy() {
+ return new ByProjectKeyMcpServersByIDPost(this);
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java
new file mode 100644
index 00000000000..533e442a7a0
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMcpServersByIDPostString.java
@@ -0,0 +1,144 @@
+
+package com.commercetools.api.client;
+
+import java.net.URI;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.CompletableFuture;
+
+import io.vrap.rmf.base.client.*;
+import io.vrap.rmf.base.client.utils.Generated;
+
+import org.apache.commons.lang3.builder.EqualsBuilder;
+import org.apache.commons.lang3.builder.HashCodeBuilder;
+
+import tools.jackson.core.type.TypeReference;
+
+/**
+ * Specific Error Codes:
+ *
+ *
+ *
+ *
+ *
{@code
+ * CompletableFuture> result = apiRoot
+ * .withProjectKey("{projectKey}")
+ * .mcpServers()
+ * .withId("{ID}")
+ * .post("")
+ * .execute()
+ * }
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class ByProjectKeyMcpServersByIDPostString extends
+ StringBodyApiMethod
+ implements com.commercetools.api.client.ConflictingTrait,
+ com.commercetools.api.client.ErrorableTrait {
+
+ @Override
+ public TypeReference resultType() {
+ return new TypeReference() {
+ };
+ }
+
+ private String projectKey;
+ private String ID;
+
+ private String mcpServerUpdate;
+
+ public ByProjectKeyMcpServersByIDPostString(final ApiHttpClient apiHttpClient, String projectKey, String ID,
+ String mcpServerUpdate) {
+ super(apiHttpClient);
+ this.projectKey = projectKey;
+ this.ID = ID;
+ this.mcpServerUpdate = mcpServerUpdate;
+ }
+
+ public ByProjectKeyMcpServersByIDPostString(ByProjectKeyMcpServersByIDPostString t) {
+ super(t);
+ this.projectKey = t.projectKey;
+ this.ID = t.ID;
+ this.mcpServerUpdate = t.mcpServerUpdate;
+ }
+
+ @Override
+ protected ApiHttpRequest buildHttpRequest() {
+ List params = new ArrayList<>(getQueryParamUriStrings());
+ String httpRequestPath = String.format("%s/mcp-servers/%s", this.projectKey, this.ID);
+ if (!params.isEmpty()) {
+ httpRequestPath += "?" + String.join("&", params);
+ }
+ return new ApiHttpRequest(ApiHttpMethod.POST, URI.create(httpRequestPath), getHeaders(),
+ mcpServerUpdate.getBytes(StandardCharsets.UTF_8));
+
+ }
+
+ @Override
+ public ApiHttpResponse