-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9b5688
commit 4360a7e
Showing
27 changed files
with
250 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
**History changes** | ||
**Api changes** | ||
|
||
<details> | ||
<summary>Removed Enum(s)</summary> | ||
<summary>Added Type(s)</summary> | ||
|
||
- :warning: removed enum `setAsssetKey` from type `UpdateType` | ||
- added type `BestDeal` | ||
- added type `DiscountTypeCombination` | ||
- added type `Stacking` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Enum(s)</summary> | ||
<summary>Added Property(s)</summary> | ||
|
||
- added enum `setAssetKey` to type `UpdateType` | ||
- added property `discountTypeCombination` to type `Cart` | ||
- added property `discountTypeCombination` to type `StagedOrder` | ||
- added property `discountTypeCombination` to type `Order` | ||
</details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...rcetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/BestDeal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Carts | ||
{ | ||
|
||
public partial class BestDeal : IBestDeal | ||
{ | ||
public string Type { get; set; } | ||
|
||
public string ChosenDiscountType { get; set; } | ||
public BestDeal() | ||
{ | ||
this.Type = "BestDeal"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...mmercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/DiscountTypeCombination.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace commercetools.Sdk.Api.Models.Carts | ||
{ | ||
|
||
public partial class DiscountTypeCombination : IDiscountTypeCombination | ||
{ | ||
public string Type { get; set; } | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...cetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/IBestDeal.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using commercetools.Base.CustomAttributes; | ||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.Carts | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.BestDeal))] | ||
public partial interface IBestDeal : IDiscountTypeCombination | ||
{ | ||
string ChosenDiscountType { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...mercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/IDiscountTypeCombination.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using commercetools.Base.CustomAttributes; | ||
using System; | ||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.Carts | ||
{ | ||
[TypeDiscriminator(nameof(Type))] | ||
[DefaultTypeDiscriminator(typeof(commercetools.Sdk.Api.Models.Carts.DiscountTypeCombination))] | ||
[SubTypeDiscriminator("BestDeal", typeof(commercetools.Sdk.Api.Models.Carts.BestDeal))] | ||
[SubTypeDiscriminator("Stacking", typeof(commercetools.Sdk.Api.Models.Carts.Stacking))] | ||
public partial interface IDiscountTypeCombination | ||
{ | ||
string Type { get; set; } | ||
|
||
static commercetools.Sdk.Api.Models.Carts.BestDeal BestDeal(Action<commercetools.Sdk.Api.Models.Carts.BestDeal> init = null) | ||
{ | ||
var t = new commercetools.Sdk.Api.Models.Carts.BestDeal(); | ||
init?.Invoke(t); | ||
return t; | ||
} | ||
static commercetools.Sdk.Api.Models.Carts.Stacking Stacking(Action<commercetools.Sdk.Api.Models.Carts.Stacking> init = null) | ||
{ | ||
var t = new commercetools.Sdk.Api.Models.Carts.Stacking(); | ||
init?.Invoke(t); | ||
return t; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...cetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/IStacking.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using commercetools.Base.CustomAttributes; | ||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Models.Carts | ||
{ | ||
[DeserializeAs(typeof(commercetools.Sdk.Api.Models.Carts.Stacking))] | ||
public partial interface IStacking : IDiscountTypeCombination | ||
{ | ||
|
||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...rcetools.Sdk/commercetools.Sdk.Api/Generated/commercetoolsSdkApi/Models/Carts/Stacking.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
|
||
namespace commercetools.Sdk.Api.Models.Carts | ||
{ | ||
|
||
public partial class Stacking : IStacking | ||
{ | ||
public string Type { get; set; } | ||
public Stacking() | ||
{ | ||
this.Type = "Stacking"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...rcetools.Sdk/commercetools.Sdk.Api/Models/ProductTailorings/IProductTailoringAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ols.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/BestDealQueryBuilderDsl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Predicates.Query.Carts | ||
{ | ||
|
||
public partial class BestDealQueryBuilderDsl | ||
{ | ||
public BestDealQueryBuilderDsl() | ||
{ | ||
} | ||
|
||
public static BestDealQueryBuilderDsl Of() | ||
{ | ||
return new BestDealQueryBuilderDsl(); | ||
} | ||
|
||
public IComparisonPredicateBuilder<BestDealQueryBuilderDsl, string> Type() | ||
{ | ||
return new ComparisonPredicateBuilder<BestDealQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), | ||
p => new CombinationQueryPredicate<BestDealQueryBuilderDsl>(p, BestDealQueryBuilderDsl.Of), | ||
PredicateFormatter.Format); | ||
} | ||
public IComparisonPredicateBuilder<BestDealQueryBuilderDsl, string> ChosenDiscountType() | ||
{ | ||
return new ComparisonPredicateBuilder<BestDealQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("chosenDiscountType")), | ||
p => new CombinationQueryPredicate<BestDealQueryBuilderDsl>(p, BestDealQueryBuilderDsl.Of), | ||
PredicateFormatter.Format); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...etools.Sdk.Api/Predicates/Query/Generated/Carts/DiscountTypeCombinationQueryBuilderDsl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
|
||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Predicates.Query.Carts | ||
{ | ||
|
||
public partial class DiscountTypeCombinationQueryBuilderDsl | ||
{ | ||
public DiscountTypeCombinationQueryBuilderDsl() | ||
{ | ||
} | ||
|
||
public static DiscountTypeCombinationQueryBuilderDsl Of() | ||
{ | ||
return new DiscountTypeCombinationQueryBuilderDsl(); | ||
} | ||
|
||
public IComparisonPredicateBuilder<DiscountTypeCombinationQueryBuilderDsl, string> Type() | ||
{ | ||
return new ComparisonPredicateBuilder<DiscountTypeCombinationQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), | ||
p => new CombinationQueryPredicate<DiscountTypeCombinationQueryBuilderDsl>(p, DiscountTypeCombinationQueryBuilderDsl.Of), | ||
PredicateFormatter.Format); | ||
} | ||
|
||
public CombinationQueryPredicate<DiscountTypeCombinationQueryBuilderDsl> AsBestDeal( | ||
Func<commercetools.Sdk.Api.Predicates.Query.Carts.BestDealQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Carts.BestDealQueryBuilderDsl>> fn) | ||
{ | ||
return new CombinationQueryPredicate<DiscountTypeCombinationQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.BestDealQueryBuilderDsl.Of()), | ||
DiscountTypeCombinationQueryBuilderDsl.Of); | ||
} | ||
public CombinationQueryPredicate<DiscountTypeCombinationQueryBuilderDsl> AsStacking( | ||
Func<commercetools.Sdk.Api.Predicates.Query.Carts.StackingQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Carts.StackingQueryBuilderDsl>> fn) | ||
{ | ||
return new CombinationQueryPredicate<DiscountTypeCombinationQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Carts.StackingQueryBuilderDsl.Of()), | ||
DiscountTypeCombinationQueryBuilderDsl.Of); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ols.Sdk/commercetools.Sdk.Api/Predicates/Query/Generated/Carts/StackingQueryBuilderDsl.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// ReSharper disable CheckNamespace | ||
namespace commercetools.Sdk.Api.Predicates.Query.Carts | ||
{ | ||
|
||
public partial class StackingQueryBuilderDsl | ||
{ | ||
public StackingQueryBuilderDsl() | ||
{ | ||
} | ||
|
||
public static StackingQueryBuilderDsl Of() | ||
{ | ||
return new StackingQueryBuilderDsl(); | ||
} | ||
|
||
public IComparisonPredicateBuilder<StackingQueryBuilderDsl, string> Type() | ||
{ | ||
return new ComparisonPredicateBuilder<StackingQueryBuilderDsl, string>(BinaryQueryPredicate.Of().Left(new ConstantQueryPredicate("type")), | ||
p => new CombinationQueryPredicate<StackingQueryBuilderDsl>(p, StackingQueryBuilderDsl.Of), | ||
PredicateFormatter.Format); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...dk.Api/Serialization/MapperTypeRetrievers/ProductTailoringAttributeMapperTypeRetriever.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.