-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update account entity to include all properties and all nested proper…
…ties/objects
- Loading branch information
1 parent
5a553b6
commit 3f44650
Showing
13 changed files
with
306 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeAccountVerification | ||
{ | ||
[JsonProperty("disabled_reason")] | ||
public string DisabledReason { get; set; } | ||
|
||
[JsonProperty("due_by")] | ||
[JsonConverter(typeof(StripeDateTimeConverter))] | ||
public DateTime DueBy { get; set; } | ||
|
||
[JsonProperty("fields_needed")] | ||
public string[] FieldsNeeded { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeAdditionalOwners | ||
{ | ||
[JsonProperty("address")] | ||
public StripeAddress Address { get; set; } | ||
|
||
[JsonProperty("dob")] | ||
public StripeBirthDay StripeBirthDay { get; set; } | ||
|
||
[JsonProperty("first_name")] | ||
public string FirstName { get; set; } | ||
|
||
[JsonProperty("last_name")] | ||
public string LastName { get; set; } | ||
|
||
[JsonProperty("verification")] | ||
public StripeLegalEntityVerification Verification { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeAddress | ||
{ | ||
[JsonProperty("city")] | ||
public string City { get; set; } | ||
|
||
[JsonProperty("country")] | ||
public string Country { get; set; } | ||
|
||
[JsonProperty("line1")] | ||
public string Line1 { get; set; } | ||
|
||
[JsonProperty("line2")] | ||
public string Line2 { get; set; } | ||
|
||
[JsonProperty("postal_code")] | ||
public string PostalCode { get; set; } | ||
|
||
[JsonProperty("state")] | ||
public string State { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeBirthDay | ||
{ | ||
[JsonProperty("day")] | ||
public int Day { get; set; } | ||
|
||
[JsonProperty("month")] | ||
public int Month { get; set; } | ||
|
||
[JsonProperty("year")] | ||
public int Year { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeDeclineChargeOn | ||
{ | ||
[JsonProperty("avs_failure")] | ||
public bool AvsFailure { get; set; } | ||
|
||
[JsonProperty("cvc_failure")] | ||
public bool CvcFailure { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeFileUpload : StripeObject | ||
{ | ||
[JsonProperty("object")] | ||
public string Object { get; set; } | ||
|
||
[JsonProperty("created")] | ||
[JsonConverter(typeof(StripeDateTimeConverter))] | ||
public DateTime Created { get; set; } | ||
|
||
[JsonProperty("purpose")] | ||
public string Purpose { get; set; } | ||
|
||
[JsonProperty("size")] | ||
public int Size { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty("url")] | ||
public string Url { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeLegalEntity | ||
{ | ||
[JsonProperty("additional_owners")] | ||
public StripeList<StripeAdditionalOwners> StripAdditionalOwners { get; set; } | ||
|
||
[JsonProperty("address")] | ||
public StripeAddress Address { get; set; } | ||
|
||
[JsonProperty("business_name")] | ||
public string BusinessName { get; set; } | ||
|
||
[JsonProperty("dob")] | ||
public StripeBirthDay StripeBirthDay { get; set; } | ||
|
||
[JsonProperty("first_name")] | ||
public string FirstName { get; set; } | ||
|
||
[JsonProperty("last_name")] | ||
public string LastName { get; set; } | ||
|
||
[JsonProperty("personal_address")] | ||
public StripeAddress PersonalAddress { get; set; } | ||
|
||
[JsonProperty("personal_id_number_provided")] | ||
public bool PersonalIdNumberProvided { get; set; } | ||
|
||
[JsonProperty("ssn_last_4_provided")] | ||
public bool SocialSecurityNumberLastFourProvided { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty("verification")] | ||
public StripeLegalEntityVerification StripeLegalEntityVerification { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeLegalEntityVerification | ||
{ | ||
[JsonProperty("details")] | ||
public string Details { get; set; } | ||
|
||
[JsonProperty("details_code")] | ||
public string DetailsCode { get; set; } | ||
|
||
#region Expandable Document | ||
public string DocumentId { get; set; } | ||
|
||
[JsonIgnore] | ||
public StripeFileUpload Document { get; set; } | ||
|
||
[JsonProperty("document")] | ||
internal object InternalDocument | ||
{ | ||
set | ||
{ | ||
ExpandableProperty<StripeFileUpload>.Map(value, s => DocumentId = s, o => Document = o); | ||
} | ||
} | ||
#endregion | ||
|
||
[JsonProperty("status")] | ||
public string Status { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using Stripe.Infrastructure; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeTermsOfServiceAcceptance | ||
{ | ||
[JsonProperty("date")] | ||
[JsonConverter(typeof(StripeDateTimeConverter))] | ||
public DateTime Date { get; set; } | ||
|
||
[JsonProperty("ip")] | ||
public string Ip { get; set; } | ||
|
||
[JsonProperty("user_agent")] | ||
public string UserAgent { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace Stripe | ||
{ | ||
public class StripeTransferSchedule | ||
{ | ||
[JsonProperty("delay_days")] | ||
public int DelayDays { get; set; } | ||
|
||
[JsonProperty("interval")] | ||
public string Interval { get; set; } | ||
|
||
[JsonProperty("monthly_anchor")] | ||
public int MonthlyAnchor { get; set; } | ||
|
||
[JsonProperty("weekly_anchor")] | ||
public string WeeklyAnchor { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters