Skip to content

Commit

Permalink
Release 4.1.2 (#15)
Browse files Browse the repository at this point in the history
Version 4.1.2
  • Loading branch information
bandraszyk authored Oct 24, 2017
1 parent 5289e27 commit d15eb0b
Show file tree
Hide file tree
Showing 17 changed files with 46 additions and 9 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.
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ Bug reports and pull requests are welcome through [GitHub Issues](https://github

## Changelog

- **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).
- **2016-11-17** - `4.0.2` - Fixed issue with InnerException serialization
Expand Down
38 changes: 34 additions & 4 deletions src/Voucherify/DataModel/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ public class Customer : ApiObject
public string Id { get; private set; }

[JsonProperty(PropertyName = "source_id")]
public string SourceId { get; private set; }
public string SourceId { get; set; }

[JsonProperty(PropertyName = "name")]
public string Name { get; private set; }
public string Name { get; set; }

[JsonProperty(PropertyName = "email")]
public string Email { get; private set; }
public string Email { get; set; }

[JsonProperty(PropertyName = "description")]
public string Description { get; private set; }
public string Description { get; set; }

[JsonProperty(PropertyName = "created_at")]
public DateTime? CreatedAt { get; private set; }
Expand All @@ -34,6 +34,36 @@ public Customer()
this.Metadata = new Metadata();
}

public Customer WithSourceId(string sourceId)
{
this.SourceId = sourceId;
return this;
}

public Customer WithName(string name)
{
this.Name = name;
return this;
}

public Customer WithEmail(string email)
{
this.Email = email;
return this;
}

public Customer WithDescription(string description)
{
this.Description = description;
return this;
}

public Customer WithMetadata(Metadata metadata)
{
this.Metadata = metadata;
return this;
}

public override string ToString()
{
return string.Format("Customer[Id={0},SourceId={1},Name={2},Email={3},Metadata={4}]",
Expand Down
2 changes: 1 addition & 1 deletion src/Voucherify/DataModel/Order.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Voucherify.DataModel
public class Order : ApiObject
{
[JsonProperty(PropertyName = "amount")]
public int Amount { get; private set; }
public int Amount { get; set; }

[JsonProperty(PropertyName = "items")]
public List<OrderItem> Items { get; private set; }
Expand Down
4 changes: 2 additions & 2 deletions src/Voucherify/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// 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("4.1.1.0")]
[assembly: AssemblyFileVersion("4.1.1.0")]
[assembly: AssemblyVersion("4.1.2.0")]
[assembly: AssemblyFileVersion("4.1.2.0")]
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.1.0</version>
<version>4.1.2.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-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.

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.1.0</version>
<version>4.1.2.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-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.

Expand Down

0 comments on commit d15eb0b

Please sign in to comment.