Skip to content
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1642
v1719
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 = "2025-03-31.basil";
public const string Current = "2025-04-30.basil";
}
}
12 changes: 12 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
Expand Down Expand Up @@ -38,6 +39,17 @@ public class AccountBusinessProfile : StripeEntity<AccountBusinessProfile>
#endif
public string Mcc { get; set; }

/// <summary>
/// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
/// One of: <c>lgbtqi_owned_business</c>, <c>minority_owned_business</c>,
/// <c>none_of_these_apply</c>, <c>prefer_not_to_answer</c>, or <c>women_owned_business</c>.
/// </summary>
[JsonProperty("minority_owned_business_designation")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("minority_owned_business_designation")]
#endif
public List<string> MinorityOwnedBusinessDesignation { get; set; }

[JsonProperty("monthly_estimated_revenue")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("monthly_estimated_revenue")]
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCompany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ public class AccountCompany : StripeEntity<AccountCompany>
#endif
public string Phone { get; set; }

[JsonProperty("registration_date")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("registration_date")]
#endif
public AccountCompanyRegistrationDate RegistrationDate { get; set; }

/// <summary>
/// The category identifying the legal structure of the company or legal entity. Also
/// available for accounts where <a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountCompanyRegistrationDate : StripeEntity<AccountCompanyRegistrationDate>
{
/// <summary>
/// The day of registration, between 1 and 31.
/// </summary>
[JsonProperty("day")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("day")]
#endif
public long? Day { get; set; }

/// <summary>
/// The month of registration, between 1 and 12.
/// </summary>
[JsonProperty("month")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("month")]
#endif
public long? Month { get; set; }

/// <summary>
/// The four-digit year of registration.
/// </summary>
[JsonProperty("year")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("year")]
#endif
public long? Year { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_legal_entity_structure_mismatch</c>,
/// <c>verification_missing_directors</c>, <c>verification_missing_executives</c>,
/// <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_legal_entity_structure_mismatch</c>,
/// <c>verification_missing_directors</c>, <c>verification_missing_executives</c>,
/// <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_legal_entity_structure_mismatch</c>,
/// <c>verification_missing_directors</c>, <c>verification_missing_executives</c>,
/// <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_legal_entity_structure_mismatch</c>,
/// <c>verification_missing_directors</c>, <c>verification_missing_executives</c>,
/// <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
/// <c>verification_failed_name_match</c>, <c>verification_failed_other</c>,
/// <c>verification_failed_representative_authority</c>,
/// <c>verification_failed_residential_address</c>, <c>verification_failed_tax_id_match</c>,
/// <c>verification_failed_tax_id_not_issued</c>, <c>verification_missing_directors</c>,
/// <c>verification_missing_executives</c>, <c>verification_missing_owners</c>,
/// <c>verification_failed_tax_id_not_issued</c>,
/// <c>verification_legal_entity_structure_mismatch</c>,
/// <c>verification_missing_directors</c>, <c>verification_missing_executives</c>,
/// <c>verification_missing_owners</c>,
/// <c>verification_rejected_ownership_exemption_reason</c>,
/// <c>verification_requires_additional_memorandum_of_associations</c>,
/// <c>verification_requires_additional_proof_of_registration</c>, or
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargeBillingDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,15 @@ public class ChargeBillingDetails : StripeEntity<ChargeBillingDetails>
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }

/// <summary>
/// Taxpayer identification number. Used only for transactions between LATAM buyers and
/// non-LATAM sellers.
/// </summary>
[JsonProperty("tax_id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("tax_id")]
#endif
public string TaxId { get; set; }
}
}
24 changes: 18 additions & 6 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ public class Session : StripeEntity<Session>, IHasId, IHasMetadata, IHasObject

/// <summary>
/// The client secret of your Checkout Session. Applies to Checkout Sessions with
/// <c>ui_mode: embedded</c>. Client secret to be used when initializing Stripe.js embedded
/// checkout.
/// <c>ui_mode: embedded</c> or <c>ui_mode: custom</c>. For <c>ui_mode: embedded</c>, the
/// client secret is to be used when initializing Stripe.js embedded checkout. For
/// <c>ui_mode: custom</c>, use the client secret with <a
/// href="https://stripe.com/docs/js/custom_checkout/init">initCheckout</a> on your front
/// end.
/// </summary>
[JsonProperty("client_secret")]
#if NET6_0_OR_GREATER
Expand Down Expand Up @@ -584,7 +587,7 @@ public PaymentLink PaymentLink
/// CheckoutSession object.
///
/// For specific permissions, please refer to their dedicated subsections, such as
/// <c>permissions.update.shipping_details</c>.
/// <c>permissions.update_shipping_details</c>.
/// </summary>
[JsonProperty("permissions")]
#if NET6_0_OR_GREATER
Expand Down Expand Up @@ -626,9 +629,9 @@ public PaymentLink PaymentLink
public string RedirectOnCompletion { get; set; }

/// <summary>
/// Applies to Checkout Sessions with <c>ui_mode: embedded</c>. The URL to redirect your
/// customer back to after they authenticate or cancel their payment on the payment method's
/// app or site.
/// Applies to Checkout Sessions with <c>ui_mode: embedded</c> or <c>ui_mode: custom</c>.
/// The URL to redirect your customer back to after they authenticate or cancel their
/// payment on the payment method's app or site.
/// </summary>
[JsonProperty("return_url")]
#if NET6_0_OR_GREATER
Expand Down Expand Up @@ -834,5 +837,14 @@ public Subscription Subscription
[STJS.JsonPropertyName("url")]
#endif
public string Url { get; set; }

/// <summary>
/// Wallet-specific configuration for this Checkout Session.
/// </summary>
[JsonProperty("wallet_options")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("wallet_options")]
#endif
public SessionWalletOptions WalletOptions { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ public class SessionAutomaticTax : StripeEntity<SessionAutomaticTax>
#endif
public SessionAutomaticTaxLiability Liability { get; set; }

/// <summary>
/// The tax provider powering automatic tax.
/// </summary>
[JsonProperty("provider")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("provider")]
#endif
public string Provider { get; set; }

/// <summary>
/// The status of the most recent automated tax calculation for this session.
/// One of: <c>complete</c>, <c>failed</c>, or <c>requires_location_inputs</c>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,32 @@ public class SessionCustomerDetailsTaxId : StripeEntity<SessionCustomerDetailsTa
/// <c>ma_vat</c>, <c>by_tin</c>, <c>ao_tin</c>, <c>bs_tin</c>, <c>bb_tin</c>,
/// <c>cd_nif</c>, <c>mr_nif</c>, <c>me_pib</c>, <c>zw_tin</c>, <c>ba_tin</c>,
/// <c>gn_nif</c>, <c>mk_vat</c>, <c>sr_fin</c>, <c>sn_ninea</c>, <c>am_tin</c>,
/// <c>np_pan</c>, <c>tj_tin</c>, <c>ug_tin</c>, <c>zm_tin</c>, <c>kh_tin</c>, or
/// <c>np_pan</c>, <c>tj_tin</c>, <c>ug_tin</c>, <c>zm_tin</c>, <c>kh_tin</c>,
/// <c>aw_tin</c>, <c>az_tin</c>, <c>bd_bin</c>, <c>bj_ifu</c>, <c>et_tin</c>,
/// <c>kg_tin</c>, <c>la_tin</c>, <c>cm_niu</c>, <c>cv_nif</c>, <c>bf_ifu</c>, or
/// <c>unknown</c>.
/// One of: <c>ad_nrt</c>, <c>ae_trn</c>, <c>al_tin</c>, <c>am_tin</c>, <c>ao_tin</c>,
/// <c>ar_cuit</c>, <c>au_abn</c>, <c>au_arn</c>, <c>ba_tin</c>, <c>bb_tin</c>,
/// <c>bg_uic</c>, <c>bh_vat</c>, <c>bo_tin</c>, <c>br_cnpj</c>, <c>br_cpf</c>,
/// <c>ar_cuit</c>, <c>au_abn</c>, <c>au_arn</c>, <c>aw_tin</c>, <c>az_tin</c>,
/// <c>ba_tin</c>, <c>bb_tin</c>, <c>bd_bin</c>, <c>bf_ifu</c>, <c>bg_uic</c>,
/// <c>bh_vat</c>, <c>bj_ifu</c>, <c>bo_tin</c>, <c>br_cnpj</c>, <c>br_cpf</c>,
/// <c>bs_tin</c>, <c>by_tin</c>, <c>ca_bn</c>, <c>ca_gst_hst</c>, <c>ca_pst_bc</c>,
/// <c>ca_pst_mb</c>, <c>ca_pst_sk</c>, <c>ca_qst</c>, <c>cd_nif</c>, <c>ch_uid</c>,
/// <c>ch_vat</c>, <c>cl_tin</c>, <c>cn_tin</c>, <c>co_nit</c>, <c>cr_tin</c>,
/// <c>de_stn</c>, <c>do_rcn</c>, <c>ec_ruc</c>, <c>eg_tin</c>, <c>es_cif</c>,
/// <c>eu_oss_vat</c>, <c>eu_vat</c>, <c>gb_vat</c>, <c>ge_vat</c>, <c>gn_nif</c>,
/// <c>hk_br</c>, <c>hr_oib</c>, <c>hu_tin</c>, <c>id_npwp</c>, <c>il_vat</c>,
/// <c>in_gst</c>, <c>is_vat</c>, <c>jp_cn</c>, <c>jp_rn</c>, <c>jp_trn</c>, <c>ke_pin</c>,
/// <c>kh_tin</c>, <c>kr_brn</c>, <c>kz_bin</c>, <c>li_uid</c>, <c>li_vat</c>,
/// <c>ma_vat</c>, <c>md_vat</c>, <c>me_pib</c>, <c>mk_vat</c>, <c>mr_nif</c>,
/// <c>mx_rfc</c>, <c>my_frp</c>, <c>my_itn</c>, <c>my_sst</c>, <c>ng_tin</c>,
/// <c>no_vat</c>, <c>no_voec</c>, <c>np_pan</c>, <c>nz_gst</c>, <c>om_vat</c>,
/// <c>pe_ruc</c>, <c>ph_tin</c>, <c>ro_tin</c>, <c>rs_pib</c>, <c>ru_inn</c>,
/// <c>ru_kpp</c>, <c>sa_vat</c>, <c>sg_gst</c>, <c>sg_uen</c>, <c>si_tin</c>,
/// <c>sn_ninea</c>, <c>sr_fin</c>, <c>sv_nit</c>, <c>th_vat</c>, <c>tj_tin</c>,
/// <c>tr_tin</c>, <c>tw_vat</c>, <c>tz_vat</c>, <c>ua_vat</c>, <c>ug_tin</c>,
/// <c>unknown</c>, <c>us_ein</c>, <c>uy_ruc</c>, <c>uz_tin</c>, <c>uz_vat</c>,
/// <c>ve_rif</c>, <c>vn_tin</c>, <c>za_vat</c>, <c>zm_tin</c>, or <c>zw_tin</c>.
/// <c>ch_vat</c>, <c>cl_tin</c>, <c>cm_niu</c>, <c>cn_tin</c>, <c>co_nit</c>,
/// <c>cr_tin</c>, <c>cv_nif</c>, <c>de_stn</c>, <c>do_rcn</c>, <c>ec_ruc</c>,
/// <c>eg_tin</c>, <c>es_cif</c>, <c>et_tin</c>, <c>eu_oss_vat</c>, <c>eu_vat</c>,
/// <c>gb_vat</c>, <c>ge_vat</c>, <c>gn_nif</c>, <c>hk_br</c>, <c>hr_oib</c>, <c>hu_tin</c>,
/// <c>id_npwp</c>, <c>il_vat</c>, <c>in_gst</c>, <c>is_vat</c>, <c>jp_cn</c>, <c>jp_rn</c>,
/// <c>jp_trn</c>, <c>ke_pin</c>, <c>kg_tin</c>, <c>kh_tin</c>, <c>kr_brn</c>,
/// <c>kz_bin</c>, <c>la_tin</c>, <c>li_uid</c>, <c>li_vat</c>, <c>ma_vat</c>,
/// <c>md_vat</c>, <c>me_pib</c>, <c>mk_vat</c>, <c>mr_nif</c>, <c>mx_rfc</c>,
/// <c>my_frp</c>, <c>my_itn</c>, <c>my_sst</c>, <c>ng_tin</c>, <c>no_vat</c>,
/// <c>no_voec</c>, <c>np_pan</c>, <c>nz_gst</c>, <c>om_vat</c>, <c>pe_ruc</c>,
/// <c>ph_tin</c>, <c>ro_tin</c>, <c>rs_pib</c>, <c>ru_inn</c>, <c>ru_kpp</c>,
/// <c>sa_vat</c>, <c>sg_gst</c>, <c>sg_uen</c>, <c>si_tin</c>, <c>sn_ninea</c>,
/// <c>sr_fin</c>, <c>sv_nit</c>, <c>th_vat</c>, <c>tj_tin</c>, <c>tr_tin</c>,
/// <c>tw_vat</c>, <c>tz_vat</c>, <c>ua_vat</c>, <c>ug_tin</c>, <c>unknown</c>,
/// <c>us_ein</c>, <c>uy_ruc</c>, <c>uz_tin</c>, <c>uz_vat</c>, <c>ve_rif</c>,
/// <c>vn_tin</c>, <c>za_vat</c>, <c>zm_tin</c>, or <c>zw_tin</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class SessionWalletOptions : StripeEntity<SessionWalletOptions>
{
[JsonProperty("link")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("link")]
#endif
public SessionWalletOptionsLink Link { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class SessionWalletOptionsLink : StripeEntity<SessionWalletOptionsLink>
{
/// <summary>
/// Describes whether Checkout should display Link. Defaults to <c>auto</c>.
/// One of: <c>auto</c>, or <c>never</c>.
/// </summary>
[JsonProperty("display")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("display")]
#endif
public string Display { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ public class ConfirmationTokenPaymentMethodOptionsCard : StripeEntity<Confirmati
[STJS.JsonPropertyName("cvc_token")]
#endif
public string CvcToken { get; set; }

/// <summary>
/// Installment configuration for payments.
/// </summary>
[JsonProperty("installments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("installments")]
#endif
public ConfirmationTokenPaymentMethodOptionsCardInstallments Installments { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class ConfirmationTokenPaymentMethodOptionsCardInstallments : StripeEntity<ConfirmationTokenPaymentMethodOptionsCardInstallments>
{
[JsonProperty("plan")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("plan")]
#endif
public ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan Plan { get; set; }
}
}
Loading
Loading