diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c03236256..ba8193503f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,14 @@ # Changelog +## 43.0.0 - 2023-10-16 +* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `Stripe.net`. +* [#2781](https://github.com/stripe/stripe-dotnet/pull/2781) Update generated code + * Add support for `LegalGuardian` on `AccountRelationshipOptions` and `TokenPersonRelationshipOptions` + * Add support for `AdditionalTosAcceptances` on `TokenPersonOptions` + ## 42.11.0-beta.1 - 2023-10-16 * [#2779](https://github.com/stripe/stripe-dotnet/pull/2779) Update generated code for beta - ## 42.10.0 - 2023-10-16 * [#2780](https://github.com/stripe/stripe-dotnet/pull/2780) Update generated code * Add support for `issuing_token.created` and `issuing_token.updated` event types. diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d42b919187..fb1dec85b4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v602 \ No newline at end of file +v605 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 608d119d59..57d04fb002 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,7 +3,7 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2023-08-16"; + public const string Current = "2023-10-16"; public const string CurrentPreview = "2023-09-15.preview-v2"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs index f7428136fd..f97003ec8c 100644 --- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs +++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs @@ -7,9 +7,34 @@ public class AccountFutureRequirementsError : StripeEntity /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs b/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs index 711a23edf4..0f259c0d88 100644 --- a/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs +++ b/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs @@ -7,9 +7,34 @@ public class AccountRequirementsError : StripeEntity { /// /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs index a925674b2a..78054370fb 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs @@ -7,9 +7,34 @@ public class BankAccountFutureRequirementsError : StripeEntity /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs index d8401e8034..40c8e0fdd8 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs @@ -7,9 +7,34 @@ public class BankAccountRequirementsError : StripeEntity /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs index 0f37f951fd..773448a02e 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs @@ -7,9 +7,34 @@ public class CapabilityFutureRequirementsError : StripeEntity /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Entities/Persons/Person.cs b/src/Stripe.net/Entities/Persons/Person.cs index 8d5ceb940b..5ed8d1090d 100644 --- a/src/Stripe.net/Entities/Persons/Person.cs +++ b/src/Stripe.net/Entities/Persons/Person.cs @@ -40,6 +40,9 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject [JsonProperty("account")] public string Account { get; set; } + [JsonProperty("additional_tos_acceptances")] + public PersonAdditionalTosAcceptances AdditionalTosAcceptances { get; set; } + [JsonProperty("address")] public Address Address { get; set; } diff --git a/src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptances.cs b/src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptances.cs new file mode 100644 index 0000000000..01fc18eab0 --- /dev/null +++ b/src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptances.cs @@ -0,0 +1,11 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PersonAdditionalTosAcceptances : StripeEntity + { + [JsonProperty("account")] + public PersonAdditionalTosAcceptancesAccount Account { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptancesAccount.cs b/src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptancesAccount.cs new file mode 100644 index 0000000000..bf8a80feea --- /dev/null +++ b/src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptancesAccount.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class PersonAdditionalTosAcceptancesAccount : StripeEntity + { + /// + /// The Unix timestamp marking when the legal guardian accepted the service agreement. + /// + [JsonProperty("date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the legal guardian accepted the service agreement. + /// + [JsonProperty("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the legal guardian accepted the service + /// agreement. + /// + [JsonProperty("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs b/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs index b8078efc4a..c27e9747ae 100644 --- a/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs +++ b/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs @@ -7,9 +7,34 @@ public class PersonFutureRequirementsError : StripeEntity /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Entities/Persons/PersonRelationship.cs b/src/Stripe.net/Entities/Persons/PersonRelationship.cs index 64632f21bf..9c88b24f3e 100644 --- a/src/Stripe.net/Entities/Persons/PersonRelationship.cs +++ b/src/Stripe.net/Entities/Persons/PersonRelationship.cs @@ -20,6 +20,12 @@ public class PersonRelationship : StripeEntity [JsonProperty("executive")] public bool? Executive { get; set; } + /// + /// Whether the person is the legal guardian of the account's representative. + /// + [JsonProperty("legal_guardian")] + public bool? LegalGuardian { get; set; } + /// /// Whether the person is an owner of the account’s legal entity. /// diff --git a/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs b/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs index d89cc1ffa4..9f30b132c8 100644 --- a/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs +++ b/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs @@ -7,9 +7,34 @@ public class PersonRequirementsError : StripeEntity { /// /// The code for the type of error. - /// One of: invalid_address_city_state_postal_code, invalid_dob_age_under_18, - /// invalid_representative_country, invalid_street_address, - /// invalid_tos_acceptance, invalid_value_other, + /// One of: invalid_address_city_state_postal_code, + /// invalid_address_highway_contract_box, invalid_address_private_mailbox, + /// invalid_business_profile_name, invalid_business_profile_name_denylisted, + /// invalid_company_name_denylisted, invalid_dob_age_over_maximum, + /// invalid_dob_age_under_18, invalid_dob_age_under_minimum, + /// invalid_product_description_length, invalid_product_description_url_match, + /// invalid_representative_country, + /// invalid_statement_descriptor_business_mismatch, + /// invalid_statement_descriptor_denylisted, + /// invalid_statement_descriptor_length, + /// invalid_statement_descriptor_prefix_denylisted, + /// invalid_statement_descriptor_prefix_mismatch, invalid_street_address, + /// invalid_tax_id, invalid_tax_id_format, invalid_tos_acceptance, + /// invalid_url_denylisted, invalid_url_format, invalid_url_length, + /// invalid_url_web_presence_detected, + /// invalid_url_website_business_information_mismatch, + /// invalid_url_website_empty, invalid_url_website_inaccessible, + /// invalid_url_website_inaccessible_geoblocked, + /// invalid_url_website_inaccessible_password_protected, + /// invalid_url_website_incomplete, + /// invalid_url_website_incomplete_cancellation_policy, + /// invalid_url_website_incomplete_customer_service_details, + /// invalid_url_website_incomplete_legal_restrictions, + /// invalid_url_website_incomplete_refund_policy, + /// invalid_url_website_incomplete_return_policy, + /// invalid_url_website_incomplete_terms_and_conditions, + /// invalid_url_website_incomplete_under_construction, + /// invalid_url_website_other, invalid_value_other, /// verification_directors_mismatch, verification_document_address_mismatch, /// verification_document_address_missing, verification_document_corrupt, /// verification_document_country_not_supported, diff --git a/src/Stripe.net/Services/Persons/PersonAdditionalTosAcceptancesAccountOptions.cs b/src/Stripe.net/Services/Persons/PersonAdditionalTosAcceptancesAccountOptions.cs new file mode 100644 index 0000000000..9cc621fd5c --- /dev/null +++ b/src/Stripe.net/Services/Persons/PersonAdditionalTosAcceptancesAccountOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class PersonAdditionalTosAcceptancesAccountOptions : INestedOptions + { + /// + /// The Unix timestamp marking when the account representative accepted the service + /// agreement. + /// + [JsonProperty("date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the account representative accepted the service agreement. + /// + [JsonProperty("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the account representative accepted the service + /// agreement. + /// + [JsonProperty("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Persons/PersonAdditionalTosAcceptancesOptions.cs b/src/Stripe.net/Services/Persons/PersonAdditionalTosAcceptancesOptions.cs new file mode 100644 index 0000000000..e849312bb6 --- /dev/null +++ b/src/Stripe.net/Services/Persons/PersonAdditionalTosAcceptancesOptions.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PersonAdditionalTosAcceptancesOptions : INestedOptions + { + /// + /// Details on the legal guardian's acceptance of the main Stripe service agreement. + /// + [JsonProperty("account")] + public PersonAdditionalTosAcceptancesAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/Persons/PersonCreateOptions.cs b/src/Stripe.net/Services/Persons/PersonCreateOptions.cs index 3284303a33..576c6a2875 100644 --- a/src/Stripe.net/Services/Persons/PersonCreateOptions.cs +++ b/src/Stripe.net/Services/Persons/PersonCreateOptions.cs @@ -6,6 +6,12 @@ namespace Stripe public class PersonCreateOptions : BaseOptions, IHasMetadata { + /// + /// Details on the legal guardian's acceptance of the required Stripe agreements. + /// + [JsonProperty("additional_tos_acceptances")] + public PersonAdditionalTosAcceptancesOptions AdditionalTosAcceptances { get; set; } + /// /// The person's address. /// diff --git a/src/Stripe.net/Services/Persons/PersonRelationshipOptions.cs b/src/Stripe.net/Services/Persons/PersonRelationshipOptions.cs index 409f449431..1e380d206b 100644 --- a/src/Stripe.net/Services/Persons/PersonRelationshipOptions.cs +++ b/src/Stripe.net/Services/Persons/PersonRelationshipOptions.cs @@ -20,6 +20,13 @@ public class PersonRelationshipOptions : INestedOptions [JsonProperty("executive")] public bool? Executive { get; set; } + /// + /// A filter on the list of people returned based on whether these people are legal + /// guardians of the account's representative. + /// + [JsonProperty("legal_guardian")] + public bool? LegalGuardian { get; set; } + /// /// A filter on the list of people returned based on whether these people are owners of the /// account's company. diff --git a/src/Stripe.net/Services/Persons/PersonUpdateOptions.cs b/src/Stripe.net/Services/Persons/PersonUpdateOptions.cs index 44ce57e78a..666bf9d372 100644 --- a/src/Stripe.net/Services/Persons/PersonUpdateOptions.cs +++ b/src/Stripe.net/Services/Persons/PersonUpdateOptions.cs @@ -6,6 +6,12 @@ namespace Stripe public class PersonUpdateOptions : BaseOptions, IHasMetadata { + /// + /// Details on the legal guardian's acceptance of the required Stripe agreements. + /// + [JsonProperty("additional_tos_acceptances")] + public PersonAdditionalTosAcceptancesOptions AdditionalTosAcceptances { get; set; } + /// /// The person's address. /// diff --git a/src/Stripe.net/Services/Tokens/TokenPersonAdditionalTosAcceptancesAccountOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonAdditionalTosAcceptancesAccountOptions.cs new file mode 100644 index 0000000000..16e98ddecc --- /dev/null +++ b/src/Stripe.net/Services/Tokens/TokenPersonAdditionalTosAcceptancesAccountOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + + public class TokenPersonAdditionalTosAcceptancesAccountOptions : INestedOptions + { + /// + /// The Unix timestamp marking when the account representative accepted the service + /// agreement. + /// + [JsonProperty("date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the account representative accepted the service agreement. + /// + [JsonProperty("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the account representative accepted the service + /// agreement. + /// + [JsonProperty("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tokens/TokenPersonAdditionalTosAcceptancesOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonAdditionalTosAcceptancesOptions.cs new file mode 100644 index 0000000000..66d28cd2fd --- /dev/null +++ b/src/Stripe.net/Services/Tokens/TokenPersonAdditionalTosAcceptancesOptions.cs @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class TokenPersonAdditionalTosAcceptancesOptions : INestedOptions + { + /// + /// Details on the legal guardian's acceptance of the main Stripe service agreement. + /// + [JsonProperty("account")] + public TokenPersonAdditionalTosAcceptancesAccountOptions Account { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs index 83ac641384..b09a236078 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs @@ -6,6 +6,12 @@ namespace Stripe public class TokenPersonOptions : INestedOptions, IHasMetadata { + /// + /// Details on the legal guardian's acceptance of the required Stripe agreements. + /// + [JsonProperty("additional_tos_acceptances")] + public TokenPersonAdditionalTosAcceptancesOptions AdditionalTosAcceptances { get; set; } + /// /// The person's address. /// diff --git a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs index cd7de3fd1f..2bd40a1339 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs @@ -20,6 +20,12 @@ public class TokenPersonRelationshipOptions : INestedOptions [JsonProperty("executive")] public bool? Executive { get; set; } + /// + /// Whether the person is the legal guardian of the account's representative. + /// + [JsonProperty("legal_guardian")] + public bool? LegalGuardian { get; set; } + /// /// Whether the person is an owner of the account’s legal entity. /// diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index d1eab890e5..9836c5e14f 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -33,7 +33,7 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2019-02-11, 2019-02-19, 2019-03-14, 2019-05-16, /// 2019-08-14, 2019-09-09, 2019-10-08, 2019-10-17, /// 2019-11-05, 2019-12-03, 2020-03-02, 2020-08-27, - /// 2022-08-01, 2022-11-15, or 2023-08-16. + /// 2022-08-01, 2022-11-15, 2023-08-16, or 2023-10-16. /// [JsonProperty("api_version")] public string ApiVersion { get; set; }