diff --git a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs index ade5807c46..5b9cc823fe 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs @@ -50,8 +50,10 @@ public class AccountPersonRelationship : StripeEntity /// The percentage of the Account's identity that the individual owns. /// [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; } /// /// Whether the individual is authorized as the primary representative of the Account. This diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs index 064596529c..8a72bcf954 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs @@ -50,8 +50,10 @@ public class AccountIdentityIndividualRelationship : StripeEntity [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; } /// /// Whether the individual is authorized as the primary representative of the Account. This diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs index edadae8600..019e01a791 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualRelationshipOptions.cs @@ -36,8 +36,10 @@ public class AccountTokenCreateIdentityIndividualRelationshipOptions : INestedOp /// The percent owned by the person of the account's legal entity. /// [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; } /// /// The person's title (e.g., CEO, Support Engineer). diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs index 7d2659219e..d16d873f92 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualRelationshipOptions.cs @@ -36,8 +36,10 @@ public class AccountCreateIdentityIndividualRelationshipOptions : INestedOptions /// The percent owned by the person of the account's legal entity. /// [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; } /// /// The person's title (e.g., CEO, Support Engineer). diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs index 7ffcd99cc6..0bbf8053d3 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualRelationshipOptions.cs @@ -36,8 +36,10 @@ public class AccountUpdateIdentityIndividualRelationshipOptions : INestedOptions /// The percent owned by the person of the account's legal entity. /// [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; } /// /// The person's title (e.g., CEO, Support Engineer). diff --git a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs index ef936a6c4a..7b2051292e 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/PersonTokens/PersonTokenCreateRelationshipOptions.cs @@ -47,8 +47,10 @@ public class PersonTokenCreateRelationshipOptions : INestedOptions /// The percentage of ownership the person has in the associated legal entity. /// [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; } /// /// Indicates whether the person is a representative of the associated legal entity. diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs index eeae4e10d2..669438566e 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateRelationshipOptions.cs @@ -47,8 +47,10 @@ public class PersonCreateRelationshipOptions : INestedOptions /// The percentage of ownership the person has in the associated legal entity. /// [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; } /// /// Indicates whether the person is a representative of the associated legal entity. diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs index 0447d56496..cacece10ac 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateRelationshipOptions.cs @@ -47,8 +47,10 @@ public class PersonUpdateRelationshipOptions : INestedOptions /// The percentage of ownership the person has in the associated legal entity. /// [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; } /// /// Indicates whether the person is a representative of the associated legal entity.