From 814efc710e732d3386f9f146829cf377242ae872 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 22 Aug 2024 13:28:36 +0000
Subject: [PATCH 1/2] build(codegen): updating SDK
---
changes.md | 8 +++++++
.../Models/Errors/IErrorObject.cs | 7 ++++++
.../Errors/IReferencedResourceNotFound.cs | 20 ++++++++++++++++
.../Errors/ReferencedResourceNotFound.cs | 23 +++++++++++++++++++
references.txt | 1 +
5 files changed, 59 insertions(+)
create mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IReferencedResourceNotFound.cs
create mode 100644 commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/ReferencedResourceNotFound.cs
diff --git a/changes.md b/changes.md
index 8cab9f0dd3b..9a93cd3e41f 100644
--- a/changes.md
+++ b/changes.md
@@ -32,3 +32,11 @@
- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
+**Import changes**
+
+
+Added Type(s)
+
+- added type `ReferencedResourceNotFound`
+
+
diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs
index a37b4788b02..c6c2b8b0a8d 100644
--- a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs
+++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IErrorObject.cs
@@ -22,6 +22,7 @@ namespace commercetools.Sdk.ImportApi.Models.Errors
[SubTypeDiscriminator("InvalidJsonInput", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidJsonInput))]
[SubTypeDiscriminator("InvalidOperation", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidOperation))]
[SubTypeDiscriminator("InvalidTransition", typeof(commercetools.Sdk.ImportApi.Models.Errors.InvalidStateTransitionError))]
+ [SubTypeDiscriminator("ReferencedResourceNotFound", typeof(commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound))]
[SubTypeDiscriminator("RequiredField", typeof(commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError))]
[SubTypeDiscriminator("ResourceCreation", typeof(commercetools.Sdk.ImportApi.Models.Errors.ResourceCreationError))]
[SubTypeDiscriminator("ResourceDeletion", typeof(commercetools.Sdk.ImportApi.Models.Errors.ResourceDeletionError))]
@@ -135,6 +136,12 @@ static commercetools.Sdk.ImportApi.Models.Errors.InvalidStateTransitionError Inv
init?.Invoke(t);
return t;
}
+ static commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound ReferencedResourceNotFound(Action init = null)
+ {
+ var t = new commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound();
+ init?.Invoke(t);
+ return t;
+ }
static commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError RequiredField(Action init = null)
{
var t = new commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError();
diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IReferencedResourceNotFound.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IReferencedResourceNotFound.cs
new file mode 100644
index 00000000000..c2fd141ca71
--- /dev/null
+++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/IReferencedResourceNotFound.cs
@@ -0,0 +1,20 @@
+using commercetools.Sdk.ImportApi.Models.Common;
+using commercetools.Base.CustomAttributes;
+// ReSharper disable CheckNamespace
+namespace commercetools.Sdk.ImportApi.Models.Errors
+{
+ [DeserializeAs(typeof(commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound))]
+ public partial interface IReferencedResourceNotFound : IErrorObject
+ {
+ new string Code { get; set; }
+
+ new string Message { get; set; }
+
+ IReferenceType TypeId { get; set; }
+
+ string Id { get; set; }
+
+ string Key { get; set; }
+
+ }
+}
diff --git a/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/ReferencedResourceNotFound.cs b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/ReferencedResourceNotFound.cs
new file mode 100644
index 00000000000..f99edbb4339
--- /dev/null
+++ b/commercetools.Sdk/commercetools.Sdk.ImportApi/Generated/commercetoolsSdkImportApi/Models/Errors/ReferencedResourceNotFound.cs
@@ -0,0 +1,23 @@
+using commercetools.Sdk.ImportApi.Models.Common;
+
+
+namespace commercetools.Sdk.ImportApi.Models.Errors
+{
+
+ public partial class ReferencedResourceNotFound : IReferencedResourceNotFound
+ {
+ public string Code { get; set; }
+
+ public string Message { get; set; }
+
+ public IReferenceType TypeId { get; set; }
+
+ public string Id { get; set; }
+
+ public string Key { get; set; }
+ public ReferencedResourceNotFound()
+ {
+ this.Code = "ReferencedResourceNotFound";
+ }
+ }
+}
diff --git a/references.txt b/references.txt
index 2170d8a41d9..35f6ccbc5db 100644
--- a/references.txt
+++ b/references.txt
@@ -275,3 +275,4 @@ d3777f87ffd605785d0af34c175a0d61176413ca
dd82e076236554dd808fb9309d53cb2a207cb296
6fbc0468427de97a13a8ae23c0d0c157b52b2f45
9fb04dae472dbd5e7e4749ba34c1bb12161336bb
+83b81d8842fe000b486145eebd80ad6c3dd0b4ae
From c80e295abb6a02c824554e6d8395c2c312bb3dc2 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 2 Sep 2024 11:50:05 +0000
Subject: [PATCH 2/2] build(codegen): updating SDK
---
changes.md | 32 ++++++++++++++++----------------
references.txt | 1 +
2 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/changes.md b/changes.md
index 9a93cd3e41f..e8bee2b9fad 100644
--- a/changes.md
+++ b/changes.md
@@ -1,5 +1,21 @@
**Api changes**
+
+Removed Method(s)
+
+- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()`
+- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()`
+
+
+
+
+Added Property(s)
+
+- added property `applicationMode` to type `CartDiscountValueAbsolute`
+- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
+
+
+
Added Type(s)
@@ -16,22 +32,6 @@
- added type `DeliveryCustomTypeSetMessagePayload`
-
-
-Removed Method(s)
-
-- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()`
-- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()`
-
-
-
-
-Added Property(s)
-
-- added property `applicationMode` to type `CartDiscountValueAbsolute`
-- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
-
-
**Import changes**
diff --git a/references.txt b/references.txt
index 35f6ccbc5db..b2172db6c38 100644
--- a/references.txt
+++ b/references.txt
@@ -276,3 +276,4 @@ dd82e076236554dd808fb9309d53cb2a207cb296
6fbc0468427de97a13a8ae23c0d0c157b52b2f45
9fb04dae472dbd5e7e4749ba34c1bb12161336bb
83b81d8842fe000b486145eebd80ad6c3dd0b4ae
+7fa01c3fa58cb65ecfaeeac01d0584541a8d26e5