Skip to content

Commit

Permalink
TASK: Updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Auto Mation committed Jul 25, 2023
1 parent 64f4155 commit fec815d
Show file tree
Hide file tree
Showing 36 changed files with 1,295 additions and 0 deletions.
10 changes: 10 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@
- added type `GraphQLMaxCartDiscountsReachedError`
- added type `GraphQLMaxStoreReferencesReachedError`
- added type `GraphQLStoreCartDiscountsLimitReachedError`
- added type `OrderCustomFieldAddedMessage`
- added type `OrderCustomFieldChangedMessage`
- added type `OrderCustomFieldRemovedMessage`
- added type `OrderCustomTypeRemovedMessage`
- added type `OrderCustomTypeSetMessage`
- added type `OrderCustomFieldAddedMessagePayload`
- added type `OrderCustomFieldChangedMessagePayload`
- added type `OrderCustomFieldRemovedMessagePayload`
- added type `OrderCustomTypeRemovedMessagePayload`
- added type `OrderCustomTypeSetMessagePayload`
- added type `StagedOrderSetDirectDiscountsAction`
- added type `StagedOrderSetStoreAction`
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,15 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("OrderCustomerEmailSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomerEmailSetMessage))]
[SubTypeDiscriminator("OrderCustomerGroupSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomerGroupSetMessage))]
[SubTypeDiscriminator("OrderCustomerSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomerSetMessage))]
[SubTypeDiscriminator("OrderCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessage))]
[SubTypeDiscriminator("OrderCustomFieldChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessage))]
[SubTypeDiscriminator("OrderCustomFieldRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessage))]
[SubTypeDiscriminator("OrderCustomLineItemAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessage))]
[SubTypeDiscriminator("OrderCustomLineItemDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemDiscountSetMessage))]
[SubTypeDiscriminator("OrderCustomLineItemQuantityChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemQuantityChangedMessage))]
[SubTypeDiscriminator("OrderCustomLineItemRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemRemovedMessage))]
[SubTypeDiscriminator("OrderCustomTypeRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessage))]
[SubTypeDiscriminator("OrderCustomTypeSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessage))]
[SubTypeDiscriminator("OrderDeleted", typeof(commercetools.Sdk.Api.Models.Messages.OrderDeletedMessage))]
[SubTypeDiscriminator("OrderDiscountCodeAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderDiscountCodeAddedMessage))]
[SubTypeDiscriminator("OrderDiscountCodeRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderDiscountCodeRemovedMessage))]
Expand Down Expand Up @@ -564,6 +569,24 @@ static commercetools.Sdk.Api.Models.Messages.OrderCustomerSetMessage OrderCustom
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessage OrderCustomFieldAdded(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessage OrderCustomFieldChanged(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessage OrderCustomFieldRemoved(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessage OrderCustomLineItemAdded(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessage();
Expand All @@ -588,6 +611,18 @@ static commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemRemovedMessage O
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessage OrderCustomTypeRemoved(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessage OrderCustomTypeSet(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderDeletedMessage OrderDeleted(Action<commercetools.Sdk.Api.Models.Messages.OrderDeletedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderDeletedMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("OrderCustomerEmailSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomerEmailSetMessagePayload))]
[SubTypeDiscriminator("OrderCustomerGroupSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomerGroupSetMessagePayload))]
[SubTypeDiscriminator("OrderCustomerSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomerSetMessagePayload))]
[SubTypeDiscriminator("OrderCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessagePayload))]
[SubTypeDiscriminator("OrderCustomFieldChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessagePayload))]
[SubTypeDiscriminator("OrderCustomFieldRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessagePayload))]
[SubTypeDiscriminator("OrderCustomLineItemAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessagePayload))]
[SubTypeDiscriminator("OrderCustomLineItemDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemDiscountSetMessagePayload))]
[SubTypeDiscriminator("OrderCustomLineItemQuantityChanged", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemQuantityChangedMessagePayload))]
[SubTypeDiscriminator("OrderCustomLineItemRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemRemovedMessagePayload))]
[SubTypeDiscriminator("OrderCustomTypeRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessagePayload))]
[SubTypeDiscriminator("OrderCustomTypeSet", typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessagePayload))]
[SubTypeDiscriminator("OrderDeleted", typeof(commercetools.Sdk.Api.Models.Messages.OrderDeletedMessagePayload))]
[SubTypeDiscriminator("OrderDiscountCodeAdded", typeof(commercetools.Sdk.Api.Models.Messages.OrderDiscountCodeAddedMessagePayload))]
[SubTypeDiscriminator("OrderDiscountCodeRemoved", typeof(commercetools.Sdk.Api.Models.Messages.OrderDiscountCodeRemovedMessagePayload))]
Expand Down Expand Up @@ -544,6 +549,24 @@ static commercetools.Sdk.Api.Models.Messages.OrderCustomerSetMessagePayload Orde
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessagePayload OrderCustomFieldAdded(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessagePayload OrderCustomFieldChanged(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessagePayload OrderCustomFieldRemoved(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessagePayload OrderCustomLineItemAdded(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemAddedMessagePayload();
Expand All @@ -568,6 +591,18 @@ static commercetools.Sdk.Api.Models.Messages.OrderCustomLineItemRemovedMessagePa
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessagePayload OrderCustomTypeRemoved(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessagePayload OrderCustomTypeSet(Action<commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.OrderDeletedMessagePayload OrderDeleted(Action<commercetools.Sdk.Api.Models.Messages.OrderDeletedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.OrderDeletedMessagePayload();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessage))]
public partial interface IOrderCustomFieldAddedMessage : IOrderMessage
{
string Name { get; set; }

Object Value { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldAddedMessagePayload))]
public partial interface IOrderCustomFieldAddedMessagePayload : IOrderMessagePayload
{
string Name { get; set; }

Object Value { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessage))]
public partial interface IOrderCustomFieldChangedMessage : IOrderMessage
{
string Name { get; set; }

Object Value { get; set; }

Object PreviousValue { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldChangedMessagePayload))]
public partial interface IOrderCustomFieldChangedMessagePayload : IOrderMessagePayload
{
string Name { get; set; }

Object Value { get; set; }

Object PreviousValue { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessage))]
public partial interface IOrderCustomFieldRemovedMessage : IOrderMessage
{
string Name { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomFieldRemovedMessagePayload))]
public partial interface IOrderCustomFieldRemovedMessagePayload : IOrderMessagePayload
{
string Name { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessage))]
public partial interface IOrderCustomTypeRemovedMessage : IOrderMessage
{
string PreviousTypeId { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeRemovedMessagePayload))]
public partial interface IOrderCustomTypeRemovedMessagePayload : IOrderMessagePayload
{
string PreviousTypeId { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using commercetools.Sdk.Api.Models.Types;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessage))]
public partial interface IOrderCustomTypeSetMessage : IOrderMessage
{
ICustomFields CustomFields { get; set; }

string PreviousTypeId { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using commercetools.Sdk.Api.Models.Types;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.OrderCustomTypeSetMessagePayload))]
public partial interface IOrderCustomTypeSetMessagePayload : IOrderMessagePayload
{
ICustomFields CustomFields { get; set; }

string PreviousTypeId { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using commercetools.Sdk.Api.Models.Common;
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class OrderCustomFieldAddedMessage : IOrderCustomFieldAddedMessage
{
public string Id { get; set; }

public long Version { get; set; }

public DateTime CreatedAt { get; set; }

public DateTime LastModifiedAt { get; set; }

public ILastModifiedBy LastModifiedBy { get; set; }

public ICreatedBy CreatedBy { get; set; }

public long SequenceNumber { get; set; }

public IReference Resource { get; set; }

public long ResourceVersion { get; set; }

public string Type { get; set; }

public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; }

public string Name { get; set; }

public Object Value { get; set; }
public OrderCustomFieldAddedMessage()
{
this.Type = "OrderCustomFieldAdded";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class OrderCustomFieldAddedMessagePayload : IOrderCustomFieldAddedMessagePayload
{
public string Type { get; set; }

public string Name { get; set; }

public Object Value { get; set; }
public OrderCustomFieldAddedMessagePayload()
{
this.Type = "OrderCustomFieldAdded";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
using commercetools.Sdk.Api.Models.Common;
using System;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class OrderCustomFieldChangedMessage : IOrderCustomFieldChangedMessage
{
public string Id { get; set; }

public long Version { get; set; }

public DateTime CreatedAt { get; set; }

public DateTime LastModifiedAt { get; set; }

public ILastModifiedBy LastModifiedBy { get; set; }

public ICreatedBy CreatedBy { get; set; }

public long SequenceNumber { get; set; }

public IReference Resource { get; set; }

public long ResourceVersion { get; set; }

public string Type { get; set; }

public IUserProvidedIdentifiers ResourceUserProvidedIdentifiers { get; set; }

public string Name { get; set; }

public Object Value { get; set; }

public Object PreviousValue { get; set; }
public OrderCustomFieldChangedMessage()
{
this.Type = "OrderCustomFieldChanged";
}
}
}
Loading

0 comments on commit fec815d

Please sign in to comment.