Skip to content

Update generated SDKs #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
**Import changes**
**Api changes**

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

- :warning: removed property `/^[a-z]{2}(-[A-Z]{2})?$/` from type `SearchKeywords`
- :warning: removed property `/^[a-z]{2}(-[A-Z]{2})?$/` from type `LocalizedString`
- added type `CheckoutOrderCreationFailedEvent`
- added type `CheckoutPaymentAuthorizationCancelledEvent`
- added type `CheckoutPaymentAuthorizationFailedEvent`
- added type `CheckoutPaymentAuthorizedEvent`
- added type `CheckoutPaymentCancelAuthorizationFailedEvent`
- added type `CheckoutPaymentChargeFailedEvent`
- added type `CheckoutPaymentChargedEvent`
- added type `CheckoutPaymentRefundFailedEvent`
- added type `CheckoutPaymentRefundedEvent`
- added type `CheckoutMessageOrderPayloadBaseData`
- added type `CheckoutMessagePaymentsPayloadBaseData`
</details>


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

- added property `/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/` to type `SearchKeywords`
- added property `/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/` to type `LocalizedString`
- added enum `checkout` to type `EventSubscriptionResourceTypeId`
- added enum `CheckoutOrderCreationFailed` to type `EventType`
- added enum `CheckoutPaymentAuthorizationCancelled` to type `EventType`
- added enum `CheckoutPaymentAuthorizationFailed` to type `EventType`
- added enum `CheckoutPaymentAuthorized` to type `EventType`
- added enum `CheckoutPaymentCancelAuthorizationFailed` to type `EventType`
- added enum `CheckoutPaymentCharged` to type `EventType`
- added enum `CheckoutPaymentChargeFailed` to type `EventType`
- added enum `CheckoutPaymentRefunded` to type `EventType`
- added enum `CheckoutPaymentRefundFailed` to type `EventType`
</details>

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using commercetools.Sdk.Api.Models.Carts;
using commercetools.Sdk.Api.Models.Errors;
using commercetools.Sdk.Api.Models.Payments;
using System.Collections.Generic;
using System.Linq;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutMessageOrderPayloadBaseData : ICheckoutMessageOrderPayloadBaseData
{
public string ProjectKey { get; set; }

public ICartReference Cart { get; set; }

public IList<IPaymentReference> Payments { get; set; }

public IEnumerable<IPaymentReference> PaymentsEnumerable { set => Payments = value.ToList(); }

public IList<IErrorObject> Errors { get; set; }

public IEnumerable<IErrorObject> ErrorsEnumerable { set => Errors = value.ToList(); }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using commercetools.Sdk.Api.Models.Carts;
using commercetools.Sdk.Api.Models.Orders;
using commercetools.Sdk.Api.Models.Payments;


namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutMessagePaymentsPayloadBaseData : ICheckoutMessagePaymentsPayloadBaseData
{
public string ProjectKey { get; set; }

public IPaymentReference Payment { get; set; }

public string TransactionId { get; set; }

public ICartReference Cart { get; set; }

public IOrderReference Order { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutOrderCreationFailedEvent : ICheckoutOrderCreationFailedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessageOrderPayloadBaseData Data { get; set; }
public CheckoutOrderCreationFailedEvent()
{
this.Type = IEventType.FindEnum("CheckoutOrderCreationFailed");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentAuthorizationCancelledEvent : ICheckoutPaymentAuthorizationCancelledEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentAuthorizationCancelledEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentAuthorizationCancelled");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentAuthorizationFailedEvent : ICheckoutPaymentAuthorizationFailedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentAuthorizationFailedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentAuthorizationFailed");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentAuthorizedEvent : ICheckoutPaymentAuthorizedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentAuthorizedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentAuthorized");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentCancelAuthorizationFailedEvent : ICheckoutPaymentCancelAuthorizationFailedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentCancelAuthorizationFailedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentCancelAuthorizationFailed");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentChargeFailedEvent : ICheckoutPaymentChargeFailedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentChargeFailedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentChargeFailed");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentChargedEvent : ICheckoutPaymentChargedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentChargedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentCharged");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentRefundFailedEvent : ICheckoutPaymentRefundFailedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentRefundFailedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentRefundFailed");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using System;

namespace commercetools.Sdk.Api.Models.Events
{

public partial class CheckoutPaymentRefundedEvent : ICheckoutPaymentRefundedEvent
{
public string Id { get; set; }

public string NotificationType { get; set; }

public IEventSubscriptionResourceTypeId ResourceType { get; set; }

public IEventType Type { get; set; }

public DateTime CreatedAt { get; set; }

public ICheckoutMessagePaymentsPayloadBaseData Data { get; set; }
public CheckoutPaymentRefundedEvent()
{
this.Type = IEventType.FindEnum("CheckoutPaymentRefunded");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using commercetools.Sdk.Api.Models.Carts;
using commercetools.Sdk.Api.Models.Errors;
using commercetools.Sdk.Api.Models.Payments;
using System.Collections.Generic;
using System.Linq;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Events
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.CheckoutMessageOrderPayloadBaseData))]
public partial interface ICheckoutMessageOrderPayloadBaseData
{
string ProjectKey { get; set; }

ICartReference Cart { get; set; }

IList<IPaymentReference> Payments { get; set; }

IEnumerable<IPaymentReference> PaymentsEnumerable { set => Payments = value.ToList(); }

IList<IErrorObject> Errors { get; set; }

IEnumerable<IErrorObject> ErrorsEnumerable { set => Errors = value.ToList(); }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using commercetools.Sdk.Api.Models.Carts;
using commercetools.Sdk.Api.Models.Orders;
using commercetools.Sdk.Api.Models.Payments;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Events
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.CheckoutMessagePaymentsPayloadBaseData))]
public partial interface ICheckoutMessagePaymentsPayloadBaseData
{
string ProjectKey { get; set; }

IPaymentReference Payment { get; set; }

string TransactionId { get; set; }

ICartReference Cart { get; set; }

IOrderReference Order { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using commercetools.Sdk.Api.Models.Subscriptions;
using commercetools.Base.CustomAttributes;
// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Events
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.CheckoutOrderCreationFailedEvent))]
public partial interface ICheckoutOrderCreationFailedEvent : IEvent
{
new IEventSubscriptionResourceTypeId ResourceType { get; set; }

ICheckoutMessageOrderPayloadBaseData Data { get; set; }

}
}
Loading
Loading