Skip to content

Commit

Permalink
Update generated code for v603 (#2781)
Browse files Browse the repository at this point in the history
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Oct 16, 2023
1 parent a3c8fa2 commit 7594b80
Show file tree
Hide file tree
Showing 23 changed files with 363 additions and 24 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v602
v603
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2023-08-16";
public const string Current = "2023-10-16";
}
}
30 changes: 27 additions & 3 deletions src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,33 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>, <c>invalid_dob_age_under_18</c>,
/// <c>invalid_representative_country</c>, <c>invalid_street_address</c>,
/// <c>invalid_tos_acceptance</c>, <c>invalid_value_other</c>,
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_product_description_length</c>,
/// <c>invalid_product_description_url_match</c>, <c>invalid_representative_country</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
/// <c>invalid_statement_descriptor_prefix_denylisted</c>,
/// <c>invalid_statement_descriptor_prefix_mismatch</c>, <c>invalid_street_address</c>,
/// <c>invalid_tax_id</c>, <c>invalid_tax_id_format</c>, <c>invalid_tos_acceptance</c>,
/// <c>invalid_url_denylisted</c>, <c>invalid_url_format</c>, <c>invalid_url_length</c>,
/// <c>invalid_url_web_presence_detected</c>,
/// <c>invalid_url_website_business_information_mismatch</c>,
/// <c>invalid_url_website_empty</c>, <c>invalid_url_website_inaccessible</c>,
/// <c>invalid_url_website_inaccessible_geoblocked</c>,
/// <c>invalid_url_website_inaccessible_password_protected</c>,
/// <c>invalid_url_website_incomplete</c>,
/// <c>invalid_url_website_incomplete_cancellation_policy</c>,
/// <c>invalid_url_website_incomplete_customer_service_details</c>,
/// <c>invalid_url_website_incomplete_legal_restrictions</c>,
/// <c>invalid_url_website_incomplete_refund_policy</c>,
/// <c>invalid_url_website_incomplete_return_policy</c>,
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
Expand Down
30 changes: 27 additions & 3 deletions src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,33 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>, <c>invalid_dob_age_under_18</c>,
/// <c>invalid_representative_country</c>, <c>invalid_street_address</c>,
/// <c>invalid_tos_acceptance</c>, <c>invalid_value_other</c>,
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_product_description_length</c>,
/// <c>invalid_product_description_url_match</c>, <c>invalid_representative_country</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
/// <c>invalid_statement_descriptor_prefix_denylisted</c>,
/// <c>invalid_statement_descriptor_prefix_mismatch</c>, <c>invalid_street_address</c>,
/// <c>invalid_tax_id</c>, <c>invalid_tax_id_format</c>, <c>invalid_tos_acceptance</c>,
/// <c>invalid_url_denylisted</c>, <c>invalid_url_format</c>, <c>invalid_url_length</c>,
/// <c>invalid_url_web_presence_detected</c>,
/// <c>invalid_url_website_business_information_mismatch</c>,
/// <c>invalid_url_website_empty</c>, <c>invalid_url_website_inaccessible</c>,
/// <c>invalid_url_website_inaccessible_geoblocked</c>,
/// <c>invalid_url_website_inaccessible_password_protected</c>,
/// <c>invalid_url_website_incomplete</c>,
/// <c>invalid_url_website_incomplete_cancellation_policy</c>,
/// <c>invalid_url_website_incomplete_customer_service_details</c>,
/// <c>invalid_url_website_incomplete_legal_restrictions</c>,
/// <c>invalid_url_website_incomplete_refund_policy</c>,
/// <c>invalid_url_website_incomplete_return_policy</c>,
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,33 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>, <c>invalid_dob_age_under_18</c>,
/// <c>invalid_representative_country</c>, <c>invalid_street_address</c>,
/// <c>invalid_tos_acceptance</c>, <c>invalid_value_other</c>,
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_product_description_length</c>,
/// <c>invalid_product_description_url_match</c>, <c>invalid_representative_country</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
/// <c>invalid_statement_descriptor_prefix_denylisted</c>,
/// <c>invalid_statement_descriptor_prefix_mismatch</c>, <c>invalid_street_address</c>,
/// <c>invalid_tax_id</c>, <c>invalid_tax_id_format</c>, <c>invalid_tos_acceptance</c>,
/// <c>invalid_url_denylisted</c>, <c>invalid_url_format</c>, <c>invalid_url_length</c>,
/// <c>invalid_url_web_presence_detected</c>,
/// <c>invalid_url_website_business_information_mismatch</c>,
/// <c>invalid_url_website_empty</c>, <c>invalid_url_website_inaccessible</c>,
/// <c>invalid_url_website_inaccessible_geoblocked</c>,
/// <c>invalid_url_website_inaccessible_password_protected</c>,
/// <c>invalid_url_website_incomplete</c>,
/// <c>invalid_url_website_incomplete_cancellation_policy</c>,
/// <c>invalid_url_website_incomplete_customer_service_details</c>,
/// <c>invalid_url_website_incomplete_legal_restrictions</c>,
/// <c>invalid_url_website_incomplete_refund_policy</c>,
/// <c>invalid_url_website_incomplete_return_policy</c>,
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,33 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>, <c>invalid_dob_age_under_18</c>,
/// <c>invalid_representative_country</c>, <c>invalid_street_address</c>,
/// <c>invalid_tos_acceptance</c>, <c>invalid_value_other</c>,
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_product_description_length</c>,
/// <c>invalid_product_description_url_match</c>, <c>invalid_representative_country</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
/// <c>invalid_statement_descriptor_prefix_denylisted</c>,
/// <c>invalid_statement_descriptor_prefix_mismatch</c>, <c>invalid_street_address</c>,
/// <c>invalid_tax_id</c>, <c>invalid_tax_id_format</c>, <c>invalid_tos_acceptance</c>,
/// <c>invalid_url_denylisted</c>, <c>invalid_url_format</c>, <c>invalid_url_length</c>,
/// <c>invalid_url_web_presence_detected</c>,
/// <c>invalid_url_website_business_information_mismatch</c>,
/// <c>invalid_url_website_empty</c>, <c>invalid_url_website_inaccessible</c>,
/// <c>invalid_url_website_inaccessible_geoblocked</c>,
/// <c>invalid_url_website_inaccessible_password_protected</c>,
/// <c>invalid_url_website_incomplete</c>,
/// <c>invalid_url_website_incomplete_cancellation_policy</c>,
/// <c>invalid_url_website_incomplete_customer_service_details</c>,
/// <c>invalid_url_website_incomplete_legal_restrictions</c>,
/// <c>invalid_url_website_incomplete_refund_policy</c>,
/// <c>invalid_url_website_incomplete_return_policy</c>,
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,33 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>, <c>invalid_dob_age_under_18</c>,
/// <c>invalid_representative_country</c>, <c>invalid_street_address</c>,
/// <c>invalid_tos_acceptance</c>, <c>invalid_value_other</c>,
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_product_description_length</c>,
/// <c>invalid_product_description_url_match</c>, <c>invalid_representative_country</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
/// <c>invalid_statement_descriptor_prefix_denylisted</c>,
/// <c>invalid_statement_descriptor_prefix_mismatch</c>, <c>invalid_street_address</c>,
/// <c>invalid_tax_id</c>, <c>invalid_tax_id_format</c>, <c>invalid_tos_acceptance</c>,
/// <c>invalid_url_denylisted</c>, <c>invalid_url_format</c>, <c>invalid_url_length</c>,
/// <c>invalid_url_web_presence_detected</c>,
/// <c>invalid_url_website_business_information_mismatch</c>,
/// <c>invalid_url_website_empty</c>, <c>invalid_url_website_inaccessible</c>,
/// <c>invalid_url_website_inaccessible_geoblocked</c>,
/// <c>invalid_url_website_inaccessible_password_protected</c>,
/// <c>invalid_url_website_incomplete</c>,
/// <c>invalid_url_website_incomplete_cancellation_policy</c>,
/// <c>invalid_url_website_incomplete_customer_service_details</c>,
/// <c>invalid_url_website_incomplete_legal_restrictions</c>,
/// <c>invalid_url_website_incomplete_refund_policy</c>,
/// <c>invalid_url_website_incomplete_return_policy</c>,
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
Expand Down
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Persons/Person.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public class Person : StripeEntity<Person>, 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; }

Expand Down
11 changes: 11 additions & 0 deletions src/Stripe.net/Entities/Persons/PersonAdditionalTosAcceptances.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PersonAdditionalTosAcceptances : StripeEntity<PersonAdditionalTosAcceptances>
{
[JsonProperty("account")]
public PersonAdditionalTosAcceptancesAccount Account { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class PersonAdditionalTosAcceptancesAccount : StripeEntity<PersonAdditionalTosAcceptancesAccount>
{
/// <summary>
/// The Unix timestamp marking when the legal guardian accepted the service agreement.
/// </summary>
[JsonProperty("date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
public DateTime? Date { get; set; }

/// <summary>
/// The IP address from which the legal guardian accepted the service agreement.
/// </summary>
[JsonProperty("ip")]
public string Ip { get; set; }

/// <summary>
/// The user agent of the browser from which the legal guardian accepted the service
/// agreement.
/// </summary>
[JsonProperty("user_agent")]
public string UserAgent { get; set; }
}
}
30 changes: 27 additions & 3 deletions src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,33 @@ public class PersonFutureRequirementsError : StripeEntity<PersonFutureRequiremen
{
/// <summary>
/// The code for the type of error.
/// One of: <c>invalid_address_city_state_postal_code</c>, <c>invalid_dob_age_under_18</c>,
/// <c>invalid_representative_country</c>, <c>invalid_street_address</c>,
/// <c>invalid_tos_acceptance</c>, <c>invalid_value_other</c>,
/// One of: <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
/// <c>invalid_dob_age_under_18</c>, <c>invalid_product_description_length</c>,
/// <c>invalid_product_description_url_match</c>, <c>invalid_representative_country</c>,
/// <c>invalid_statement_descriptor_business_mismatch</c>,
/// <c>invalid_statement_descriptor_denylisted</c>,
/// <c>invalid_statement_descriptor_length</c>,
/// <c>invalid_statement_descriptor_prefix_denylisted</c>,
/// <c>invalid_statement_descriptor_prefix_mismatch</c>, <c>invalid_street_address</c>,
/// <c>invalid_tax_id</c>, <c>invalid_tax_id_format</c>, <c>invalid_tos_acceptance</c>,
/// <c>invalid_url_denylisted</c>, <c>invalid_url_format</c>, <c>invalid_url_length</c>,
/// <c>invalid_url_web_presence_detected</c>,
/// <c>invalid_url_website_business_information_mismatch</c>,
/// <c>invalid_url_website_empty</c>, <c>invalid_url_website_inaccessible</c>,
/// <c>invalid_url_website_inaccessible_geoblocked</c>,
/// <c>invalid_url_website_inaccessible_password_protected</c>,
/// <c>invalid_url_website_incomplete</c>,
/// <c>invalid_url_website_incomplete_cancellation_policy</c>,
/// <c>invalid_url_website_incomplete_customer_service_details</c>,
/// <c>invalid_url_website_incomplete_legal_restrictions</c>,
/// <c>invalid_url_website_incomplete_refund_policy</c>,
/// <c>invalid_url_website_incomplete_return_policy</c>,
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Persons/PersonRelationship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public class PersonRelationship : StripeEntity<PersonRelationship>
[JsonProperty("executive")]
public bool? Executive { get; set; }

/// <summary>
/// Whether the person is the legal guardian of the account's representative.
/// </summary>
[JsonProperty("legal_guardian")]
public bool? LegalGuardian { get; set; }

/// <summary>
/// Whether the person is an owner of the account’s legal entity.
/// </summary>
Expand Down
Loading

0 comments on commit 7594b80

Please sign in to comment.