diff --git a/changes.md b/changes.md index 3d0913af9db..44d23908adb 100644 --- a/changes.md +++ b/changes.md @@ -1,61 +1,33 @@ **Api changes**
-Added QueryParameter(s) - -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products` -- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/key={key}` -- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/key={key}` -- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/key={key}` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/{ID}` -- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/{ID}` -- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/{ID}` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/search` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/key={key}` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/{ID}` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}` -- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}` -
- - -
-Removed QueryParameter(s) +Changed Type(s) -- :warning: removed query parameter `withTotal` from method `get /{projectKey}/product-projections/search` +- :warning: changed type `DeliveryPayload` from type `object` to `SubscriptionNotification` +- :warning: changed type `EventDeliveryPayload` from type `DeliveryPayload` to `SubscriptionNotification`
Added Type(s) -- added type `CustomerGroupAssignment` -- added type `CustomerGroupAssignmentDraft` -- added type `CustomerAddCustomerGroupAssignmentAction` -- added type `CustomerRemoveCustomerGroupAssignmentAction` -- added type `CustomerSetCustomerGroupAssignmentsAction` -- added type `CustomerGroupAssignmentAddedMessage` -- added type `CustomerGroupAssignmentRemovedMessage` -- added type `CustomerGroupAssignmentsSetMessage` -- added type `CustomerGroupAssignmentAddedMessagePayload` -- added type `CustomerGroupAssignmentRemovedMessagePayload` -- added type `CustomerGroupAssignmentsSetMessagePayload` +- added type `BaseEvent` +- added type `SubscriptionNotification`
-Required Property(s) +Removed Property(s) -- changed property `facets` of type `ProductProjectionPagedSearchResponse` to be optional +- :warning: removed property `data` from type `Event`
Added Property(s) -- added property `customerGroupAssignments` to type `Customer` -- added property `customerGroupAssignments` to type `CustomerDraft` -- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams` +- added property `projectKey` to type `DeliveryPayload` +- added property `resource` to type `DeliveryPayload` +- added property `resourceUserProvidedIdentifiers` to type `DeliveryPayload`
diff --git a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/CustomerTests.cs b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/CustomerTests.cs index 7c1e1a0a0ca..69ba21074bd 100644 --- a/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/CustomerTests.cs +++ b/commercetools.Sdk/Tests/commercetools.Sdk.ImportApi.Tests/CustomerTests.cs @@ -13,7 +13,7 @@ public void Test_Serialize_Date() { var s = new ServiceCollection(); s.UseCommercetoolsImportApiSerialization(); - + var p = s.BuildServiceProvider(); var serializerService = p.GetService(); @@ -21,7 +21,7 @@ public void Test_Serialize_Date() { DateOfBirth = new Date(1980, 01, 01), }; - + var t = serializerService.Serialize(customerImport); Assert.Equal("{\"dateOfBirth\":\"1980-01-01\"}", t); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/BusinessUnitSetUnitTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/BusinessUnitSetUnitTypeAction.cs new file mode 100644 index 00000000000..0cccceb27df --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/BusinessUnitSetUnitTypeAction.cs @@ -0,0 +1,18 @@ + + +namespace commercetools.Sdk.Api.Models.BusinessUnits +{ + + public partial class BusinessUnitSetUnitTypeAction : IBusinessUnitSetUnitTypeAction + { + public string Action { get; set; } + + public IBusinessUnitType UnitType { get; set; } + + public IBusinessUnitResourceIdentifier ParentUnit { get; set; } + public BusinessUnitSetUnitTypeAction() + { + this.Action = "setUnitType"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitSetUnitTypeAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitSetUnitTypeAction.cs new file mode 100644 index 00000000000..bb18997f19f --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitSetUnitTypeAction.cs @@ -0,0 +1,13 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.BusinessUnits +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetUnitTypeAction))] + public partial interface IBusinessUnitSetUnitTypeAction : IBusinessUnitUpdateAction + { + IBusinessUnitType UnitType { get; set; } + + IBusinessUnitResourceIdentifier ParentUnit { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitUpdateAction.cs index aa22715d920..836646545f7 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/BusinessUnits/IBusinessUnitUpdateAction.cs @@ -32,6 +32,7 @@ namespace commercetools.Sdk.Api.Models.BusinessUnits [SubTypeDiscriminator("setDefaultShippingAddress", typeof(commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetDefaultShippingAddressAction))] [SubTypeDiscriminator("setStoreMode", typeof(commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetStoreModeAction))] [SubTypeDiscriminator("setStores", typeof(commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetStoresAction))] + [SubTypeDiscriminator("setUnitType", typeof(commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetUnitTypeAction))] public partial interface IBusinessUnitUpdateAction { string Action { get; set; } @@ -198,5 +199,11 @@ static commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetStoresAction Se init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetUnitTypeAction SetUnitType(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.BusinessUnits.BusinessUnitSetUnitTypeAction(); + init?.Invoke(t); + return t; + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/BaseEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/BaseEvent.cs new file mode 100644 index 00000000000..ef831a4322a --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/BaseEvent.cs @@ -0,0 +1,21 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class BaseEvent : IBaseEvent + { + public string Id { get; set; } + + public string NotificationType { get; set; } + + public IEventSubscriptionResourceTypeId ResourceType { get; set; } + + public IEventType Type { get; set; } + + public Object Data { get; set; } + + public DateTime CreatedAt { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/Event.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/Event.cs new file mode 100644 index 00000000000..3f63043a6bc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/Event.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class Event : IEvent + { + 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; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IBaseEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IBaseEvent.cs new file mode 100644 index 00000000000..32fbfe7b4b4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IBaseEvent.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.BaseEvent))] + public partial interface IBaseEvent + { + string Id { get; set; } + + string NotificationType { get; set; } + + IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IEventType Type { get; set; } + + Object Data { get; set; } + + DateTime CreatedAt { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IEvent.cs new file mode 100644 index 00000000000..afcec271495 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IEvent.cs @@ -0,0 +1,64 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [TypeDiscriminator(nameof(Type))] + [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Events.Event))] + [SubTypeDiscriminator("ImportContainerCreated", typeof(commercetools.Sdk.Api.Models.Events.ImportContainerCreatedEvent))] + [SubTypeDiscriminator("ImportContainerDeleted", typeof(commercetools.Sdk.Api.Models.Events.ImportContainerDeletedEvent))] + [SubTypeDiscriminator("ImportOperationRejected", typeof(commercetools.Sdk.Api.Models.Events.ImportOperationRejectedEvent))] + [SubTypeDiscriminator("ImportUnresolved", typeof(commercetools.Sdk.Api.Models.Events.ImportUnresolvedEvent))] + [SubTypeDiscriminator("ImportValidationFailed", typeof(commercetools.Sdk.Api.Models.Events.ImportValidationFailedEvent))] + [SubTypeDiscriminator("ImportWaitForMasterVariant", typeof(commercetools.Sdk.Api.Models.Events.ImportWaitForMasterVariantEvent))] + public partial interface IEvent + { + string Id { get; set; } + + string NotificationType { get; set; } + + IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IEventType Type { get; set; } + + DateTime CreatedAt { get; set; } + + static commercetools.Sdk.Api.Models.Events.ImportContainerCreatedEvent ImportContainerCreated(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Events.ImportContainerCreatedEvent(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Events.ImportContainerDeletedEvent ImportContainerDeleted(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Events.ImportContainerDeletedEvent(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Events.ImportOperationRejectedEvent ImportOperationRejected(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Events.ImportOperationRejectedEvent(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Events.ImportUnresolvedEvent ImportUnresolved(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Events.ImportUnresolvedEvent(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Events.ImportValidationFailedEvent ImportValidationFailed(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Events.ImportValidationFailedEvent(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Events.ImportWaitForMasterVariantEvent ImportWaitForMasterVariant(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Events.ImportWaitForMasterVariantEvent(); + init?.Invoke(t); + return t; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerCreatedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerCreatedEvent.cs new file mode 100644 index 00000000000..acb8b5589a4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerCreatedEvent.cs @@ -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.ImportContainerCreatedEvent))] + public partial interface IImportContainerCreatedEvent : IEvent + { + new IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IImportContainerCreatedEventData Data { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerCreatedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerCreatedEventData.cs new file mode 100644 index 00000000000..1520527808c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerCreatedEventData.cs @@ -0,0 +1,18 @@ +using System; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.ImportContainerCreatedEventData))] + public partial interface IImportContainerCreatedEventData + { + string Key { get; set; } + + int Version { get; set; } + + DateTime CreatedAt { get; set; } + + DateTime LastModifiedAt { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerDeletedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerDeletedEvent.cs new file mode 100644 index 00000000000..7108765de9b --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerDeletedEvent.cs @@ -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.ImportContainerDeletedEvent))] + public partial interface IImportContainerDeletedEvent : IEvent + { + new IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IImportContainerDeletedEventData Data { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerDeletedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerDeletedEventData.cs new file mode 100644 index 00000000000..a65558e0cf5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportContainerDeletedEventData.cs @@ -0,0 +1,13 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.ImportContainerDeletedEventData))] + public partial interface IImportContainerDeletedEventData + { + string Key { get; set; } + + int Version { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportOperationRejectedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportOperationRejectedEvent.cs new file mode 100644 index 00000000000..ac8c4511fb4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportOperationRejectedEvent.cs @@ -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.ImportOperationRejectedEvent))] + public partial interface IImportOperationRejectedEvent : IEvent + { + new IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IImportOperationRejectedEventData Data { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportOperationRejectedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportOperationRejectedEventData.cs new file mode 100644 index 00000000000..8583927e2b0 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportOperationRejectedEventData.cs @@ -0,0 +1,11 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.ImportOperationRejectedEventData))] + public partial interface IImportOperationRejectedEventData + { + string Id { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportUnresolvedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportUnresolvedEvent.cs new file mode 100644 index 00000000000..f9a7bfc3036 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportUnresolvedEvent.cs @@ -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.ImportUnresolvedEvent))] + public partial interface IImportUnresolvedEvent : IEvent + { + new IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IImportUnresolvedEventData Data { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportUnresolvedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportUnresolvedEventData.cs new file mode 100644 index 00000000000..289cddefabc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportUnresolvedEventData.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.ImportUnresolvedEventData))] + public partial interface IImportUnresolvedEventData + { + string Id { get; set; } + + int Version { get; set; } + + string ImportContainerKey { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportValidationFailedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportValidationFailedEvent.cs new file mode 100644 index 00000000000..34a4919aefc --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportValidationFailedEvent.cs @@ -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.ImportValidationFailedEvent))] + public partial interface IImportValidationFailedEvent : IEvent + { + new IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IImportValidationFailedEventData Data { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportValidationFailedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportValidationFailedEventData.cs new file mode 100644 index 00000000000..61872fedc10 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportValidationFailedEventData.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.ImportValidationFailedEventData))] + public partial interface IImportValidationFailedEventData + { + string Id { get; set; } + + int Version { get; set; } + + string ImportContainerKey { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportWaitForMasterVariantEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportWaitForMasterVariantEvent.cs new file mode 100644 index 00000000000..9dcbc6df5cb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportWaitForMasterVariantEvent.cs @@ -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.ImportWaitForMasterVariantEvent))] + public partial interface IImportWaitForMasterVariantEvent : IEvent + { + new IEventSubscriptionResourceTypeId ResourceType { get; set; } + + IImportWaitForMasterVariantEventData Data { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportWaitForMasterVariantEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportWaitForMasterVariantEventData.cs new file mode 100644 index 00000000000..41ec4c7cd04 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/IImportWaitForMasterVariantEventData.cs @@ -0,0 +1,15 @@ +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Events +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Events.ImportWaitForMasterVariantEventData))] + public partial interface IImportWaitForMasterVariantEventData + { + string Id { get; set; } + + int Version { get; set; } + + string ImportContainerKey { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerCreatedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerCreatedEvent.cs new file mode 100644 index 00000000000..cf8c764666d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerCreatedEvent.cs @@ -0,0 +1,25 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportContainerCreatedEvent : IImportContainerCreatedEvent + { + 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 IImportContainerCreatedEventData Data { get; set; } + public ImportContainerCreatedEvent() + { + this.Type = IEventType.FindEnum("ImportContainerCreated"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerCreatedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerCreatedEventData.cs new file mode 100644 index 00000000000..875e5868642 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerCreatedEventData.cs @@ -0,0 +1,16 @@ +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportContainerCreatedEventData : IImportContainerCreatedEventData + { + public string Key { get; set; } + + public int Version { get; set; } + + public DateTime CreatedAt { get; set; } + + public DateTime LastModifiedAt { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerDeletedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerDeletedEvent.cs new file mode 100644 index 00000000000..f8bfb75a768 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerDeletedEvent.cs @@ -0,0 +1,25 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportContainerDeletedEvent : IImportContainerDeletedEvent + { + 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 IImportContainerDeletedEventData Data { get; set; } + public ImportContainerDeletedEvent() + { + this.Type = IEventType.FindEnum("ImportContainerDeleted"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerDeletedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerDeletedEventData.cs new file mode 100644 index 00000000000..4ca3f7ad52d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportContainerDeletedEventData.cs @@ -0,0 +1,12 @@ + + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportContainerDeletedEventData : IImportContainerDeletedEventData + { + public string Key { get; set; } + + public int Version { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportOperationRejectedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportOperationRejectedEvent.cs new file mode 100644 index 00000000000..4778382c8a6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportOperationRejectedEvent.cs @@ -0,0 +1,25 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportOperationRejectedEvent : IImportOperationRejectedEvent + { + 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 IImportOperationRejectedEventData Data { get; set; } + public ImportOperationRejectedEvent() + { + this.Type = IEventType.FindEnum("ImportOperationRejected"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportOperationRejectedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportOperationRejectedEventData.cs new file mode 100644 index 00000000000..9e427266eae --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportOperationRejectedEventData.cs @@ -0,0 +1,10 @@ + + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportOperationRejectedEventData : IImportOperationRejectedEventData + { + public string Id { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportUnresolvedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportUnresolvedEvent.cs new file mode 100644 index 00000000000..e9f0c4e9851 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportUnresolvedEvent.cs @@ -0,0 +1,25 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportUnresolvedEvent : IImportUnresolvedEvent + { + 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 IImportUnresolvedEventData Data { get; set; } + public ImportUnresolvedEvent() + { + this.Type = IEventType.FindEnum("ImportUnresolved"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportUnresolvedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportUnresolvedEventData.cs new file mode 100644 index 00000000000..49ef85a19f3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportUnresolvedEventData.cs @@ -0,0 +1,14 @@ + + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportUnresolvedEventData : IImportUnresolvedEventData + { + public string Id { get; set; } + + public int Version { get; set; } + + public string ImportContainerKey { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportValidationFailedEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportValidationFailedEvent.cs new file mode 100644 index 00000000000..42f6625e4ea --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportValidationFailedEvent.cs @@ -0,0 +1,25 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportValidationFailedEvent : IImportValidationFailedEvent + { + 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 IImportValidationFailedEventData Data { get; set; } + public ImportValidationFailedEvent() + { + this.Type = IEventType.FindEnum("ImportValidationFailed"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportValidationFailedEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportValidationFailedEventData.cs new file mode 100644 index 00000000000..d01e8782305 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportValidationFailedEventData.cs @@ -0,0 +1,14 @@ + + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportValidationFailedEventData : IImportValidationFailedEventData + { + public string Id { get; set; } + + public int Version { get; set; } + + public string ImportContainerKey { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportWaitForMasterVariantEvent.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportWaitForMasterVariantEvent.cs new file mode 100644 index 00000000000..2a9b8d444a2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportWaitForMasterVariantEvent.cs @@ -0,0 +1,25 @@ +using commercetools.Sdk.Api.Models.Subscriptions; +using System; + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportWaitForMasterVariantEvent : IImportWaitForMasterVariantEvent + { + 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 IImportWaitForMasterVariantEventData Data { get; set; } + public ImportWaitForMasterVariantEvent() + { + this.Type = IEventType.FindEnum("ImportWaitForMasterVariant"); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportWaitForMasterVariantEventData.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportWaitForMasterVariantEventData.cs new file mode 100644 index 00000000000..a20dd8c3eae --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Events/ImportWaitForMasterVariantEventData.cs @@ -0,0 +1,14 @@ + + +namespace commercetools.Sdk.Api.Models.Events +{ + + public partial class ImportWaitForMasterVariantEventData : IImportWaitForMasterVariantEventData + { + public string Id { get; set; } + + public int Version { get; set; } + + public string ImportContainerKey { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTopLevelUnitSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTopLevelUnitSetMessage.cs new file mode 100644 index 00000000000..d9fbb81da12 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTopLevelUnitSetMessage.cs @@ -0,0 +1,40 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; +using commercetools.Sdk.Api.Models.Common; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class BusinessUnitTopLevelUnitSetMessage : IBusinessUnitTopLevelUnitSetMessage + { + 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 IBusinessUnitKeyReference TopLevelUnit { get; set; } + + public IBusinessUnitKeyReference OldTopLevelUnit { get; set; } + public BusinessUnitTopLevelUnitSetMessage() + { + this.Type = "BusinessUnitTopLevelUnitSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTopLevelUnitSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTopLevelUnitSetMessagePayload.cs new file mode 100644 index 00000000000..4595dcbdff8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTopLevelUnitSetMessagePayload.cs @@ -0,0 +1,19 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class BusinessUnitTopLevelUnitSetMessagePayload : IBusinessUnitTopLevelUnitSetMessagePayload + { + public string Type { get; set; } + + public IBusinessUnitKeyReference TopLevelUnit { get; set; } + + public IBusinessUnitKeyReference OldTopLevelUnit { get; set; } + public BusinessUnitTopLevelUnitSetMessagePayload() + { + this.Type = "BusinessUnitTopLevelUnitSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTypeSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTypeSetMessage.cs new file mode 100644 index 00000000000..5efd939b3c5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTypeSetMessage.cs @@ -0,0 +1,44 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; +using commercetools.Sdk.Api.Models.Common; +using System; + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class BusinessUnitTypeSetMessage : IBusinessUnitTypeSetMessage + { + 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 IBusinessUnitKeyReference ParentUnit { get; set; } + + public IBusinessUnitKeyReference OldParentUnit { get; set; } + + public IBusinessUnitType UnitType { get; set; } + + public IBusinessUnitType OldUnitType { get; set; } + public BusinessUnitTypeSetMessage() + { + this.Type = "BusinessUnitTypeSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTypeSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTypeSetMessagePayload.cs new file mode 100644 index 00000000000..8f538ca73ad --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/BusinessUnitTypeSetMessagePayload.cs @@ -0,0 +1,23 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; + + +namespace commercetools.Sdk.Api.Models.Messages +{ + + public partial class BusinessUnitTypeSetMessagePayload : IBusinessUnitTypeSetMessagePayload + { + public string Type { get; set; } + + public IBusinessUnitKeyReference ParentUnit { get; set; } + + public IBusinessUnitKeyReference OldParentUnit { get; set; } + + public IBusinessUnitType UnitType { get; set; } + + public IBusinessUnitType OldUnitType { get; set; } + public BusinessUnitTypeSetMessagePayload() + { + this.Type = "BusinessUnitTypeSet"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTopLevelUnitSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTopLevelUnitSetMessage.cs new file mode 100644 index 00000000000..f1c874a40d7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTopLevelUnitSetMessage.cs @@ -0,0 +1,14 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessage))] + public partial interface IBusinessUnitTopLevelUnitSetMessage : IMessage + { + IBusinessUnitKeyReference TopLevelUnit { get; set; } + + IBusinessUnitKeyReference OldTopLevelUnit { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTopLevelUnitSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTopLevelUnitSetMessagePayload.cs new file mode 100644 index 00000000000..cc268e8255e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTopLevelUnitSetMessagePayload.cs @@ -0,0 +1,14 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessagePayload))] + public partial interface IBusinessUnitTopLevelUnitSetMessagePayload : IMessagePayload + { + IBusinessUnitKeyReference TopLevelUnit { get; set; } + + IBusinessUnitKeyReference OldTopLevelUnit { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTypeSetMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTypeSetMessage.cs new file mode 100644 index 00000000000..e8fcabf50b4 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTypeSetMessage.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessage))] + public partial interface IBusinessUnitTypeSetMessage : IMessage + { + IBusinessUnitKeyReference ParentUnit { get; set; } + + IBusinessUnitKeyReference OldParentUnit { get; set; } + + IBusinessUnitType UnitType { get; set; } + + IBusinessUnitType OldUnitType { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTypeSetMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTypeSetMessagePayload.cs new file mode 100644 index 00000000000..ced24d829fe --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IBusinessUnitTypeSetMessagePayload.cs @@ -0,0 +1,18 @@ +using commercetools.Sdk.Api.Models.BusinessUnits; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Messages +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessagePayload))] + public partial interface IBusinessUnitTypeSetMessagePayload : IMessagePayload + { + IBusinessUnitKeyReference ParentUnit { get; set; } + + IBusinessUnitKeyReference OldParentUnit { get; set; } + + IBusinessUnitType UnitType { get; set; } + + IBusinessUnitType OldUnitType { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs index 6053445f64a..1ab0175947a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessage.cs @@ -60,6 +60,8 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("BusinessUnitStoreModeChanged", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitStoreModeChangedMessage))] [SubTypeDiscriminator("BusinessUnitStoreRemoved", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitStoreRemovedMessage))] [SubTypeDiscriminator("BusinessUnitStoresSet", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitStoresSetMessage))] + [SubTypeDiscriminator("BusinessUnitTopLevelUnitSet", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessage))] + [SubTypeDiscriminator("BusinessUnitTypeSet", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessage))] [SubTypeDiscriminator("CartDiscountCreated", typeof(commercetools.Sdk.Api.Models.Messages.CartDiscountCreatedMessage))] [SubTypeDiscriminator("CartDiscountDeleted", typeof(commercetools.Sdk.Api.Models.Messages.CartDiscountDeletedMessage))] [SubTypeDiscriminator("CartDiscountStoreAdded", typeof(commercetools.Sdk.Api.Models.Messages.CartDiscountStoreAddedMessage))] @@ -603,6 +605,18 @@ static commercetools.Sdk.Api.Models.Messages.BusinessUnitStoresSetMessage Busine init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessage BusinessUnitTopLevelUnitSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessage(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessage BusinessUnitTypeSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessage(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.CartDiscountCreatedMessage CartDiscountCreated(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.CartDiscountCreatedMessage(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs index f7da8e26a12..c26ba97c431 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Messages/IMessagePayload.cs @@ -59,6 +59,8 @@ namespace commercetools.Sdk.Api.Models.Messages [SubTypeDiscriminator("BusinessUnitStoreModeChanged", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitStoreModeChangedMessagePayload))] [SubTypeDiscriminator("BusinessUnitStoreRemoved", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitStoreRemovedMessagePayload))] [SubTypeDiscriminator("BusinessUnitStoresSet", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitStoresSetMessagePayload))] + [SubTypeDiscriminator("BusinessUnitTopLevelUnitSet", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessagePayload))] + [SubTypeDiscriminator("BusinessUnitTypeSet", typeof(commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessagePayload))] [SubTypeDiscriminator("CartDiscountCreated", typeof(commercetools.Sdk.Api.Models.Messages.CartDiscountCreatedMessagePayload))] [SubTypeDiscriminator("CartDiscountDeleted", typeof(commercetools.Sdk.Api.Models.Messages.CartDiscountDeletedMessagePayload))] [SubTypeDiscriminator("CartDiscountStoreAdded", typeof(commercetools.Sdk.Api.Models.Messages.CartDiscountStoreAddedMessagePayload))] @@ -583,6 +585,18 @@ static commercetools.Sdk.Api.Models.Messages.BusinessUnitStoresSetMessagePayload init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessagePayload BusinessUnitTopLevelUnitSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.BusinessUnitTopLevelUnitSetMessagePayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessagePayload BusinessUnitTypeSet(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Messages.BusinessUnitTypeSetMessagePayload(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Messages.CartDiscountCreatedMessagePayload CartDiscountCreated(Action init = null) { var t = new commercetools.Sdk.Api.Models.Messages.CartDiscountCreatedMessagePayload(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/DeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/DeliveryPayload.cs index 57b4478b066..de1d5b9ad3a 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/DeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/DeliveryPayload.cs @@ -1,15 +1,16 @@ using commercetools.Sdk.Api.Models.Common; using commercetools.Sdk.Api.Models.Messages; + namespace commercetools.Sdk.Api.Models.Subscriptions { public partial class DeliveryPayload : IDeliveryPayload { - public string ProjectKey { get; set; } - public string NotificationType { get; set; } + public string ProjectKey { get; set; } + public IReference Resource { get; set; } public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventDeliveryPayload.cs new file mode 100644 index 00000000000..5fa5dac72d5 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventDeliveryPayload.cs @@ -0,0 +1,24 @@ +using System; + +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + + public partial class EventDeliveryPayload : IEventDeliveryPayload + { + public string NotificationType { get; set; } + + public string Id { get; set; } + + public IEventType Type { get; set; } + + public string ResourceType { get; set; } + + public Object Data { get; set; } + + public DateTime CreatedAt { get; set; } + public EventDeliveryPayload() + { + this.NotificationType = "Event"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventSubscription.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventSubscription.cs new file mode 100644 index 00000000000..b152503fd05 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventSubscription.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + + public partial class EventSubscription : IEventSubscription + { + public IEventSubscriptionResourceTypeId ResourceTypeId { get; set; } + + public IList Types { get; set; } + + public IEnumerable TypesEnumerable { set => Types = value.ToList(); } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventSubscriptionResourceTypeId.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventSubscriptionResourceTypeId.cs new file mode 100644 index 00000000000..537d032d229 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventSubscriptionResourceTypeId.cs @@ -0,0 +1,57 @@ +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using commercetools.Base.CustomAttributes; +using commercetools.Base.Models; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + public enum EventSubscriptionResourceTypeId + { + [Description("import-api")] + ImportApi + } + + public class EventSubscriptionResourceTypeIdWrapper : IEventSubscriptionResourceTypeId + { + public string JsonName { get; internal set; } + public EventSubscriptionResourceTypeId? Value { get; internal set; } + public override string ToString() + { + return JsonName; + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public new IEnumerator GetEnumerator() + { + return JsonName.GetEnumerator(); + } + } + + [EnumInterfaceCreator(typeof(IEventSubscriptionResourceTypeId), "FindEnum")] + public interface IEventSubscriptionResourceTypeId : IJsonName, IEnumerable + { + public static IEventSubscriptionResourceTypeId ImportApi = new EventSubscriptionResourceTypeIdWrapper + { Value = EventSubscriptionResourceTypeId.ImportApi, JsonName = "import-api" }; + + EventSubscriptionResourceTypeId? Value { get; } + + static IEventSubscriptionResourceTypeId[] Values() + { + return new[] + { + ImportApi + }; + } + static IEventSubscriptionResourceTypeId FindEnum(string value) + { + return Values().FirstOrDefault(origin => origin.JsonName == value) ?? new EventSubscriptionResourceTypeIdWrapper() { JsonName = value }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventType.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventType.cs new file mode 100644 index 00000000000..fc2b29e6fed --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/EventType.cs @@ -0,0 +1,92 @@ +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using commercetools.Base.CustomAttributes; +using commercetools.Base.Models; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + public enum EventType + { + [Description("ImportContainerCreated")] + ImportContainerCreated, + + [Description("ImportContainerDeleted")] + ImportContainerDeleted, + + [Description("ImportOperationRejected")] + ImportOperationRejected, + + [Description("ImportUnresolved")] + ImportUnresolved, + + [Description("ImportValidationFailed")] + ImportValidationFailed, + + [Description("ImportWaitForMasterVariant")] + ImportWaitForMasterVariant + } + + public class EventTypeWrapper : IEventType + { + public string JsonName { get; internal set; } + public EventType? Value { get; internal set; } + public override string ToString() + { + return JsonName; + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public new IEnumerator GetEnumerator() + { + return JsonName.GetEnumerator(); + } + } + + [EnumInterfaceCreator(typeof(IEventType), "FindEnum")] + public interface IEventType : IJsonName, IEnumerable + { + public static IEventType ImportContainerCreated = new EventTypeWrapper + { Value = EventType.ImportContainerCreated, JsonName = "ImportContainerCreated" }; + + public static IEventType ImportContainerDeleted = new EventTypeWrapper + { Value = EventType.ImportContainerDeleted, JsonName = "ImportContainerDeleted" }; + + public static IEventType ImportOperationRejected = new EventTypeWrapper + { Value = EventType.ImportOperationRejected, JsonName = "ImportOperationRejected" }; + + public static IEventType ImportUnresolved = new EventTypeWrapper + { Value = EventType.ImportUnresolved, JsonName = "ImportUnresolved" }; + + public static IEventType ImportValidationFailed = new EventTypeWrapper + { Value = EventType.ImportValidationFailed, JsonName = "ImportValidationFailed" }; + + public static IEventType ImportWaitForMasterVariant = new EventTypeWrapper + { Value = EventType.ImportWaitForMasterVariant, JsonName = "ImportWaitForMasterVariant" }; + + EventType? Value { get; } + + static IEventType[] Values() + { + return new[] + { + ImportContainerCreated , + ImportContainerDeleted , + ImportOperationRejected , + ImportUnresolved , + ImportValidationFailed , + ImportWaitForMasterVariant + }; + } + static IEventType FindEnum(string value) + { + return Values().FirstOrDefault(origin => origin.JsonName == value) ?? new EventTypeWrapper() { JsonName = value }; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IDeliveryPayload.cs index 72a8fb36bcc..c78f784bfd2 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IDeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IDeliveryPayload.cs @@ -1,49 +1,17 @@ using commercetools.Sdk.Api.Models.Common; using commercetools.Sdk.Api.Models.Messages; using commercetools.Base.CustomAttributes; -using System; // ReSharper disable CheckNamespace namespace commercetools.Sdk.Api.Models.Subscriptions { - [TypeDiscriminator(nameof(NotificationType))] - [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Subscriptions.DeliveryPayload))] - [SubTypeDiscriminator("Message", typeof(commercetools.Sdk.Api.Models.Subscriptions.MessageDeliveryPayload))] - [SubTypeDiscriminator("ResourceCreated", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceCreatedDeliveryPayload))] - [SubTypeDiscriminator("ResourceDeleted", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload))] - [SubTypeDiscriminator("ResourceUpdated", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload))] - public partial interface IDeliveryPayload + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Subscriptions.DeliveryPayload))] + public partial interface IDeliveryPayload : ISubscriptionNotification { string ProjectKey { get; set; } - string NotificationType { get; set; } - IReference Resource { get; set; } IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } - static commercetools.Sdk.Api.Models.Subscriptions.MessageDeliveryPayload Message(Action init = null) - { - var t = new commercetools.Sdk.Api.Models.Subscriptions.MessageDeliveryPayload(); - init?.Invoke(t); - return t; - } - static commercetools.Sdk.Api.Models.Subscriptions.ResourceCreatedDeliveryPayload ResourceCreated(Action init = null) - { - var t = new commercetools.Sdk.Api.Models.Subscriptions.ResourceCreatedDeliveryPayload(); - init?.Invoke(t); - return t; - } - static commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload ResourceDeleted(Action init = null) - { - var t = new commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload(); - init?.Invoke(t); - return t; - } - static commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload ResourceUpdated(Action init = null) - { - var t = new commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload(); - init?.Invoke(t); - return t; - } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventDeliveryPayload.cs new file mode 100644 index 00000000000..95f336d1892 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventDeliveryPayload.cs @@ -0,0 +1,20 @@ +using System; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Subscriptions.EventDeliveryPayload))] + public partial interface IEventDeliveryPayload : ISubscriptionNotification + { + string Id { get; set; } + + IEventType Type { get; set; } + + string ResourceType { get; set; } + + Object Data { get; set; } + + DateTime CreatedAt { get; set; } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventSubscription.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventSubscription.cs new file mode 100644 index 00000000000..d5208e99f80 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/IEventSubscription.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Subscriptions.EventSubscription))] + public partial interface IEventSubscription + { + IEventSubscriptionResourceTypeId ResourceTypeId { get; set; } + + IList Types { get; set; } + + IEnumerable TypesEnumerable { set => Types = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscription.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscription.cs index a2452da23b7..2210991064f 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscription.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscription.cs @@ -33,6 +33,10 @@ public partial interface ISubscription : IBaseResource IEnumerable MessagesEnumerable { set => Messages = value.ToList(); } + IList Events { get; set; } + + IEnumerable EventsEnumerable { set => Events = value.ToList(); } + IDeliveryFormat Format { get; set; } ISubscriptionHealthStatus Status { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionDraft.cs index 517a564c69d..5dda1d78d9d 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionDraft.cs @@ -19,6 +19,10 @@ public partial interface ISubscriptionDraft IEnumerable MessagesEnumerable { set => Messages = value.ToList(); } + IList Events { get; set; } + + IEnumerable EventsEnumerable { set => Events = value.ToList(); } + IDeliveryFormat Format { get; set; } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionNotification.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionNotification.cs new file mode 100644 index 00000000000..86da13ea672 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionNotification.cs @@ -0,0 +1,48 @@ +using commercetools.Base.CustomAttributes; +using System; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + [TypeDiscriminator(nameof(NotificationType))] + [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionNotification))] + [SubTypeDiscriminator("Event", typeof(commercetools.Sdk.Api.Models.Subscriptions.EventDeliveryPayload))] + [SubTypeDiscriminator("Message", typeof(commercetools.Sdk.Api.Models.Subscriptions.MessageDeliveryPayload))] + [SubTypeDiscriminator("ResourceCreated", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceCreatedDeliveryPayload))] + [SubTypeDiscriminator("ResourceDeleted", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload))] + [SubTypeDiscriminator("ResourceUpdated", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload))] + public partial interface ISubscriptionNotification + { + string NotificationType { get; set; } + + static commercetools.Sdk.Api.Models.Subscriptions.EventDeliveryPayload Event(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Subscriptions.EventDeliveryPayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Subscriptions.MessageDeliveryPayload Message(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Subscriptions.MessageDeliveryPayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Subscriptions.ResourceCreatedDeliveryPayload ResourceCreated(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Subscriptions.ResourceCreatedDeliveryPayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload ResourceDeleted(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload(); + init?.Invoke(t); + return t; + } + static commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload ResourceUpdated(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload(); + init?.Invoke(t); + return t; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionSetEventsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionSetEventsAction.cs new file mode 100644 index 00000000000..54578266b8c --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionSetEventsAction.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using System.Linq; +using commercetools.Base.CustomAttributes; +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + [DeserializeAs(typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetEventsAction))] + public partial interface ISubscriptionSetEventsAction : ISubscriptionUpdateAction + { + IList Messages { get; set; } + + IEnumerable MessagesEnumerable { set => Messages = value.ToList(); } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionUpdateAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionUpdateAction.cs index b4e396e8b97..70efb1ea211 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionUpdateAction.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ISubscriptionUpdateAction.cs @@ -7,6 +7,7 @@ namespace commercetools.Sdk.Api.Models.Subscriptions [DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionUpdateAction))] [SubTypeDiscriminator("changeDestination", typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionChangeDestinationAction))] [SubTypeDiscriminator("setChanges", typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetChangesAction))] + [SubTypeDiscriminator("setEvents", typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetEventsAction))] [SubTypeDiscriminator("setKey", typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetKeyAction))] [SubTypeDiscriminator("setMessages", typeof(commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetMessagesAction))] public partial interface ISubscriptionUpdateAction @@ -25,6 +26,12 @@ static commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetChangesAction S init?.Invoke(t); return t; } + static commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetEventsAction SetEvents(Action init = null) + { + var t = new commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetEventsAction(); + init?.Invoke(t); + return t; + } static commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetKeyAction SetKey(Action init = null) { var t = new commercetools.Sdk.Api.Models.Subscriptions.SubscriptionSetKeyAction(); diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageDeliveryPayload.cs index 3d662251252..18fbe04e9c5 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageDeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/MessageDeliveryPayload.cs @@ -7,10 +7,10 @@ namespace commercetools.Sdk.Api.Models.Subscriptions public partial class MessageDeliveryPayload : IMessageDeliveryPayload { - public string ProjectKey { get; set; } - public string NotificationType { get; set; } + public string ProjectKey { get; set; } + public IReference Resource { get; set; } public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceCreatedDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceCreatedDeliveryPayload.cs index 10d38b8b083..30774d346fe 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceCreatedDeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceCreatedDeliveryPayload.cs @@ -7,10 +7,10 @@ namespace commercetools.Sdk.Api.Models.Subscriptions public partial class ResourceCreatedDeliveryPayload : IResourceCreatedDeliveryPayload { - public string ProjectKey { get; set; } - public string NotificationType { get; set; } + public string ProjectKey { get; set; } + public IReference Resource { get; set; } public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceDeletedDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceDeletedDeliveryPayload.cs index 7b50f4f53ec..5438051b804 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceDeletedDeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceDeletedDeliveryPayload.cs @@ -7,10 +7,10 @@ namespace commercetools.Sdk.Api.Models.Subscriptions public partial class ResourceDeletedDeliveryPayload : IResourceDeletedDeliveryPayload { - public string ProjectKey { get; set; } - public string NotificationType { get; set; } + public string ProjectKey { get; set; } + public IReference Resource { get; set; } public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceUpdatedDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceUpdatedDeliveryPayload.cs index 3045d5b4742..abd73994574 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceUpdatedDeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/ResourceUpdatedDeliveryPayload.cs @@ -7,10 +7,10 @@ namespace commercetools.Sdk.Api.Models.Subscriptions public partial class ResourceUpdatedDeliveryPayload : IResourceUpdatedDeliveryPayload { - public string ProjectKey { get; set; } - public string NotificationType { get; set; } + public string ProjectKey { get; set; } + public IReference Resource { get; set; } public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/Subscription.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/Subscription.cs index 0bfcdbd3a15..a1a521d56a1 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/Subscription.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/Subscription.cs @@ -32,6 +32,10 @@ public partial class Subscription : ISubscription public IEnumerable MessagesEnumerable { set => Messages = value.ToList(); } + public IList Events { get; set; } + + public IEnumerable EventsEnumerable { set => Events = value.ToList(); } + public IDeliveryFormat Format { get; set; } public ISubscriptionHealthStatus Status { get; set; } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionDraft.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionDraft.cs index 0ec8569785a..122cba0a1c3 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionDraft.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionDraft.cs @@ -18,6 +18,10 @@ public partial class SubscriptionDraft : ISubscriptionDraft public IEnumerable MessagesEnumerable { set => Messages = value.ToList(); } + public IList Events { get; set; } + + public IEnumerable EventsEnumerable { set => Events = value.ToList(); } + public IDeliveryFormat Format { get; set; } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionNotification.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionNotification.cs new file mode 100644 index 00000000000..f872ba2bb2e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionNotification.cs @@ -0,0 +1,8 @@ +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + + public partial class SubscriptionNotification : ISubscriptionNotification + { + public string NotificationType { get; set; } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionSetEventsAction.cs b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionSetEventsAction.cs new file mode 100644 index 00000000000..7ecdd98e4d7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Subscriptions/SubscriptionSetEventsAction.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; +using System.Linq; + +namespace commercetools.Sdk.Api.Models.Subscriptions +{ + + public partial class SubscriptionSetEventsAction : ISubscriptionSetEventsAction + { + public string Action { get; set; } + + public IList Messages { get; set; } + + public IEnumerable MessagesEnumerable { set => Messages = value.ToList(); } + public SubscriptionSetEventsAction() + { + this.Action = "setEvents"; + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Models/Subscriptions/IDeliveryPayload.cs b/commercetools.Sdk/commercetools.Sdk.Api/Models/Subscriptions/IDeliveryPayload.cs index e8079b4b1b6..85cbcb342db 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Models/Subscriptions/IDeliveryPayload.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Models/Subscriptions/IDeliveryPayload.cs @@ -9,7 +9,7 @@ namespace commercetools.Sdk.Api.Models.Subscriptions; [SubTypeDiscriminator("ResourceDeleted", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceDeletedDeliveryPayload))] [SubTypeDiscriminator("ResourceUpdated", typeof(commercetools.Sdk.Api.Models.Subscriptions.ResourceUpdatedDeliveryPayload))] public partial interface IDeliveryPayload -{ +{ new string NotificationType { get; set; } } \ No newline at end of file diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitSetUnitTypeActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitSetUnitTypeActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..a65d86b7fc2 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitSetUnitTypeActionQueryBuilderDsl.cs @@ -0,0 +1,41 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.BusinessUnits +{ + + public partial class BusinessUnitSetUnitTypeActionQueryBuilderDsl + { + public BusinessUnitSetUnitTypeActionQueryBuilderDsl() + { + } + + public static BusinessUnitSetUnitTypeActionQueryBuilderDsl Of() + { + return new BusinessUnitSetUnitTypeActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, BusinessUnitSetUnitTypeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder UnitType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("unitType")), + p => new CombinationQueryPredicate(p, BusinessUnitSetUnitTypeActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ParentUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("parentUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitResourceIdentifierQueryBuilderDsl.Of())), + BusinessUnitSetUnitTypeActionQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitUpdateActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitUpdateActionQueryBuilderDsl.cs index 34deff4e02e..f55f72afcc6 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitUpdateActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/BusinessUnits/BusinessUnitUpdateActionQueryBuilderDsl.cs @@ -184,5 +184,11 @@ public CombinationQueryPredicate AsSetS return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitSetStoresActionQueryBuilderDsl.Of()), BusinessUnitUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSetUnitType( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitSetUnitTypeActionQueryBuilderDsl.Of()), + BusinessUnitUpdateActionQueryBuilderDsl.Of); + } } } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/BaseEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/BaseEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..db2839c8f73 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/BaseEventQueryBuilderDsl.cs @@ -0,0 +1,56 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class BaseEventQueryBuilderDsl + { + public BaseEventQueryBuilderDsl() + { + } + + public static BaseEventQueryBuilderDsl Of() + { + return new BaseEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, BaseEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, BaseEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, BaseEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, BaseEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Data() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("data")), + p => new CombinationQueryPredicate(p, BaseEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, BaseEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/EventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/EventQueryBuilderDsl.cs new file mode 100644 index 00000000000..513b86b47a8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/EventQueryBuilderDsl.cs @@ -0,0 +1,86 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class EventQueryBuilderDsl + { + public EventQueryBuilderDsl() + { + } + + public static EventQueryBuilderDsl Of() + { + return new EventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, EventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, EventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, EventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, EventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, EventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + public CombinationQueryPredicate AsImportContainerCreated( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportContainerCreatedEventQueryBuilderDsl.Of()), + EventQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsImportContainerDeleted( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportContainerDeletedEventQueryBuilderDsl.Of()), + EventQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsImportOperationRejected( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportOperationRejectedEventQueryBuilderDsl.Of()), + EventQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsImportUnresolved( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportUnresolvedEventQueryBuilderDsl.Of()), + EventQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsImportValidationFailed( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportValidationFailedEventQueryBuilderDsl.Of()), + EventQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsImportWaitForMasterVariant( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportWaitForMasterVariantEventQueryBuilderDsl.Of()), + EventQueryBuilderDsl.Of); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerCreatedEventDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerCreatedEventDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..3bc57739f48 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerCreatedEventDataQueryBuilderDsl.cs @@ -0,0 +1,44 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportContainerCreatedEventDataQueryBuilderDsl + { + public ImportContainerCreatedEventDataQueryBuilderDsl() + { + } + + public static ImportContainerCreatedEventDataQueryBuilderDsl Of() + { + return new ImportContainerCreatedEventDataQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerCreatedEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerCreatedEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..eb345d357c8 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerCreatedEventQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportContainerCreatedEventQueryBuilderDsl + { + public ImportContainerCreatedEventQueryBuilderDsl() + { + } + + public static ImportContainerCreatedEventQueryBuilderDsl Of() + { + return new ImportContainerCreatedEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportContainerCreatedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Data( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("data")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportContainerCreatedEventDataQueryBuilderDsl.Of())), + ImportContainerCreatedEventQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerDeletedEventDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerDeletedEventDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..388f25c0c91 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerDeletedEventDataQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportContainerDeletedEventDataQueryBuilderDsl + { + public ImportContainerDeletedEventDataQueryBuilderDsl() + { + } + + public static ImportContainerDeletedEventDataQueryBuilderDsl Of() + { + return new ImportContainerDeletedEventDataQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Key() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("key")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerDeletedEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerDeletedEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..b7c207a9f99 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportContainerDeletedEventQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportContainerDeletedEventQueryBuilderDsl + { + public ImportContainerDeletedEventQueryBuilderDsl() + { + } + + public static ImportContainerDeletedEventQueryBuilderDsl Of() + { + return new ImportContainerDeletedEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportContainerDeletedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Data( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("data")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportContainerDeletedEventDataQueryBuilderDsl.Of())), + ImportContainerDeletedEventQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportOperationRejectedEventDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportOperationRejectedEventDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..e01068a6e0e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportOperationRejectedEventDataQueryBuilderDsl.cs @@ -0,0 +1,24 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportOperationRejectedEventDataQueryBuilderDsl + { + public ImportOperationRejectedEventDataQueryBuilderDsl() + { + } + + public static ImportOperationRejectedEventDataQueryBuilderDsl Of() + { + return new ImportOperationRejectedEventDataQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportOperationRejectedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportOperationRejectedEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportOperationRejectedEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..9d2b1adc80d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportOperationRejectedEventQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportOperationRejectedEventQueryBuilderDsl + { + public ImportOperationRejectedEventQueryBuilderDsl() + { + } + + public static ImportOperationRejectedEventQueryBuilderDsl Of() + { + return new ImportOperationRejectedEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportOperationRejectedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, ImportOperationRejectedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, ImportOperationRejectedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ImportOperationRejectedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportOperationRejectedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Data( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("data")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportOperationRejectedEventDataQueryBuilderDsl.Of())), + ImportOperationRejectedEventQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportUnresolvedEventDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportUnresolvedEventDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..488d3528524 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportUnresolvedEventDataQueryBuilderDsl.cs @@ -0,0 +1,36 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportUnresolvedEventDataQueryBuilderDsl + { + public ImportUnresolvedEventDataQueryBuilderDsl() + { + } + + public static ImportUnresolvedEventDataQueryBuilderDsl Of() + { + return new ImportUnresolvedEventDataQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ImportContainerKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("importContainerKey")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportUnresolvedEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportUnresolvedEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..fbc9ccf3ee6 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportUnresolvedEventQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportUnresolvedEventQueryBuilderDsl + { + public ImportUnresolvedEventQueryBuilderDsl() + { + } + + public static ImportUnresolvedEventQueryBuilderDsl Of() + { + return new ImportUnresolvedEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportUnresolvedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Data( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("data")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportUnresolvedEventDataQueryBuilderDsl.Of())), + ImportUnresolvedEventQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportValidationFailedEventDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportValidationFailedEventDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..39769ddd215 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportValidationFailedEventDataQueryBuilderDsl.cs @@ -0,0 +1,36 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportValidationFailedEventDataQueryBuilderDsl + { + public ImportValidationFailedEventDataQueryBuilderDsl() + { + } + + public static ImportValidationFailedEventDataQueryBuilderDsl Of() + { + return new ImportValidationFailedEventDataQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ImportContainerKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("importContainerKey")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportValidationFailedEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportValidationFailedEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..9e23105d051 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportValidationFailedEventQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportValidationFailedEventQueryBuilderDsl + { + public ImportValidationFailedEventQueryBuilderDsl() + { + } + + public static ImportValidationFailedEventQueryBuilderDsl Of() + { + return new ImportValidationFailedEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportValidationFailedEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Data( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("data")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportValidationFailedEventDataQueryBuilderDsl.Of())), + ImportValidationFailedEventQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportWaitForMasterVariantEventDataQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportWaitForMasterVariantEventDataQueryBuilderDsl.cs new file mode 100644 index 00000000000..20d500ef1c3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportWaitForMasterVariantEventDataQueryBuilderDsl.cs @@ -0,0 +1,36 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportWaitForMasterVariantEventDataQueryBuilderDsl + { + public ImportWaitForMasterVariantEventDataQueryBuilderDsl() + { + } + + public static ImportWaitForMasterVariantEventDataQueryBuilderDsl Of() + { + return new ImportWaitForMasterVariantEventDataQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ImportContainerKey() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("importContainerKey")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventDataQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportWaitForMasterVariantEventQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportWaitForMasterVariantEventQueryBuilderDsl.cs new file mode 100644 index 00000000000..1cb2d80134e --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Events/ImportWaitForMasterVariantEventQueryBuilderDsl.cs @@ -0,0 +1,59 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Events +{ + + public partial class ImportWaitForMasterVariantEventQueryBuilderDsl + { + public ImportWaitForMasterVariantEventQueryBuilderDsl() + { + } + + public static ImportWaitForMasterVariantEventQueryBuilderDsl Of() + { + return new ImportWaitForMasterVariantEventQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, ImportWaitForMasterVariantEventQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Data( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("data")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Events.ImportWaitForMasterVariantEventDataQueryBuilderDsl.Of())), + ImportWaitForMasterVariantEventQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..c35a99f489d --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,44 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl + { + public BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl() + { + } + + public static BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl Of() + { + return new BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate TopLevelUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("topLevelUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldTopLevelUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldTopLevelUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..060f49702b1 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.cs @@ -0,0 +1,116 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl + { + public BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl() + { + } + + public static BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl Of() + { + return new BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate TopLevelUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("topLevelUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldTopLevelUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldTopLevelUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of); + } + + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..cf1b803eaeb --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.cs @@ -0,0 +1,56 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class BusinessUnitTypeSetMessagePayloadQueryBuilderDsl + { + public BusinessUnitTypeSetMessagePayloadQueryBuilderDsl() + { + } + + public static BusinessUnitTypeSetMessagePayloadQueryBuilderDsl Of() + { + return new BusinessUnitTypeSetMessagePayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ParentUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("parentUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldParentUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldParentUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder UnitType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("unitType")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder OldUnitType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("oldUnitType")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTypeSetMessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTypeSetMessageQueryBuilderDsl.cs new file mode 100644 index 00000000000..6f94d282ba3 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/BusinessUnitTypeSetMessageQueryBuilderDsl.cs @@ -0,0 +1,128 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Messages +{ + + public partial class BusinessUnitTypeSetMessageQueryBuilderDsl + { + public BusinessUnitTypeSetMessageQueryBuilderDsl() + { + } + + public static BusinessUnitTypeSetMessageQueryBuilderDsl Of() + { + return new BusinessUnitTypeSetMessageQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Version() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("version")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder LastModifiedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("lastModifiedAt")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate LastModifiedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("lastModifiedBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.LastModifiedByQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate CreatedBy( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("createdBy")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.CreatedByQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder SequenceNumber() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("sequenceNumber")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Resource( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resource")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Common.ReferenceQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder ResourceVersion() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceVersion")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate ResourceUserProvidedIdentifiers( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("resourceUserProvidedIdentifiers")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.UserProvidedIdentifiersQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate ParentUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("parentUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessageQueryBuilderDsl.Of); + } + + public CombinationQueryPredicate OldParentUnit( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("oldParentUnit")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.BusinessUnits.BusinessUnitKeyReferenceQueryBuilderDsl.Of())), + BusinessUnitTypeSetMessageQueryBuilderDsl.Of); + } + + public IComparisonPredicateBuilder UnitType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("unitType")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder OldUnitType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("oldUnitType")), + p => new CombinationQueryPredicate(p, BusinessUnitTypeSetMessageQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs index 59e817e9854..0ab9e97d544 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessagePayloadQueryBuilderDsl.cs @@ -346,6 +346,18 @@ public CombinationQueryPredicate AsBusinessUnitSt return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.BusinessUnitStoresSetMessagePayloadQueryBuilderDsl.Of()), MessagePayloadQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsBusinessUnitTopLevelUnitSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsBusinessUnitTypeSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.Of()), + MessagePayloadQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsCartDiscountCreated( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs index a0854ffad71..b6b66c4c1c3 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Messages/MessageQueryBuilderDsl.cs @@ -418,6 +418,18 @@ public CombinationQueryPredicate AsBusinessUnitStoresSet return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.BusinessUnitStoresSetMessageQueryBuilderDsl.Of()), MessageQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsBusinessUnitTopLevelUnitSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsBusinessUnitTypeSet( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Messages.BusinessUnitTypeSetMessageQueryBuilderDsl.Of()), + MessageQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsCartDiscountCreated( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/DeliveryPayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/DeliveryPayloadQueryBuilderDsl.cs index 880692a0b25..ca09933f555 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/DeliveryPayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/DeliveryPayloadQueryBuilderDsl.cs @@ -15,15 +15,15 @@ public static DeliveryPayloadQueryBuilderDsl Of() return new DeliveryPayloadQueryBuilderDsl(); } - public IComparisonPredicateBuilder ProjectKey() + public IComparisonPredicateBuilder NotificationType() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), p => new CombinationQueryPredicate(p, DeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } - public IComparisonPredicateBuilder NotificationType() + public IComparisonPredicateBuilder ProjectKey() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), p => new CombinationQueryPredicate(p, DeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventDeliveryPayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventDeliveryPayloadQueryBuilderDsl.cs new file mode 100644 index 00000000000..80c64acabe7 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventDeliveryPayloadQueryBuilderDsl.cs @@ -0,0 +1,56 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Subscriptions +{ + + public partial class EventDeliveryPayloadQueryBuilderDsl + { + public EventDeliveryPayloadQueryBuilderDsl() + { + } + + public static EventDeliveryPayloadQueryBuilderDsl Of() + { + return new EventDeliveryPayloadQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, EventDeliveryPayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Id() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("id")), + p => new CombinationQueryPredicate(p, EventDeliveryPayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Type() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), + p => new CombinationQueryPredicate(p, EventDeliveryPayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder ResourceType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceType")), + p => new CombinationQueryPredicate(p, EventDeliveryPayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder Data() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("data")), + p => new CombinationQueryPredicate(p, EventDeliveryPayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparisonPredicateBuilder CreatedAt() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("createdAt")), + p => new CombinationQueryPredicate(p, EventDeliveryPayloadQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventSubscriptionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventSubscriptionQueryBuilderDsl.cs new file mode 100644 index 00000000000..d6ee47febcf --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/EventSubscriptionQueryBuilderDsl.cs @@ -0,0 +1,30 @@ +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Subscriptions +{ + + public partial class EventSubscriptionQueryBuilderDsl + { + public EventSubscriptionQueryBuilderDsl() + { + } + + public static EventSubscriptionQueryBuilderDsl Of() + { + return new EventSubscriptionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder ResourceTypeId() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("resourceTypeId")), + p => new CombinationQueryPredicate(p, EventSubscriptionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public IComparableCollectionPredicateBuilder Types() + { + return new ComparableCollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("types")), + p => new CombinationQueryPredicate(p, EventSubscriptionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/MessageDeliveryPayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/MessageDeliveryPayloadQueryBuilderDsl.cs index c94a8b31c15..f5f6af57d4e 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/MessageDeliveryPayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/MessageDeliveryPayloadQueryBuilderDsl.cs @@ -15,15 +15,15 @@ public static MessageDeliveryPayloadQueryBuilderDsl Of() return new MessageDeliveryPayloadQueryBuilderDsl(); } - public IComparisonPredicateBuilder ProjectKey() + public IComparisonPredicateBuilder NotificationType() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), p => new CombinationQueryPredicate(p, MessageDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } - public IComparisonPredicateBuilder NotificationType() + public IComparisonPredicateBuilder ProjectKey() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), p => new CombinationQueryPredicate(p, MessageDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceCreatedDeliveryPayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceCreatedDeliveryPayloadQueryBuilderDsl.cs index 9ad7b453b34..7c296830b8c 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceCreatedDeliveryPayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceCreatedDeliveryPayloadQueryBuilderDsl.cs @@ -15,15 +15,15 @@ public static ResourceCreatedDeliveryPayloadQueryBuilderDsl Of() return new ResourceCreatedDeliveryPayloadQueryBuilderDsl(); } - public IComparisonPredicateBuilder ProjectKey() + public IComparisonPredicateBuilder NotificationType() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), p => new CombinationQueryPredicate(p, ResourceCreatedDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } - public IComparisonPredicateBuilder NotificationType() + public IComparisonPredicateBuilder ProjectKey() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), p => new CombinationQueryPredicate(p, ResourceCreatedDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceDeletedDeliveryPayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceDeletedDeliveryPayloadQueryBuilderDsl.cs index f6725513f47..58c5a2d9c6b 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceDeletedDeliveryPayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceDeletedDeliveryPayloadQueryBuilderDsl.cs @@ -15,15 +15,15 @@ public static ResourceDeletedDeliveryPayloadQueryBuilderDsl Of() return new ResourceDeletedDeliveryPayloadQueryBuilderDsl(); } - public IComparisonPredicateBuilder ProjectKey() + public IComparisonPredicateBuilder NotificationType() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), p => new CombinationQueryPredicate(p, ResourceDeletedDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } - public IComparisonPredicateBuilder NotificationType() + public IComparisonPredicateBuilder ProjectKey() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), p => new CombinationQueryPredicate(p, ResourceDeletedDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.cs index 65b5e9a02eb..0d082453423 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.cs @@ -15,15 +15,15 @@ public static ResourceUpdatedDeliveryPayloadQueryBuilderDsl Of() return new ResourceUpdatedDeliveryPayloadQueryBuilderDsl(); } - public IComparisonPredicateBuilder ProjectKey() + public IComparisonPredicateBuilder NotificationType() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), p => new CombinationQueryPredicate(p, ResourceUpdatedDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } - public IComparisonPredicateBuilder NotificationType() + public IComparisonPredicateBuilder ProjectKey() { - return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("projectKey")), p => new CombinationQueryPredicate(p, ResourceUpdatedDeliveryPayloadQueryBuilderDsl.Of), PredicateFormatter.Format); } diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionDraftQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionDraftQueryBuilderDsl.cs index 6b3de7c4059..86c514a7fb2 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionDraftQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionDraftQueryBuilderDsl.cs @@ -56,6 +56,19 @@ public ICollectionPredicateBuilder Messages() return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("messages")), p => new CombinationQueryPredicate(p, SubscriptionDraftQueryBuilderDsl.Of)); } + public CombinationQueryPredicate Events( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("events")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.EventSubscriptionQueryBuilderDsl.Of())), + SubscriptionDraftQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Events() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("events")), + p => new CombinationQueryPredicate(p, SubscriptionDraftQueryBuilderDsl.Of)); + } public CombinationQueryPredicate Format( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionNotificationQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionNotificationQueryBuilderDsl.cs new file mode 100644 index 00000000000..054d7125dbf --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionNotificationQueryBuilderDsl.cs @@ -0,0 +1,38 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Subscriptions +{ + + public partial class SubscriptionNotificationQueryBuilderDsl + { + public SubscriptionNotificationQueryBuilderDsl() + { + } + + public static SubscriptionNotificationQueryBuilderDsl Of() + { + return new SubscriptionNotificationQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder NotificationType() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("notificationType")), + p => new CombinationQueryPredicate(p, SubscriptionNotificationQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + + public CombinationQueryPredicate AsDeliveryPayload( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.DeliveryPayloadQueryBuilderDsl.Of()), + SubscriptionNotificationQueryBuilderDsl.Of); + } + public CombinationQueryPredicate AsEvent( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.EventDeliveryPayloadQueryBuilderDsl.Of()), + SubscriptionNotificationQueryBuilderDsl.Of); + } + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionQueryBuilderDsl.cs index 42fc9314a44..58b5b74eb08 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionQueryBuilderDsl.cs @@ -98,6 +98,19 @@ public ICollectionPredicateBuilder Messages() return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("messages")), p => new CombinationQueryPredicate(p, SubscriptionQueryBuilderDsl.Of)); } + public CombinationQueryPredicate Events( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("events")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.EventSubscriptionQueryBuilderDsl.Of())), + SubscriptionQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Events() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("events")), + p => new CombinationQueryPredicate(p, SubscriptionQueryBuilderDsl.Of)); + } public CombinationQueryPredicate Format( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionSetEventsActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionSetEventsActionQueryBuilderDsl.cs new file mode 100644 index 00000000000..c761e903d75 --- /dev/null +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionSetEventsActionQueryBuilderDsl.cs @@ -0,0 +1,39 @@ +using System; + +// ReSharper disable CheckNamespace +namespace commercetools.Sdk.Api.Predicates.Query.Subscriptions +{ + + public partial class SubscriptionSetEventsActionQueryBuilderDsl + { + public SubscriptionSetEventsActionQueryBuilderDsl() + { + } + + public static SubscriptionSetEventsActionQueryBuilderDsl Of() + { + return new SubscriptionSetEventsActionQueryBuilderDsl(); + } + + public IComparisonPredicateBuilder Action() + { + return new ComparisonPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("action")), + p => new CombinationQueryPredicate(p, SubscriptionSetEventsActionQueryBuilderDsl.Of), + PredicateFormatter.Format); + } + public CombinationQueryPredicate Messages( + Func> fn) + { + return new CombinationQueryPredicate(ContainerQueryPredicate.Of() + .Parent(ConstantQueryPredicate.Of().Constant("messages")) + .Inner(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.EventSubscriptionQueryBuilderDsl.Of())), + SubscriptionSetEventsActionQueryBuilderDsl.Of); + } + public ICollectionPredicateBuilder Messages() + { + return new CollectionPredicateBuilder(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("messages")), + p => new CombinationQueryPredicate(p, SubscriptionSetEventsActionQueryBuilderDsl.Of)); + } + + } +} diff --git a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionUpdateActionQueryBuilderDsl.cs b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionUpdateActionQueryBuilderDsl.cs index 7f612740f11..f1c87a8bbfb 100644 --- a/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionUpdateActionQueryBuilderDsl.cs +++ b/commercetools.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Subscriptions/SubscriptionUpdateActionQueryBuilderDsl.cs @@ -34,6 +34,12 @@ public CombinationQueryPredicate AsSetC return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.SubscriptionSetChangesActionQueryBuilderDsl.Of()), SubscriptionUpdateActionQueryBuilderDsl.Of); } + public CombinationQueryPredicate AsSetEvents( + Func> fn) + { + return new CombinationQueryPredicate(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Subscriptions.SubscriptionSetEventsActionQueryBuilderDsl.Of()), + SubscriptionUpdateActionQueryBuilderDsl.Of); + } public CombinationQueryPredicate AsSetKey( Func> fn) { diff --git a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls index 9d8f44a18b6..5766b167135 100644 --- a/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls +++ b/commercetools.Sdk/commercetools.Sdk.GraphQL.Api/schema.graphqls @@ -1667,11 +1667,31 @@ type BusinessUnitStoresSet implements MessagePayload { type: String! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitTopLevelUnitSet implements MessagePayload { + oldTopLevelUnit: BusinessUnit! + topLevelUnit: BusinessUnit! + oldTopLevelUnitRef: KeyReference + topLevelUnitRef: KeyReference + type: String! +} + enum BusinessUnitType { Company Division } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitTypeSet implements MessagePayload { + oldUnitType: BusinessUnitType! + unitType: BusinessUnitType! + parentUnit: BusinessUnit + oldParentUnit: BusinessUnit + parentUnitRef: KeyReference + oldParentUnitRef: KeyReference + type: String! +} + input BusinessUnitUpdateAction { addAddress: AddBusinessUnitAddress addAssociate: AddBusinessUnitAssociate @@ -1700,6 +1720,9 @@ input BusinessUnitUpdateAction { setStoreMode: SetBusinessUnitStoreMode changeAssociateMode: ChangeBusinessUnitAssociateMode changeApprovalRuleMode: ChangeBusinessUnitApprovalRuleMode + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + setUnitType: SetBusinessUnitUnitType } input CancelQuoteRequest { @@ -10872,6 +10895,12 @@ input SetBusinessUnitStores { stores: [ResourceIdentifierInput!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input SetBusinessUnitUnitType { + unitType: BusinessUnitType! + parentUnit: ResourceIdentifierInput +} + input SetCartAnonymousId { anonymousId: String } diff --git a/reference.txt b/reference.txt new file mode 100644 index 00000000000..a2701aa6897 --- /dev/null +++ b/reference.txt @@ -0,0 +1 @@ +5a2a769f50e968cd608764e3979ef9adfa8d744f diff --git a/references.txt b/references.txt index 55e07611eb4..a36d6438842 100644 --- a/references.txt +++ b/references.txt @@ -330,3 +330,4 @@ ffa8644c871728467258443ffb54707031865c44 a33feaab360e352573f683dd36889c80735e3900 6082ac4e80a66d271c68785c32ea07853e8211ef 4055fc15c037521387c7c7687cfceee73527f55f +ab43d3845fcab04a4e74bada3ddedf2d8b28472f