Skip to content

Commit

Permalink
Fix ExternalAccountUpdateOptions (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Oct 8, 2019
1 parent c5a8dba commit 41bb157
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,60 @@ namespace Stripe

public class ExternalAccountUpdateOptions : BaseOptions, IHasMetadata
{
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }
/// <summary>The name of the person or business that owns the bank account.</summary>
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }

/// <summary>
/// The type of entity that holds the account. This can be either <c>individual</c> or
/// <c>>company</c>.
/// </summary>
[JsonProperty("account_holder_type")]
public string AccountHolderType { get; set; }

/// <summary>City/District/Suburb/Town/Village.</summary>
[JsonProperty("address_city")]
public string AddressCity { get; set; }

/// <summary>Billing address country, if provided when creating card.</summary>
[JsonProperty("address_country")]
public string AddressCountry { get; set; }

/// <summary>Address line 1 (Street address/PO Box/Company name).</summary>
[JsonProperty("address_line1")]
public string AddressLine1 { get; set; }

/// <summary>Address line 2 (Apartment/Suite/Unit/Building).</summary>
[JsonProperty("address_line2")]
public string AddressLine2 { get; set; }

/// <summary>State/County/Province/Region.</summary>
[JsonProperty("address_state")]
public string AddressState { get; set; }

/// <summary>ZIP or postal code.</summary>
[JsonProperty("address_zip")]
public string AddressZip { get; set; }

/// <summary>
/// When set to true, this becomes the default external account for its currency.
/// </summary>
[JsonProperty("default_for_currency")]
public bool? DefaultForCurrency { get; set; }

[JsonProperty("external_account")]
public ExternalAccountCardUpdateOptions ExternalAccountCard { get; set; }
/// <summary>Two digit number representing the card’s expiration month.</summary>
[JsonProperty("exp_month")]
public long? ExpMonth { get; set; }

/// <summary>Four digit number representing the card’s expiration year.</summary>
[JsonProperty("exp_year")]
public long? ExpYear { get; set; }

[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

/// <summary>Cardholder name.</summary>
[JsonProperty("name")]
public string Name { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public ExternalAccountServiceTest(
{
{ "key", "value" },
},
Name = "Jenny Rosen",
};

this.listOptions = new ExternalAccountListOptions
Expand Down

0 comments on commit 41bb157

Please sign in to comment.