Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group resources with sub-resources under one folder #1309

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ internal object InternalBusinessLogo
[JsonProperty("currencies_supported")]
public string[] CurrenciesSupported { get; set; }

[JsonProperty("keys")]
public CustomAccountKeys Keys { get; set; }

[JsonProperty("debit_negative_balances")]
public bool DebitNegativeBalances { get; set; }

Expand Down Expand Up @@ -82,6 +85,15 @@ internal object InternalBusinessLogo
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

[JsonProperty("payouts_enabled")]
public bool PayoutsEnabled { get; set; }

[JsonProperty("payout_schedule")]
public PayoutSchedule PayoutSchedule { get; set; }

[JsonProperty("payout_statement_descriptor")]
public string PayoutStatementDescriptor { get; set; }

[JsonProperty("product_description")]
public string ProductDescription { get; set; }

Expand All @@ -97,28 +109,16 @@ internal object InternalBusinessLogo
[JsonProperty("support_url")]
public string SupportUrl { get; set; }

[JsonProperty("tos_acceptance")]
public TermsOfServiceAcceptance TosAcceptance { get; set; }

[JsonProperty("timezone")]
public string Timezone { get; set; }

[JsonProperty("tos_acceptance")]
public TermsOfServiceAcceptance TermsOfServiceAcceptance { get; set; }

[JsonProperty("type")]
public string Type { get; set; }

[JsonProperty("payouts_enabled")]
public bool PayoutsEnabled { get; set; }

[JsonProperty("payout_schedule")]
public PayoutSchedule PayoutSchedule { get; set; }

[JsonProperty("payout_statement_descriptor")]
public string PayoutStatementDescriptor { get; set; }

[JsonProperty("verification")]
public AccountVerification AccountVerification { get; set; }

[JsonProperty("keys")]
public CustomAccountKeys CustomAccountKeys { get; set; }
public AccountVerification Verification { get; set; }
}
}
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Accounts/AddressJapan.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Stripe
{
using Newtonsoft.Json;

public class AddressJapan : Address
{
[JsonProperty("town")]
public string Town { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public class LegalEntity : StripeEntity
public Address Address { get; set; }

[JsonProperty("address_kana")]
public Address AddressKana { get; set; }
public AddressJapan AddressKana { get; set; }

[JsonProperty("address_kanji")]
public Address AddressKanji { get; set; }
public AddressJapan AddressKanji { get; set; }

[JsonProperty("business_name")]
public string BusinessName { get; set; }
Expand All @@ -39,7 +39,7 @@ public class LegalEntity : StripeEntity
public bool BusinessVatIdProvided { get; set; }

[JsonProperty("dob")]
public BirthDay BirthDay { get; set; }
public BirthDay Dob { get; set; }

[JsonProperty("first_name")]
public string FirstName { get; set; }
Expand Down Expand Up @@ -69,10 +69,10 @@ public class LegalEntity : StripeEntity
public Address PersonalAddress { get; set; }

[JsonProperty("personal_address_kana")]
public Address PersonalAddressKana { get; set; }
public AddressJapan PersonalAddressKana { get; set; }

[JsonProperty("personal_address_kanji")]
public Address PersonalAddressKanji { get; set; }
public AddressJapan PersonalAddressKanji { get; set; }

[JsonProperty("personal_id_number_provided")]
public bool PersonalIdNumberProvided { get; set; }
Expand All @@ -81,7 +81,7 @@ public class LegalEntity : StripeEntity
public string PhoneNumber { get; set; }

[JsonProperty("ssn_last_4_provided")]
public bool SocialSecurityNumberLastFourProvided { get; set; }
public bool SsnLast4Provided { get; set; }

[JsonProperty("tax_id_registrar")]
public string TaxIdRegistrar { get; set; }
Expand All @@ -90,6 +90,6 @@ public class LegalEntity : StripeEntity
public string Type { get; set; }

[JsonProperty("verification")]
public LegalEntityVerification LegalEntityVerification { get; set; }
public LegalEntityVerification Verification { get; set; }
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ public class Address : StripeEntity

[JsonProperty("state")]
public string State { get; set; }

[JsonProperty("town")]
public string Town { get; set; }
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.