Skip to content

Commit

Permalink
Added DateFitler for CreatedAt and UpdatedAt in VoucherFilter (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bandraszyk authored Dec 27, 2018
1 parent dca4cbc commit 3c223e4
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 4 deletions.
Binary file modified lib/net2.0/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net2.0/Voucherify.dll
Binary file not shown.
Binary file modified lib/net3.5/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net3.5/Voucherify.dll
Binary file not shown.
Binary file modified lib/net4.0/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net4.0/Voucherify.dll
Binary file not shown.
Binary file modified lib/net4.5/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/net4.5/Voucherify.dll
Binary file not shown.
Binary file modified lib/netstandard2.0/Voucherify.Client.dll
Binary file not shown.
Binary file modified lib/netstandard2.0/Voucherify.dll
Binary file not shown.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,11 @@ Bug reports and pull requests are welcome through [GitHub Issues](https://github

## Changelog

- **2018-12-27** - `6.0.1` - Added CreatedAt and UpdatedAt property to VoucherFilter
- **2018-12-20** - `6.0.0` - Replaced Voucher Validation Rules with Business Validation Rules. Added API Verions v2018-08-01.

-------------------------------

- **2018-11-15** - `5.0.1` - Fixed QuerySerializer for Array objects. Added RelatedObject to OrderItem and dedicated method for setting SourceId.
- **2018-11-09** - `5.0.0` - Introduced support for TLS 1.2. Added missing CreatePublication endpoint in Distributions namespace. Added Support for .Net Standard 2.0 and dropped for Unity and PLC as Standard version should be used instead. Moved solution to VS2017 and use new type of projects.

Expand Down
15 changes: 15 additions & 0 deletions src/Voucherify/Core/DataModel/DateFilter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Newtonsoft.Json;
using System;

namespace Voucherify.Core.DataModel
{
[JsonObject]
public class DateFilter
{
[JsonProperty(PropertyName = "after", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? After { get; set; }

[JsonProperty(PropertyName = "before", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? Before { get; set; }
}
}
8 changes: 8 additions & 0 deletions src/Voucherify/DataModel/Queries/VouchersFilter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#if VOUCHERIFYSERVER
using Newtonsoft.Json;
using System;
using Voucherify.Core.DataModel;

namespace Voucherify.DataModel.Queries
{
Expand All @@ -20,6 +22,12 @@ public class VouchersFilter

[JsonProperty(PropertyName = "customer")]
public string Customer { get; set; }

[JsonProperty(PropertyName = "created_at", NullValueHandling = NullValueHandling.Ignore)]
public DateFilter CreatedAt { get; set; }

[JsonProperty(PropertyName = "updated_at", NullValueHandling = NullValueHandling.Ignore)]
public DateFilter UpdatedAt { get; set; }
}
}
#endif
4 changes: 2 additions & 2 deletions src/Voucherify/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("6.0.0.0")]
[assembly: AssemblyFileVersion("6.0.0.0")]
[assembly: AssemblyVersion("6.0.1.0")]
[assembly: AssemblyFileVersion("6.0.1.0")]
#endif
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>6.0.0.0</version>
<version>6.0.1.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>
2018-12-27: 6.0.1:
- Added CreatedAt and UpdatedAt property to VoucherFilter

2018-12-20: 6.0.0:
- Replaced Voucher Validation Rules with Business Validation Rules
- Added API Verions 2018-08-01
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>6.0.0.0</version>
<version>6.0.1.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>
2018-12-27: 6.0.1:
- Added CreatedAt and UpdatedAt property to VoucherFilter

2018-12-20: 6.0.0:
- Replaced Voucher Validation Rules with Business Validation Rules
- Added API Verions 2018-08-01
Expand Down

0 comments on commit 3c223e4

Please sign in to comment.