Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jul 2, 2024
1 parent bba230a commit 89ad785
Show file tree
Hide file tree
Showing 37 changed files with 1,627 additions and 30 deletions.
70 changes: 40 additions & 30 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
**Api changes**

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

- changed property `isOnStock` of type `ProductVariantAvailability` to be optional
</details>


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

Expand Down Expand Up @@ -39,29 +46,10 @@


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

- changed property `isOnStock` of type `ProductVariantAvailability` to be optional
</details>


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

- added resource `/{projectKey}/customers/search`
- added resource `/{projectKey}/customers/search/indexing-status`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images`
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}`
- added enum `attribute-group` to type `ChangeSubscriptionResourceTypeId`
- added enum `product-tailoring` to type `ChangeSubscriptionResourceTypeId`
</details>


Expand All @@ -72,14 +60,6 @@
</details>


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

- added enum `attribute-group` to type `ChangeSubscriptionResourceTypeId`
- added enum `product-tailoring` to type `ChangeSubscriptionResourceTypeId`
</details>


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

Expand Down Expand Up @@ -137,11 +117,21 @@
- added type `CustomerSearchRequest`
- added type `CustomerSearchResult`
- added type `BusinessUnitApprovalRuleModeChangedMessage`
- added type `ProductPriceCustomFieldAddedMessage`
- added type `ProductPriceCustomFieldChangedMessage`
- added type `ProductPriceCustomFieldRemovedMessage`
- added type `ProductPriceCustomFieldsRemovedMessage`
- added type `ProductPriceCustomFieldsSetMessage`
- added type `ProductTailoringImageAddedMessage`
- added type `ProductTailoringImagesSetMessage`
- added type `ProductVariantTailoringAddedMessage`
- added type `ProductVariantTailoringRemovedMessage`
- added type `BusinessUnitApprovalRuleModeChangedMessagePayload`
- added type `ProductPriceCustomFieldAddedMessagePayload`
- added type `ProductPriceCustomFieldChangedMessagePayload`
- added type `ProductPriceCustomFieldRemovedMessagePayload`
- added type `ProductPriceCustomFieldsRemovedMessagePayload`
- added type `ProductPriceCustomFieldsSetMessagePayload`
- added type `ProductTailoringImageAddedMessagePayload`
- added type `ProductTailoringImagesSetMessagePayload`
- added type `ProductVariantTailoringAddedMessagePayload`
Expand Down Expand Up @@ -183,3 +173,23 @@
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}`
</details>


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

- added resource `/{projectKey}/customers/search`
- added resource `/{projectKey}/customers/search/indexing-status`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes`
- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images`
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}`
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}`
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}`
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ namespace commercetools.Sdk.Api.Models.Messages
[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("ProductPriceCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessage))]
[SubTypeDiscriminator("ProductPriceCustomFieldChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessage))]
[SubTypeDiscriminator("ProductPriceCustomFieldRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessage))]
[SubTypeDiscriminator("ProductPriceCustomFieldsRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessage))]
[SubTypeDiscriminator("ProductPriceCustomFieldsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessage))]
[SubTypeDiscriminator("ProductPriceDiscountsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessage))]
[SubTypeDiscriminator("ProductPriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMessage))]
[SubTypeDiscriminator("ProductPriceKeySet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessage))]
Expand Down Expand Up @@ -1200,6 +1205,36 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessage ProductP
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessage ProductPriceCustomFieldAdded(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessage ProductPriceCustomFieldChanged(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessage ProductPriceCustomFieldRemoved(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessage ProductPriceCustomFieldsRemoved(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessage();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessage ProductPriceCustomFieldsSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessage> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessage();
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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ namespace commercetools.Sdk.Api.Models.Messages
[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("ProductPriceCustomFieldAdded", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessagePayload))]
[SubTypeDiscriminator("ProductPriceCustomFieldChanged", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessagePayload))]
[SubTypeDiscriminator("ProductPriceCustomFieldRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessagePayload))]
[SubTypeDiscriminator("ProductPriceCustomFieldsRemoved", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessagePayload))]
[SubTypeDiscriminator("ProductPriceCustomFieldsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessagePayload))]
[SubTypeDiscriminator("ProductPriceDiscountsSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceDiscountsSetMessagePayload))]
[SubTypeDiscriminator("ProductPriceExternalDiscountSet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceExternalDiscountSetMessagePayload))]
[SubTypeDiscriminator("ProductPriceKeySet", typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceKeySetMessagePayload))]
Expand Down Expand Up @@ -1180,6 +1185,36 @@ static commercetools.Sdk.Api.Models.Messages.ProductPriceChangedMessagePayload P
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessagePayload ProductPriceCustomFieldAdded(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessagePayload ProductPriceCustomFieldChanged(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessagePayload ProductPriceCustomFieldRemoved(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessagePayload ProductPriceCustomFieldsRemoved(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessagePayload();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessagePayload ProductPriceCustomFieldsSet(Action<commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessagePayload> init = null)
{
var t = new commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessagePayload();
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 Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessage))]
public partial interface IProductPriceCustomFieldAddedMessage : IMessage
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

string Name { get; set; }

Object Value { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldAddedMessagePayload))]
public partial interface IProductPriceCustomFieldAddedMessagePayload : IMessagePayload
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

string Name { get; set; }

Object Value { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessage))]
public partial interface IProductPriceCustomFieldChangedMessage : IMessage
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

string Name { get; set; }

Object Value { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldChangedMessagePayload))]
public partial interface IProductPriceCustomFieldChangedMessagePayload : IMessagePayload
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

string Name { get; set; }

Object Value { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessage))]
public partial interface IProductPriceCustomFieldRemovedMessage : IMessage
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

string Name { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldRemovedMessagePayload))]
public partial interface IProductPriceCustomFieldRemovedMessagePayload : IMessagePayload
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

string Name { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessage))]
public partial interface IProductPriceCustomFieldsRemovedMessage : IMessage
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

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

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsRemovedMessagePayload))]
public partial interface IProductPriceCustomFieldsRemovedMessagePayload : IMessagePayload
{
string PriceId { get; set; }

long VariantId { 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.Types;
using commercetools.Base.CustomAttributes;

// ReSharper disable CheckNamespace
namespace commercetools.Sdk.Api.Models.Messages
{
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Messages.ProductPriceCustomFieldsSetMessage))]
public partial interface IProductPriceCustomFieldsSetMessage : IMessage
{
string PriceId { get; set; }

long VariantId { get; set; }

bool Staged { get; set; }

ICustomFields CustomField { get; set; }

string OldTypeId { get; set; }

}
}
Loading

0 comments on commit 89ad785

Please sign in to comment.