diff --git a/changes.md b/changes.md index 63a6e9ee438..306bbe20dd6 100644 --- a/changes.md +++ b/changes.md @@ -1,110 +1,179 @@ **Api changes**
-Added Property(s) +Added Enum(s) -- added property `discountCodeId` to type `DiscountCodeNonApplicableError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/DiscountCodeNonApplicableError.raml:27:2) -- added property `extensionErrors` to type `ExtensionBadResponseError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/ExtensionBadResponseError.raml:23:2) -- added property `extensionBody` to type `ExtensionBadResponseError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/ExtensionBadResponseError.raml:27:2) -- added property `extensionStatusCode` to type `ExtensionBadResponseError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/ExtensionBadResponseError.raml:30:2) -- added property `extensionId` to type `ExtensionBadResponseError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/ExtensionBadResponseError.raml:33:2) -- added property `extensionKey` to type `ExtensionBadResponseError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/ExtensionBadResponseError.raml:36:2) -- added property `extensionErrors` to type `ExtensionUpdateActionsFailedError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/ExtensionUpdateActionsFailedError.raml:24:2) -- added property `detailedErrorMessage` to type `InvalidJsonInputError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/InvalidJsonInputError.raml:17:2) -- added property `countries` to type `StoreCreatedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/message/StoreCreatedMessage.raml:17:2) -- added property `countries` to type `StoreCreatedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/message/payload/StoreCreatedMessagePayload.raml:17:2) -- added property `priceMode` to type `ProductProjection` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/product/ProductProjection.raml:103:2) -- added property `countries` to type `Store` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/store/Store.raml:51:2) -- added property `countries` to type `StoreDraft` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/store/StoreDraft.raml:23:2) +- added enum `Frozen` to type `CartState`
-Removed Property(s) +Added Resource(s) -- :warning: removed property `dicountCodeId` from type `DiscountCodeNonApplicableError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/error/DiscountCodeNonApplicableError.raml:10:2) -- :warning: removed property `conflictingResource` from type `DuplicateFieldError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/error/DuplicateFieldError.raml:10:2) -- :warning: removed property `error` from type `ErrorResponse` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/error/ErrorResponse.raml:9:2) -- :warning: removed property `error_description` from type `ErrorResponse` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/error/ErrorResponse.raml:11:2) -- :warning: removed property `errorByExtension` from type `ExtensionBadResponseError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/error/ExtensionBadResponseError.raml:10:2) -- :warning: removed property `errorByExtension` from type `ExtensionUpdateActionsFailedError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/error/ExtensionUpdateActionsFailedError.raml:10:2) +- added resource `/{projectKey}/shipping-methods/matching-cart-location`
Changed Property(s) -- :warning: changed property `currency` of type `DuplicateStandalonePriceScopeError` from type `string` to `CurrencyCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/DuplicateStandalonePriceScopeError.raml:25:2) -- :warning: changed property `country` of type `DuplicateStandalonePriceScopeError` from type `string` to `CountryCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/DuplicateStandalonePriceScopeError.raml:29:2) -- :warning: changed property `currency` of type `MatchingPriceNotFoundError` from type `string` to `CurrencyCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/MatchingPriceNotFoundError.raml:29:2) -- :warning: changed property `country` of type `MatchingPriceNotFoundError` from type `string` to `CountryCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/MatchingPriceNotFoundError.raml:33:2) -- :warning: changed property `country` of type `MissingTaxRateForCountryError` from type `string` to `CountryCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/MissingTaxRateForCountryError.raml:23:2) -- :warning: changed property `currency` of type `OverlappingStandalonePriceValidityError` from type `string` to `CurrencyCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/OverlappingStandalonePriceValidityError.raml:25:2) -- :warning: changed property `country` of type `OverlappingStandalonePriceValidityError` from type `string` to `CountryCode` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/OverlappingStandalonePriceValidityError.raml:29:2) -- :warning: changed property `amountPlanned` of type `MyPayment` from type `TypedMoney` to `CentPrecisionMoney` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/me/MyPayment.raml:27:2) -- :warning: changed property `amountPlanned` of type `Payment` from type `TypedMoney` to `CentPrecisionMoney` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/payment/Payment.raml:49:2) +- :warning: changed property `amount` of type `Transaction` from type `TypedMoney` to `CentPrecisionMoney` +- :warning: changed property `assets` of type `ProductAddVariantAction` from type `Asset[]` to `AssetDraft[]` +
+ + +
+Added Property(s) + +- added property `defaultShippingAddressId` to type `BusinessUnit` +- added property `defaultShippingAddress` to type `BusinessUnitDraft` +- added property `defaultShippingAddressId` to type `Company` +- added property `defaultShippingAddress` to type `CompanyDraft` +- added property `defaultShippingAddressId` to type `Division` +- added property `defaultShippingAddress` to type `DivisionDraft` +- added property `conflictingPrice` to type `DuplicatePriceScopeError` +- added property `defaultShippingAddress` to type `MyBusinessUnitDraft` +- added property `defaultShippingAddress` to type `MyCompanyDraft` +- added property `defaultShippingAddress` to type `MyDivisionDraft` +- added property `cartId` to type `MyQuoteRequestDraft` +- added property `cartVersion` to type `MyQuoteRequestDraft` +- added property `createdAt` to type `AssignedProductSelection` +- added property `quoteState` to type `Quote`
Required Property(s) -- :warning: changed property `field` of type `DuplicateFieldError` to be required (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/DuplicateFieldError.raml:14:2) -- :warning: changed property `duplicateValue` of type `DuplicateFieldError` to be required (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/error/DuplicateFieldError.raml:18:2) -- :warning: changed property `state` of type `Transaction` to be required (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/payment/Transaction.raml:27:2) -- :warning: changed property `lineItems` of type `ShoppingList` to be required (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/shopping-list/ShoppingList.raml:41:2) -- :warning: changed property `textLineItems` of type `ShoppingList` to be required (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/shopping-list/ShoppingList.raml:45:2) +- changed property `discounted` of type `StagedStandalonePrice` to be optional +
+ + +
+Removed Property(s) + +- :warning: removed property `defaultShipingAddressId` from type `BusinessUnit` +- :warning: removed property `defaultShipingAddress` from type `BusinessUnitDraft` +- :warning: removed property `defaultShipingAddressId` from type `Company` +- :warning: removed property `defaultShipingAddress` from type `CompanyDraft` +- :warning: removed property `defaultShipingAddressId` from type `Division` +- :warning: removed property `defaultShipingAddress` from type `DivisionDraft` +- :warning: removed property `conflictingPrices` from type `DuplicatePriceScopeError` +- :warning: removed property `defaultShipingAddress` from type `MyBusinessUnitDraft` +- :warning: removed property `defaultShipingAddress` from type `MyCompanyDraft` +- :warning: removed property `defaultShipingAddress` from type `MyDivisionDraft` +- :warning: removed property `cart` from type `MyQuoteRequestDraft` +- :warning: removed property `version` from type `MyQuoteRequestDraft`
Added Type(s) -- added type `AuthErrorResponse` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:412:0) -- added type `CountryNotConfiguredInStore` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:415:0) -- added type `ExtensionError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:434:0) -- added type `ExtensionPredicateEvaluationFailedError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:436:0) -- added type `ProductAssignmentMissingError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:465:0) -- added type `ProductPresentWithDifferentVariantSelectionError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:466:0) -- added type `ProductPriceAddedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:747:0) -- added type `ProductPriceChangedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:748:0) -- added type `ProductPriceModeSetMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:752:0) -- added type `ProductPriceRemovedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:753:0) -- added type `ProductPriceSetMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:754:0) -- added type `StoreCountriesChangedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:794:0) -- added type `ProductPriceAddedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:906:0) -- added type `ProductPriceChangedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:907:0) -- added type `ProductPriceModeSetMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:911:0) -- added type `ProductPriceRemovedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:912:0) -- added type `ProductPriceSetMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:913:0) -- added type `StoreCountriesChangedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:957:0) -- added type `StoreCountry` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1624:0) -- added type `StoreAddCountryAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1632:0) -- added type `StoreRemoveCountryAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1637:0) -- added type `StoreSetCountriesAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1641:0) +- added type `CartFreezeCartAction` +- added type `CartUnfreezeCartAction` +- added type `DuplicatePriceKeyError` +- added type `ProductPriceKeySetMessage` +- added type `ProductPricesSetMessage` +- added type `StandalonePriceKeySetMessage` +- added type `ProductPriceKeySetMessagePayload` +- added type `ProductPricesSetMessagePayload` +- added type `StandalonePriceKeySetMessagePayload` +- added type `ProductSetPriceKeyAction` +- added type `StandalonePriceSetKeyAction`
Removed Type(s) -- :warning: removed type `AccessDeniedError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/types.raml:408:0) -- :warning: removed type `WeakPasswordError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference-previous/api-specs/api/types/types.raml:478:0) +- :warning: removed type `ProductPriceSetMessage` +- :warning: removed type `ProductPriceSetMessagePayload` +
+ + +
+Added Method(s) + +- added method `apiRoot.withProjectKey().shippingMethods().matchingCartLocation().get()` +
+ +**ML changes** + +
+Deprecated Method(s) + +- method `post /{projectKey}/missing-data/attributes` is deprecated +- method `post /{projectKey}/missing-data/images` is deprecated +- method `post /{projectKey}/missing-data/prices` is deprecated +- method `get /{projectKey}/missing-data/attributes/status/{taskId}` is deprecated +- method `get /{projectKey}/missing-data/images/status/{taskId}` is deprecated +- method `get /{projectKey}/missing-data/prices/status/{taskId}` is deprecated +
+ + +
+Deprecated Property(s) + +- property `MissingAttributes::attributeCount` is deprecated +- property `MissingAttributes::attributeCoverage` is deprecated +- property `MissingAttributesMeta::productLevel` is deprecated +- property `MissingAttributesMeta::variantLevel` is deprecated +- property `MissingAttributesPagedQueryResult::meta` is deprecated +- property `MissingDataTaskStatus::result` is deprecated +- property `MissingImagesMeta::productLevel` is deprecated +- property `MissingImagesMeta::variantLevel` is deprecated +- property `MissingImagesPagedQueryResult::meta` is deprecated +- property `MissingImagesTaskStatus::result` is deprecated +- property `MissingPricesMeta::productLevel` is deprecated +- property `MissingPricesMeta::variantLevel` is deprecated +- property `MissingPricesPagedQueryResult::meta` is deprecated +- property `MissingPricesTaskStatus::result` is deprecated +
+ + +
+Deprecated Resource(s) + +- resource `/{projectKey}/missing-data` is deprecated +- resource `/{projectKey}/missing-data/attributes` is deprecated +- resource `/{projectKey}/missing-data/images` is deprecated +- resource `/{projectKey}/missing-data/prices` is deprecated +- resource `/{projectKey}/missing-data/attributes/status` is deprecated +- resource `/{projectKey}/missing-data/attributes/status/{taskId}` is deprecated +- resource `/{projectKey}/missing-data/images/status` is deprecated +- resource `/{projectKey}/missing-data/images/status/{taskId}` is deprecated +- resource `/{projectKey}/missing-data/prices/status` is deprecated +- resource `/{projectKey}/missing-data/prices/status/{taskId}` is deprecated
-Added QueryParameter(s) - -- added query parameter `localeProjection` to method `get /{projectKey}/products` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `post /{projectKey}/products` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `get /{projectKey}/products/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `post /{projectKey}/products/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `delete /{projectKey}/products/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `get /{projectKey}/products/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `post /{projectKey}/products/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `localeProjection` to method `delete /{projectKey}/products/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/price-selecting.raml:23:2) -- added query parameter `staged` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/projection-selecting.raml:3:2) -- added query parameter `staged` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/traits/projection-selecting.raml:3:2) +Deprecated Type(s) + +- type `AttributeCount` is deprecated +- type `AttributeCoverage` is deprecated +- type `MissingAttributesDetails` is deprecated +- type `MissingAttributes` is deprecated +- type `MissingAttributesMeta` is deprecated +- type `MissingAttributesSearchRequest` is deprecated +- type `MissingAttributesPagedQueryResult` is deprecated +- type `MissingDataTaskStatus` is deprecated +- type `MissingImages` is deprecated +- type `MissingImagesCount` is deprecated +- type `MissingImagesProductLevel` is deprecated +- type `MissingImagesVariantLevel` is deprecated +- type `MissingImagesMeta` is deprecated +- type `MissingImagesSearchRequest` is deprecated +- type `MissingImagesPagedQueryResult` is deprecated +- type `MissingImagesTaskStatus` is deprecated +- type `MissingPrices` is deprecated +- type `MissingPricesProductCount` is deprecated +- type `MissingPricesProductLevel` is deprecated +- type `MissingPricesVariantLevel` is deprecated +- type `MissingPricesMeta` is deprecated +- type `MissingPricesSearchRequest` is deprecated +- type `MissingPricesPagedQueryResult` is deprecated +- type `MissingPricesTaskStatus` is deprecated
diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs index c43b5a0523e..678c05ba4a5 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDTest.cs @@ -24,10 +24,10 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithId("test_ID") - .Get() + .Post(null) .WithExpand("expand") .Build(), - "Get", + "Post", "/test_projectKey/me/quote-requests/test_ID?expand=expand", }, new Object[] { @@ -36,9 +36,9 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithId("test_ID") - .Get() + .Post(null) .Build(), - "Get", + "Post", "/test_projectKey/me/quote-requests/test_ID", }, new Object[] { @@ -47,11 +47,11 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithId("test_ID") - .Post(null) - .WithExpand("expand") + .Delete() + .WithVersion(2) .Build(), - "Post", - "/test_projectKey/me/quote-requests/test_ID?expand=expand", + "Delete", + "/test_projectKey/me/quote-requests/test_ID?version=2", }, new Object[] { ApiRoot @@ -59,10 +59,11 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithId("test_ID") - .Post(null) + .Delete() + .WithExpand("expand") .Build(), - "Post", - "/test_projectKey/me/quote-requests/test_ID", + "Delete", + "/test_projectKey/me/quote-requests/test_ID?expand=expand", }, new Object[] { ApiRoot @@ -71,10 +72,9 @@ public static IEnumerable GetData() .QuoteRequests() .WithId("test_ID") .Delete() - .WithVersion(2) .Build(), "Delete", - "/test_projectKey/me/quote-requests/test_ID?version=2", + "/test_projectKey/me/quote-requests/test_ID", }, new Object[] { ApiRoot @@ -82,10 +82,10 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithId("test_ID") - .Delete() + .Get() .WithExpand("expand") .Build(), - "Delete", + "Get", "/test_projectKey/me/quote-requests/test_ID?expand=expand", }, new Object[] { @@ -94,9 +94,9 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithId("test_ID") - .Delete() + .Get() .Build(), - "Delete", + "Get", "/test_projectKey/me/quote-requests/test_ID", } }; diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs index fded036db53..b20892158cf 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyTest.cs @@ -24,10 +24,10 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithKey("test_key") - .Get() + .Post(null) .WithExpand("expand") .Build(), - "Get", + "Post", "/test_projectKey/me/quote-requests/key=test_key?expand=expand", }, new Object[] { @@ -36,9 +36,9 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithKey("test_key") - .Get() + .Post(null) .Build(), - "Get", + "Post", "/test_projectKey/me/quote-requests/key=test_key", }, new Object[] { @@ -47,11 +47,11 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithKey("test_key") - .Post(null) - .WithExpand("expand") + .Delete() + .WithVersion(2) .Build(), - "Post", - "/test_projectKey/me/quote-requests/key=test_key?expand=expand", + "Delete", + "/test_projectKey/me/quote-requests/key=test_key?version=2", }, new Object[] { ApiRoot @@ -59,10 +59,11 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithKey("test_key") - .Post(null) + .Delete() + .WithExpand("expand") .Build(), - "Post", - "/test_projectKey/me/quote-requests/key=test_key", + "Delete", + "/test_projectKey/me/quote-requests/key=test_key?expand=expand", }, new Object[] { ApiRoot @@ -71,10 +72,9 @@ public static IEnumerable GetData() .QuoteRequests() .WithKey("test_key") .Delete() - .WithVersion(2) .Build(), "Delete", - "/test_projectKey/me/quote-requests/key=test_key?version=2", + "/test_projectKey/me/quote-requests/key=test_key", }, new Object[] { ApiRoot @@ -82,10 +82,10 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithKey("test_key") - .Delete() + .Get() .WithExpand("expand") .Build(), - "Delete", + "Get", "/test_projectKey/me/quote-requests/key=test_key?expand=expand", }, new Object[] { @@ -94,9 +94,9 @@ public static IEnumerable GetData() .Me() .QuoteRequests() .WithKey("test_key") - .Delete() + .Get() .Build(), - "Delete", + "Get", "/test_projectKey/me/quote-requests/key=test_key", } }; diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationTest.cs new file mode 100644 index 00000000000..7a99d20dd74 --- /dev/null +++ b/commercetools.Sdk/Tests/commercetools.Sdk.Api.Tests/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationTest.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using Xunit; + +namespace commercetools.Sdk.Api.Tests.Client.RequestBuilders.ShippingMethods +{ + public class ByProjectKeyShippingMethodsMatchingCartLocationTest : RequestBuilderParentTests + { + [Theory] + [MemberData(nameof(GetData))] + public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) + { + Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); + Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); + } + + public static IEnumerable GetData() + { + return new List { + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ShippingMethods() + .MatchingCartLocation() + .Get() + .WithCountry("country") + .Build(), + "Get", + "/test_projectKey/shipping-methods/matching-cart-location?country=country", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ShippingMethods() + .MatchingCartLocation() + .Get() + .WithState("state") + .Build(), + "Get", + "/test_projectKey/shipping-methods/matching-cart-location?state=state", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ShippingMethods() + .MatchingCartLocation() + .Get() + .WithCartId("cartId") + .Build(), + "Get", + "/test_projectKey/shipping-methods/matching-cart-location?cartId=cartId", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ShippingMethods() + .MatchingCartLocation() + .Get() + .WithExpand("expand") + .Build(), + "Get", + "/test_projectKey/shipping-methods/matching-cart-location?expand=expand", + }, + new Object[] { + ApiRoot + .WithProjectKey("test_projectKey") + .ShippingMethods() + .MatchingCartLocation() + .Get() + .Build(), + "Get", + "/test_projectKey/shipping-methods/matching-cart-location", + } + }; + } + } +} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdTest.cs deleted file mode 100644 index 2c57e329388..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdTest.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataAttributesStatusByTaskIdTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .MissingData() - .Attributes() - .Status() - .WithTaskId("test_taskId") - .Get() - .Build(), - "Get", - "/test_projectKey/missing-data/attributes/status/test_taskId", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusTest.cs deleted file mode 100644 index eb343f94b8b..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusTest.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataAttributesStatusTest : RequestBuilderParentTests - { - - - public static IEnumerable GetData() - { - return new List - { - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesTest.cs deleted file mode 100644 index 8af88ddd7f3..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataAttributesTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .MissingData() - .Attributes() - .Post(null) - .Build(), - "Post", - "/test_projectKey/missing-data/attributes", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdTest.cs deleted file mode 100644 index 70499f4569d..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdTest.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataImagesStatusByTaskIdTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .MissingData() - .Images() - .Status() - .WithTaskId("test_taskId") - .Get() - .Build(), - "Get", - "/test_projectKey/missing-data/images/status/test_taskId", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusTest.cs deleted file mode 100644 index 8c61631f662..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusTest.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataImagesStatusTest : RequestBuilderParentTests - { - - - public static IEnumerable GetData() - { - return new List - { - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesTest.cs deleted file mode 100644 index df83667d797..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataImagesTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .MissingData() - .Images() - .Post(null) - .Build(), - "Post", - "/test_projectKey/missing-data/images", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdTest.cs deleted file mode 100644 index 86f476af84e..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdTest.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataPricesStatusByTaskIdTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .MissingData() - .Prices() - .Status() - .WithTaskId("test_taskId") - .Get() - .Build(), - "Get", - "/test_projectKey/missing-data/prices/status/test_taskId", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusTest.cs deleted file mode 100644 index e11c9e8afdd..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusTest.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataPricesStatusTest : RequestBuilderParentTests - { - - - public static IEnumerable GetData() - { - return new List - { - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesTest.cs deleted file mode 100644 index c8e5c3659b5..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesTest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Net.Http; -using Xunit; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataPricesTest : RequestBuilderParentTests - { - [Theory] - [MemberData(nameof(GetData))] - public void WithMethods(HttpRequestMessage request, string httpMethod, string uri) - { - Assert.Equal(httpMethod.ToLower(), request.Method.Method.ToLower()); - Assert.Equal(uri.ToLower(), request.RequestUri.ToString().ToLower()); - } - - public static IEnumerable GetData() - { - return new List { - new Object[] { - ApiRoot - .WithProjectKey("test_projectKey") - .MissingData() - .Prices() - .Post(null) - .Build(), - "Post", - "/test_projectKey/missing-data/prices", - } - }; - } - } -} diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataTest.cs b/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataTest.cs deleted file mode 100644 index 3aa6f2ce1f9..00000000000 --- a/commercetools.Sdk/Tests/commercetools.Sdk.MLApi.Tests/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataTest.cs +++ /dev/null @@ -1,16 +0,0 @@ -using System.Collections.Generic; - -namespace commercetools.Sdk.MLApi.Tests.Client.RequestBuilders.MissingData -{ - public class ByProjectKeyMissingDataTest : RequestBuilderParentTests - { - - - public static IEnumerable GetData() - { - return new List - { - }; - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs index 90e9d5df13b..186e8e66e65 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsByIDRequestBuilder.cs @@ -23,11 +23,6 @@ public ByProjectKeyMeQuoteRequestsByIDRequestBuilder(IClient apiHttpClient, ISer this.ID = id; } - public ByProjectKeyMeQuoteRequestsByIDGet Get() - { - return new ByProjectKeyMeQuoteRequestsByIDGet(ApiHttpClient, ProjectKey, ID); - } - public ByProjectKeyMeQuoteRequestsByIDPost Post(commercetools.Sdk.Api.Models.Me.IMyQuoteRequestUpdate myQuoteRequestUpdate) { return new ByProjectKeyMeQuoteRequestsByIDPost(ApiHttpClient, SerializerService, ProjectKey, ID, myQuoteRequestUpdate); @@ -38,5 +33,10 @@ public ByProjectKeyMeQuoteRequestsByIDDelete Delete() return new ByProjectKeyMeQuoteRequestsByIDDelete(ApiHttpClient, ProjectKey, ID); } + public ByProjectKeyMeQuoteRequestsByIDGet Get() + { + return new ByProjectKeyMeQuoteRequestsByIDGet(ApiHttpClient, ProjectKey, ID); + } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs index 48ce840c0ce..ca91ada8b62 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/Me/ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder.cs @@ -23,11 +23,6 @@ public ByProjectKeyMeQuoteRequestsKeyByKeyRequestBuilder(IClient apiHttpClient, this.Key = key; } - public ByProjectKeyMeQuoteRequestsKeyByKeyGet Get() - { - return new ByProjectKeyMeQuoteRequestsKeyByKeyGet(ApiHttpClient, ProjectKey, Key); - } - public ByProjectKeyMeQuoteRequestsKeyByKeyPost Post(commercetools.Sdk.Api.Models.Me.IMyQuoteRequestUpdate myQuoteRequestUpdate) { return new ByProjectKeyMeQuoteRequestsKeyByKeyPost(ApiHttpClient, SerializerService, ProjectKey, Key, myQuoteRequestUpdate); @@ -38,5 +33,10 @@ public ByProjectKeyMeQuoteRequestsKeyByKeyDelete Delete() return new ByProjectKeyMeQuoteRequestsKeyByKeyDelete(ApiHttpClient, ProjectKey, Key); } + public ByProjectKeyMeQuoteRequestsKeyByKeyGet Get() + { + return new ByProjectKeyMeQuoteRequestsKeyByKeyGet(ApiHttpClient, ProjectKey, Key); + } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationGet.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationGet.cs new file mode 100644 index 00000000000..9ee7e4d0736 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationGet.cs @@ -0,0 +1,77 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using System.Threading; +using commercetools.Base.Client; + + +namespace commercetools.Sdk.Api.Client.RequestBuilders.ShippingMethods +{ + + public partial class ByProjectKeyShippingMethodsMatchingCartLocationGet : ApiMethod, IApiMethod, commercetools.Sdk.Api.Client.IExpandableTrait, commercetools.Sdk.Api.Client.IErrorableTrait, commercetools.Sdk.Api.Client.IDeprecatable200Trait + { + + + private IClient ApiHttpClient { get; } + + public override HttpMethod Method => HttpMethod.Get; + + private string ProjectKey { get; } + + + public ByProjectKeyShippingMethodsMatchingCartLocationGet(IClient apiHttpClient, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.ProjectKey = projectKey; + this.RequestUrl = $"/{ProjectKey}/shipping-methods/matching-cart-location"; + } + + public List GetCountry() + { + return this.GetQueryParam("country"); + } + + public List GetState() + { + return this.GetQueryParam("state"); + } + + public List GetCartId() + { + return this.GetQueryParam("cartId"); + } + + public List GetExpand() + { + return this.GetQueryParam("expand"); + } + + public ByProjectKeyShippingMethodsMatchingCartLocationGet WithCountry(string country) + { + return this.AddQueryParam("country", country); + } + + public ByProjectKeyShippingMethodsMatchingCartLocationGet WithState(string state) + { + return this.AddQueryParam("state", state); + } + + public ByProjectKeyShippingMethodsMatchingCartLocationGet WithCartId(string cartId) + { + return this.AddQueryParam("cartId", cartId); + } + + public ByProjectKeyShippingMethodsMatchingCartLocationGet WithExpand(string expand) + { + return this.AddQueryParam("expand", expand); + } + + + public async Task ExecuteAsync(CancellationToken cancellationToken = default) + { + var requestMessage = Build(); + return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.cs new file mode 100644 index 00000000000..f1275f13dd5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder.cs @@ -0,0 +1,29 @@ +using commercetools.Base.Client; +using commercetools.Base.Serialization; + +namespace commercetools.Sdk.Api.Client.RequestBuilders.ShippingMethods +{ + + public class ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder + { + + private IClient ApiHttpClient { get; } + + private ISerializerService SerializerService { get; } + + private string ProjectKey { get; } + + public ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) + { + this.ApiHttpClient = apiHttpClient; + this.SerializerService = serializerService; + this.ProjectKey = projectKey; + } + + public ByProjectKeyShippingMethodsMatchingCartLocationGet Get() + { + return new ByProjectKeyShippingMethodsMatchingCartLocationGet(ApiHttpClient, ProjectKey); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsRequestBuilder.cs index fae8902dcb0..71f6b18f2f4 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Client/RequestBuilders/ShippingMethods/ByProjectKeyShippingMethodsRequestBuilder.cs @@ -41,6 +41,11 @@ public ByProjectKeyShippingMethodsMatchingCartRequestBuilder MatchingCart() return new ByProjectKeyShippingMethodsMatchingCartRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); } + public ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder MatchingCartLocation() + { + return new ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); + } + public ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder MatchingOrderedit() { return new ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnit.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnit.cs index e5da0674b13..997c703be52 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnit.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnit.cs @@ -49,7 +49,7 @@ public partial class BusinessUnit : IBusinessUnit public IEnumerable ShippingAddressIdsEnumerable { set => ShippingAddressIds = value.ToList(); } - public string DefaultShipingAddressId { get; set; } + public string DefaultShippingAddressId { get; set; } public IList BillingAddressIds { get; set; } public IEnumerable BillingAddressIdsEnumerable { set => BillingAddressIds = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnitDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnitDraft.cs index cd0d5b4b50d..ba42b00b897 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnitDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/BusinessUnitDraft.cs @@ -38,7 +38,7 @@ public partial class BusinessUnitDraft : IBusinessUnitDraft public IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - public int? DefaultShipingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public IList BillingAddresses { get; set; } public IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Company.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Company.cs index ed1fc83e8fc..669d26488b6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Company.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Company.cs @@ -49,7 +49,7 @@ public partial class Company : ICompany public IEnumerable ShippingAddressIdsEnumerable { set => ShippingAddressIds = value.ToList(); } - public string DefaultShipingAddressId { get; set; } + public string DefaultShippingAddressId { get; set; } public IList BillingAddressIds { get; set; } public IEnumerable BillingAddressIdsEnumerable { set => BillingAddressIds = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/CompanyDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/CompanyDraft.cs index 5b8775df992..b7b41dc4820 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/CompanyDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/CompanyDraft.cs @@ -38,7 +38,7 @@ public partial class CompanyDraft : ICompanyDraft public IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - public int? DefaultShipingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public IList BillingAddresses { get; set; } public IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Division.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Division.cs index de9cd277d5f..0e1a46409f7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Division.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/Division.cs @@ -49,7 +49,7 @@ public partial class Division : IDivision public IEnumerable ShippingAddressIdsEnumerable { set => ShippingAddressIds = value.ToList(); } - public string DefaultShipingAddressId { get; set; } + public string DefaultShippingAddressId { get; set; } public IList BillingAddressIds { get; set; } public IEnumerable BillingAddressIdsEnumerable { set => BillingAddressIds = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/DivisionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/DivisionDraft.cs index 84a881832c2..e95e64d7f3a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/DivisionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/DivisionDraft.cs @@ -38,7 +38,7 @@ public partial class DivisionDraft : IDivisionDraft public IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - public int? DefaultShipingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public IList BillingAddresses { get; set; } public IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnit.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnit.cs index 0fae8436ddb..4626fe5bee0 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnit.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnit.cs @@ -53,7 +53,7 @@ public partial interface IBusinessUnit : IBaseResource IEnumerable ShippingAddressIdsEnumerable { set => ShippingAddressIds = value.ToList(); } - string DefaultShipingAddressId { get; set; } + string DefaultShippingAddressId { get; set; } IList BillingAddressIds { get; set; } IEnumerable BillingAddressIdsEnumerable { set => BillingAddressIds = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnitDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnitDraft.cs index 226cf6da202..4bdfcad4921 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnitDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/BusinessUnits/IBusinessUnitDraft.cs @@ -43,7 +43,7 @@ public partial interface IBusinessUnitDraft IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - int? DefaultShipingAddress { get; set; } + int? DefaultShippingAddress { get; set; } IList BillingAddresses { get; set; } IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartFreezeCartAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartFreezeCartAction.cs new file mode 100644 index 00000000000..3f19b544b27 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartFreezeCartAction.cs @@ -0,0 +1,12 @@ +namespace commercetools.Sdk.Api.Models.Carts +{ + + public partial class CartFreezeCartAction : ICartFreezeCartAction + { + public string Action { get; set; } + public CartFreezeCartAction() + { + this.Action = "freezeCart"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartState.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartState.cs index 14b70876783..8c52c3830ff 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartState.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartState.cs @@ -15,7 +15,10 @@ public enum CartState Merged, [Description("Ordered")] - Ordered + Ordered, + + [Description("Frozen")] + Frozen } public class CartStateWrapper : ICartState @@ -50,6 +53,9 @@ public interface ICartState : IJsonName, IEnumerable public static ICartState Ordered = new CartStateWrapper { Value = CartState.Ordered, JsonName = "Ordered" }; + public static ICartState Frozen = new CartStateWrapper + { Value = CartState.Frozen, JsonName = "Frozen" }; + CartState? Value { get; } static ICartState[] Values() @@ -58,7 +64,8 @@ static ICartState[] Values() { Active , Merged , - Ordered + Ordered , + Frozen }; } static ICartState FindEnum(string value) diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartUnfreezeCartAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartUnfreezeCartAction.cs new file mode 100644 index 00000000000..9aa664a3f1c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/CartUnfreezeCartAction.cs @@ -0,0 +1,12 @@ +namespace commercetools.Sdk.Api.Models.Carts +{ + + public partial class CartUnfreezeCartAction : ICartUnfreezeCartAction + { + public string Action { get; set; } + public CartUnfreezeCartAction() + { + this.Action = "unfreezeCart"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartFreezeCartAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartFreezeCartAction.cs new file mode 100644 index 00000000000..e8b8ac98017 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartFreezeCartAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Carts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.CartFreezeCartAction))] + public partial interface ICartFreezeCartAction : ICartUpdateAction + { + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUnfreezeCartAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUnfreezeCartAction.cs new file mode 100644 index 00000000000..8d2272a0ee0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUnfreezeCartAction.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Carts +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.CartUnfreezeCartAction))] + public partial interface ICartUnfreezeCartAction : ICartUpdateAction + { + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs index de569edf85d..743efb63a99 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Carts/ICartUpdateAction.cs @@ -23,6 +23,7 @@ namespace commercetools.Sdk.Api.Models.Carts [SubTypeDiscriminator("changeTaxCalculationMode", typeof(commercetools.Sdk.Api.Models.Carts.CartChangeTaxCalculationModeAction))] [SubTypeDiscriminator("changeTaxMode", typeof(commercetools.Sdk.Api.Models.Carts.CartChangeTaxModeAction))] [SubTypeDiscriminator("changeTaxRoundingMode", typeof(commercetools.Sdk.Api.Models.Carts.CartChangeTaxRoundingModeAction))] + [SubTypeDiscriminator("freezeCart", typeof(commercetools.Sdk.Api.Models.Carts.CartFreezeCartAction))] [SubTypeDiscriminator("recalculate", typeof(commercetools.Sdk.Api.Models.Carts.CartRecalculateAction))] [SubTypeDiscriminator("removeCustomLineItem", typeof(commercetools.Sdk.Api.Models.Carts.CartRemoveCustomLineItemAction))] [SubTypeDiscriminator("removeDiscountCode", typeof(commercetools.Sdk.Api.Models.Carts.CartRemoveDiscountCodeAction))] @@ -73,6 +74,7 @@ namespace commercetools.Sdk.Api.Models.Carts [SubTypeDiscriminator("setShippingMethodTaxAmount", typeof(commercetools.Sdk.Api.Models.Carts.CartSetShippingMethodTaxAmountAction))] [SubTypeDiscriminator("setShippingMethodTaxRate", typeof(commercetools.Sdk.Api.Models.Carts.CartSetShippingMethodTaxRateAction))] [SubTypeDiscriminator("setShippingRateInput", typeof(commercetools.Sdk.Api.Models.Carts.CartSetShippingRateInputAction))] + [SubTypeDiscriminator("unfreezeCart", typeof(commercetools.Sdk.Api.Models.Carts.CartUnfreezeCartAction))] [SubTypeDiscriminator("updateItemShippingAddress", typeof(commercetools.Sdk.Api.Models.Carts.CartUpdateItemShippingAddressAction))] public partial interface ICartUpdateAction : commercetools.Sdk.Api.Models.IResourceUpdateAction { @@ -180,6 +182,12 @@ static commercetools.Sdk.Api.Models.Carts.CartChangeTaxRoundingModeAction Change init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Carts.CartFreezeCartAction FreezeCart(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Carts.CartFreezeCartAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Carts.CartRecalculateAction Recalculate(Action init = null) { var t = new commercetools.Sdk.Api.Models.Carts.CartRecalculateAction(); @@ -480,6 +488,12 @@ static commercetools.Sdk.Api.Models.Carts.CartSetShippingRateInputAction SetShip init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Carts.CartUnfreezeCartAction UnfreezeCart(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Carts.CartUnfreezeCartAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Carts.CartUpdateItemShippingAddressAction UpdateItemShippingAddress(Action init = null) { var t = new commercetools.Sdk.Api.Models.Carts.CartUpdateItemShippingAddressAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceKeyError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceKeyError.cs new file mode 100644 index 00000000000..abdfe4c951d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceKeyError.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Common; + + +namespace commercetools.Sdk.Api.Models.Errors +{ + + public partial class DuplicatePriceKeyError : IDuplicatePriceKeyError + { + public string Code { get; set; } + + public string Message { get; set; } + + public IPrice ConflictingPrice { get; set; } + public DuplicatePriceKeyError() + { + this.Code = "DuplicatePriceKey"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceScopeError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceScopeError.cs index fa115d64a4c..cd46f874585 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceScopeError.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/DuplicatePriceScopeError.cs @@ -1,6 +1,4 @@ using commercetools.Sdk.Api.Models.Common; -using System.Collections.Generic; -using System.Linq; namespace commercetools.Sdk.Api.Models.Errors @@ -12,9 +10,7 @@ public partial class DuplicatePriceScopeError : IDuplicatePriceScopeError public string Message { get; set; } - public IList ConflictingPrices { get; set; } - public IEnumerable ConflictingPricesEnumerable { set => ConflictingPrices = value.ToList(); } - + public IPrice ConflictingPrice { get; set; } public DuplicatePriceScopeError() { this.Code = "DuplicatePriceScope"; diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceKeyError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceKeyError.cs new file mode 100644 index 00000000000..e461196c6e9 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceKeyError.cs @@ -0,0 +1,17 @@ +using commercetools.Sdk.Api.Models.Common; +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Errors +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Errors.DuplicatePriceKeyError))] + public partial interface IDuplicatePriceKeyError : IErrorObject + { + new string Code { get; set; } + + new string Message { get; set; } + + IPrice ConflictingPrice { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceScopeError.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceScopeError.cs index 988806dd082..a9cd3f1c050 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceScopeError.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IDuplicatePriceScopeError.cs @@ -1,6 +1,4 @@ using commercetools.Sdk.Api.Models.Common; -using System.Collections.Generic; -using System.Linq; using commercetools.Base.CustomAttributes; @@ -13,9 +11,7 @@ public partial interface IDuplicatePriceScopeError : IErrorObject new string Message { get; set; } - IList ConflictingPrices { get; set; } - IEnumerable ConflictingPricesEnumerable { set => ConflictingPrices = value.ToList(); } - + IPrice ConflictingPrice { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IErrorObject.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IErrorObject.cs index fdc5da9f1f2..14a18d66b02 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IErrorObject.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Errors/IErrorObject.cs @@ -19,6 +19,7 @@ namespace commercetools.Sdk.Api.Models.Errors [SubTypeDiscriminator("DuplicateEnumValues", typeof(commercetools.Sdk.Api.Models.Errors.DuplicateEnumValuesError))] [SubTypeDiscriminator("DuplicateField", typeof(commercetools.Sdk.Api.Models.Errors.DuplicateFieldError))] [SubTypeDiscriminator("DuplicateFieldWithConflictingResource", typeof(commercetools.Sdk.Api.Models.Errors.DuplicateFieldWithConflictingResourceError))] + [SubTypeDiscriminator("DuplicatePriceKey", typeof(commercetools.Sdk.Api.Models.Errors.DuplicatePriceKeyError))] [SubTypeDiscriminator("DuplicatePriceScope", typeof(commercetools.Sdk.Api.Models.Errors.DuplicatePriceScopeError))] [SubTypeDiscriminator("DuplicateStandalonePriceScope", typeof(commercetools.Sdk.Api.Models.Errors.DuplicateStandalonePriceScopeError))] [SubTypeDiscriminator("DuplicateVariantValues", typeof(commercetools.Sdk.Api.Models.Errors.DuplicateVariantValuesError))] @@ -159,6 +160,12 @@ static commercetools.Sdk.Api.Models.Errors.DuplicateFieldWithConflictingResource init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Errors.DuplicatePriceKeyError DuplicatePriceKey(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Errors.DuplicatePriceKeyError(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Errors.DuplicatePriceScopeError DuplicatePriceScope(Action init = null) { var t = new commercetools.Sdk.Api.Models.Errors.DuplicatePriceScopeError(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyBusinessUnitDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyBusinessUnitDraft.cs index f55998db63c..df99f87b154 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyBusinessUnitDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyBusinessUnitDraft.cs @@ -33,7 +33,7 @@ public partial interface IMyBusinessUnitDraft IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - int? DefaultShipingAddress { get; set; } + int? DefaultShippingAddress { get; set; } IList BillingAddresses { get; set; } IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyQuoteRequestDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyQuoteRequestDraft.cs index 57b3b3a6ffe..d320a0da776 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyQuoteRequestDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/IMyQuoteRequestDraft.cs @@ -1,4 +1,3 @@ -using commercetools.Sdk.Api.Models.Carts; using commercetools.Base.CustomAttributes; @@ -7,9 +6,9 @@ namespace commercetools.Sdk.Api.Models.Me [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Me.MyQuoteRequestDraft))] public partial interface IMyQuoteRequestDraft { - ICartResourceIdentifier Cart { get; set; } + string CartId { get; set; } - long Version { get; set; } + long CartVersion { get; set; } string Comment { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyBusinessUnitDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyBusinessUnitDraft.cs index e43a368d234..1ad0dde8009 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyBusinessUnitDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyBusinessUnitDraft.cs @@ -28,7 +28,7 @@ public partial class MyBusinessUnitDraft : IMyBusinessUnitDraft public IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - public int? DefaultShipingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public IList BillingAddresses { get; set; } public IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCompanyDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCompanyDraft.cs index 83a364154c9..733a51ce2d0 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCompanyDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyCompanyDraft.cs @@ -28,7 +28,7 @@ public partial class MyCompanyDraft : IMyCompanyDraft public IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - public int? DefaultShipingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public IList BillingAddresses { get; set; } public IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyDivisionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyDivisionDraft.cs index e2599923f9b..b5fab646e59 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyDivisionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyDivisionDraft.cs @@ -28,7 +28,7 @@ public partial class MyDivisionDraft : IMyDivisionDraft public IEnumerable ShippingAddressesEnumerable { set => ShippingAddresses = value.ToList(); } - public int? DefaultShipingAddress { get; set; } + public int? DefaultShippingAddress { get; set; } public IList BillingAddresses { get; set; } public IEnumerable BillingAddressesEnumerable { set => BillingAddresses = value.ToList(); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyQuoteRequestDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyQuoteRequestDraft.cs index 3342878587c..23c51dba254 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyQuoteRequestDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Me/MyQuoteRequestDraft.cs @@ -1,14 +1,11 @@ -using commercetools.Sdk.Api.Models.Carts; - - namespace commercetools.Sdk.Api.Models.Me { public partial class MyQuoteRequestDraft : IMyQuoteRequestDraft { - public ICartResourceIdentifier Cart { get; set; } + public string CartId { get; set; } - public long Version { get; set; } + public long CartVersion { get; set; } public string Comment { get; set; } } 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 61515b9948e..b158c8e6394 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessage.cs @@ -103,9 +103,10 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("ProductPriceChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage))] [SubTypeDiscriminator("ProductPriceDiscountsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessage))] [SubTypeDiscriminator("ProductPriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMessage))] + [SubTypeDiscriminator("ProductPriceKeySet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessage))] [SubTypeDiscriminator("ProductPriceModeSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage))] [SubTypeDiscriminator("ProductPriceRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage))] - [SubTypeDiscriminator("ProductPriceSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage))] + [SubTypeDiscriminator("ProductPricesSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessage))] [SubTypeDiscriminator("ProductPublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductPublishedMessage))] [SubTypeDiscriminator("ProductRemovedFromCategory", typeof(commercetools.Sdk.Api.Models.Messages.ProductRemovedFromCategoryMessage))] [SubTypeDiscriminator("ProductRevertedStagedChanges", typeof(commercetools.Sdk.Api.Models.Messages.ProductRevertedStagedChangesMessage))] @@ -143,6 +144,7 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("StandalonePriceDeleted", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceDeletedMessage))] [SubTypeDiscriminator("StandalonePriceDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceDiscountSetMessage))] [SubTypeDiscriminator("StandalonePriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceExternalDiscountSetMessage))] + [SubTypeDiscriminator("StandalonePriceKeySet", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessage))] [SubTypeDiscriminator("StandalonePriceStagedChangesApplied", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceStagedChangesAppliedMessage))] [SubTypeDiscriminator("StandalonePriceValueChanged", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceValueChangedMessage))] [SubTypeDiscriminator("StoreCountriesChanged", typeof(commercetools.Sdk.Api.Models.Messages.StoreCountriesChangedMessage))] @@ -753,6 +755,12 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMess init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessage ProductPriceKeySet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage ProductPriceModeSet(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage(); @@ -765,9 +773,9 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage ProductP init?.Invoke(t); return t; } - static commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage ProductPriceSet(Action init = null) + static commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessage ProductPricesSet(Action init = null) { - var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage(); + var t = new commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessage(); init?.Invoke(t); return t; } @@ -993,6 +1001,12 @@ static commercetools.Sdk.Api.Models.Messages.StandalonePriceExternalDiscountSetM init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessage StandalonePriceKeySet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.StandalonePriceStagedChangesAppliedMessage StandalonePriceStagedChangesApplied(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.StandalonePriceStagedChangesAppliedMessage(); 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 58fa19ff189..4170b744056 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IMessagePayload.cs @@ -102,9 +102,10 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("ProductPriceChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload))] [SubTypeDiscriminator("ProductPriceDiscountsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessagePayload))] [SubTypeDiscriminator("ProductPriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMessagePayload))] + [SubTypeDiscriminator("ProductPriceKeySet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessagePayload))] [SubTypeDiscriminator("ProductPriceModeSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload))] [SubTypeDiscriminator("ProductPriceRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload))] - [SubTypeDiscriminator("ProductPriceSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload))] + [SubTypeDiscriminator("ProductPricesSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessagePayload))] [SubTypeDiscriminator("ProductPublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductPublishedMessagePayload))] [SubTypeDiscriminator("ProductRemovedFromCategory", typeof(commercetools.Sdk.Api.Models.Messages.ProductRemovedFromCategoryMessagePayload))] [SubTypeDiscriminator("ProductRevertedStagedChanges", typeof(commercetools.Sdk.Api.Models.Messages.ProductRevertedStagedChangesMessagePayload))] @@ -143,6 +144,7 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("StandalonePriceDeleted", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceDeletedMessagePayload))] [SubTypeDiscriminator("StandalonePriceDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceDiscountSetMessagePayload))] [SubTypeDiscriminator("StandalonePriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceExternalDiscountSetMessagePayload))] + [SubTypeDiscriminator("StandalonePriceKeySet", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessagePayload))] [SubTypeDiscriminator("StandalonePriceStagedChangesApplied", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceStagedChangesAppliedMessagePayload))] [SubTypeDiscriminator("StandalonePriceValueChanged", typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceValueChangedMessagePayload))] [SubTypeDiscriminator("StoreCountriesChanged", typeof(commercetools.Sdk.Api.Models.Messages.StoreCountriesChangedMessagePayload))] @@ -733,6 +735,12 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMess init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessagePayload ProductPriceKeySet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload ProductPriceModeSet(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload(); @@ -745,9 +753,9 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload P init?.Invoke(t); return t; } - static commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload ProductPriceSet(Action init = null) + static commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessagePayload ProductPricesSet(Action init = null) { - var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload(); + var t = new commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessagePayload(); init?.Invoke(t); return t; } @@ -979,6 +987,12 @@ static commercetools.Sdk.Api.Models.Messages.StandalonePriceExternalDiscountSetM init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessagePayload StandalonePriceKeySet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.StandalonePriceStagedChangesAppliedMessagePayload StandalonePriceStagedChangesApplied(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.StandalonePriceStagedChangesAppliedMessagePayload(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceKeySetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceKeySetMessage.cs new file mode 100644 index 00000000000..507dc444853 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceKeySetMessage.cs @@ -0,0 +1,20 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessage))] + public partial interface IProductPriceKeySetMessage : IMessage + { + long VariantId { get; set; } + + string PriceId { get; set; } + + string OldKey { get; set; } + + string Key { get; set; } + + bool Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceKeySetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceKeySetMessagePayload.cs new file mode 100644 index 00000000000..be61e25d27b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceKeySetMessagePayload.cs @@ -0,0 +1,20 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessagePayload))] + public partial interface IProductPriceKeySetMessagePayload : IMessagePayload + { + long VariantId { get; set; } + + string PriceId { get; set; } + + string OldKey { get; set; } + + string Key { get; set; } + + bool Staged { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPricesSetMessage.cs similarity index 83% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceSetMessage.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPricesSetMessage.cs index d5c5914c633..3c582cc62bf 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceSetMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPricesSetMessage.cs @@ -6,8 +6,8 @@ namespace commercetools.Sdk.Api.Models.Messages { - [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage))] - public partial interface IProductPriceSetMessage : IMessage + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessage))] + public partial interface IProductPricesSetMessage : IMessage { long VariantId { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPricesSetMessagePayload.cs similarity index 80% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceSetMessagePayload.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPricesSetMessagePayload.cs index aae4f60becd..2acfb420cf7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPriceSetMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IProductPricesSetMessagePayload.cs @@ -6,8 +6,8 @@ namespace commercetools.Sdk.Api.Models.Messages { - [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload))] - public partial interface IProductPriceSetMessagePayload : IMessagePayload + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPricesSetMessagePayload))] + public partial interface IProductPricesSetMessagePayload : IMessagePayload { long VariantId { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IStandalonePriceKeySetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IStandalonePriceKeySetMessage.cs new file mode 100644 index 00000000000..396bff3d29c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IStandalonePriceKeySetMessage.cs @@ -0,0 +1,14 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessage))] + public partial interface IStandalonePriceKeySetMessage : IMessage + { + string Key { get; set; } + + string OldKey { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IStandalonePriceKeySetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IStandalonePriceKeySetMessagePayload.cs new file mode 100644 index 00000000000..c20307ae547 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/IStandalonePriceKeySetMessagePayload.cs @@ -0,0 +1,14 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.StandalonePriceKeySetMessagePayload))] + public partial interface IStandalonePriceKeySetMessagePayload : IMessagePayload + { + string Key { get; set; } + + string OldKey { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceKeySetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceKeySetMessage.cs new file mode 100644 index 00000000000..0460fd7e9e2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceKeySetMessage.cs @@ -0,0 +1,46 @@ +using commercetools.Sdk.Api.Models.Common; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductPriceKeySetMessage : IProductPriceKeySetMessage + { + 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 long VariantId { get; set; } + + public string PriceId { get; set; } + + public string OldKey { get; set; } + + public string Key { get; set; } + + public bool Staged { get; set; } + public ProductPriceKeySetMessage() + { + this.Type = "ProductPriceKeySet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceKeySetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceKeySetMessagePayload.cs new file mode 100644 index 00000000000..ec06488e12f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceKeySetMessagePayload.cs @@ -0,0 +1,22 @@ +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class ProductPriceKeySetMessagePayload : IProductPriceKeySetMessagePayload + { + public string Type { get; set; } + + public long VariantId { get; set; } + + public string PriceId { get; set; } + + public string OldKey { get; set; } + + public string Key { get; set; } + + public bool Staged { get; set; } + public ProductPriceKeySetMessagePayload() + { + this.Type = "ProductPriceKeySet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPricesSetMessage.cs similarity index 86% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceSetMessage.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPricesSetMessage.cs index 29ab36ae7c1..84c2d809eec 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceSetMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPricesSetMessage.cs @@ -7,7 +7,7 @@ namespace commercetools.Sdk.Api.Models.Messages { - public partial class ProductPriceSetMessage : IProductPriceSetMessage + public partial class ProductPricesSetMessage : IProductPricesSetMessage { public string Id { get; set; } @@ -38,9 +38,9 @@ public partial class ProductPriceSetMessage : IProductPriceSetMessage public bool Staged { get; set; } - public ProductPriceSetMessage() + public ProductPricesSetMessage() { - this.Type = "ProductPriceSet"; + this.Type = "ProductPricesSet"; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPricesSetMessagePayload.cs similarity index 71% rename from commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceSetMessagePayload.cs rename to commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPricesSetMessagePayload.cs index bca3c197723..511b7052d46 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPriceSetMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/ProductPricesSetMessagePayload.cs @@ -6,7 +6,7 @@ namespace commercetools.Sdk.Api.Models.Messages { - public partial class ProductPriceSetMessagePayload : IProductPriceSetMessagePayload + public partial class ProductPricesSetMessagePayload : IProductPricesSetMessagePayload { public string Type { get; set; } @@ -17,9 +17,9 @@ public partial class ProductPriceSetMessagePayload : IProductPriceSetMessagePayl public bool Staged { get; set; } - public ProductPriceSetMessagePayload() + public ProductPricesSetMessagePayload() { - this.Type = "ProductPriceSet"; + this.Type = "ProductPricesSet"; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/StandalonePriceKeySetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/StandalonePriceKeySetMessage.cs new file mode 100644 index 00000000000..170626f137c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/StandalonePriceKeySetMessage.cs @@ -0,0 +1,40 @@ +using commercetools.Sdk.Api.Models.Common; +using System; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class StandalonePriceKeySetMessage : IStandalonePriceKeySetMessage + { + 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 Key { get; set; } + + public string OldKey { get; set; } + public StandalonePriceKeySetMessage() + { + this.Type = "StandalonePriceKeySet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/StandalonePriceKeySetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/StandalonePriceKeySetMessagePayload.cs new file mode 100644 index 00000000000..c4b0a8cde74 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Messages/StandalonePriceKeySetMessagePayload.cs @@ -0,0 +1,16 @@ +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class StandalonePriceKeySetMessagePayload : IStandalonePriceKeySetMessagePayload + { + public string Type { get; set; } + + public string Key { get; set; } + + public string OldKey { get; set; } + public StandalonePriceKeySetMessagePayload() + { + this.Type = "StandalonePriceKeySet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs index 3ef3db7982a..8eefebe921f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/ITransaction.cs @@ -15,7 +15,7 @@ public partial interface ITransaction ITransactionType Type { get; set; } - ITypedMoney Amount { get; set; } + ICentPrecisionMoney Amount { get; set; } string InteractionId { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs index 01910be5087..adca7bbe1de 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Payments/Transaction.cs @@ -14,7 +14,7 @@ public partial class Transaction : ITransaction public ITransactionType Type { get; set; } - public ITypedMoney Amount { get; set; } + public ICentPrecisionMoney Amount { get; set; } public string InteractionId { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/AssignedProductSelection.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/AssignedProductSelection.cs index 287c6524bfc..4244133eda9 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/AssignedProductSelection.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/AssignedProductSelection.cs @@ -1,3 +1,6 @@ +using System; + + namespace commercetools.Sdk.Api.Models.ProductSelections { @@ -6,5 +9,7 @@ public partial class AssignedProductSelection : IAssignedProductSelection public IProductSelectionReference ProductSelection { get; set; } public IProductVariantSelection VariantSelection { get; set; } + + public DateTime CreatedAt { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/IAssignedProductSelection.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/IAssignedProductSelection.cs index 9a2667eb74a..f87588312e7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/IAssignedProductSelection.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/ProductSelections/IAssignedProductSelection.cs @@ -1,3 +1,4 @@ +using System; using commercetools.Base.CustomAttributes; @@ -10,5 +11,7 @@ public partial interface IAssignedProductSelection IProductVariantSelection VariantSelection { get; set; } + DateTime CreatedAt { get; set; } + } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductAddVariantAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductAddVariantAction.cs index a1866e871c5..496b6b8fdf9 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductAddVariantAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductAddVariantAction.cs @@ -27,8 +27,8 @@ public partial interface IProductAddVariantAction : IProductUpdateAction bool? Staged { get; set; } - IList Assets { get; set; } - IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + IList Assets { get; set; } + IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductSetPriceKeyAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductSetPriceKeyAction.cs new file mode 100644 index 00000000000..288d820963d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductSetPriceKeyAction.cs @@ -0,0 +1,16 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.Products +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Products.ProductSetPriceKeyAction))] + public partial interface IProductSetPriceKeyAction : IProductUpdateAction + { + string PriceId { get; set; } + + bool? Staged { get; set; } + + string Key { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductUpdateAction.cs index 6de51534ac6..d38cdb44c9e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/IProductUpdateAction.cs @@ -43,6 +43,7 @@ namespace commercetools.Sdk.Api.Models.Products [SubTypeDiscriminator("setMetaDescription", typeof(commercetools.Sdk.Api.Models.Products.ProductSetMetaDescriptionAction))] [SubTypeDiscriminator("setMetaKeywords", typeof(commercetools.Sdk.Api.Models.Products.ProductSetMetaKeywordsAction))] [SubTypeDiscriminator("setMetaTitle", typeof(commercetools.Sdk.Api.Models.Products.ProductSetMetaTitleAction))] + [SubTypeDiscriminator("setPriceKey", typeof(commercetools.Sdk.Api.Models.Products.ProductSetPriceKeyAction))] [SubTypeDiscriminator("setPriceMode", typeof(commercetools.Sdk.Api.Models.Products.ProductSetPriceModeAction))] [SubTypeDiscriminator("setPrices", typeof(commercetools.Sdk.Api.Models.Products.ProductSetPricesAction))] [SubTypeDiscriminator("setProductPriceCustomField", typeof(commercetools.Sdk.Api.Models.Products.ProductSetProductPriceCustomFieldAction))] @@ -279,6 +280,12 @@ static commercetools.Sdk.Api.Models.Products.ProductSetMetaTitleAction SetMetaTi init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Products.ProductSetPriceKeyAction SetPriceKey(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Products.ProductSetPriceKeyAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Products.ProductSetPriceModeAction SetPriceMode(Action init = null) { var t = new commercetools.Sdk.Api.Models.Products.ProductSetPriceModeAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductAddVariantAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductAddVariantAction.cs index 909a4e37a9e..a7368873e10 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductAddVariantAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductAddVariantAction.cs @@ -28,8 +28,8 @@ public partial class ProductAddVariantAction : IProductAddVariantAction public bool? Staged { get; set; } - public IList Assets { get; set; } - public IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } + public IList Assets { get; set; } + public IEnumerable AssetsEnumerable { set => Assets = value.ToList(); } public ProductAddVariantAction() { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductSetPriceKeyAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductSetPriceKeyAction.cs new file mode 100644 index 00000000000..7c18ca63b40 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Products/ProductSetPriceKeyAction.cs @@ -0,0 +1,18 @@ +namespace commercetools.Sdk.Api.Models.Products +{ + + public partial class ProductSetPriceKeyAction : IProductSetPriceKeyAction + { + public string Action { get; set; } + + public string PriceId { get; set; } + + public bool? Staged { get; set; } + + public string Key { get; set; } + public ProductSetPriceKeyAction() + { + this.Action = "setPriceKey"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuote.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuote.cs index a4c57f81a37..73fc4424027 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuote.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuote.cs @@ -92,6 +92,8 @@ public partial interface IQuote : IBaseResource ICustomFields Custom { get; set; } + IQuoteState QuoteState { get; set; } + IStateReference State { get; set; } IBusinessUnitKeyReference BusinessUnit { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuoteDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuoteDraft.cs index c6b23c9f894..21fd0e66699 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuoteDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/IQuoteDraft.cs @@ -9,17 +9,17 @@ namespace commercetools.Sdk.Api.Models.Quotes [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Quotes.QuoteDraft))] public partial interface IQuoteDraft { + string Key { get; set; } + IStagedQuoteResourceIdentifier StagedQuote { get; set; } long StagedQuoteVersion { get; set; } bool? StagedQuoteStateToSent { get; set; } - string Key { get; set; } + IStateReference State { get; set; } ICustomFieldsDraft Custom { get; set; } - IStateReference State { get; set; } - } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/Quote.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/Quote.cs index fd0e946f5aa..6c0de6c5f0c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/Quote.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/Quote.cs @@ -91,6 +91,8 @@ public partial class Quote : IQuote public ICustomFields Custom { get; set; } + public IQuoteState QuoteState { get; set; } + public IStateReference State { get; set; } public IBusinessUnitKeyReference BusinessUnit { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteDraft.cs index 6ac068036c6..4b2e2400c94 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/Quotes/QuoteDraft.cs @@ -8,16 +8,16 @@ namespace commercetools.Sdk.Api.Models.Quotes public partial class QuoteDraft : IQuoteDraft { + public string Key { get; set; } + public IStagedQuoteResourceIdentifier StagedQuote { get; set; } public long StagedQuoteVersion { get; set; } public bool? StagedQuoteStateToSent { get; set; } - public string Key { get; set; } + public IStateReference State { get; set; } public ICustomFieldsDraft Custom { get; set; } - - public IStateReference State { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceSetKeyAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceSetKeyAction.cs new file mode 100644 index 00000000000..dc775039ebb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceSetKeyAction.cs @@ -0,0 +1,12 @@ +using commercetools.Base.CustomAttributes; + + +namespace commercetools.Sdk.Api.Models.StandalonePrices +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetKeyAction))] + public partial interface IStandalonePriceSetKeyAction : IStandalonePriceUpdateAction + { + string Key { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceUpdateAction.cs index 8c3ce596a66..54740373e96 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/IStandalonePriceUpdateAction.cs @@ -12,6 +12,7 @@ namespace commercetools.Sdk.Api.Models.StandalonePrices [SubTypeDiscriminator("setCustomField", typeof(commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetCustomFieldAction))] [SubTypeDiscriminator("setCustomType", typeof(commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetCustomTypeAction))] [SubTypeDiscriminator("setDiscountedPrice", typeof(commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetDiscountedPriceAction))] + [SubTypeDiscriminator("setKey", typeof(commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetKeyAction))] public partial interface IStandalonePriceUpdateAction { string Action { get; set; } @@ -52,5 +53,11 @@ static commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetDiscounte init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetKeyAction SetKey(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.StandalonePrices.StandalonePriceSetKeyAction(); + init?.Invoke(t); + return t; + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/StandalonePriceSetKeyAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/StandalonePriceSetKeyAction.cs new file mode 100644 index 00000000000..05aa13c84d2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/Models/StandalonePrices/StandalonePriceSetKeyAction.cs @@ -0,0 +1,14 @@ +namespace commercetools.Sdk.Api.Models.StandalonePrices +{ + + public partial class StandalonePriceSetKeyAction : IStandalonePriceSetKeyAction + { + public string Action { get; set; } + + public string Key { get; set; } + public StandalonePriceSetKeyAction() + { + this.Action = "setKey"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Client/ProjectApiRoot.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Client/ProjectApiRoot.cs index 2f144ae7251..74a7ce72ce9 100644 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Client/ProjectApiRoot.cs +++ b/commercetools.Sdk/commercetools.Sdk.MLApi/Client/ProjectApiRoot.cs @@ -1,6 +1,5 @@ using commercetools.Base.Client; using commercetools.Sdk.MLApi.Client.RequestBuilders.ImageSearch; -using commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData; using commercetools.Sdk.MLApi.Client.RequestBuilders.Projects; using commercetools.Sdk.MLApi.Client.RequestBuilders.Recommendations; using commercetools.Sdk.MLApi.Client.RequestBuilders.Similarities; @@ -41,11 +40,5 @@ public ByProjectKeyImageSearchRequestBuilder ImageSearch() { return With().ImageSearch(); } - - [System.Obsolete] - public ByProjectKeyMissingDataRequestBuilder MissingData() - { - return With().MissingData(); - } } } \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesPost.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesPost.cs deleted file mode 100644 index e71278b139e..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesPost.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class ByProjectKeyMissingDataAttributesPost : ApiMethod, IApiMethod - { - - - private ISerializerService SerializerService { get; } - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Post; - - private string ProjectKey { get; } - - private commercetools.Sdk.MLApi.Models.MissingData.IMissingAttributesSearchRequest MissingAttributesSearchRequest; - - public ByProjectKeyMissingDataAttributesPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.MLApi.Models.MissingData.IMissingAttributesSearchRequest missingAttributesSearchRequest) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.MissingAttributesSearchRequest = missingAttributesSearchRequest; - this.RequestUrl = $"/{ProjectKey}/missing-data/attributes"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - } - public override HttpRequestMessage Build() - { - var request = base.Build(); - if (SerializerService != null) - { - var body = this.SerializerService.Serialize(MissingAttributesSearchRequest); - if (!string.IsNullOrEmpty(body)) - { - request.Content = new StringContent(body, Encoding.UTF8, "application/json"); - } - } - return request; - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesRequestBuilder.cs deleted file mode 100644 index d0092cb9792..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesRequestBuilder.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataAttributesRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataAttributesRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - public ByProjectKeyMissingDataAttributesPost Post(commercetools.Sdk.MLApi.Models.MissingData.IMissingAttributesSearchRequest missingAttributesSearchRequest) - { - return new ByProjectKeyMissingDataAttributesPost(ApiHttpClient, SerializerService, ProjectKey, missingAttributesSearchRequest); - } - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataAttributesStatusRequestBuilder Status() - { - return new ByProjectKeyMissingDataAttributesStatusRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdGet.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdGet.cs deleted file mode 100644 index 07f5d5f4c64..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdGet.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class ByProjectKeyMissingDataAttributesStatusByTaskIdGet : ApiMethod, IApiMethod - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Get; - - private string ProjectKey { get; } - - private string TaskId { get; } - - - public ByProjectKeyMissingDataAttributesStatusByTaskIdGet(IClient apiHttpClient, string projectKey, string taskId) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.TaskId = taskId; - this.RequestUrl = $"/{ProjectKey}/missing-data/attributes/status/{TaskId}"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder.cs deleted file mode 100644 index 4217c66fdb7..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string TaskId { get; } - - public ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string taskId) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.TaskId = taskId; - } - - public ByProjectKeyMissingDataAttributesStatusByTaskIdGet Get() - { - return new ByProjectKeyMissingDataAttributesStatusByTaskIdGet(ApiHttpClient, ProjectKey, TaskId); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusRequestBuilder.cs deleted file mode 100644 index 1dcf9759eef..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataAttributesStatusRequestBuilder.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataAttributesStatusRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataAttributesStatusRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder WithTaskId(string taskId) - { - return new ByProjectKeyMissingDataAttributesStatusByTaskIdRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, taskId); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesPost.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesPost.cs deleted file mode 100644 index 3815cd68944..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesPost.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class ByProjectKeyMissingDataImagesPost : ApiMethod, IApiMethod - { - - - private ISerializerService SerializerService { get; } - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Post; - - private string ProjectKey { get; } - - private commercetools.Sdk.MLApi.Models.MissingData.IMissingImagesSearchRequest MissingImagesSearchRequest; - - public ByProjectKeyMissingDataImagesPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.MLApi.Models.MissingData.IMissingImagesSearchRequest missingImagesSearchRequest) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.MissingImagesSearchRequest = missingImagesSearchRequest; - this.RequestUrl = $"/{ProjectKey}/missing-data/images"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - } - public override HttpRequestMessage Build() - { - var request = base.Build(); - if (SerializerService != null) - { - var body = this.SerializerService.Serialize(MissingImagesSearchRequest); - if (!string.IsNullOrEmpty(body)) - { - request.Content = new StringContent(body, Encoding.UTF8, "application/json"); - } - } - return request; - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesRequestBuilder.cs deleted file mode 100644 index af88827c998..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesRequestBuilder.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataImagesRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataImagesRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - public ByProjectKeyMissingDataImagesPost Post(commercetools.Sdk.MLApi.Models.MissingData.IMissingImagesSearchRequest missingImagesSearchRequest) - { - return new ByProjectKeyMissingDataImagesPost(ApiHttpClient, SerializerService, ProjectKey, missingImagesSearchRequest); - } - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataImagesStatusRequestBuilder Status() - { - return new ByProjectKeyMissingDataImagesStatusRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdGet.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdGet.cs deleted file mode 100644 index 0dedfa5fedf..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdGet.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class ByProjectKeyMissingDataImagesStatusByTaskIdGet : ApiMethod, IApiMethod - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Get; - - private string ProjectKey { get; } - - private string TaskId { get; } - - - public ByProjectKeyMissingDataImagesStatusByTaskIdGet(IClient apiHttpClient, string projectKey, string taskId) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.TaskId = taskId; - this.RequestUrl = $"/{ProjectKey}/missing-data/images/status/{TaskId}"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder.cs deleted file mode 100644 index 7f70cb2ca9e..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string TaskId { get; } - - public ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string taskId) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.TaskId = taskId; - } - - public ByProjectKeyMissingDataImagesStatusByTaskIdGet Get() - { - return new ByProjectKeyMissingDataImagesStatusByTaskIdGet(ApiHttpClient, ProjectKey, TaskId); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusRequestBuilder.cs deleted file mode 100644 index 0a99abf0132..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataImagesStatusRequestBuilder.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataImagesStatusRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataImagesStatusRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder WithTaskId(string taskId) - { - return new ByProjectKeyMissingDataImagesStatusByTaskIdRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, taskId); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesPost.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesPost.cs deleted file mode 100644 index 94bb6521bd4..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesPost.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class ByProjectKeyMissingDataPricesPost : ApiMethod, IApiMethod - { - - - private ISerializerService SerializerService { get; } - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Post; - - private string ProjectKey { get; } - - private commercetools.Sdk.MLApi.Models.MissingData.IMissingPricesSearchRequest MissingPricesSearchRequest; - - public ByProjectKeyMissingDataPricesPost(IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.MLApi.Models.MissingData.IMissingPricesSearchRequest missingPricesSearchRequest) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.MissingPricesSearchRequest = missingPricesSearchRequest; - this.RequestUrl = $"/{ProjectKey}/missing-data/prices"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - } - public override HttpRequestMessage Build() - { - var request = base.Build(); - if (SerializerService != null) - { - var body = this.SerializerService.Serialize(MissingPricesSearchRequest); - if (!string.IsNullOrEmpty(body)) - { - request.Content = new StringContent(body, Encoding.UTF8, "application/json"); - } - } - return request; - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesRequestBuilder.cs deleted file mode 100644 index a75f1963e54..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesRequestBuilder.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataPricesRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataPricesRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - public ByProjectKeyMissingDataPricesPost Post(commercetools.Sdk.MLApi.Models.MissingData.IMissingPricesSearchRequest missingPricesSearchRequest) - { - return new ByProjectKeyMissingDataPricesPost(ApiHttpClient, SerializerService, ProjectKey, missingPricesSearchRequest); - } - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataPricesStatusRequestBuilder Status() - { - return new ByProjectKeyMissingDataPricesStatusRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdGet.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdGet.cs deleted file mode 100644 index efde884214f..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdGet.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading.Tasks; -using System.Threading; -using commercetools.Base.Client; - - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class ByProjectKeyMissingDataPricesStatusByTaskIdGet : ApiMethod, IApiMethod - { - - - private IClient ApiHttpClient { get; } - - public override HttpMethod Method => HttpMethod.Get; - - private string ProjectKey { get; } - - private string TaskId { get; } - - - public ByProjectKeyMissingDataPricesStatusByTaskIdGet(IClient apiHttpClient, string projectKey, string taskId) - { - this.ApiHttpClient = apiHttpClient; - this.ProjectKey = projectKey; - this.TaskId = taskId; - this.RequestUrl = $"/{ProjectKey}/missing-data/prices/status/{TaskId}"; - } - - - - - public async Task ExecuteAsync(CancellationToken cancellationToken = default) - { - var requestMessage = Build(); - return await ApiHttpClient.ExecuteAsync(requestMessage, cancellationToken); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder.cs deleted file mode 100644 index 0972ee9ad7f..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - private string TaskId { get; } - - public ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey, string taskId) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - this.TaskId = taskId; - } - - public ByProjectKeyMissingDataPricesStatusByTaskIdGet Get() - { - return new ByProjectKeyMissingDataPricesStatusByTaskIdGet(ApiHttpClient, ProjectKey, TaskId); - } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusRequestBuilder.cs deleted file mode 100644 index 4b3a2ee9a5c..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataPricesStatusRequestBuilder.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataPricesStatusRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataPricesStatusRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder WithTaskId(string taskId) - { - return new ByProjectKeyMissingDataPricesStatusByTaskIdRequestBuilder(ApiHttpClient, SerializerService, ProjectKey, taskId); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataRequestBuilder.cs deleted file mode 100644 index 9146b546142..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/MissingData/ByProjectKeyMissingDataRequestBuilder.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using commercetools.Base.Client; -using commercetools.Base.Serialization; - -namespace commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public class ByProjectKeyMissingDataRequestBuilder - { - - private IClient ApiHttpClient { get; } - - private ISerializerService SerializerService { get; } - - private string ProjectKey { get; } - - public ByProjectKeyMissingDataRequestBuilder(IClient apiHttpClient, ISerializerService serializerService, string projectKey) - { - this.ApiHttpClient = apiHttpClient; - this.SerializerService = serializerService; - this.ProjectKey = projectKey; - } - - - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataAttributesRequestBuilder Attributes() - { - return new ByProjectKeyMissingDataAttributesRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataImagesRequestBuilder Images() - { - return new ByProjectKeyMissingDataImagesRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataPricesRequestBuilder Prices() - { - return new ByProjectKeyMissingDataPricesRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs index 0e1e5c8c632..36424e3f355 100644 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs +++ b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/Client/RequestBuilders/Projects/ByProjectKeyRequestBuilder.cs @@ -1,9 +1,7 @@ -using System; using commercetools.Base.Client; using commercetools.Base.Serialization; using commercetools.Sdk.MLApi.Client.RequestBuilders.ImageSearch; using commercetools.Sdk.MLApi.Client.RequestBuilders.Recommendations; -using commercetools.Sdk.MLApi.Client.RequestBuilders.MissingData; using commercetools.Sdk.MLApi.Client.RequestBuilders.Similarities; namespace commercetools.Sdk.MLApi.Client.RequestBuilders.Projects @@ -36,11 +34,6 @@ public ByProjectKeyRecommendationsRequestBuilder Recommendations() { return new ByProjectKeyRecommendationsRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); } - [Obsolete("usage of this endpoint has been deprecated.", false)] - public ByProjectKeyMissingDataRequestBuilder MissingData() - { - return new ByProjectKeyMissingDataRequestBuilder(ApiHttpClient, SerializerService, ProjectKey); - } public ByProjectKeySimilaritiesRequestBuilder Similarities() { diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/AttributeCount.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/AttributeCount.cs deleted file mode 100644 index 872d9356b6d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/AttributeCount.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class AttributeCount : IAttributeCount - { - public int ProductTypeAttributes { get; set; } - - public int VariantAttributes { get; set; } - - public int MissingAttributeValues { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/AttributeCoverage.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/AttributeCoverage.cs deleted file mode 100644 index 2e82db93240..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/AttributeCoverage.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class AttributeCoverage : IAttributeCoverage - { - public decimal Names { get; set; } - - public decimal Values { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IAttributeCount.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IAttributeCount.cs deleted file mode 100644 index 1541b458062..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IAttributeCount.cs +++ /dev/null @@ -1,16 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.AttributeCount))] - public partial interface IAttributeCount - { - int ProductTypeAttributes { get; set; } - - int VariantAttributes { get; set; } - - int MissingAttributeValues { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IAttributeCoverage.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IAttributeCoverage.cs deleted file mode 100644 index 026b4857d6d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IAttributeCoverage.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.AttributeCoverage))] - public partial interface IAttributeCoverage - { - decimal Names { get; set; } - - decimal Values { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributes.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributes.cs deleted file mode 100644 index 100360d466d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributes.cs +++ /dev/null @@ -1,34 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingAttributes))] - public partial interface IMissingAttributes - { - IProductReference Product { get; set; } - - IProductTypeReference ProductType { get; set; } - - int VariantId { get; set; } - - IList MissingAttributeValues { get; set; } - IEnumerable MissingAttributeValuesEnumerable { set => MissingAttributeValues = value.ToList(); } - - - IList MissingAttributeNames { get; set; } - IEnumerable MissingAttributeNamesEnumerable { set => MissingAttributeNames = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - IAttributeCount AttributeCount { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IAttributeCoverage AttributeCoverage { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesDetails.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesDetails.cs deleted file mode 100644 index 43a51ecb4f0..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesDetails.cs +++ /dev/null @@ -1,16 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingAttributesDetails))] - public partial interface IMissingAttributesDetails - { - int Total { get; set; } - - int MissingAttributeNames { get; set; } - - int MissingAttributeValues { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesMeta.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesMeta.cs deleted file mode 100644 index ca6ab2d2d17..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesMeta.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingAttributesMeta))] - public partial interface IMissingAttributesMeta - { - [ObsoleteAttribute("This property is obsolete", false)] - IMissingAttributesDetails ProductLevel { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingAttributesDetails VariantLevel { get; set; } - - IList ProductTypeIds { get; set; } - IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesPagedQueryResult.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesPagedQueryResult.cs deleted file mode 100644 index a113a67bfc1..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesPagedQueryResult.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingAttributesPagedQueryResult))] - public partial interface IMissingAttributesPagedQueryResult - { - long Count { get; set; } - - long Total { get; set; } - - long Offset { get; set; } - - IList Results { get; set; } - IEnumerable ResultsEnumerable { set => Results = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingAttributesMeta Meta { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesSearchRequest.cs deleted file mode 100644 index 900e6be75a9..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingAttributesSearchRequest.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingAttributesSearchRequest))] - public partial interface IMissingAttributesSearchRequest - { - int? Limit { get; set; } - - int? Offset { get; set; } - - bool? Staged { get; set; } - - int? ProductSetLimit { get; set; } - - bool? IncludeVariants { get; set; } - - decimal? CoverageMin { get; set; } - - decimal? CoverageMax { get; set; } - - string SortBy { get; set; } - - bool? ShowMissingAttributeNames { get; set; } - - IList ProductIds { get; set; } - IEnumerable ProductIdsEnumerable { set => ProductIds = value.ToList(); } - - - IList ProductTypeIds { get; set; } - IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - - string AttributeName { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingDataTaskStatus.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingDataTaskStatus.cs deleted file mode 100644 index 47678d0c4a1..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingDataTaskStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingDataTaskStatus))] - public partial interface IMissingDataTaskStatus - { - ITaskStatusEnum State { get; set; } - - DateTime Expires { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingAttributesPagedQueryResult Result { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImages.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImages.cs deleted file mode 100644 index 204620edbf7..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImages.cs +++ /dev/null @@ -1,17 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImages))] - public partial interface IMissingImages - { - IProductReference Product { get; set; } - - long VariantId { get; set; } - - long ImageCount { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesCount.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesCount.cs deleted file mode 100644 index b0e7912853f..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesCount.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesCount))] - public partial interface IMissingImagesCount - { - long MissingImages { get; set; } - - long Total { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesMeta.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesMeta.cs deleted file mode 100644 index 3fd28a32807..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesMeta.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesMeta))] - public partial interface IMissingImagesMeta - { - [ObsoleteAttribute("This property is obsolete", false)] - IMissingImagesProductLevel ProductLevel { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingImagesVariantLevel VariantLevel { get; set; } - - long Threshold { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesPagedQueryResult.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesPagedQueryResult.cs deleted file mode 100644 index c7125c7763d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesPagedQueryResult.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesPagedQueryResult))] - public partial interface IMissingImagesPagedQueryResult - { - long Count { get; set; } - - long Total { get; set; } - - long Offset { get; set; } - - IList Results { get; set; } - IEnumerable ResultsEnumerable { set => Results = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingImagesMeta Meta { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesProductLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesProductLevel.cs deleted file mode 100644 index 9da13ed97cc..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesProductLevel.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesProductLevel))] - public partial interface IMissingImagesProductLevel : IMissingImagesCount - { - new long MissingImages { get; set; } - - new long Total { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesSearchRequest.cs deleted file mode 100644 index b01340418af..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesSearchRequest.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesSearchRequest))] - public partial interface IMissingImagesSearchRequest - { - long? Limit { get; set; } - - long? Offset { get; set; } - - bool? Staged { get; set; } - - long? ProductSetLimit { get; set; } - - bool? IncludeVariants { get; set; } - - bool? AutoThreshold { get; set; } - - long? Threshold { get; set; } - - IList ProductIds { get; set; } - IEnumerable ProductIdsEnumerable { set => ProductIds = value.ToList(); } - - - IList ProductTypeIds { get; set; } - IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesTaskStatus.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesTaskStatus.cs deleted file mode 100644 index 50891f0d522..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesTaskStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesTaskStatus))] - public partial interface IMissingImagesTaskStatus - { - ITaskStatusEnum State { get; set; } - - DateTime Expires { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingImagesPagedQueryResult Result { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesVariantLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesVariantLevel.cs deleted file mode 100644 index b0a322cec06..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingImagesVariantLevel.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingImagesVariantLevel))] - public partial interface IMissingImagesVariantLevel : IMissingImagesCount - { - new long MissingImages { get; set; } - - new long Total { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPrices.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPrices.cs deleted file mode 100644 index 72ecad2c587..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPrices.cs +++ /dev/null @@ -1,15 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPrices))] - public partial interface IMissingPrices - { - IProductReference Product { get; set; } - - long VariantId { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesMeta.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesMeta.cs deleted file mode 100644 index c7181d37a4c..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesMeta.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesMeta))] - public partial interface IMissingPricesMeta - { - [ObsoleteAttribute("This property is obsolete", false)] - IMissingPricesProductLevel ProductLevel { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingPricesVariantLevel VariantLevel { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesPagedQueryResult.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesPagedQueryResult.cs deleted file mode 100644 index 8da6bcb7c22..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesPagedQueryResult.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesPagedQueryResult))] - public partial interface IMissingPricesPagedQueryResult - { - long Count { get; set; } - - long Total { get; set; } - - long Offset { get; set; } - - IList Results { get; set; } - IEnumerable ResultsEnumerable { set => Results = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingPricesMeta Meta { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesProductCount.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesProductCount.cs deleted file mode 100644 index 2f92783c60e..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesProductCount.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesProductCount))] - public partial interface IMissingPricesProductCount - { - long Total { get; set; } - - long MissingPrices { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesProductLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesProductLevel.cs deleted file mode 100644 index eda4c6e8683..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesProductLevel.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesProductLevel))] - public partial interface IMissingPricesProductLevel : IMissingPricesProductCount - { - new long Total { get; set; } - - new long MissingPrices { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesSearchRequest.cs deleted file mode 100644 index e1bd9532a27..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesSearchRequest.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesSearchRequest))] - public partial interface IMissingPricesSearchRequest - { - long? Limit { get; set; } - - long? Offset { get; set; } - - bool? Staged { get; set; } - - long? ProductSetLimit { get; set; } - - bool? IncludeVariants { get; set; } - - string CurrencyCode { get; set; } - - bool? CheckDate { get; set; } - - DateTime? ValidFrom { get; set; } - - DateTime? ValidUntil { get; set; } - - IList ProductIds { get; set; } - IEnumerable ProductIdsEnumerable { set => ProductIds = value.ToList(); } - - - IList ProductTypeIds { get; set; } - IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesTaskStatus.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesTaskStatus.cs deleted file mode 100644 index 13c63cdc5e3..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesTaskStatus.cs +++ /dev/null @@ -1,19 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesTaskStatus))] - public partial interface IMissingPricesTaskStatus - { - ITaskStatusEnum State { get; set; } - - DateTime Expires { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - IMissingPricesPagedQueryResult Result { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesVariantLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesVariantLevel.cs deleted file mode 100644 index f4b29b7ea77..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/IMissingPricesVariantLevel.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Base.CustomAttributes; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [DeserializeAs(typeof(commercetools.Sdk.MLApi.Models.MissingData.MissingPricesVariantLevel))] - public partial interface IMissingPricesVariantLevel : IMissingPricesProductCount - { - new long Total { get; set; } - - new long MissingPrices { get; set; } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributes.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributes.cs deleted file mode 100644 index 901d45863e6..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributes.cs +++ /dev/null @@ -1,32 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingAttributes : IMissingAttributes - { - public IProductReference Product { get; set; } - - public IProductTypeReference ProductType { get; set; } - - public int VariantId { get; set; } - - public IList MissingAttributeValues { get; set; } - public IEnumerable MissingAttributeValuesEnumerable { set => MissingAttributeValues = value.ToList(); } - - - public IList MissingAttributeNames { get; set; } - public IEnumerable MissingAttributeNamesEnumerable { set => MissingAttributeNames = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - public IAttributeCount AttributeCount { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IAttributeCoverage AttributeCoverage { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesDetails.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesDetails.cs deleted file mode 100644 index 5300d38fe77..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesDetails.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingAttributesDetails : IMissingAttributesDetails - { - public int Total { get; set; } - - public int MissingAttributeNames { get; set; } - - public int MissingAttributeValues { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesMeta.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesMeta.cs deleted file mode 100644 index 9cce5439fda..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesMeta.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingAttributesMeta : IMissingAttributesMeta - { - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingAttributesDetails ProductLevel { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingAttributesDetails VariantLevel { get; set; } - - public IList ProductTypeIds { get; set; } - public IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesPagedQueryResult.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesPagedQueryResult.cs deleted file mode 100644 index c68c5facd49..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesPagedQueryResult.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingAttributesPagedQueryResult : IMissingAttributesPagedQueryResult - { - public long Count { get; set; } - - public long Total { get; set; } - - public long Offset { get; set; } - - public IList Results { get; set; } - public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingAttributesMeta Meta { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesSearchRequest.cs deleted file mode 100644 index 91eb6991891..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingAttributesSearchRequest.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingAttributesSearchRequest : IMissingAttributesSearchRequest - { - public int? Limit { get; set; } - - public int? Offset { get; set; } - - public bool? Staged { get; set; } - - public int? ProductSetLimit { get; set; } - - public bool? IncludeVariants { get; set; } - - public decimal? CoverageMin { get; set; } - - public decimal? CoverageMax { get; set; } - - public string SortBy { get; set; } - - public bool? ShowMissingAttributeNames { get; set; } - - public IList ProductIds { get; set; } - public IEnumerable ProductIdsEnumerable { set => ProductIds = value.ToList(); } - - - public IList ProductTypeIds { get; set; } - public IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - - public string AttributeName { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingDataTaskStatus.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingDataTaskStatus.cs deleted file mode 100644 index 078dfa1c151..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingDataTaskStatus.cs +++ /dev/null @@ -1,17 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingDataTaskStatus : IMissingDataTaskStatus - { - public ITaskStatusEnum State { get; set; } - - public DateTime Expires { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingAttributesPagedQueryResult Result { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImages.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImages.cs deleted file mode 100644 index 8a80694ef99..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImages.cs +++ /dev/null @@ -1,16 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImages : IMissingImages - { - public IProductReference Product { get; set; } - - public long VariantId { get; set; } - - public long ImageCount { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesCount.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesCount.cs deleted file mode 100644 index 4d3597ce3b4..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesCount.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesCount : IMissingImagesCount - { - public long MissingImages { get; set; } - - public long Total { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesMeta.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesMeta.cs deleted file mode 100644 index c3ca6997f49..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesMeta.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesMeta : IMissingImagesMeta - { - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingImagesProductLevel ProductLevel { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingImagesVariantLevel VariantLevel { get; set; } - - public long Threshold { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesPagedQueryResult.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesPagedQueryResult.cs deleted file mode 100644 index ea5f928dbc9..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesPagedQueryResult.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesPagedQueryResult : IMissingImagesPagedQueryResult - { - public long Count { get; set; } - - public long Total { get; set; } - - public long Offset { get; set; } - - public IList Results { get; set; } - public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingImagesMeta Meta { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesProductLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesProductLevel.cs deleted file mode 100644 index 877446fe623..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesProductLevel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesProductLevel : IMissingImagesProductLevel - { - public long MissingImages { get; set; } - - public long Total { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesSearchRequest.cs deleted file mode 100644 index 4f2763ec9f5..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesSearchRequest.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesSearchRequest : IMissingImagesSearchRequest - { - public long? Limit { get; set; } - - public long? Offset { get; set; } - - public bool? Staged { get; set; } - - public long? ProductSetLimit { get; set; } - - public bool? IncludeVariants { get; set; } - - public bool? AutoThreshold { get; set; } - - public long? Threshold { get; set; } - - public IList ProductIds { get; set; } - public IEnumerable ProductIdsEnumerable { set => ProductIds = value.ToList(); } - - - public IList ProductTypeIds { get; set; } - public IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesTaskStatus.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesTaskStatus.cs deleted file mode 100644 index a65c4db5365..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesTaskStatus.cs +++ /dev/null @@ -1,17 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesTaskStatus : IMissingImagesTaskStatus - { - public ITaskStatusEnum State { get; set; } - - public DateTime Expires { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingImagesPagedQueryResult Result { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesVariantLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesVariantLevel.cs deleted file mode 100644 index 760f16aa0f9..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingImagesVariantLevel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingImagesVariantLevel : IMissingImagesVariantLevel - { - public long MissingImages { get; set; } - - public long Total { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPrices.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPrices.cs deleted file mode 100644 index 526d90db912..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPrices.cs +++ /dev/null @@ -1,14 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPrices : IMissingPrices - { - public IProductReference Product { get; set; } - - public long VariantId { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesMeta.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesMeta.cs deleted file mode 100644 index 0057f94411d..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesMeta.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesMeta : IMissingPricesMeta - { - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingPricesProductLevel ProductLevel { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingPricesVariantLevel VariantLevel { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesPagedQueryResult.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesPagedQueryResult.cs deleted file mode 100644 index 5281f06a566..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesPagedQueryResult.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesPagedQueryResult : IMissingPricesPagedQueryResult - { - public long Count { get; set; } - - public long Total { get; set; } - - public long Offset { get; set; } - - public IList Results { get; set; } - public IEnumerable ResultsEnumerable { set => Results = value.ToList(); } - - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingPricesMeta Meta { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesProductCount.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesProductCount.cs deleted file mode 100644 index 9bb7d9de0e7..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesProductCount.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesProductCount : IMissingPricesProductCount - { - public long Total { get; set; } - - public long MissingPrices { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesProductLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesProductLevel.cs deleted file mode 100644 index e7626d0a1cb..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesProductLevel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesProductLevel : IMissingPricesProductLevel - { - public long Total { get; set; } - - public long MissingPrices { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesSearchRequest.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesSearchRequest.cs deleted file mode 100644 index 1b32980cb6f..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesSearchRequest.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesSearchRequest : IMissingPricesSearchRequest - { - public long? Limit { get; set; } - - public long? Offset { get; set; } - - public bool? Staged { get; set; } - - public long? ProductSetLimit { get; set; } - - public bool? IncludeVariants { get; set; } - - public string CurrencyCode { get; set; } - - public bool? CheckDate { get; set; } - - public DateTime? ValidFrom { get; set; } - - public DateTime? ValidUntil { get; set; } - - public IList ProductIds { get; set; } - public IEnumerable ProductIdsEnumerable { set => ProductIds = value.ToList(); } - - - public IList ProductTypeIds { get; set; } - public IEnumerable ProductTypeIdsEnumerable { set => ProductTypeIds = value.ToList(); } - - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesTaskStatus.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesTaskStatus.cs deleted file mode 100644 index ed0fcf75a22..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesTaskStatus.cs +++ /dev/null @@ -1,17 +0,0 @@ -using commercetools.Sdk.MLApi.Models.Common; -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesTaskStatus : IMissingPricesTaskStatus - { - public ITaskStatusEnum State { get; set; } - - public DateTime Expires { get; set; } - - [ObsoleteAttribute("This property is obsolete", false)] - public IMissingPricesPagedQueryResult Result { get; set; } - } -} diff --git a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesVariantLevel.cs b/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesVariantLevel.cs deleted file mode 100644 index 57532492718..00000000000 --- a/commercetools.Sdk/commercetools.Sdk.MLApi/Generated/commercetools/Sdk/MlApi/Models/MissingData/MissingPricesVariantLevel.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - - -namespace commercetools.Sdk.MLApi.Models.MissingData -{ - [Obsolete("usage of this endpoint has been deprecated.", false)] - public partial class MissingPricesVariantLevel : IMissingPricesVariantLevel - { - public long Total { get; set; } - - public long MissingPrices { get; set; } - } -} diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..b337f7d9f24 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +4dd5deeff258cc82e9854d02cc83449614778ba2