Skip to content

Commit

Permalink
Update generated SDKs (#197)
Browse files Browse the repository at this point in the history
Co-authored-by: Auto Mation <[email protected]>
  • Loading branch information
github-actions[bot] and Auto Mation authored Dec 6, 2022
1 parent ef1818a commit 9de7f7c
Show file tree
Hide file tree
Showing 23 changed files with 588 additions and 6 deletions.
22 changes: 16 additions & 6 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,22 @@
- added type `ExtensionPredicateEvaluationFailedError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:436:0)
- added type `ProductAssignmentMissingError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:465:0)
- added type `ProductPresentWithDifferentVariantSelectionError` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:466:0)
- added type `StoreCountriesChangedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:789:0)
- added type `StoreCountriesChangedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:947:0)
- added type `StoreCountry` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1614:0)
- added type `StoreAddCountryAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1622:0)
- added type `StoreRemoveCountryAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1627:0)
- added type `StoreSetCountriesAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1631:0)
- added type `ProductPriceAddedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:747:0)
- added type `ProductPriceChangedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:748:0)
- added type `ProductPriceModeSetMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:752:0)
- added type `ProductPriceRemovedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:753:0)
- added type `ProductPriceSetMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:754:0)
- added type `StoreCountriesChangedMessage` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:794:0)
- added type `ProductPriceAddedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:906:0)
- added type `ProductPriceChangedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:907:0)
- added type `ProductPriceModeSetMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:911:0)
- added type `ProductPriceRemovedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:912:0)
- added type `ProductPriceSetMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:913:0)
- added type `StoreCountriesChangedMessagePayload` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:957:0)
- added type `StoreCountry` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1624:0)
- added type `StoreAddCountryAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1632:0)
- added type `StoreRemoveCountryAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1637:0)
- added type `StoreSetCountriesAction` (file:/home/runner/work/commercetools-api-reference/commercetools-api-reference/commercetools-api-reference/api-specs/api/types/types.raml:1641:0)
</details>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("ProductCreated", typeof(commercetools.Sdk.Api.Models.Messages.ProductCreatedMessage))]
[SubTypeDiscriminator("ProductDeleted", typeof(commercetools.Sdk.Api.Models.Messages.ProductDeletedMessage))]
[SubTypeDiscriminator("ProductImageAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductImageAddedMessage))]
[SubTypeDiscriminator("ProductPriceAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessage))]
[SubTypeDiscriminator("ProductPriceChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage))]
[SubTypeDiscriminator("ProductPriceDiscountsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessage))]
[SubTypeDiscriminator("ProductPriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMessage))]
[SubTypeDiscriminator("ProductPriceModeSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage))]
[SubTypeDiscriminator("ProductPriceRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage))]
[SubTypeDiscriminator("ProductPriceSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage))]
[SubTypeDiscriminator("ProductPublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductPublishedMessage))]
[SubTypeDiscriminator("ProductRemovedFromCategory", typeof(commercetools.Sdk.Api.Models.Messages.ProductRemovedFromCategoryMessage))]
[SubTypeDiscriminator("ProductRevertedStagedChanges", typeof(commercetools.Sdk.Api.Models.Messages.ProductRevertedStagedChangesMessage))]
Expand Down Expand Up @@ -724,6 +729,18 @@ static commercetools.Sdk.Api.Models.Messages.ProductImageAddedMessage ProductIma
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessage ProductPriceAdded(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage ProductPriceChanged(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessage ProductPriceDiscountsSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessage();
Expand All @@ -736,6 +753,24 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMess
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage ProductPriceModeSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage ProductPriceRemoved(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage ProductPriceSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPublishedMessage ProductPublished(Action<commercetools.Sdk.Api.Models.Messages.ProductPublishedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPublishedMessage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,13 @@ namespace commercetools.Sdk.Api.Models.Messages
[SubTypeDiscriminator("ProductCreated", typeof(commercetools.Sdk.Api.Models.Messages.ProductCreatedMessagePayload))]
[SubTypeDiscriminator("ProductDeleted", typeof(commercetools.Sdk.Api.Models.Messages.ProductDeletedMessagePayload))]
[SubTypeDiscriminator("ProductImageAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductImageAddedMessagePayload))]
[SubTypeDiscriminator("ProductPriceAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessagePayload))]
[SubTypeDiscriminator("ProductPriceChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload))]
[SubTypeDiscriminator("ProductPriceDiscountsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessagePayload))]
[SubTypeDiscriminator("ProductPriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMessagePayload))]
[SubTypeDiscriminator("ProductPriceModeSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload))]
[SubTypeDiscriminator("ProductPriceRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload))]
[SubTypeDiscriminator("ProductPriceSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload))]
[SubTypeDiscriminator("ProductPublished", typeof(commercetools.Sdk.Api.Models.Messages.ProductPublishedMessagePayload))]
[SubTypeDiscriminator("ProductRemovedFromCategory", typeof(commercetools.Sdk.Api.Models.Messages.ProductRemovedFromCategoryMessagePayload))]
[SubTypeDiscriminator("ProductRevertedStagedChanges", typeof(commercetools.Sdk.Api.Models.Messages.ProductRevertedStagedChangesMessagePayload))]
Expand Down Expand Up @@ -704,6 +709,18 @@ static commercetools.Sdk.Api.Models.Messages.ProductImageAddedMessagePayload Pro
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessagePayload ProductPriceAdded(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload ProductPriceChanged(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessagePayload ProductPriceDiscountsSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessagePayload();
Expand All @@ -716,6 +733,24 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMess
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload ProductPriceModeSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload ProductPriceRemoved(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload ProductPriceSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPublishedMessagePayload ProductPublished(Action<commercetools.Sdk.Api.Models.Messages.ProductPublishedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPublishedMessagePayload();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using commercetools.Sdk.Api.Models.Common;
using commercetools.Base.CustomAttributes;


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessage))]
public partial interface IProductPriceAddedMessage : IMessage
{
long VariantId { get; set; }

IPrice Price { get; set; }

bool Staged { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceAddedMessagePayload))]
public partial interface IProductPriceAddedMessagePayload : IMessagePayload
{
long VariantId { get; set; }

IPrice Price { get; set; }

bool Staged { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage))]
public partial interface IProductPriceChangedMessage : IMessage
{
long VariantId { get; set; }

IPrice OldPrice { get; set; }

IPrice NewPrice { get; set; }

bool Staged { get; set; }

IPrice OldStagedPrice { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload))]
public partial interface IProductPriceChangedMessagePayload : IMessagePayload
{
long VariantId { get; set; }

IPrice OldPrice { get; set; }

IPrice NewPrice { get; set; }

bool Staged { get; set; }

IPrice OldStagedPrice { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessage))]
public partial interface IProductPriceModeSetMessage : IMessage
{
IProductPriceModeEnum To { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceModeSetMessagePayload))]
public partial interface IProductPriceModeSetMessagePayload : IMessagePayload
{
IProductPriceModeEnum To { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessage))]
public partial interface IProductPriceRemovedMessage : IMessage
{
long VariantId { get; set; }

IPrice Price { get; set; }

bool Staged { get; set; }

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


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceRemovedMessagePayload))]
public partial interface IProductPriceRemovedMessagePayload : IMessagePayload
{
long VariantId { get; set; }

IPrice Price { get; set; }

bool Staged { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using commercetools.Sdk.Api.Models.Common;
using System.Collections.Generic;
using System.Linq;
using commercetools.Base.CustomAttributes;


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessage))]
public partial interface IProductPriceSetMessage : IMessage
{
long VariantId { get; set; }

IList<IPrice> Prices { get; set; }
IEnumerable<IPrice> PricesEnumerable { set => Prices = value.ToList(); }


bool Staged { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using commercetools.Sdk.Api.Models.Common;
using System.Collections.Generic;
using System.Linq;
using commercetools.Base.CustomAttributes;


namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceSetMessagePayload))]
public partial interface IProductPriceSetMessagePayload : IMessagePayload
{
long VariantId { get; set; }

IList<IPrice> Prices { get; set; }
IEnumerable<IPrice> PricesEnumerable { set => Prices = value.ToList(); }


bool Staged { get; set; }

}
}
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 ProductPriceAddedMessage : IProductPriceAddedMessage
{
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 long VariantId { get; set; }

public IPrice Price { get; set; }

public bool Staged { get; set; }
public ProductPriceAddedMessage()
{
this.Type = "ProductPriceAdded";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using commercetools.Sdk.Api.Models.Common;


namespace commercetools.Sdk.Api.Models.Messages
{

public partial class ProductPriceAddedMessagePayload : IProductPriceAddedMessagePayload
{
public string Type { get; set; }

public long VariantId { get; set; }

public IPrice Price { get; set; }

public bool Staged { get; set; }
public ProductPriceAddedMessagePayload()
{
this.Type = "ProductPriceAdded";
}
}
}
Loading

0 comments on commit 9de7f7c

Please sign in to comment.