Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ public class AccountPersonRelationship : StripeEntity<AccountPersonRelationship>
/// The percentage of the Account's identity that the individual owns.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// Whether the individual is authorized as the primary representative of the Account. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ public class AccountIdentityIndividualRelationship : StripeEntity<AccountIdentit
/// The percentage of the Account's identity that the individual owns.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// Whether the individual is authorized as the primary representative of the Account. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public class AccountTokenCreateIdentityIndividualRelationshipOptions : INestedOp
/// The percent owned by the person of the account's legal entity.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// The person's title (e.g., CEO, Support Engineer).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public class AccountCreateIdentityIndividualRelationshipOptions : INestedOptions
/// The percent owned by the person of the account's legal entity.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// The person's title (e.g., CEO, Support Engineer).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ public class AccountUpdateIdentityIndividualRelationshipOptions : INestedOptions
/// The percent owned by the person of the account's legal entity.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// The person's title (e.g., CEO, Support Engineer).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ public class PersonTokenCreateRelationshipOptions : INestedOptions
/// The percentage of ownership the person has in the associated legal entity.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// Indicates whether the person is a representative of the associated legal entity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ public class PersonCreateRelationshipOptions : INestedOptions
/// The percentage of ownership the person has in the associated legal entity.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// Indicates whether the person is a representative of the associated legal entity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ public class PersonUpdateRelationshipOptions : INestedOptions
/// The percentage of ownership the person has in the associated legal entity.
/// </summary>
[JsonProperty("percent_ownership")]
[JsonConverter(typeof(DecimalStringConverter))]
[STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
[STJS.JsonPropertyName("percent_ownership")]
public string PercentOwnership { get; set; }
public decimal? PercentOwnership { get; set; }

/// <summary>
/// Indicates whether the person is a representative of the associated legal entity.
Expand Down
Loading