From 9689936a13260bca0cf1c6f036886e9057671137 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Mon, 21 Aug 2023 08:37:41 +0000 Subject: [PATCH 01/12] TASK: Updating SDK --- .../GraphQL/GraphQLTest.cs | 2 +- .../schema.graphqls | 106 +++--------------- reference.txt | 1 + references.txt | 1 + 4 files changed, 16 insertions(+), 94 deletions(-) create mode 100644 reference.txt diff --git a/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/GraphQL/GraphQLTest.cs b/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/GraphQL/GraphQLTest.cs index 47206efef1f..61a23b73a0f 100644 --- a/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/GraphQL/GraphQLTest.cs +++ b/commercetools.Sdk/IntegrationTests/commercetools.GraphQL.Api.IntegrationTests/GraphQL/GraphQLTest.cs @@ -27,7 +27,7 @@ public async Task GraphQLQuery() var client = provider.GetService().GraphQLClient(); - var response = await client.Query( o => o.Products(selector: r => new { results = r.Results(product => new { product.Id }) })); + var response = await client.Query(o => o.Products(selector: r => new { results = r.Results(product => new { product.Id }) })); Assert.Null(response.Errors); Assert.NotNull(response.Data?.results); diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 85720b29d16..54530ca0f93 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -657,57 +657,36 @@ input ApplyStagedChanges { dummy: String } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type AsAssociate implements CartQueryInterface & OrderQueryInterface { - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" cart(id: String!): Cart - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" carts(where: String, sort: [String!], limit: Int, offset: Int): CartQueryResult! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" order( "Queries with specified ID" id: String, orderNumber: String): Order - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" orders(where: String, sort: [String!], limit: Int, offset: Int): OrderQueryResult! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" quoteRequest( "Queries with specified ID" id: String, "Queries with specified key" key: String): QuoteRequest - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" quoteRequests(where: String, sort: [String!], limit: Int, offset: Int): QuoteRequestQueryResult! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" quote( "Queries with specified ID" id: String, "Queries with specified key" key: String): Quote - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" quotes(where: String, sort: [String!], limit: Int, offset: Int): QuoteQueryResult! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" businessUnit( "Queries with specified ID" id: String, "Queries with specified key" key: String): BusinessUnit - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" businessUnits(where: String, sort: [String!], limit: Int, offset: Int): BusinessUnitQueryResult! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input AsAssociateArgument { businessUnitKey: KeyReferenceInput! associateId: String! @@ -769,29 +748,22 @@ input AssetSourceInput { contentType: String } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type Associate { - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRoleAssignments: [AssociateRoleAssignment!]! customerRef: Reference customer: Customer } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input AssociateDraft { customer: ResourceIdentifierInput! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRoleAssignments: [AssociateRoleAssignmentDraft!] } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" enum AssociateInheritanceMode { Disabled Enabled } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type AssociateRole implements Versioned { key: String! buyerAssignable: Boolean! @@ -806,23 +778,14 @@ type AssociateRole implements Versioned { lastModifiedBy: Initiator } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type AssociateRoleAssignment { - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRoleRef: KeyReference - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRole: AssociateRole! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" inheritance: AssociateInheritanceMode! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input AssociateRoleAssignmentDraft { associateRole: ResourceIdentifierInput! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" inheritance: AssociateInheritanceMode } @@ -840,7 +803,6 @@ type AssociateRoleDeleted implements MessagePayload { type: String! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input AssociateRoleDraft { key: String! name: String @@ -879,7 +841,6 @@ type AssociateRoleQueryResult { results: [AssociateRole!]! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input AssociateRoleUpdateAction { addPermission: AddAssociateRolePermission changeBuyerAssignable: ChangeAssociateRoleBuyerAssignable @@ -1133,7 +1094,6 @@ type BooleanType implements FieldType { name: String! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type BusinessUnit implements Versioned { key: String! name: String! @@ -1153,11 +1113,7 @@ type BusinessUnit implements Versioned { storeMode: String unitType: BusinessUnitType! associates: [Associate!]! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateMode: BusinessUnitAssociateMode! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" inheritedAssociates: [InheritedAssociate!] custom: CustomFieldsType parentUnitRef: KeyReference @@ -1203,7 +1159,6 @@ type BusinessUnitAssociateChanged implements MessagePayload { type: String! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" enum BusinessUnitAssociateMode { Explicit ExplicitAndFromParent @@ -1274,7 +1229,6 @@ type BusinessUnitDeleted implements MessagePayload { type: String! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input BusinessUnitDraft { key: String! name: String! @@ -1298,8 +1252,6 @@ input BusinessUnitDraft { parentUnit: ResourceIdentifierInput stores: [ResourceIdentifierInput!] associates: [AssociateDraft!] - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateMode: BusinessUnitAssociateMode } @@ -1336,7 +1288,6 @@ type BusinessUnitShippingAddressRemoved implements MessagePayload { type: String! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" enum BusinessUnitStatus { Active Inactive @@ -1375,13 +1326,11 @@ type BusinessUnitStoresSet implements MessagePayload { type: String! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" enum BusinessUnitType { Company Division } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input BusinessUnitUpdateAction { addAddress: AddBusinessUnitAddress addAssociate: AddBusinessUnitAssociate @@ -1408,8 +1357,6 @@ input BusinessUnitUpdateAction { setDefaultShippingAddress: SetBusinessUnitDefaultShippingAddress setStores: SetBusinessUnitStores setStoreMode: SetBusinessUnitStoreMode - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" changeAssociateMode: ChangeBusinessUnitAssociateMode } @@ -1986,7 +1933,6 @@ input ChangeBusinessUnitAssociate { associate: AssociateDraft! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input ChangeBusinessUnitAssociateMode { associateMode: BusinessUnitAssociateMode! } @@ -4245,29 +4191,19 @@ type InStoreMe implements MeQueryInterface & CartQueryInterface & ActiveCartInte shoppingLists(where: String, sort: [String!], limit: Int, offset: Int): ShoppingListQueryResult! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type InheritedAssociate { associateRoleAssignments: [InheritedAssociateRoleAssignment!]! customerRef: Reference customer: Customer } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type InheritedAssociateRoleAssignment { - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRoleRef: KeyReference! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRole: AssociateRole! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" sourceRef: KeyReference! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" source: BusinessUnit! } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" type InheritedStore { store: Store storeRef: KeyReference! @@ -5348,14 +5284,14 @@ type Mutation { "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." storeKey: KeyReferenceInput, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument): Cart updateCart(version: Long!, actions: [CartUpdateAction!]!, "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." storeKey: KeyReferenceInput, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument, "Queries with specified ID" @@ -5368,7 +5304,7 @@ type Mutation { "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." storeKey: KeyReferenceInput, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument, "Queries with specified ID" @@ -5381,7 +5317,7 @@ type Mutation { "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." storeKey: KeyReferenceInput, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument): Cart "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" @@ -5409,14 +5345,14 @@ type Mutation { "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." storeKey: KeyReferenceInput, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument): Order updateOrder(version: Long!, actions: [OrderUpdateAction!]!, "The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions." storeKey: KeyReferenceInput, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument, "Queries with specified ID" @@ -5436,7 +5372,7 @@ type Mutation { storeKey: KeyReferenceInput): Order createOrderFromQuote(draft: OrderQuoteCommand!, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument): Order "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" @@ -5626,11 +5562,11 @@ type Mutation { key: String): StandalonePrice createQuoteRequest(draft: QuoteRequestDraft!, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument): QuoteRequest updateQuoteRequest(version: Long!, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument, actions: [QuoteRequestUpdateAction!]!, "Queries with specified ID" @@ -5671,7 +5607,7 @@ type Mutation { createQuote(draft: QuoteDraft!): Quote updateQuote(version: Long!, actions: [QuoteUpdateAction!]!, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument, "Queries with specified ID" @@ -5695,11 +5631,11 @@ type Mutation { key: String): Quote createBusinessUnit(draft: BusinessUnitDraft!, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument): BusinessUnit updateBusinessUnit(version: Long!, actions: [BusinessUnitUpdateAction!]!, - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "Create/modify entity as an associate in business-unit." asAssociate: AsAssociateArgument, "Queries with specified ID" @@ -5722,11 +5658,7 @@ type Mutation { "Queries with specified key" key: String): BusinessUnit - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" createAssociateRole(draft: AssociateRoleDraft!): AssociateRole - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" updateAssociateRole(version: Long!, actions: [AssociateRoleUpdateAction!]!, "Queries with specified ID" @@ -5734,8 +5666,6 @@ type Mutation { "Queries with specified key" key: String): AssociateRole - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" deleteAssociateRole(version: Long!, personalDataErasure: Boolean = false, "Queries with specified ID" @@ -6778,7 +6708,6 @@ input PaymentUpdateAction { transitionState: TransitionPaymentState } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" enum Permission { AcceptMyQuotes AcceptOthersQuotes @@ -8083,7 +8012,7 @@ type Query { "This field gives access to the resources (such as carts) that are inside one of the given stores." inStores(keys: [KeyReferenceInput!]!): InStore! - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "This field gives access to the resources (such as carts) as an associate of a given business unit." asAssociate(businessUnitKey: KeyReferenceInput!, associateId: String!): AsAssociate! customerGroup( "Queries with specified ID" @@ -8334,27 +8263,19 @@ type Query { "Queries with specified key" key: String): Quote quotes(where: String, sort: [String!], limit: Int, offset: Int): QuoteQueryResult! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" businessUnit( "Queries with specified ID" id: String, "Queries with specified key" key: String): BusinessUnit - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" businessUnits(where: String, sort: [String!], limit: Int, offset: Int): BusinessUnitQueryResult! - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRole( "Queries with specified ID" id: String, "Queries with specified key" key: String): AssociateRole - - "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" associateRoles(where: String, sort: [String!], limit: Int, offset: Int): AssociateRoleQueryResult! productSelectionAssignments(where: String, sort: [String!], limit: Int, offset: Int): ProductAssignmentQueryResult! } @@ -9464,7 +9385,6 @@ input SetBusinessUnitDefaultShippingAddress { addressKey: String } -"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" input SetBusinessUnitStoreMode { stores: [ResourceIdentifierInput!] storeMode: String diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..9b9ee7b9dbc --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +c9b8b9e547cdd797ec9aafd49e8eab34efd1010c diff --git a/references.txt b/references.txt index ba176a1f6a8..a2022ea4529 100644 --- a/references.txt +++ b/references.txt @@ -104,3 +104,4 @@ c864fc89c120d3e6d10262969e35a2cc185c04de c0441c90881cb274c54c0d999f05a490ec159d94 8229aaa460c007b9028b8b49225ddce8509d3b3e c9b8b9e547cdd797ec9aafd49e8eab34efd1010c +eca4a27d33f36199ddc9aa226e6ad8051fff12b5 From 565403826224a3fb9dd90b7b8f3dda3c8f664596 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Mon, 21 Aug 2023 08:56:16 +0000 Subject: [PATCH 02/12] TASK: Updating SDK --- changes.md | 350 +----------------- .../Models/QuoteRequests/IQuoteRequest.cs | 2 + .../Models/QuoteRequests/QuoteRequest.cs | 2 + .../QuoteRequestQueryBuilderDsl.cs | 9 + .../schema.graphqls | 1 + references.txt | 1 + 6 files changed, 16 insertions(+), 349 deletions(-) diff --git a/changes.md b/changes.md index 83b55015c27..d72eb29b536 100644 --- a/changes.md +++ b/changes.md @@ -1,356 +1,8 @@ **Api changes** -
-Changed Property(s) - -- :warning: changed property `money` of type `CartDiscountValueFixed` from type `CentPrecisionMoney[]` to `TypedMoney[]` -- :warning: changed property `money` of type `CartDiscountValueFixedDraft` from type `Money[]` to `TypedMoneyDraft[]` -- :warning: changed property `country` of type `StagedOrder` from type `string` to `CountryCode` -- :warning: changed property `locale` of type `StagedOrder` from type `string` to `Locale` -- :warning: changed property `country` of type `StagedOrderSetCountryAction` from type `string` to `CountryCode` -- :warning: changed property `locale` of type `StagedOrderSetLocaleAction` from type `string` to `Locale` -- :warning: changed property `country` of type `Order` from type `string` to `CountryCode` -- :warning: changed property `locale` of type `Order` from type `string` to `Locale` -- :warning: changed property `country` of type `OrderImportDraft` from type `string` to `CountryCode` -- :warning: changed property `locale` of type `OrderSetLocaleAction` from type `string` to `Locale` -
- -
Added Property(s) -- added property `stores` to type `CartDiscount` -- added property `stores` to type `CartDiscountDraft` -- added property `taxedPricePortions` to type `CustomLineItem` -- added property `customLineItemKey` to type `CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction` -- added property `customLineItemKey` to type `CartChangeCustomLineItemMoneyAction` -- added property `customLineItemKey` to type `CartChangeCustomLineItemPriceModeAction` -- added property `customLineItemKey` to type `CartChangeCustomLineItemQuantityAction` -- added property `customLineItemKey` to type `CartRemoveCustomLineItemAction` -- added property `customLineItemKey` to type `CartSetCustomLineItemCustomFieldAction` -- added property `customLineItemKey` to type `CartSetCustomLineItemCustomTypeAction` -- added property `customLineItemKey` to type `CartSetCustomLineItemShippingDetailsAction` -- added property `customLineItemKey` to type `CartSetCustomLineItemTaxAmountAction` -- added property `shippingKey` to type `CartSetCustomLineItemTaxAmountAction` -- added property `customLineItemKey` to type `CartSetCustomLineItemTaxRateAction` -- added property `shippingKey` to type `CartSetCustomLineItemTaxRateAction` -- added property `associate` to type `ClientLogging` -- added property `associate` to type `CreatedBy` -- added property `associate` to type `LastModifiedBy` -- added property `key` to type `MyShoppingListAddLineItemAction` -- added property `key` to type `MyShoppingListAddTextLineItemAction` -- added property `textLineItemKey` to type `MyShoppingListChangeTextLineItemNameAction` -- added property `textLineItemKey` to type `MyShoppingListChangeTextLineItemQuantityAction` -- added property `lineItemKey` to type `MyShoppingListRemoveLineItemAction` -- added property `textLineItemKey` to type `MyShoppingListRemoveTextLineItemAction` -- added property `lineItemKey` to type `MyShoppingListSetLineItemCustomFieldAction` -- added property `textLineItemKey` to type `MyShoppingListSetTextLineItemCustomFieldAction` -- added property `textLineItemKey` to type `MyShoppingListSetTextLineItemCustomTypeAction` -- added property `textLineItemKey` to type `MyShoppingListSetTextLineItemDescriptionAction` -- added property `customLineItemKey` to type `CustomLineItemStateTransitionMessage` -- added property `lineItemKey` to type `LineItemStateTransitionMessage` -- added property `customLineItemKey` to type `OrderCustomLineItemDiscountSetMessage` -- added property `customLineItemKey` to type `OrderCustomLineItemQuantityChangedMessage` -- added property `customLineItemKey` to type `OrderCustomLineItemRemovedMessage` -- added property `lineItemKey` to type `OrderLineItemDiscountSetMessage` -- added property `lineItemKey` to type `OrderLineItemDistributionChannelSetMessage` -- added property `lineItemKey` to type `OrderLineItemRemovedMessage` -- added property `customLineItemKey` to type `CustomLineItemStateTransitionMessagePayload` -- added property `lineItemKey` to type `LineItemStateTransitionMessagePayload` -- added property `customLineItemKey` to type `OrderCustomLineItemDiscountSetMessagePayload` -- added property `customLineItemKey` to type `OrderCustomLineItemQuantityChangedMessagePayload` -- added property `customLineItemKey` to type `OrderCustomLineItemRemovedMessagePayload` -- added property `lineItemKey` to type `OrderLineItemDiscountSetMessagePayload` -- added property `lineItemKey` to type `OrderLineItemDistributionChannelSetMessagePayload` -- added property `lineItemKey` to type `OrderLineItemRemovedMessagePayload` -- added property `directDiscounts` to type `StagedOrder` -- added property `shippingDetails` to type `StagedOrderAddCustomLineItemAction` -- added property `shippingKey` to type `StagedOrderAddDeliveryAction` -- added property `inventoryMode` to type `StagedOrderAddLineItemAction` -- added property `customLineItemKey` to type `StagedOrderChangeCustomLineItemMoneyAction` -- added property `customLineItemKey` to type `StagedOrderChangeCustomLineItemQuantityAction` -- added property `customLineItemKey` to type `StagedOrderImportCustomLineItemStateAction` -- added property `lineItemKey` to type `StagedOrderImportLineItemStateAction` -- added property `customLineItemKey` to type `StagedOrderRemoveCustomLineItemAction` -- added property `customLineItemKey` to type `StagedOrderSetCustomLineItemCustomFieldAction` -- added property `customLineItemKey` to type `StagedOrderSetCustomLineItemCustomTypeAction` -- added property `customLineItemKey` to type `StagedOrderSetCustomLineItemShippingDetailsAction` -- added property `customLineItemKey` to type `StagedOrderSetCustomLineItemTaxAmountAction` -- added property `shippingKey` to type `StagedOrderSetCustomLineItemTaxAmountAction` -- added property `customLineItemKey` to type `StagedOrderSetCustomLineItemTaxRateAction` -- added property `shippingKey` to type `StagedOrderSetCustomLineItemTaxRateAction` -- added property `returnItemKey` to type `StagedOrderSetReturnItemCustomFieldAction` -- added property `returnItemKey` to type `StagedOrderSetReturnItemCustomTypeAction` -- added property `returnItemKey` to type `StagedOrderSetReturnPaymentStateAction` -- added property `returnItemKey` to type `StagedOrderSetReturnShipmentStateAction` -- added property `customLineItemKey` to type `StagedOrderTransitionCustomLineItemStateAction` -- added property `lineItemKey` to type `StagedOrderTransitionLineItemStateAction` -- added property `key` to type `CustomLineItemImportDraft` -- added property `key` to type `CustomLineItemReturnItem` -- added property `key` to type `LineItemImportDraft` -- added property `key` to type `LineItemReturnItem` -- added property `directDiscounts` to type `Order` -- added property `purchaseOrderNumber` to type `OrderImportDraft` -- added property `taxCalculationMode` to type `OrderImportDraft` -- added property `key` to type `ReturnItem` -- added property `key` to type `ReturnItemDraft` -- added property `customLineItemKey` to type `OrderImportCustomLineItemStateAction` -- added property `lineItemKey` to type `OrderImportLineItemStateAction` -- added property `customLineItemKey` to type `OrderSetCustomLineItemCustomFieldAction` -- added property `customLineItemKey` to type `OrderSetCustomLineItemCustomTypeAction` -- added property `customLineItemKey` to type `OrderSetCustomLineItemShippingDetailsAction` -- added property `returnItemKey` to type `OrderSetReturnItemCustomFieldAction` -- added property `returnItemKey` to type `OrderSetReturnItemCustomTypeAction` -- added property `returnItemKey` to type `OrderSetReturnPaymentStateAction` -- added property `returnItemKey` to type `OrderSetReturnShipmentStateAction` -- added property `customLineItemKey` to type `OrderTransitionCustomLineItemStateAction` -- added property `lineItemKey` to type `OrderTransitionLineItemStateAction` -- added property `key` to type `ShoppingListLineItem` -- added property `key` to type `ShoppingListLineItemDraft` -- added property `key` to type `TextLineItem` -- added property `key` to type `TextLineItemDraft` -- added property `key` to type `ShoppingListAddLineItemAction` -- added property `key` to type `ShoppingListAddTextLineItemAction` -- added property `lineItemKey` to type `ShoppingListChangeLineItemQuantityAction` -- added property `textLineItemKey` to type `ShoppingListChangeTextLineItemNameAction` -- added property `textLineItemKey` to type `ShoppingListChangeTextLineItemQuantityAction` -- added property `lineItemKey` to type `ShoppingListRemoveLineItemAction` -- added property `textLineItemKey` to type `ShoppingListRemoveTextLineItemAction` -- added property `lineItemKey` to type `ShoppingListSetLineItemCustomFieldAction` -- added property `lineItemKey` to type `ShoppingListSetLineItemCustomTypeAction` -- added property `textLineItemKey` to type `ShoppingListSetTextLineItemCustomFieldAction` -- added property `textLineItemKey` to type `ShoppingListSetTextLineItemCustomTypeAction` -- added property `textLineItemKey` to type `ShoppingListSetTextLineItemDescriptionAction` -
- - -
-Required Property(s) - -- :warning: changed property `associateRoleAssignments` of type `AssociateDraft` to be required -- :warning: changed property `paymentState` of type `StagedOrderChangePaymentStateAction` to be required -- :warning: changed property `shipmentState` of type `StagedOrderChangeShipmentStateAction` to be required -- :warning: changed property `paymentState` of type `OrderChangePaymentStateAction` to be required -- :warning: changed property `shipmentState` of type `OrderChangeShipmentStateAction` to be required -- changed property `roles` of type `Associate` to be optional -- changed property `customLineItemId` of type `CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction` to be optional -- changed property `customLineItemId` of type `CartChangeCustomLineItemMoneyAction` to be optional -- changed property `customLineItemId` of type `CartChangeCustomLineItemPriceModeAction` to be optional -- changed property `customLineItemId` of type `CartChangeCustomLineItemQuantityAction` to be optional -- changed property `customLineItemId` of type `CartRemoveCustomLineItemAction` to be optional -- changed property `customLineItemId` of type `CartSetCustomLineItemCustomFieldAction` to be optional -- changed property `customLineItemId` of type `CartSetCustomLineItemCustomTypeAction` to be optional -- changed property `customLineItemId` of type `CartSetCustomLineItemShippingDetailsAction` to be optional -- changed property `customLineItemId` of type `CartSetCustomLineItemTaxAmountAction` to be optional -- changed property `customLineItemId` of type `CartSetCustomLineItemTaxRateAction` to be optional -- changed property `centAmount` of type `CentPrecisionMoneyDraft` to be optional -- changed property `centAmount` of type `TypedMoneyDraft` to be optional -- changed property `comment` of type `MyQuoteRequestDraft` to be optional -- changed property `textLineItemId` of type `MyShoppingListChangeTextLineItemNameAction` to be optional -- changed property `textLineItemId` of type `MyShoppingListChangeTextLineItemQuantityAction` to be optional -- changed property `lineItemId` of type `MyShoppingListRemoveLineItemAction` to be optional -- changed property `textLineItemId` of type `MyShoppingListRemoveTextLineItemAction` to be optional -- changed property `lineItemId` of type `MyShoppingListSetLineItemCustomFieldAction` to be optional -- changed property `textLineItemId` of type `MyShoppingListSetTextLineItemCustomFieldAction` to be optional -- changed property `textLineItemId` of type `MyShoppingListSetTextLineItemCustomTypeAction` to be optional -- changed property `textLineItemId` of type `MyShoppingListSetTextLineItemDescriptionAction` to be optional -- changed property `customLineItemId` of type `StagedOrderChangeCustomLineItemMoneyAction` to be optional -- changed property `customLineItemId` of type `StagedOrderChangeCustomLineItemQuantityAction` to be optional -- changed property `customLineItemId` of type `StagedOrderImportCustomLineItemStateAction` to be optional -- changed property `lineItemId` of type `StagedOrderImportLineItemStateAction` to be optional -- changed property `customLineItemId` of type `StagedOrderRemoveCustomLineItemAction` to be optional -- changed property `customLineItemId` of type `StagedOrderSetCustomLineItemCustomFieldAction` to be optional -- changed property `customLineItemId` of type `StagedOrderSetCustomLineItemCustomTypeAction` to be optional -- changed property `customLineItemId` of type `StagedOrderSetCustomLineItemShippingDetailsAction` to be optional -- changed property `customLineItemId` of type `StagedOrderSetCustomLineItemTaxAmountAction` to be optional -- changed property `customLineItemId` of type `StagedOrderSetCustomLineItemTaxRateAction` to be optional -- changed property `returnItemId` of type `StagedOrderSetReturnItemCustomFieldAction` to be optional -- changed property `returnItemId` of type `StagedOrderSetReturnItemCustomTypeAction` to be optional -- changed property `returnItemId` of type `StagedOrderSetReturnPaymentStateAction` to be optional -- changed property `returnItemId` of type `StagedOrderSetReturnShipmentStateAction` to be optional -- changed property `customLineItemId` of type `StagedOrderTransitionCustomLineItemStateAction` to be optional -- changed property `lineItemId` of type `StagedOrderTransitionLineItemStateAction` to be optional -- changed property `priceMode` of type `CustomLineItemImportDraft` to be optional -- changed property `customLineItemId` of type `OrderImportCustomLineItemStateAction` to be optional -- changed property `lineItemId` of type `OrderImportLineItemStateAction` to be optional -- changed property `customLineItemId` of type `OrderSetCustomLineItemCustomFieldAction` to be optional -- changed property `customLineItemId` of type `OrderSetCustomLineItemCustomTypeAction` to be optional -- changed property `customLineItemId` of type `OrderSetCustomLineItemShippingDetailsAction` to be optional -- changed property `returnItemId` of type `OrderSetReturnItemCustomFieldAction` to be optional -- changed property `returnItemId` of type `OrderSetReturnItemCustomTypeAction` to be optional -- changed property `returnItemId` of type `OrderSetReturnPaymentStateAction` to be optional -- changed property `returnItemId` of type `OrderSetReturnShipmentStateAction` to be optional -- changed property `customLineItemId` of type `OrderTransitionCustomLineItemStateAction` to be optional -- changed property `lineItemId` of type `OrderTransitionLineItemStateAction` to be optional -- changed property `comment` of type `QuoteRequestDraft` to be optional -- changed property `lineItemId` of type `ShoppingListChangeLineItemQuantityAction` to be optional -- changed property `textLineItemId` of type `ShoppingListChangeTextLineItemNameAction` to be optional -- changed property `textLineItemId` of type `ShoppingListChangeTextLineItemQuantityAction` to be optional -- changed property `lineItemId` of type `ShoppingListRemoveLineItemAction` to be optional -- changed property `textLineItemId` of type `ShoppingListRemoveTextLineItemAction` to be optional -- changed property `lineItemId` of type `ShoppingListSetLineItemCustomFieldAction` to be optional -- changed property `lineItemId` of type `ShoppingListSetLineItemCustomTypeAction` to be optional -- changed property `textLineItemId` of type `ShoppingListSetTextLineItemCustomFieldAction` to be optional -- changed property `textLineItemId` of type `ShoppingListSetTextLineItemCustomTypeAction` to be optional -- changed property `textLineItemId` of type `ShoppingListSetTextLineItemDescriptionAction` to be optional -
- - -
-Deprecated Property(s) - -- property `Associate::roles` is removed -- property `AssociateDraft::roles` is removed -- property `IndividualExclusionProductSelectionType::type` is removed -- property `IndividualProductSelectionType::type` is removed -- property `ProductSelection::type` is removed -- property `ProductSelectionDraft::type` is removed -- property `ProductSelectionType::type` is removed -
- - -
-Added QueryParameter(s) - -- added query parameter `where` to method `get /{projectKey}/in-store/key={storeKey}/product-selection-assignments` -- added query parameter `/^var[.][a-zA-Z0-9]+$/` to method `get /{projectKey}/in-store/key={storeKey}/product-selection-assignments` -
- - -
-Removed QueryParameter(s) - -- :warning: removed query parameter `expand` from method `get /{projectKey}/subscriptions` -- :warning: removed query parameter `expand` from method `post /{projectKey}/subscriptions` -- :warning: removed query parameter `expand` from method `get /{projectKey}/extensions` -- :warning: removed query parameter `expand` from method `post /{projectKey}/extensions` -- :warning: removed query parameter `expand` from method `get /{projectKey}/subscriptions/key={key}` -- :warning: removed query parameter `expand` from method `post /{projectKey}/subscriptions/key={key}` -- :warning: removed query parameter `expand` from method `delete /{projectKey}/subscriptions/key={key}` -- :warning: removed query parameter `expand` from method `get /{projectKey}/subscriptions/{ID}` -- :warning: removed query parameter `expand` from method `post /{projectKey}/subscriptions/{ID}` -- :warning: removed query parameter `expand` from method `delete /{projectKey}/subscriptions/{ID}` -- :warning: removed query parameter `expand` from method `get /{projectKey}/extensions/key={key}` -- :warning: removed query parameter `expand` from method `post /{projectKey}/extensions/key={key}` -- :warning: removed query parameter `expand` from method `delete /{projectKey}/extensions/key={key}` -- :warning: removed query parameter `expand` from method `get /{projectKey}/extensions/{ID}` -- :warning: removed query parameter `expand` from method `post /{projectKey}/extensions/{ID}` -- :warning: removed query parameter `expand` from method `delete /{projectKey}/extensions/{ID}` -
- - -
-Added Type(s) - -- added type `CartDiscountAddStoreAction` -- added type `CartDiscountRemoveStoreAction` -- added type `CartDiscountSetStoresAction` -- added type `ContentTooLargeError` -- added type `MaxCartDiscountsReachedError` -- added type `MaxStoreReferencesReachedError` -- added type `StoreCartDiscountsLimitReachedError` -- added type `GraphQLContentTooLargeError` -- added type `GraphQLMaxCartDiscountsReachedError` -- added type `GraphQLMaxStoreReferencesReachedError` -- added type `GraphQLStoreCartDiscountsLimitReachedError` -- added type `BusinessUnitParentChangedMessage` -- added type `OrderCustomFieldAddedMessage` -- added type `OrderCustomFieldChangedMessage` -- added type `OrderCustomFieldRemovedMessage` -- added type `OrderCustomTypeRemovedMessage` -- added type `OrderCustomTypeSetMessage` -- added type `BusinessUnitParentChangedMessagePayload` -- added type `OrderCustomFieldAddedMessagePayload` -- added type `OrderCustomFieldChangedMessagePayload` -- added type `OrderCustomFieldRemovedMessagePayload` -- added type `OrderCustomTypeRemovedMessagePayload` -- added type `OrderCustomTypeSetMessagePayload` -- added type `StagedOrderSetDirectDiscountsAction` -- added type `StagedOrderSetStoreAction` -
- - -
-Deprecated Type(s) - -- type `AssociateRoleDeprecated` is removed -- type `IndividualExclusionProductSelectionType` is removed -- type `IndividualProductSelectionType` is removed -- type `ProductSelectionType` is removed -- type `ProductSelectionTypeEnum` is removed -
- - -
-Removed Type(s) - -- :warning: removed type `CartSetDeliveryAddressCustomFieldAction` -- :warning: removed type `CartSetDeliveryAddressCustomTypeAction` -- :warning: removed type `BusinessUnitParentUnitChangedMessage` -- :warning: removed type `BusinessUnitParentUnitChangedMessagePayload` -- :warning: removed type `OrderResourceIdentifier` -
- - -
-Added Method(s) - -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().delete()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().get()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().post()` -- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().delete()` -
- - -
-Added Resource(s) - -- added resource `/{projectKey}/in-store/key={storeKey}/cart-discounts` -- added resource `/{projectKey}/in-store/key={storeKey}/cart-discounts/key={key}` -- added resource `/{projectKey}/in-store/key={storeKey}/cart-discounts/{ID}` -
- - -
-Added Enum(s) - -- added enum `associate-role` to type `ChangeSubscriptionResourceTypeId` -
- -**Import changes** - -
-Required Property(s) - -- :warning: changed property `key` of type `PriceDraftImport` to be required -- changed property `addresses` of type `CustomerImport` to be optional -
- -**History changes** - -
-Added Type(s) - -- added type `AddInheritedAssociateChange` -- added type `AssociateRoleLabel` -- added type `ChangeBuyerAssignableChange` -- added type `ChangeInheritedAssociateChange` -- added type `InheritedAssociate` -- added type `InheritedAssociateRoleAssignment` -- added type `Permission` -- added type `RemoveInheritedAssociateChange` -- added type `SetLocalizedNameChange` -- added type `SetPermissionsChange` -
- - -
-Added Enum(s) - -- added enum `associate-role` to type `ChangeHistoryResourceType` +- added property `cart` to type `QuoteRequest`
diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/IQuoteRequest.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/IQuoteRequest.cs index c47ac462114..aa0737cadc5 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/IQuoteRequest.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/IQuoteRequest.cs @@ -88,6 +88,8 @@ public partial interface IQuoteRequest : IBaseResource string PurchaseOrderNumber { get; set; } + ICartReference Cart { get; set; } + IBusinessUnitKeyReference BusinessUnit { get; set; } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/QuoteRequest.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/QuoteRequest.cs index 9dffb295f15..e9b86da6cb0 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/QuoteRequest.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/QuoteRequests/QuoteRequest.cs @@ -87,6 +87,8 @@ public partial class QuoteRequest : IQuoteRequest public string PurchaseOrderNumber { get; set; } + public ICartReference Cart { get; set; } + public IBusinessUnitKeyReference BusinessUnit { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/QuoteRequests/QuoteRequestQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/QuoteRequests/QuoteRequestQueryBuilderDsl.cs index fcf239b849c..3e9f891c778 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/QuoteRequests/QuoteRequestQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/QuoteRequests/QuoteRequestQueryBuilderDsl.cs @@ -271,6 +271,15 @@ public IComparisonPredicateBuilder Purchase p => new CombinationQueryPredicate(p, QuoteRequestQueryBuilderDsl.Of), PredicateFormatter.Format); } + public CombinationQueryPredicate Cart( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("cart")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.CartReferenceQueryBuilderDsl.Of())), + QuoteRequestQueryBuilderDsl.Of); + } + public CombinationQueryPredicate BusinessUnit( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 54530ca0f93..821828bdbf0 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -8385,6 +8385,7 @@ type QuoteRequest implements Versioned { stateRef: Reference state: State purchaseOrderNumber: String + cartRef: Reference id: String! version: Long! createdAt: DateTime! diff --git a/references.txt b/references.txt index a2022ea4529..c9b25d2c7fc 100644 --- a/references.txt +++ b/references.txt @@ -105,3 +105,4 @@ c0441c90881cb274c54c0d999f05a490ec159d94 8229aaa460c007b9028b8b49225ddce8509d3b3e c9b8b9e547cdd797ec9aafd49e8eab34efd1010c eca4a27d33f36199ddc9aa226e6ad8051fff12b5 +b87a5af949a8f5ed96109ac56ec0df61758145dd From 64578a016f89cb52c0d4219095a024806d5267b8 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Mon, 21 Aug 2023 09:47:24 +0000 Subject: [PATCH 03/12] TASK: Updating SDK --- changes.md | 17 +++++++ .../Projects/ByProjectKeyTest.cs | 35 ++++++++------ .../ByProjectKeyByResourceTypeByIDTest.cs | 35 +++++++++----- .../ByProjectKeyByResourceTypeTest.cs | 38 +++++++++------ .../Projects/ByProjectKeyGet.cs | 46 +++++++++++-------- .../ByProjectKeyByResourceTypeByIDGet.cs | 46 +++++++++++-------- .../ByProjectKeyByResourceTypeGet.cs | 46 +++++++++++-------- .../Models/ChangeHistories/IModifiedBy.cs | 6 ++- .../Models/ChangeHistories/ModifiedBy.cs | 6 ++- references.txt | 1 + 10 files changed, 179 insertions(+), 97 deletions(-) diff --git a/changes.md b/changes.md index d72eb29b536..21d0e1368d4 100644 --- a/changes.md +++ b/changes.md @@ -6,3 +6,20 @@ - added property `cart` to type `QuoteRequest` +**History changes** + +
+Added QueryParameter(s) + +- added query parameter `associateId` to method `get /{projectKey}` +- added query parameter `associateId` to method `get /{projectKey}/{resourceType}` +- added query parameter `associateId` to method `get /{projectKey}/{resourceType}/{ID}` +
+ + +
+Added Property(s) + +- added property `associate` to type `ModifiedBy` +
+ diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs index 3d8ecc2d888..309c39fcb95 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/Projects/ByProjectKeyTest.cs @@ -77,19 +77,37 @@ public static IEnumerable GetData() ApiRoot .WithProjectKeyValue("test_projectKey") .Get() - .WithType("type") + .WithClientId("clientId") .Build(), "Get", - "/test_projectKey?type=type", + "/test_projectKey?clientId=clientId", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .Get() - .WithClientId("clientId") + .WithCustomerId("customerId") .Build(), "Get", - "/test_projectKey?clientId=clientId", + "/test_projectKey?customerId=customerId", + }, + new Object[] { + ApiRoot + .WithProjectKeyValue("test_projectKey") + .Get() + .WithAssociateId("associateId") + .Build(), + "Get", + "/test_projectKey?associateId=associateId", + }, + new Object[] { + ApiRoot + .WithProjectKeyValue("test_projectKey") + .Get() + .WithType("type") + .Build(), + "Get", + "/test_projectKey?type=type", }, new Object[] { ApiRoot @@ -136,15 +154,6 @@ public static IEnumerable GetData() "Get", "/test_projectKey?stores=stores", }, - new Object[] { - ApiRoot - .WithProjectKeyValue("test_projectKey") - .Get() - .WithCustomerId("customerId") - .Build(), - "Get", - "/test_projectKey?customerId=customerId", - }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs index 27922f4c5a5..a664f03937b 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDTest.cs @@ -80,10 +80,10 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithType("type") + .WithClientId("clientId") .Build(), "Get", - "/test_projectKey/test_resourceType/test_ID?type=type", + "/test_projectKey/test_resourceType/test_ID?clientId=clientId", }, new Object[] { ApiRoot @@ -91,10 +91,10 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithClientId("clientId") + .WithCustomerId("customerId") .Build(), "Get", - "/test_projectKey/test_resourceType/test_ID?clientId=clientId", + "/test_projectKey/test_resourceType/test_ID?customerId=customerId", }, new Object[] { ApiRoot @@ -102,10 +102,10 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithSource("source") + .WithAssociateId("associateId") .Build(), "Get", - "/test_projectKey/test_resourceType/test_ID?source=source", + "/test_projectKey/test_resourceType/test_ID?associateId=associateId", }, new Object[] { ApiRoot @@ -113,10 +113,10 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithChanges("changes") + .WithType("type") .Build(), "Get", - "/test_projectKey/test_resourceType/test_ID?changes=changes", + "/test_projectKey/test_resourceType/test_ID?type=type", }, new Object[] { ApiRoot @@ -124,10 +124,10 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithStores("stores") + .WithSource("source") .Build(), "Get", - "/test_projectKey/test_resourceType/test_ID?stores=stores", + "/test_projectKey/test_resourceType/test_ID?source=source", }, new Object[] { ApiRoot @@ -135,10 +135,21 @@ public static IEnumerable GetData() .WithResourceTypeValue("test_resourceType") .WithIDValue("test_ID") .Get() - .WithCustomerId("customerId") + .WithChanges("changes") .Build(), "Get", - "/test_projectKey/test_resourceType/test_ID?customerId=customerId", + "/test_projectKey/test_resourceType/test_ID?changes=changes", + }, + new Object[] { + ApiRoot + .WithProjectKeyValue("test_projectKey") + .WithResourceTypeValue("test_resourceType") + .WithIDValue("test_ID") + .Get() + .WithStores("stores") + .Build(), + "Get", + "/test_projectKey/test_resourceType/test_ID?stores=stores", }, new Object[] { ApiRoot diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs index dc0a6e0c6c4..10585fb31c0 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.HistoryApi.Tests/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeTest.cs @@ -74,70 +74,80 @@ public static IEnumerable GetData() .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithType("type") + .WithClientId("clientId") .Build(), "Get", - "/test_projectKey/test_resourceType?type=type", + "/test_projectKey/test_resourceType?clientId=clientId", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithClientId("clientId") + .WithCustomerId("customerId") .Build(), "Get", - "/test_projectKey/test_resourceType?clientId=clientId", + "/test_projectKey/test_resourceType?customerId=customerId", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithResourceKey("resourceKey") + .WithAssociateId("associateId") .Build(), "Get", - "/test_projectKey/test_resourceType?resourceKey=resourceKey", + "/test_projectKey/test_resourceType?associateId=associateId", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithSource("source") + .WithType("type") .Build(), "Get", - "/test_projectKey/test_resourceType?source=source", + "/test_projectKey/test_resourceType?type=type", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithChanges("changes") + .WithResourceKey("resourceKey") .Build(), "Get", - "/test_projectKey/test_resourceType?changes=changes", + "/test_projectKey/test_resourceType?resourceKey=resourceKey", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithStores("stores") + .WithSource("source") .Build(), "Get", - "/test_projectKey/test_resourceType?stores=stores", + "/test_projectKey/test_resourceType?source=source", }, new Object[] { ApiRoot .WithProjectKeyValue("test_projectKey") .WithResourceTypeValue("test_resourceType") .Get() - .WithCustomerId("customerId") + .WithChanges("changes") .Build(), "Get", - "/test_projectKey/test_resourceType?customerId=customerId", + "/test_projectKey/test_resourceType?changes=changes", + }, + new Object[] { + ApiRoot + .WithProjectKeyValue("test_projectKey") + .WithResourceTypeValue("test_resourceType") + .Get() + .WithStores("stores") + .Build(), + "Get", + "/test_projectKey/test_resourceType?stores=stores", }, new Object[] { ApiRoot diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs index 9e62e279310..489b13230a1 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyGet.cs @@ -58,14 +58,24 @@ public List GetUserId() return this.GetQueryParam("userId"); } - public List GetType() + public List GetClientId() { - return this.GetQueryParam("type"); + return this.GetQueryParam("clientId"); } - public List GetClientId() + public List GetCustomerId() { - return this.GetQueryParam("clientId"); + return this.GetQueryParam("customerId"); + } + + public List GetAssociateId() + { + return this.GetQueryParam("associateId"); + } + + public List GetType() + { + return this.GetQueryParam("type"); } public List GetResourceId() @@ -93,11 +103,6 @@ public List GetStores() return this.GetQueryParam("stores"); } - public List GetCustomerId() - { - return this.GetQueryParam("customerId"); - } - public List GetExcludePlatformInitiatedChanges() { return this.GetQueryParam("excludePlatformInitiatedChanges"); @@ -138,14 +143,24 @@ public ByProjectKeyGet WithUserId(string userId) return this.AddQueryParam("userId", userId); } - public ByProjectKeyGet WithType(string type) + public ByProjectKeyGet WithClientId(string clientId) { - return this.AddQueryParam("type", type); + return this.AddQueryParam("clientId", clientId); } - public ByProjectKeyGet WithClientId(string clientId) + public ByProjectKeyGet WithCustomerId(string customerId) { - return this.AddQueryParam("clientId", clientId); + return this.AddQueryParam("customerId", customerId); + } + + public ByProjectKeyGet WithAssociateId(string associateId) + { + return this.AddQueryParam("associateId", associateId); + } + + public ByProjectKeyGet WithType(string type) + { + return this.AddQueryParam("type", type); } public ByProjectKeyGet WithResourceId(string resourceId) @@ -173,11 +188,6 @@ public ByProjectKeyGet WithStores(string stores) return this.AddQueryParam("stores", stores); } - public ByProjectKeyGet WithCustomerId(string customerId) - { - return this.AddQueryParam("customerId", customerId); - } - public ByProjectKeyGet WithExcludePlatformInitiatedChanges(IPlatformInitiatedChange excludePlatformInitiatedChanges) { return this.AddQueryParam("excludePlatformInitiatedChanges", excludePlatformInitiatedChanges.ToString()); diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs index ac8f780f3cc..f5db07cea6f 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeByIDGet.cs @@ -59,14 +59,24 @@ public List GetUserId() return this.GetQueryParam("userId"); } - public List GetType() + public List GetClientId() { - return this.GetQueryParam("type"); + return this.GetQueryParam("clientId"); } - public List GetClientId() + public List GetCustomerId() { - return this.GetQueryParam("clientId"); + return this.GetQueryParam("customerId"); + } + + public List GetAssociateId() + { + return this.GetQueryParam("associateId"); + } + + public List GetType() + { + return this.GetQueryParam("type"); } public List GetSource() @@ -84,11 +94,6 @@ public List GetStores() return this.GetQueryParam("stores"); } - public List GetCustomerId() - { - return this.GetQueryParam("customerId"); - } - public List GetExcludePlatformInitiatedChanges() { return this.GetQueryParam("excludePlatformInitiatedChanges"); @@ -124,14 +129,24 @@ public ByProjectKeyByResourceTypeByIDGet WithUserId(string userId) return this.AddQueryParam("userId", userId); } - public ByProjectKeyByResourceTypeByIDGet WithType(string type) + public ByProjectKeyByResourceTypeByIDGet WithClientId(string clientId) { - return this.AddQueryParam("type", type); + return this.AddQueryParam("clientId", clientId); } - public ByProjectKeyByResourceTypeByIDGet WithClientId(string clientId) + public ByProjectKeyByResourceTypeByIDGet WithCustomerId(string customerId) { - return this.AddQueryParam("clientId", clientId); + return this.AddQueryParam("customerId", customerId); + } + + public ByProjectKeyByResourceTypeByIDGet WithAssociateId(string associateId) + { + return this.AddQueryParam("associateId", associateId); + } + + public ByProjectKeyByResourceTypeByIDGet WithType(string type) + { + return this.AddQueryParam("type", type); } public ByProjectKeyByResourceTypeByIDGet WithSource(string source) @@ -149,11 +164,6 @@ public ByProjectKeyByResourceTypeByIDGet WithStores(string stores) return this.AddQueryParam("stores", stores); } - public ByProjectKeyByResourceTypeByIDGet WithCustomerId(string customerId) - { - return this.AddQueryParam("customerId", customerId); - } - public ByProjectKeyByResourceTypeByIDGet WithExcludePlatformInitiatedChanges(IPlatformInitiatedChange excludePlatformInitiatedChanges) { return this.AddQueryParam("excludePlatformInitiatedChanges", excludePlatformInitiatedChanges.ToString()); diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs index e76c0326dac..f1b828ea48a 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Client/RequestBuilders/ResourceType/ByProjectKeyByResourceTypeGet.cs @@ -56,14 +56,24 @@ public List GetUserId() return this.GetQueryParam("userId"); } - public List GetType() + public List GetClientId() { - return this.GetQueryParam("type"); + return this.GetQueryParam("clientId"); } - public List GetClientId() + public List GetCustomerId() { - return this.GetQueryParam("clientId"); + return this.GetQueryParam("customerId"); + } + + public List GetAssociateId() + { + return this.GetQueryParam("associateId"); + } + + public List GetType() + { + return this.GetQueryParam("type"); } public List GetResourceKey() @@ -86,11 +96,6 @@ public List GetStores() return this.GetQueryParam("stores"); } - public List GetCustomerId() - { - return this.GetQueryParam("customerId"); - } - public List GetExcludePlatformInitiatedChanges() { return this.GetQueryParam("excludePlatformInitiatedChanges"); @@ -126,14 +131,24 @@ public ByProjectKeyByResourceTypeGet WithUserId(string userId) return this.AddQueryParam("userId", userId); } - public ByProjectKeyByResourceTypeGet WithType(string type) + public ByProjectKeyByResourceTypeGet WithClientId(string clientId) { - return this.AddQueryParam("type", type); + return this.AddQueryParam("clientId", clientId); } - public ByProjectKeyByResourceTypeGet WithClientId(string clientId) + public ByProjectKeyByResourceTypeGet WithCustomerId(string customerId) { - return this.AddQueryParam("clientId", clientId); + return this.AddQueryParam("customerId", customerId); + } + + public ByProjectKeyByResourceTypeGet WithAssociateId(string associateId) + { + return this.AddQueryParam("associateId", associateId); + } + + public ByProjectKeyByResourceTypeGet WithType(string type) + { + return this.AddQueryParam("type", type); } public ByProjectKeyByResourceTypeGet WithResourceKey(string resourceKey) @@ -156,11 +171,6 @@ public ByProjectKeyByResourceTypeGet WithStores(string stores) return this.AddQueryParam("stores", stores); } - public ByProjectKeyByResourceTypeGet WithCustomerId(string customerId) - { - return this.AddQueryParam("customerId", customerId); - } - public ByProjectKeyByResourceTypeGet WithExcludePlatformInitiatedChanges(IPlatformInitiatedChange excludePlatformInitiatedChanges) { return this.AddQueryParam("excludePlatformInitiatedChanges", excludePlatformInitiatedChanges.ToString()); diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/IModifiedBy.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/IModifiedBy.cs index 3796770e09b..02c8645469e 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/IModifiedBy.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/IModifiedBy.cs @@ -11,11 +11,13 @@ public partial interface IModifiedBy string Type { get; set; } - IReference Customer { get; set; } + string ClientId { get; set; } string AnonymousId { get; set; } - string ClientId { get; set; } + IReference Customer { get; set; } + + IReference Associate { get; set; } bool IsPlatformClient { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/ModifiedBy.cs b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/ModifiedBy.cs index d88c23bd1cf..f0ae06b88ef 100644 --- a/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/ModifiedBy.cs +++ b/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/ChangeHistories/ModifiedBy.cs @@ -10,11 +10,13 @@ public partial class ModifiedBy : IModifiedBy public string Type { get; set; } - public IReference Customer { get; set; } + public string ClientId { get; set; } public string AnonymousId { get; set; } - public string ClientId { get; set; } + public IReference Customer { get; set; } + + public IReference Associate { get; set; } public bool IsPlatformClient { get; set; } } diff --git a/references.txt b/references.txt index c9b25d2c7fc..379ecdf518d 100644 --- a/references.txt +++ b/references.txt @@ -106,3 +106,4 @@ c0441c90881cb274c54c0d999f05a490ec159d94 c9b8b9e547cdd797ec9aafd49e8eab34efd1010c eca4a27d33f36199ddc9aa226e6ad8051fff12b5 b87a5af949a8f5ed96109ac56ec0df61758145dd +8aae1123d0eca08ca673c152a43adf2e915c0dce From 7ab37787301938f8cf543ae8dc44dd8dcfcb760f Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Mon, 21 Aug 2023 14:06:57 +0000 Subject: [PATCH 04/12] TASK: Updating SDK --- changes.md | 8 ++++++++ .../Generated/Models/Common/ProcessingState.cs | 11 +++++++++-- references.txt | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/changes.md b/changes.md index 21d0e1368d4..85fd4123edb 100644 --- a/changes.md +++ b/changes.md @@ -6,6 +6,14 @@ - added property `cart` to type `QuoteRequest` +**Import changes** + +
+Added Enum(s) + +- added enum `canceled` to type `ProcessingState` +
+ **History changes**
diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ProcessingState.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ProcessingState.cs index b476e533a75..0dd9b1210d2 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ProcessingState.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Common/ProcessingState.cs @@ -26,7 +26,10 @@ public enum ProcessingState Imported, [Description("rejected")] - Rejected + Rejected, + + [Description("canceled")] + Canceled } public class ProcessingStateWrapper : IProcessingState @@ -70,6 +73,9 @@ public interface IProcessingState : IJsonName, IEnumerable public static IProcessingState Rejected = new ProcessingStateWrapper { Value = ProcessingState.Rejected, JsonName = "rejected" }; + public static IProcessingState Canceled = new ProcessingStateWrapper + { Value = ProcessingState.Canceled, JsonName = "canceled" }; + ProcessingState? Value { get; } static IProcessingState[] Values() @@ -81,7 +87,8 @@ static IProcessingState[] Values() Unresolved , WaitForMasterVariant , Imported , - Rejected + Rejected , + Canceled }; } static IProcessingState FindEnum(string value) diff --git a/references.txt b/references.txt index 379ecdf518d..0c0bed40be4 100644 --- a/references.txt +++ b/references.txt @@ -107,3 +107,4 @@ c9b8b9e547cdd797ec9aafd49e8eab34efd1010c eca4a27d33f36199ddc9aa226e6ad8051fff12b5 b87a5af949a8f5ed96109ac56ec0df61758145dd 8aae1123d0eca08ca673c152a43adf2e915c0dce +17da4aad01ab00bf0bbabdbd23940a0254c467ba From cabbcda440e551aa32c71688504a733c0e21a282 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Tue, 22 Aug 2023 08:05:04 +0000 Subject: [PATCH 05/12] TASK: Updating SDK --- changes.md | 7 +++++++ .../Generated/Models/Importsummaries/IOperationStates.cs | 2 ++ .../Generated/Models/Importsummaries/OperationStates.cs | 2 ++ references.txt | 1 + 4 files changed, 12 insertions(+) diff --git a/changes.md b/changes.md index 85fd4123edb..38938b2121b 100644 --- a/changes.md +++ b/changes.md @@ -8,6 +8,13 @@ **Import changes** +
+Added Property(s) + +- added property `canceled` to type `OperationStates` +
+ +
Added Enum(s) diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/IOperationStates.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/IOperationStates.cs index a248193e7bc..bc4c78432dd 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/IOperationStates.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/IOperationStates.cs @@ -18,5 +18,7 @@ public partial interface IOperationStates long Rejected { get; set; } + long Canceled { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/OperationStates.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/OperationStates.cs index 695561c132d..8719e4cbfbc 100644 --- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/OperationStates.cs +++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/Models/Importsummaries/OperationStates.cs @@ -14,5 +14,7 @@ public partial class OperationStates : IOperationStates public long Imported { get; set; } public long Rejected { get; set; } + + public long Canceled { get; set; } } } diff --git a/references.txt b/references.txt index 0c0bed40be4..6b14db6abc8 100644 --- a/references.txt +++ b/references.txt @@ -108,3 +108,4 @@ eca4a27d33f36199ddc9aa226e6ad8051fff12b5 b87a5af949a8f5ed96109ac56ec0df61758145dd 8aae1123d0eca08ca673c152a43adf2e915c0dce 17da4aad01ab00bf0bbabdbd23940a0254c467ba +97b5234919598fa0df51743391a351d68b7fa4f0 From dc595d88a51293c2d02f03bdb3f901d6225fcf42 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Wed, 23 Aug 2023 13:06:46 +0000 Subject: [PATCH 06/12] TASK: Updating SDK --- .../schema.graphqls | 24 ++++++++++++++++++- references.txt | 1 + 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 821828bdbf0..eddc861e3b3 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -657,7 +657,7 @@ input ApplyStagedChanges { dummy: String } -type AsAssociate implements CartQueryInterface & OrderQueryInterface { +type AsAssociate implements CartQueryInterface & OrderQueryInterface & QuoteQueryInterface & QuoteRequestQueryInterface { cart(id: String!): Cart carts(where: String, sort: [String!], limit: Int, offset: Int): CartQueryResult! order( @@ -8341,6 +8341,17 @@ input QuoteDraft { state: ReferenceInput } +"Fields to access Quotes." +interface QuoteQueryInterface { + quote( + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String): Quote + quotes(where: String, sort: [String!], limit: Int, offset: Int): QuoteQueryResult! +} + type QuoteQueryResult { offset: Int! count: Int! @@ -8404,6 +8415,17 @@ input QuoteRequestDraft { purchaseOrderNumber: String } +"Fields to access QuoteRequests." +interface QuoteRequestQueryInterface { + quoteRequest( + "Queries with specified ID" + id: String, + + "Queries with specified key" + key: String): QuoteRequest + quoteRequests(where: String, sort: [String!], limit: Int, offset: Int): QuoteRequestQueryResult! +} + type QuoteRequestQueryResult { offset: Int! count: Int! diff --git a/references.txt b/references.txt index 6b14db6abc8..864eacd727a 100644 --- a/references.txt +++ b/references.txt @@ -109,3 +109,4 @@ b87a5af949a8f5ed96109ac56ec0df61758145dd 8aae1123d0eca08ca673c152a43adf2e915c0dce 17da4aad01ab00bf0bbabdbd23940a0254c467ba 97b5234919598fa0df51743391a351d68b7fa4f0 +b6e5867a3d6c2e0a2a60053b76db39897ac09f20 From bcff5bf143273a2657f6fb3cc5bd622c39f9f07a Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Thu, 24 Aug 2023 14:32:45 +0000 Subject: [PATCH 07/12] TASK: Updating SDK --- changes.md | 8 ++ .../Generated/Models/Messages/IMessage.cs | 7 ++ .../Models/Messages/IMessagePayload.cs | 7 ++ .../IQuoteRenegotiationRequestedMessage.cs | 12 ++ ...oteRenegotiationRequestedMessagePayload.cs | 12 ++ .../QuoteRenegotiationRequestedMessage.cs | 38 +++++++ ...oteRenegotiationRequestedMessagePayload.cs | 14 +++ .../Messages/MessagePayloadQueryBuilderDsl.cs | 6 + .../Messages/MessageQueryBuilderDsl.cs | 6 + ...nRequestedMessagePayloadQueryBuilderDsl.cs | 30 +++++ ...otiationRequestedMessageQueryBuilderDsl.cs | 104 +++++++++++++++++ .../schema.graphqls | 107 ++++++++++++++++++ references.txt | 1 + 13 files changed, 352 insertions(+) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessage.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessagePayload.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessageQueryBuilderDsl.cs diff --git a/changes.md b/changes.md index 38938b2121b..42b87e95a43 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,13 @@ **Api changes** +
+Added Type(s) + +- added type `QuoteRenegotiationRequestedMessage` +- added type `QuoteRenegotiationRequestedMessagePayload` +
+ +
Added Property(s) diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs index c0a68025126..0059767680c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs @@ -139,6 +139,7 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("QuoteCreated", typeof(commercetools.Sdk.Api.Models.Messages.QuoteCreatedMessage))] [SubTypeDiscriminator("QuoteCustomerChanged", typeof(commercetools.Sdk.Api.Models.Messages.QuoteCustomerChangedMessage))] [SubTypeDiscriminator("QuoteDeleted", typeof(commercetools.Sdk.Api.Models.Messages.QuoteDeletedMessage))] + [SubTypeDiscriminator("QuoteRenegotiationRequested", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessage))] [SubTypeDiscriminator("QuoteRequestCreated", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRequestCreatedMessage))] [SubTypeDiscriminator("QuoteRequestCustomerChanged", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRequestCustomerChangedMessage))] [SubTypeDiscriminator("QuoteRequestDeleted", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRequestDeletedMessage))] @@ -995,6 +996,12 @@ static commercetools.Sdk.Api.Models.Messages.QuoteDeletedMessage QuoteDeleted(Ac init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessage QuoteRenegotiationRequested(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.QuoteRequestCreatedMessage QuoteRequestCreated(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.QuoteRequestCreatedMessage(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs index 5a8b012de9b..8cde2d76d9f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs @@ -138,6 +138,7 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("QuoteCreated", typeof(commercetools.Sdk.Api.Models.Messages.QuoteCreatedMessagePayload))] [SubTypeDiscriminator("QuoteCustomerChanged", typeof(commercetools.Sdk.Api.Models.Messages.QuoteCustomerChangedMessagePayload))] [SubTypeDiscriminator("QuoteDeleted", typeof(commercetools.Sdk.Api.Models.Messages.QuoteDeletedMessagePayload))] + [SubTypeDiscriminator("QuoteRenegotiationRequested", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessagePayload))] [SubTypeDiscriminator("QuoteRequestCreated", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRequestCreatedMessagePayload))] [SubTypeDiscriminator("QuoteRequestCustomerChanged", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRequestCustomerChangedMessagePayload))] [SubTypeDiscriminator("QuoteRequestDeleted", typeof(commercetools.Sdk.Api.Models.Messages.QuoteRequestDeletedMessagePayload))] @@ -975,6 +976,12 @@ static commercetools.Sdk.Api.Models.Messages.QuoteDeletedMessagePayload QuoteDel init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessagePayload QuoteRenegotiationRequested(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.QuoteRequestCreatedMessagePayload QuoteRequestCreated(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.QuoteRequestCreatedMessagePayload(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessage.cs new file mode 100644 index 00000000000..956675bb969 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessage.cs @@ -0,0 +1,12 @@ +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessage))] + public partial interface IQuoteRenegotiationRequestedMessage : IMessage + { + string BuyerComment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessagePayload.cs new file mode 100644 index 00000000000..763c7ea422c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IQuoteRenegotiationRequestedMessagePayload.cs @@ -0,0 +1,12 @@ +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.QuoteRenegotiationRequestedMessagePayload))] + public partial interface IQuoteRenegotiationRequestedMessagePayload : IMessagePayload + { + string BuyerComment { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessage.cs new file mode 100644 index 00000000000..f73d951f5b9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessage.cs @@ -0,0 +1,38 @@ +using commercetools.Sdk.Api.Models.Common; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class QuoteRenegotiationRequestedMessage : IQuoteRenegotiationRequestedMessage + { + public string Id { get; set; } + + public long Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + + public ILastModifiedBy LastModifiedBy { get; set; } + + public ICreatedBy CreatedBy { get; set; } + + public long SequenceNumber { get; set; } + + public IReference Resource { get; set; } + + public long ResourceVersion { get; set; } + + public string Type { get; set; } + + public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } + + public string BuyerComment { get; set; } + public QuoteRenegotiationRequestedMessage() + { + this.Type = "QuoteRenegotiationRequested"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessagePayload.cs new file mode 100644 index 00000000000..070ae566560 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/QuoteRenegotiationRequestedMessagePayload.cs @@ -0,0 +1,14 @@ +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class QuoteRenegotiationRequestedMessagePayload : IQuoteRenegotiationRequestedMessagePayload + { + public string Type { get; set; } + + public string BuyerComment { get; set; } + public QuoteRenegotiationRequestedMessagePayload() + { + this.Type = "QuoteRenegotiationRequested"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs index a1e80a77dfb..6b1b5ef1afe 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs @@ -550,6 +550,12 @@ public CombinationQueryPredicate AsQuoteDeleted( return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.QuoteDeletedMessagePayloadQueryBuilderDsl.Of()), MessagePayloadQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsQuoteRenegotiationRequested( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsQuoteRequestCreated( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs index 6c6c2f7c691..e88841245bd 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs @@ -622,6 +622,12 @@ public CombinationQueryPredicate AsQuoteDeleted( return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.QuoteDeletedMessageQueryBuilderDsl.Of()), MessageQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsQuoteRenegotiationRequested( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsQuoteRequestCreated( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..88ff6eeb0fd --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl + { + public QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl() + { + } + + public static QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl Of() + { + return new QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder BuyerComment() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("buyerComment")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..f2926b4a0f3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/QuoteRenegotiationRequestedMessageQueryBuilderDsl.cs @@ -0,0 +1,104 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class QuoteRenegotiationRequestedMessageQueryBuilderDsl + { + public QuoteRenegotiationRequestedMessageQueryBuilderDsl() + { + } + + public static QuoteRenegotiationRequestedMessageQueryBuilderDsl Of() + { + return new QuoteRenegotiationRequestedMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder BuyerComment() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("buyerComment")), + p => new CombinationQueryPredicate(p, QuoteRenegotiationRequestedMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index eddc861e3b3..fae695db223 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -8287,6 +8287,8 @@ type QueryLimitsProjection { type Quote implements Versioned { customerRef: Reference customer: Customer + customerGroupRef: Reference + customerGroup: CustomerGroup lineItems( "Queries with specified ID" id: String): [LineItem!]! @@ -8332,6 +8334,23 @@ type Quote implements Versioned { lastModifiedBy: Initiator } +type QuoteCreated implements MessagePayload { + quote: Quote! + type: String! +} + +type QuoteCustomerChanged implements MessagePayload { + customerRef: Reference! + previousCustomerRef: Reference! + customer: Customer + previousCustomer: Customer + type: String! +} + +type QuoteDeleted implements MessagePayload { + type: String! +} + input QuoteDraft { key: String stagedQuote: ResourceIdentifierInput @@ -8362,9 +8381,16 @@ type QuoteQueryResult { results: [Quote!]! } +type QuoteRenegotiationRequested implements MessagePayload { + buyerComment: String + type: String! +} + type QuoteRequest implements Versioned { customerRef: Reference customer: Customer + customerGroupRef: Reference + customerGroup: CustomerGroup lineItems( "Queries with specified ID" id: String): [LineItem!]! @@ -8405,6 +8431,23 @@ type QuoteRequest implements Versioned { lastModifiedBy: Initiator } +type QuoteRequestCreated implements MessagePayload { + quoteRequest: QuoteRequest! + type: String! +} + +type QuoteRequestCustomerChanged implements MessagePayload { + customerRef: Reference! + previousCustomerRef: Reference! + customer: Customer + previousCustomer: Customer + type: String! +} + +type QuoteRequestDeleted implements MessagePayload { + type: String! +} + input QuoteRequestDraft { key: String cart: ResourceIdentifierInput @@ -8445,6 +8488,21 @@ enum QuoteRequestState { UnderReview } +type QuoteRequestStateChanged implements MessagePayload { + quoteRequestState: QuoteRequestState! + oldQuoteRequestState: QuoteRequestState! + type: String! +} + +type QuoteRequestStateTransition implements MessagePayload { + stateRef: Reference! + oldStateRef: Reference + force: Boolean! + state: State + oldState: State + type: String! +} + input QuoteRequestUpdateAction { changeCustomer: ChangeQuoteRequestCustomer changeQuoteRequestState: ChangeQuoteRequestState @@ -8463,6 +8521,21 @@ enum QuoteState { Withdrawn } +type QuoteStateChanged implements MessagePayload { + quoteState: QuoteState! + oldQuoteState: QuoteState! + type: String! +} + +type QuoteStateTransition implements MessagePayload { + stateRef: Reference! + oldStateRef: Reference + force: Boolean! + state: State + oldState: State + type: String! +} + input QuoteUpdateAction { changeCustomer: ChangeQuoteCustomer changeQuoteState: ChangeQuoteState @@ -12268,6 +12341,15 @@ type StagedQuote implements Versioned { lastModifiedBy: Initiator } +type StagedQuoteCreated implements MessagePayload { + stagedQuote: StagedQuote! + type: String! +} + +type StagedQuoteDeleted implements MessagePayload { + type: String! +} + input StagedQuoteDraft { key: String quoteRequest: ResourceIdentifierInput @@ -12287,12 +12369,32 @@ type StagedQuoteQueryResult { results: [StagedQuote!]! } +type StagedQuoteSellerCommentSet implements MessagePayload { + sellerComment: String + type: String! +} + enum StagedQuoteState { Closed InProgress Sent } +type StagedQuoteStateChanged implements MessagePayload { + stagedQuoteState: StagedQuoteState! + oldStagedQuoteState: StagedQuoteState! + type: String! +} + +type StagedQuoteStateTransition implements MessagePayload { + stateRef: Reference! + oldStateRef: Reference + force: Boolean! + state: State + oldState: State + type: String! +} + input StagedQuoteUpdateAction { changeStagedQuoteState: ChangeStagedQuoteState setSellerComment: SetStagedQuoteSellerComment @@ -12302,6 +12404,11 @@ input StagedQuoteUpdateAction { transitionState: TransitionStagedQuoteState } +type StagedQuoteValidToSet implements MessagePayload { + validTo: DateTime + type: String! +} + type StagedStandalonePrice { value: BaseMoney! discounted: DiscountedProductPriceValue diff --git a/references.txt b/references.txt index 864eacd727a..c016156c52b 100644 --- a/references.txt +++ b/references.txt @@ -110,3 +110,4 @@ b87a5af949a8f5ed96109ac56ec0df61758145dd 17da4aad01ab00bf0bbabdbd23940a0254c467ba 97b5234919598fa0df51743391a351d68b7fa4f0 b6e5867a3d6c2e0a2a60053b76db39897ac09f20 +830ab50c82044a96489d7d510cce0ab1d94457cb From cdd97a239632cc09e3e162e08bac2f8bd8dec7f3 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Fri, 25 Aug 2023 13:58:10 +0000 Subject: [PATCH 08/12] TASK: Updating SDK --- changes.md | 2 ++ .../Generated/Models/Carts/ILineItemDraft.cs | 6 ++++ .../Carts/IMethodExternalTaxRateDraft.cs | 14 ++++++++ .../Generated/Models/Carts/LineItemDraft.cs | 6 ++++ .../Carts/MethodExternalTaxRateDraft.cs | 10 ++++++ .../Carts/LineItemDraftQueryBuilderDsl.cs | 13 +++++++ ...thodExternalTaxRateDraftQueryBuilderDsl.cs | 35 +++++++++++++++++++ .../schema.graphqls | 13 +++++++ references.txt | 1 + 9 files changed, 100 insertions(+) create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IMethodExternalTaxRateDraft.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/MethodExternalTaxRateDraft.cs create mode 100644 commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/MethodExternalTaxRateDraftQueryBuilderDsl.cs diff --git a/changes.md b/changes.md index 42b87e95a43..92ad58061df 100644 --- a/changes.md +++ b/changes.md @@ -3,6 +3,7 @@
Added Type(s) +- added type `MethodExternalTaxRateDraft` - added type `QuoteRenegotiationRequestedMessage` - added type `QuoteRenegotiationRequestedMessagePayload`
@@ -11,6 +12,7 @@
Added Property(s) +- added property `perMethodExternalTaxRate` to type `LineItemDraft` - added property `cart` to type `QuoteRequest`
diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItemDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItemDraft.cs index 2c3aa0d4881..25925d3a91b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItemDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ILineItemDraft.cs @@ -2,6 +2,8 @@ using commercetools.Sdk.Api.Models.Common; using commercetools.Sdk.Api.Models.Types; using System; +using System.Collections.Generic; +using System.Linq; using commercetools.Base.CustomAttributes; // ReSharper disable CheckNamespace @@ -32,6 +34,10 @@ public partial interface ILineItemDraft IExternalTaxRateDraft ExternalTaxRate { get; set; } + IList PerMethodExternalTaxRate { get; set; } + IEnumerable PerMethodExternalTaxRateEnumerable { set => PerMethodExternalTaxRate = value.ToList(); } + + IInventoryMode InventoryMode { get; set; } IItemShippingDetailsDraft ShippingDetails { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IMethodExternalTaxRateDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IMethodExternalTaxRateDraft.cs new file mode 100644 index 00000000000..2e2987d6942 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/IMethodExternalTaxRateDraft.cs @@ -0,0 +1,14 @@ +using commercetools.Base.CustomAttributes; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Carts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.MethodExternalTaxRateDraft))] + public partial interface IMethodExternalTaxRateDraft + { + string ShippingMethodKey { get; set; } + + IExternalTaxRateDraft TaxRate { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItemDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItemDraft.cs index 2e5e2519078..ac5eb3dc70d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItemDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/LineItemDraft.cs @@ -2,6 +2,8 @@ using commercetools.Sdk.Api.Models.Common; using commercetools.Sdk.Api.Models.Types; using System; +using System.Collections.Generic; +using System.Linq; namespace commercetools.Sdk.Api.Models.Carts @@ -31,6 +33,10 @@ public partial class LineItemDraft : ILineItemDraft public IExternalTaxRateDraft ExternalTaxRate { get; set; } + public IList PerMethodExternalTaxRate { get; set; } + public IEnumerable PerMethodExternalTaxRateEnumerable { set => PerMethodExternalTaxRate = value.ToList(); } + + public IInventoryMode InventoryMode { get; set; } public IItemShippingDetailsDraft ShippingDetails { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/MethodExternalTaxRateDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/MethodExternalTaxRateDraft.cs new file mode 100644 index 00000000000..b05314ec144 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/MethodExternalTaxRateDraft.cs @@ -0,0 +1,10 @@ +namespace commercetools.Sdk.Api.Models.Carts +{ + + public partial class MethodExternalTaxRateDraft : IMethodExternalTaxRateDraft + { + public string ShippingMethodKey { get; set; } + + public IExternalTaxRateDraft TaxRate { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/LineItemDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/LineItemDraftQueryBuilderDsl.cs index fe92cbc21bf..ab867828130 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/LineItemDraftQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/LineItemDraftQueryBuilderDsl.cs @@ -96,6 +96,19 @@ public CombinationQueryPredicate ExternalTaxRate( LineItemDraftQueryBuilderDsl.Of); } + public CombinationQueryPredicate PerMethodExternalTaxRate( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("perMethodExternalTaxRate")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.MethodExternalTaxRateDraftQueryBuilderDsl.Of())), + LineItemDraftQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder PerMethodExternalTaxRate() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("perMethodExternalTaxRate")), + p => new CombinationQueryPredicate(p, LineItemDraftQueryBuilderDsl.Of)); + } public IComparisonPredicateBuilder InventoryMode() { return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("inventoryMode")), diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/MethodExternalTaxRateDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/MethodExternalTaxRateDraftQueryBuilderDsl.cs new file mode 100644 index 00000000000..2737fd44eda --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/MethodExternalTaxRateDraftQueryBuilderDsl.cs @@ -0,0 +1,35 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Carts +{ + + public partial class MethodExternalTaxRateDraftQueryBuilderDsl + { + public MethodExternalTaxRateDraftQueryBuilderDsl() + { + } + + public static MethodExternalTaxRateDraftQueryBuilderDsl Of() + { + return new MethodExternalTaxRateDraftQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder ShippingMethodKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("shippingMethodKey")), + p => new CombinationQueryPredicate(p, MethodExternalTaxRateDraftQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate TaxRate( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("taxRate")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.ExternalTaxRateDraftQueryBuilderDsl.Of())), + MethodExternalTaxRateDraftQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index fae695db223..4a35151afff 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -140,6 +140,7 @@ input AddCartLineItem { inventoryMode: InventoryMode externalTotalPrice: ExternalLineItemTotalPriceDraft externalPrice: BaseMoneyInput + perMethodExternalTaxRate: [MethodExternalTaxRateDraft!] = [] externalTaxRate: ExternalTaxRateDraft custom: CustomFieldsDraft distributionChannel: ResourceIdentifierInput @@ -415,6 +416,7 @@ input AddStagedOrderLineItem { inventoryMode: InventoryMode externalTotalPrice: ExternalLineItemTotalPriceDraft externalPrice: BaseMoneyInput + perMethodExternalTaxRate: [MethodExternalTaxRateDraft!] = [] externalTaxRate: ExternalTaxRateDraft custom: CustomFieldsDraft distributionChannel: ResourceIdentifierInput @@ -4473,6 +4475,7 @@ type LineItemDraftOutput { variantId: Int custom: CustomFieldsCommand externalTaxRate: ExternalTaxRateDraftOutput + perMethodExternalTaxRate: [MethodExternalTaxRateDraftOutput!]! externalPrice: BaseMoney externalTotalPrice: ExternalLineItemTotalPrice inventoryMode: InventoryMode @@ -4826,6 +4829,16 @@ input MessagesConfigurationDraft { deleteDaysAfterCreation: Int! } +input MethodExternalTaxRateDraft { + shippingMethodKey: String! + taxRate: ExternalTaxRateDraft +} + +type MethodExternalTaxRateDraftOutput { + shippingMethodKey: String! + taxRate: ExternalTaxRateDraftOutput +} + type MethodTaxRate { shippingMethodKey: String! taxRate: TaxRate diff --git a/references.txt b/references.txt index c016156c52b..c65927d2fee 100644 --- a/references.txt +++ b/references.txt @@ -111,3 +111,4 @@ b87a5af949a8f5ed96109ac56ec0df61758145dd 97b5234919598fa0df51743391a351d68b7fa4f0 b6e5867a3d6c2e0a2a60053b76db39897ac09f20 830ab50c82044a96489d7d510cce0ab1d94457cb +bfe523743210ff2f419c41603370ea502eb53a9f From 00dc55a7ea8c88003dbfe5de5edc32467a51b446 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Tue, 29 Aug 2023 07:40:27 +0000 Subject: [PATCH 09/12] TASK: Updating SDK --- .../commercetools.Sdk.GraphQL.Api/schema.graphqls | 4 +--- references.txt | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 4a35151afff..788cfae8afb 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -1617,7 +1617,7 @@ type CartLimitsProjection { } enum CartOrigin { - "The cart was created by our platform and belongs to a Quote. BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + "The cart was created by our platform and belongs to a Quote" Quote "The cart was created by the merchant on behalf of the customer" @@ -5892,7 +5892,6 @@ input MyQuoteRequestUpdateAction { enum MyQuoteState { Accepted Declined - Failed } input MyQuoteUpdateAction { @@ -8528,7 +8527,6 @@ enum QuoteState { Accepted Declined DeclinedForRenegotiation - Failed Pending RenegotiationAddressed Withdrawn diff --git a/references.txt b/references.txt index c65927d2fee..24f5da0a328 100644 --- a/references.txt +++ b/references.txt @@ -112,3 +112,4 @@ b87a5af949a8f5ed96109ac56ec0df61758145dd b6e5867a3d6c2e0a2a60053b76db39897ac09f20 830ab50c82044a96489d7d510cce0ab1d94457cb bfe523743210ff2f419c41603370ea502eb53a9f +5efe811554951075701947902352603496886462 From 2513b0b75dfb4e71f3e79d8842c0ed0b1cac366a Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Tue, 29 Aug 2023 09:36:09 +0000 Subject: [PATCH 10/12] TASK: Updating SDK --- changes.md | 7 +++++++ .../Generated/Models/Quotes/QuoteState.cs | 7 ------- references.txt | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/changes.md b/changes.md index 92ad58061df..f28037a5987 100644 --- a/changes.md +++ b/changes.md @@ -16,6 +16,13 @@ - added property `cart` to type `QuoteRequest`
+ +
+Removed Enum(s) + +- :warning: removed enum `Failed` from type `QuoteState` +
+ **Import changes**
diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteState.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteState.cs index dc4d6ec3130..ab9ed781049 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteState.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteState.cs @@ -25,9 +25,6 @@ public enum QuoteState [Description("Accepted")] Accepted, - [Description("Failed")] - Failed, - [Description("Withdrawn")] Withdrawn } @@ -70,9 +67,6 @@ public interface IQuoteState : IJsonName, IEnumerable public static IQuoteState Accepted = new QuoteStateWrapper { Value = QuoteState.Accepted, JsonName = "Accepted" }; - public static IQuoteState Failed = new QuoteStateWrapper - { Value = QuoteState.Failed, JsonName = "Failed" }; - public static IQuoteState Withdrawn = new QuoteStateWrapper { Value = QuoteState.Withdrawn, JsonName = "Withdrawn" }; @@ -87,7 +81,6 @@ static IQuoteState[] Values() DeclinedForRenegotiation , RenegotiationAddressed , Accepted , - Failed , Withdrawn }; } diff --git a/references.txt b/references.txt index 24f5da0a328..9d60a080c8f 100644 --- a/references.txt +++ b/references.txt @@ -113,3 +113,4 @@ b6e5867a3d6c2e0a2a60053b76db39897ac09f20 830ab50c82044a96489d7d510cce0ab1d94457cb bfe523743210ff2f419c41603370ea502eb53a9f 5efe811554951075701947902352603496886462 +89f01e73d692d2fbf928b73afd262182bf2333df From 760e2056fadb7fb212465284bb17207343b6f742 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Wed, 30 Aug 2023 08:21:59 +0000 Subject: [PATCH 11/12] TASK: Updating SDK --- references.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/references.txt b/references.txt index 9d60a080c8f..493e0eec8f6 100644 --- a/references.txt +++ b/references.txt @@ -114,3 +114,4 @@ b6e5867a3d6c2e0a2a60053b76db39897ac09f20 bfe523743210ff2f419c41603370ea502eb53a9f 5efe811554951075701947902352603496886462 89f01e73d692d2fbf928b73afd262182bf2333df +f1729de20af531d18ce99936f1d63d046cba1a28 From ece06b6a9924b8563f7ffda44eb1efc5aa13b560 Mon Sep 17 00:00:00 2001 From: Auto Mation Date: Wed, 30 Aug 2023 10:58:45 +0000 Subject: [PATCH 12/12] TASK: Updating SDK --- references.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/references.txt b/references.txt index 493e0eec8f6..e01cd0c655c 100644 --- a/references.txt +++ b/references.txt @@ -115,3 +115,4 @@ bfe523743210ff2f419c41603370ea502eb53a9f 5efe811554951075701947902352603496886462 89f01e73d692d2fbf928b73afd262182bf2333df f1729de20af531d18ce99936f1d63d046cba1a28 +718b6d0e1b971fd0d199832e5523716191a921b4