Skip to content

Commit

Permalink
Version 4.2.0.0. Added ApplicableTo property
Browse files Browse the repository at this point in the history
  • Loading branch information
bandraszyk committed Nov 22, 2017
1 parent dde46f7 commit e22a655
Show file tree
Hide file tree
Showing 28 changed files with 48 additions and 7 deletions.
Binary file modified lib/net20/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net20/Voucherify.dll
Binary file not shown.
Binary file modified lib/net35-Unity/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net35/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net35/Voucherify.dll
Binary file not shown.
Binary file modified lib/net40/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net40/Voucherify.dll
Binary file not shown.
Binary file modified lib/net45/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net45/Voucherify.dll
Binary file not shown.
Binary file modified lib/portable-net45+netcore45+wpa81+wp8/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/portable-net45+netcore45+wpa81+wp8/Voucherify.dll
Binary file not shown.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
19 changes: 19 additions & 0 deletions src/Voucherify/DataModel/ApplicableProduct.cs
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/Voucherify/DataModel/ApplicableProductList.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if VOUCHERIFYSERVER
#if VOUCHERIFYSERVER || VOUCHERIFYCLIENT
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
Expand All @@ -14,7 +14,7 @@ public class ApplicableProductList : ApiObject
public int? Total { get; private set; }

[JsonProperty(PropertyName = "data")]
public List<Product> Products { get; private set; }
public List<ApplicableProduct> Products { get; private set; }

public override string ToString()
{
Expand Down
1 change: 0 additions & 1 deletion src/Voucherify/DataModel/Voucher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public class Voucher : ApiObject

[JsonProperty(PropertyName = "applicable_to")]
public ApplicableProductList ApplicableTo { get; private set; }

public Voucher()
{
this.Metadata = new Metadata();
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.Client.net20.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<Compile Include="Client\ApiEndpoints\Validations.Callback.cs" />
<Compile Include="Client\ApiEndpoints\Vouchers.Async.cs" />
<Compile Include="Client\ApiEndpoints\Vouchers.Callback.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
<Compile Include="DataModel\CampaignVoucherRedemption.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.Client.net35.Unity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.Client.net35.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.Client.net40.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
5 changes: 4 additions & 1 deletion src/Voucherify/Voucherify.Client.net45.Portable.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down Expand Up @@ -116,7 +117,9 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Voucherify.Client.nuspec" />
<None Include="Voucherify.Client.nuspec">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.Client.net45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
5 changes: 4 additions & 1 deletion src/Voucherify/Voucherify.Client.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>Voucherify.Client</id>
<version>4.1.2.0</version>
<version>4.2.0.0</version>
<title>Voucherify.Client</title>
<authors>Rspective</authors>
<owners>Rspective</owners>
Expand All @@ -11,6 +11,9 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>.Net SDK for Voucherify - coupons, vouchers, promo codes - http://www.voucherify.io</description>
<releaseNotes>
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.

Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.net20.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.net35.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
<Compile Include="DataModel\CampaignVoucherRedemption.cs" />
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.net40.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
5 changes: 4 additions & 1 deletion src/Voucherify/Voucherify.net45.Portable.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down Expand Up @@ -127,7 +128,9 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Voucherify.nuspec" />
<None Include="Voucherify.nuspec">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify/Voucherify.net45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<Compile Include="Core\Serialization\JsonSerializer.cs" />
<Compile Include="Core\Serialization\MetadataConverter.cs" />
<Compile Include="Core\Serialization\QuerySerializer.cs" />
<Compile Include="DataModel\ApplicableProduct.cs" />
<Compile Include="DataModel\ApplicableProductList.cs" />
<Compile Include="DataModel\Campaign.cs" />
<Compile Include="DataModel\CampaignVoucher.cs" />
Expand Down
5 changes: 4 additions & 1 deletion src/Voucherify/Voucherify.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>Voucherify</id>
<version>4.1.2.0</version>
<version>4.2.0.0</version>
<title>Voucherify</title>
<authors>Rspective</authors>
<owners>Rspective</owners>
Expand All @@ -11,6 +11,9 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>.Net SDK for Voucherify - coupons, vouchers, promo codes - http://www.voucherify.io</description>
<releaseNotes>
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.

Expand Down

0 comments on commit e22a655

Please sign in to comment.