diff --git a/lib/net20/Voucherify.Client.dll b/lib/net20/Voucherify.Client.dll index bdde0b2..925737a 100644 Binary files a/lib/net20/Voucherify.Client.dll and b/lib/net20/Voucherify.Client.dll differ diff --git a/lib/net20/Voucherify.dll b/lib/net20/Voucherify.dll index 7e47227..b2b4ec7 100644 Binary files a/lib/net20/Voucherify.dll and b/lib/net20/Voucherify.dll differ diff --git a/lib/net35-Unity/Voucherify.Client.dll b/lib/net35-Unity/Voucherify.Client.dll index d60418e..6cfa659 100644 Binary files a/lib/net35-Unity/Voucherify.Client.dll and b/lib/net35-Unity/Voucherify.Client.dll differ diff --git a/lib/net35/Voucherify.Client.dll b/lib/net35/Voucherify.Client.dll index 5d323b5..f8703c1 100644 Binary files a/lib/net35/Voucherify.Client.dll and b/lib/net35/Voucherify.Client.dll differ diff --git a/lib/net35/Voucherify.dll b/lib/net35/Voucherify.dll index 867b173..a241e00 100644 Binary files a/lib/net35/Voucherify.dll and b/lib/net35/Voucherify.dll differ diff --git a/lib/net40/Voucherify.Client.dll b/lib/net40/Voucherify.Client.dll index 9722c22..e7fd02a 100644 Binary files a/lib/net40/Voucherify.Client.dll and b/lib/net40/Voucherify.Client.dll differ diff --git a/lib/net40/Voucherify.dll b/lib/net40/Voucherify.dll index 7437104..80868f5 100644 Binary files a/lib/net40/Voucherify.dll and b/lib/net40/Voucherify.dll differ diff --git a/lib/net45/Voucherify.Client.dll b/lib/net45/Voucherify.Client.dll index 4884697..75d7187 100644 Binary files a/lib/net45/Voucherify.Client.dll and b/lib/net45/Voucherify.Client.dll differ diff --git a/lib/net45/Voucherify.dll b/lib/net45/Voucherify.dll index 397e0aa..c23acbd 100644 Binary files a/lib/net45/Voucherify.dll and b/lib/net45/Voucherify.dll differ diff --git a/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.Client.dll b/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.Client.dll index 8256b3c..10d1346 100644 Binary files a/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.Client.dll and b/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.Client.dll differ diff --git a/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.dll b/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.dll index 258d693..2c4b230 100644 Binary files a/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.dll and b/lib/portable-net45+netcore45+wpa81+wp8/Voucherify.dll differ diff --git a/readme.md b/readme.md index 2c2d85d..c0f844c 100644 --- a/readme.md +++ b/readme.md @@ -435,6 +435,8 @@ Bug reports and pull requests are welcome through [GitHub Issues](https://github ## Changelog + +- **2017-11-22** - `4.2.0` - Added 'ApplicableTo' property to Voucher. - **2017-10-24** - `4.1.2` - Added 'key' property to VoucherifyClientException. Removed private setters for Order and Customer entities. - **2017-08-30** - `4.1.1` - Added .ConfigureAwait(false) to all awaitable calls to prevent deadlocks when using the ASP.NET. - **2016-12-19** - `4.1.0` - Added missing methods. Created two additional namespaces: Validations and Distributions. Support for gift.balance (for Gift Vouchers). diff --git a/src/Voucherify/DataModel/ApplicableProduct.cs b/src/Voucherify/DataModel/ApplicableProduct.cs new file mode 100644 index 0000000..9c358ec --- /dev/null +++ b/src/Voucherify/DataModel/ApplicableProduct.cs @@ -0,0 +1,19 @@ +#if VOUCHERIFYSERVER || VOUCHERIFYCLIENT +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using Voucherify.Core.DataModel; + +namespace Voucherify.DataModel +{ + [JsonObject] + public class ApplicableProduct : ApiObject + { + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + [JsonProperty(PropertyName = "source_id")] + public string SourceId { get; private set; } + } +} +#endif \ No newline at end of file diff --git a/src/Voucherify/DataModel/ApplicableProductList.cs b/src/Voucherify/DataModel/ApplicableProductList.cs index 1504d2b..05b3466 100644 --- a/src/Voucherify/DataModel/ApplicableProductList.cs +++ b/src/Voucherify/DataModel/ApplicableProductList.cs @@ -1,4 +1,4 @@ -#if VOUCHERIFYSERVER +#if VOUCHERIFYSERVER || VOUCHERIFYCLIENT using Newtonsoft.Json; using System; using System.Collections.Generic; @@ -14,7 +14,7 @@ public class ApplicableProductList : ApiObject public int? Total { get; private set; } [JsonProperty(PropertyName = "data")] - public List Products { get; private set; } + public List Products { get; private set; } public override string ToString() { diff --git a/src/Voucherify/DataModel/Voucher.cs b/src/Voucherify/DataModel/Voucher.cs index 7192960..413db42 100644 --- a/src/Voucherify/DataModel/Voucher.cs +++ b/src/Voucherify/DataModel/Voucher.cs @@ -55,7 +55,6 @@ public class Voucher : ApiObject [JsonProperty(PropertyName = "applicable_to")] public ApplicableProductList ApplicableTo { get; private set; } - public Voucher() { this.Metadata = new Metadata(); diff --git a/src/Voucherify/Voucherify.Client.net20.csproj b/src/Voucherify/Voucherify.Client.net20.csproj index 3ca0ea9..6d1080e 100644 --- a/src/Voucherify/Voucherify.Client.net20.csproj +++ b/src/Voucherify/Voucherify.Client.net20.csproj @@ -47,6 +47,7 @@ + diff --git a/src/Voucherify/Voucherify.Client.net35.Unity.csproj b/src/Voucherify/Voucherify.Client.net35.Unity.csproj index 0296178..766ad15 100644 --- a/src/Voucherify/Voucherify.Client.net35.Unity.csproj +++ b/src/Voucherify/Voucherify.Client.net35.Unity.csproj @@ -64,6 +64,7 @@ + diff --git a/src/Voucherify/Voucherify.Client.net35.csproj b/src/Voucherify/Voucherify.Client.net35.csproj index 1512138..42351d9 100644 --- a/src/Voucherify/Voucherify.Client.net35.csproj +++ b/src/Voucherify/Voucherify.Client.net35.csproj @@ -65,6 +65,7 @@ + diff --git a/src/Voucherify/Voucherify.Client.net40.csproj b/src/Voucherify/Voucherify.Client.net40.csproj index 571eebd..0411514 100644 --- a/src/Voucherify/Voucherify.Client.net40.csproj +++ b/src/Voucherify/Voucherify.Client.net40.csproj @@ -70,6 +70,7 @@ + diff --git a/src/Voucherify/Voucherify.Client.net45.Portable.csproj b/src/Voucherify/Voucherify.Client.net45.Portable.csproj index f539649..ff59976 100644 --- a/src/Voucherify/Voucherify.Client.net45.Portable.csproj +++ b/src/Voucherify/Voucherify.Client.net45.Portable.csproj @@ -55,6 +55,7 @@ + @@ -116,7 +117,9 @@ - + + Designer + diff --git a/src/Voucherify/Voucherify.Client.net45.csproj b/src/Voucherify/Voucherify.Client.net45.csproj index 496da9b..56200c8 100644 --- a/src/Voucherify/Voucherify.Client.net45.csproj +++ b/src/Voucherify/Voucherify.Client.net45.csproj @@ -53,6 +53,7 @@ + diff --git a/src/Voucherify/Voucherify.Client.nuspec b/src/Voucherify/Voucherify.Client.nuspec index 9bec312..73318cc 100644 --- a/src/Voucherify/Voucherify.Client.nuspec +++ b/src/Voucherify/Voucherify.Client.nuspec @@ -2,7 +2,7 @@ Voucherify.Client - 4.1.2.0 + 4.2.0.0 Voucherify.Client Rspective Rspective @@ -11,6 +11,9 @@ false .Net SDK for Voucherify - coupons, vouchers, promo codes - http://www.voucherify.io + 2017-11-22: 4.2.0: + - Added 'ApplicableTo' property to Voucher. + 2017-10-24: 4.1.2: - Added 'key' property to VoucherifyClientException. Removed private setters for Order and Customer entities. diff --git a/src/Voucherify/Voucherify.net20.csproj b/src/Voucherify/Voucherify.net20.csproj index ce25e3f..d371db2 100644 --- a/src/Voucherify/Voucherify.net20.csproj +++ b/src/Voucherify/Voucherify.net20.csproj @@ -68,6 +68,7 @@ + diff --git a/src/Voucherify/Voucherify.net35.csproj b/src/Voucherify/Voucherify.net35.csproj index 0624c34..7556ba2 100644 --- a/src/Voucherify/Voucherify.net35.csproj +++ b/src/Voucherify/Voucherify.net35.csproj @@ -73,6 +73,7 @@ + diff --git a/src/Voucherify/Voucherify.net40.csproj b/src/Voucherify/Voucherify.net40.csproj index 21725d3..7945411 100644 --- a/src/Voucherify/Voucherify.net40.csproj +++ b/src/Voucherify/Voucherify.net40.csproj @@ -78,6 +78,7 @@ + diff --git a/src/Voucherify/Voucherify.net45.Portable.csproj b/src/Voucherify/Voucherify.net45.Portable.csproj index dc2ceb0..00ab0df 100644 --- a/src/Voucherify/Voucherify.net45.Portable.csproj +++ b/src/Voucherify/Voucherify.net45.Portable.csproj @@ -63,6 +63,7 @@ + @@ -127,7 +128,9 @@ - + + Designer + diff --git a/src/Voucherify/Voucherify.net45.csproj b/src/Voucherify/Voucherify.net45.csproj index c12e76a..6f905d2 100644 --- a/src/Voucherify/Voucherify.net45.csproj +++ b/src/Voucherify/Voucherify.net45.csproj @@ -61,6 +61,7 @@ + diff --git a/src/Voucherify/Voucherify.nuspec b/src/Voucherify/Voucherify.nuspec index 09b3881..1929dea 100644 --- a/src/Voucherify/Voucherify.nuspec +++ b/src/Voucherify/Voucherify.nuspec @@ -2,7 +2,7 @@ Voucherify - 4.1.2.0 + 4.2.0.0 Voucherify Rspective Rspective @@ -11,6 +11,9 @@ false .Net SDK for Voucherify - coupons, vouchers, promo codes - http://www.voucherify.io + 2017-11-22: 4.2.0: + - Added 'ApplicableTo' property to Voucher. + 2017-10-24: 4.1.2: - Added 'key' property to VoucherifyClientException. Removed private setters for Order and Customer entities.