Skip to content

Commit f32db5a

Browse files
committed
build(codegen): updating SDK
1 parent e753f09 commit f32db5a

File tree

44 files changed

+825
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+825
-0
lines changed

changes.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- added type `BusinessUnitAddCustomerGroupAssignmentAction`
77
- added type `BusinessUnitRemoveCustomerGroupAssignmentAction`
88
- added type `BusinessUnitSetCustomerGroupAssignmentsAction`
9+
- added type `CartDiscountSetRecurringOrderScopeAction`
910
- added type `CartLock`
1011
- added type `FreezeStrategy`
1112
- added type `CartLockCartAction`
@@ -30,6 +31,16 @@
3031
- added type `CustomerExternalIdSetMessagePayload`
3132
- added type `CustomerShippingAddressAddedMessagePayload`
3233
- added type `CustomerShippingAddressRemovedMessagePayload`
34+
- added type `AnyOrder`
35+
- added type `AnyOrderDraft`
36+
- added type `ApplicableRecurrencePolicies`
37+
- added type `ApplicableRecurrencePoliciesDraft`
38+
- added type `NonRecurringOrdersOnly`
39+
- added type `NonRecurringOrdersOnlyDraft`
40+
- added type `RecurringOrderScope`
41+
- added type `RecurringOrderScopeDraft`
42+
- added type `RecurringOrdersOnly`
43+
- added type `RecurringOrdersOnlyDraft`
3344
</details>
3445

3546

@@ -106,6 +117,8 @@
106117
- added property `customerGroupAssignments` to type `CompanyDraft`
107118
- added property `customerGroupAssignments` to type `Division`
108119
- added property `customerGroupAssignments` to type `DivisionDraft`
120+
- added property `recurringOrderScope` to type `CartDiscount`
121+
- added property `recurringOrderScope` to type `CartDiscountDraft`
109122
- added property `freezeStrategy` to type `Cart`
110123
- added property `lock` to type `Cart`
111124
- added property `purchaseOrderNumber` to type `Cart`

commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscount.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using commercetools.Sdk.Api.Models.Common;
22
using commercetools.Sdk.Api.Models.DiscountGroups;
3+
using commercetools.Sdk.Api.Models.RecurringOrders;
34
using commercetools.Sdk.Api.Models.Stores;
45
using commercetools.Sdk.Api.Models.Types;
56
using System;
@@ -58,5 +59,7 @@ public partial class CartDiscount : ICartDiscount
5859
public ICustomFields Custom { get; set; }
5960

6061
public IDiscountGroupReference DiscountGroup { get; set; }
62+
63+
public IRecurringOrderScope RecurringOrderScope { get; set; }
6164
}
6265
}

commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/CartDiscountDraft.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using commercetools.Sdk.Api.Models.Common;
22
using commercetools.Sdk.Api.Models.DiscountGroups;
3+
using commercetools.Sdk.Api.Models.RecurringOrders;
34
using commercetools.Sdk.Api.Models.Stores;
45
using commercetools.Sdk.Api.Models.Types;
56
using System;
@@ -42,5 +43,7 @@ public partial class CartDiscountDraft : ICartDiscountDraft
4243
public ICustomFieldsDraft Custom { get; set; }
4344

4445
public IDiscountGroupResourceIdentifier DiscountGroup { get; set; }
46+
47+
public IRecurringOrderScopeDraft RecurringOrderScope { get; set; }
4548
}
4649
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using commercetools.Sdk.Api.Models.RecurringOrders;
2+
3+
4+
namespace commercetools.Sdk.Api.Models.CartDiscounts
5+
{
6+
7+
public partial class CartDiscountSetRecurringOrderScopeAction : ICartDiscountSetRecurringOrderScopeAction
8+
{
9+
public string Action { get; set; }
10+
11+
public IRecurringOrderScopeDraft RecurringOrderScope { get; set; }
12+
public CartDiscountSetRecurringOrderScopeAction()
13+
{
14+
this.Action = "setRecurringOrderScope";
15+
}
16+
}
17+
}

commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscount.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using commercetools.Sdk.Api.Models.Common;
22
using commercetools.Sdk.Api.Models.DiscountGroups;
3+
using commercetools.Sdk.Api.Models.RecurringOrders;
34
using commercetools.Sdk.Api.Models.Stores;
45
using commercetools.Sdk.Api.Models.Types;
56
using System;
@@ -60,5 +61,7 @@ public partial interface ICartDiscount : IBaseResource
6061

6162
IDiscountGroupReference DiscountGroup { get; set; }
6263

64+
IRecurringOrderScope RecurringOrderScope { get; set; }
65+
6366
}
6467
}

commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountDraft.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using commercetools.Sdk.Api.Models.Common;
22
using commercetools.Sdk.Api.Models.DiscountGroups;
3+
using commercetools.Sdk.Api.Models.RecurringOrders;
34
using commercetools.Sdk.Api.Models.Stores;
45
using commercetools.Sdk.Api.Models.Types;
56
using System;
@@ -44,5 +45,7 @@ public partial interface ICartDiscountDraft
4445

4546
IDiscountGroupResourceIdentifier DiscountGroup { get; set; }
4647

48+
IRecurringOrderScopeDraft RecurringOrderScope { get; set; }
49+
4750
}
4851
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using commercetools.Sdk.Api.Models.RecurringOrders;
2+
using commercetools.Base.CustomAttributes;
3+
// ReSharper disable CheckNamespace
4+
namespace commercetools.Sdk.Api.Models.CartDiscounts
5+
{
6+
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetRecurringOrderScopeAction))]
7+
public partial interface ICartDiscountSetRecurringOrderScopeAction : ICartDiscountUpdateAction
8+
{
9+
IRecurringOrderScopeDraft RecurringOrderScope { get; set; }
10+
11+
}
12+
}

commercetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/CartDiscounts/ICartDiscountUpdateAction.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace commercetools.Sdk.Api.Models.CartDiscounts
2020
[SubTypeDiscriminator("setDescription", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetDescriptionAction))]
2121
[SubTypeDiscriminator("setDiscountGroup", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetDiscountGroupAction))]
2222
[SubTypeDiscriminator("setKey", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetKeyAction))]
23+
[SubTypeDiscriminator("setRecurringOrderScope", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetRecurringOrderScopeAction))]
2324
[SubTypeDiscriminator("setStores", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetStoresAction))]
2425
[SubTypeDiscriminator("setValidFrom", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetValidFromAction))]
2526
[SubTypeDiscriminator("setValidFromAndUntil", typeof(commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetValidFromAndUntilAction))]
@@ -118,6 +119,12 @@ static commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetKeyAction SetKe
118119
init?.Invoke(t);
119120
return t;
120121
}
122+
static commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetRecurringOrderScopeAction SetRecurringOrderScope(Action<commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetRecurringOrderScopeAction> init = null)
123+
{
124+
var t = new commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetRecurringOrderScopeAction();
125+
init?.Invoke(t);
126+
return t;
127+
}
121128
static commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetStoresAction SetStores(Action<commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetStoresAction> init = null)
122129
{
123130
var t = new commercetools.Sdk.Api.Models.CartDiscounts.CartDiscountSetStoresAction();
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
namespace commercetools.Sdk.Api.Models.RecurringOrders
4+
{
5+
6+
public partial class AnyOrder : IAnyOrder
7+
{
8+
public string Type { get; set; }
9+
public AnyOrder()
10+
{
11+
this.Type = "AnyOrder";
12+
}
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
3+
namespace commercetools.Sdk.Api.Models.RecurringOrders
4+
{
5+
6+
public partial class AnyOrderDraft : IAnyOrderDraft
7+
{
8+
public string Type { get; set; }
9+
public AnyOrderDraft()
10+
{
11+
this.Type = "AnyOrder";
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)