Skip to content

Commit

Permalink
small bugs in StripeSourceOptions preventing it from working correctl…
Browse files Browse the repository at this point in the history
…y, bumped version
  • Loading branch information
jaymedavis committed Jul 2, 2015
1 parent 862712a commit 2c51c2f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Stripe.net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>Stripe.net</id>
<version>4.0.0</version>
<version>4.0.1</version>
<authors>Jayme Davis</authors>
<owners>Jayme Davis</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
2 changes: 1 addition & 1 deletion rakefile.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'albacore'

VERSION = "4.0.0"
VERSION = "4.0.1"

task :default => [:build35, :build40, :output35, :output40]

Expand Down
1 change: 0 additions & 1 deletion run_tests.bat

This file was deleted.

2 changes: 1 addition & 1 deletion src/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[assembly: AssemblyCompany("Jayme Davis")]
[assembly: AssemblyProduct("Stripe.net")]
[assembly: AssemblyCopyright("Copyright (C) Jayme Davis 2015")]
[assembly: AssemblyVersion("4.0.0")]
[assembly: AssemblyVersion("4.0.1")]
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public static StripeCustomerCreateOptions ValidCard(string _planId = null, strin
{
var cardOptions = new StripeSourceOptions()
{
Object = "card",
AddressCountry = "US",
AddressLine1 = "234 Bacon St",
AddressLine2 = "Apt 1",
Expand Down
5 changes: 5 additions & 0 deletions src/Stripe/Infrastructure/ParameterBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public static string ApplyAllParameters(this StripeService service, object obj,
var creditCardOptions = (StripeCreditCardOptions)value;
newUrl = ApplyNestedObjectProperties(newUrl, creditCardOptions);
}
else if (property.PropertyType == typeof(StripeSourceOptions))
{
var creditCardOptions = (StripeSourceOptions)value;
newUrl = ApplyNestedObjectProperties(newUrl, creditCardOptions);
}
else
{
newUrl = ApplyParameterToUrl(newUrl, attribute.PropertyName, value.ToString());
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe/Services/StripeSourceOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class StripeSourceOptions
[JsonProperty("source[address_line2]")]
public string AddressLine2 { get; set; }

[JsonProperty("card[address_city]")]
[JsonProperty("source[address_city]")]
public string AddressCity { get; set; }

[JsonProperty("source[address_zip]")]
Expand Down

0 comments on commit 2c51c2f

Please sign in to comment.