Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #2782

Merged
merged 5 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v602
v605
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,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";
}
}
31 changes: 28 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,34 @@ 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_dob_age_under_minimum</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
31 changes: 28 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,34 @@ 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_dob_age_under_minimum</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,34 @@ 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_dob_age_under_minimum</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,34 @@ 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_dob_age_under_minimum</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,34 @@ 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_dob_age_under_minimum</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; }
}
}
31 changes: 28 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,34 @@ 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_dob_age_under_minimum</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