Skip to content

Commit

Permalink
Merge pull request #349 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Sep 2, 2024
2 parents c06b2bf + c80e295 commit c6c81a2
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 11 deletions.
30 changes: 19 additions & 11 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
**Api changes**

<details>
<summary>Removed Method(s)</summary>

- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()`
- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()`
</details>


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

- added property `applicationMode` to type `CartDiscountValueAbsolute`
- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
</details>


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

Expand All @@ -16,19 +32,11 @@
- added type `DeliveryCustomTypeSetMessagePayload`
</details>

**Import changes**

<details>
<summary>Removed Method(s)</summary>

- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withId().delete()`
- :warning: removed method `apiRoot.withProjectKey().me().businessUnits().withKey().delete()`
</details>


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

- added property `applicationMode` to type `CartDiscountValueAbsolute`
- added property `applicationMode` to type `CartDiscountValueAbsoluteDraft`
- added type `ReferencedResourceNotFound`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down Expand Up @@ -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<commercetools.Sdk.ImportApi.Models.Errors.ReferencedResourceNotFound> 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<commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError> init = null)
{
var t = new commercetools.Sdk.ImportApi.Models.Errors.RequiredFieldError();
Expand Down
Original file line number Diff line number Diff line change
@@ -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; }

}
}
Original file line number Diff line number Diff line change
@@ -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";
}
}
}
2 changes: 2 additions & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,5 @@ d3777f87ffd605785d0af34c175a0d61176413ca
dd82e076236554dd808fb9309d53cb2a207cb296
6fbc0468427de97a13a8ae23c0d0c157b52b2f45
9fb04dae472dbd5e7e4749ba34c1bb12161336bb
83b81d8842fe000b486145eebd80ad6c3dd0b4ae
7fa01c3fa58cb65ecfaeeac01d0584541a8d26e5

0 comments on commit c6c81a2

Please sign in to comment.