Skip to content

Commit

Permalink
Update generated code for v1410
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 13, 2024
1 parent 52ced27 commit 5d6f43e
Show file tree
Hide file tree
Showing 54 changed files with 723 additions and 433 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1409
v1410
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 = "2024-11-20.acacia";
public const string Current = "2024-12-18.acacia";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Stripe
public class AccountSessionComponentsAccountManagementFeatures : StripeEntity<AccountSessionComponentsAccountManagementFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// Disables Stripe user authentication for this embedded component. This value can only be
/// true for accounts where <c>controller.requirement_collection</c> is <c>application</c>.
/// The default value is the opposite of the <c>external_account_collection</c> value. For
/// example, if you don’t set <c>external_account_collection</c>, it defaults to true and
/// <c>disable_stripe_user_authentication</c> defaults to false.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Stripe
public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity<AccountSessionComponentsAccountOnboardingFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// Disables Stripe user authentication for this embedded component. This value can only be
/// true for accounts where <c>controller.requirement_collection</c> is <c>application</c>.
/// The default value is the opposite of the <c>external_account_collection</c> value. For
/// example, if you don’t set <c>external_account_collection</c>, it defaults to true and
/// <c>disable_stripe_user_authentication</c> defaults to false.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Stripe
public class AccountSessionComponentsBalancesFeatures : StripeEntity<AccountSessionComponentsBalancesFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// Disables Stripe user authentication for this embedded component. This value can only be
/// true for accounts where <c>controller.requirement_collection</c> is <c>application</c>.
/// The default value is the opposite of the <c>external_account_collection</c> value. For
/// example, if you don’t set <c>external_account_collection</c>, it defaults to true and
/// <c>disable_stripe_user_authentication</c> defaults to false.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Stripe
public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity<AccountSessionComponentsNotificationBannerFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// Disables Stripe user authentication for this embedded component. This value can only be
/// true for accounts where <c>controller.requirement_collection</c> is <c>application</c>.
/// The default value is the opposite of the <c>external_account_collection</c> value. For
/// example, if you don’t set <c>external_account_collection</c>, it defaults to true and
/// <c>disable_stripe_user_authentication</c> defaults to false.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ namespace Stripe
public class AccountSessionComponentsPayoutsFeatures : StripeEntity<AccountSessionComponentsPayoutsFeatures>
{
/// <summary>
/// Disables Stripe user authentication for this embedded component. This feature can only
/// be <c>true</c> for accounts where you’re responsible for collecting updated information
/// when requirements are due or change, like Custom accounts. The default value for this
/// feature is <c>false</c> when <c>external_account_collection</c> is enabled and
/// <c>true</c> otherwise.
/// Disables Stripe user authentication for this embedded component. This value can only be
/// true for accounts where <c>controller.requirement_collection</c> is <c>application</c>.
/// The default value is the opposite of the <c>external_account_collection</c> value. For
/// example, if you don’t set <c>external_account_collection</c>, it defaults to true and
/// <c>disable_stripe_user_authentication</c> defaults to false.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
#if NET6_0_OR_GREATER
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class AccountFutureRequirements : StripeEntity<AccountFutureRequirements>
public List<AccountFutureRequirementsError> Errors { get; set; }

/// <summary>
/// Fields that need to be collected assuming all volume thresholds are reached. As they
/// become required, they appear in <c>currently_due</c> as well.
/// Fields you must collect when all thresholds are reached. As they become required, they
/// appear in <c>currently_due</c> as well.
/// </summary>
[JsonProperty("eventually_due")]
#if NET6_0_OR_GREATER
Expand Down
5 changes: 2 additions & 3 deletions src/Stripe.net/Entities/Accounts/AccountRequirements.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ public class AccountRequirements : StripeEntity<AccountRequirements>
public List<AccountRequirementsError> Errors { get; set; }

/// <summary>
/// Fields that need to be collected assuming all volume thresholds are reached. As they
/// become required, they appear in <c>currently_due</c> as well, and
/// <c>current_deadline</c> becomes set.
/// Fields you must collect when all thresholds are reached. As they become required, they
/// appear in <c>currently_due</c> as well, and <c>current_deadline</c> becomes set.
/// </summary>
[JsonProperty("eventually_due")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class CapabilityFutureRequirements : StripeEntity<CapabilityFutureRequire
public List<CapabilityFutureRequirementsError> Errors { get; set; }

/// <summary>
/// Fields that need to be collected assuming all volume thresholds are reached. As they
/// become required, they appear in <c>currently_due</c> as well.
/// Fields you must collect when all thresholds are reached. As they become required, they
/// appear in <c>currently_due</c> as well.
/// </summary>
[JsonProperty("eventually_due")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ public class CapabilityRequirements : StripeEntity<CapabilityRequirements>
public List<AccountRequirementsError> Errors { get; set; }

/// <summary>
/// Fields that need to be collected assuming all volume thresholds are reached. As they
/// become required, they appear in <c>currently_due</c> as well, and
/// <c>current_deadline</c> becomes set.
/// Fields you must collect when all thresholds are reached. As they become required, they
/// appear in <c>currently_due</c> as well, and <c>current_deadline</c> becomes set.
/// </summary>
[JsonProperty("eventually_due")]
#if NET6_0_OR_GREATER
Expand Down
23 changes: 23 additions & 0 deletions src/Stripe.net/Entities/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,19 @@ public Account Account
#endif
public string AddressZipCheck { get; set; }

/// <summary>
/// This field indicates whether this payment method can be shown again to its customer in a
/// checkout flow. Stripe products such as Checkout and Elements use this field to determine
/// whether a payment method can be shown as a saved payment method in a checkout flow. The
/// field defaults to “unspecified”.
/// One of: <c>always</c>, <c>limited</c>, or <c>unspecified</c>.
/// </summary>
[JsonProperty("allow_redisplay")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("allow_redisplay")]
#endif
public string AllowRedisplay { get; set; }

/// <summary>
/// A set of available payout methods for this card. Only values from this set should be
/// passed as the <c>method</c> when creating a payout.
Expand Down Expand Up @@ -405,6 +418,16 @@ public Customer Customer
#endif
public CardNetworks Networks { get; set; }

/// <summary>
/// Status of a card based on the card issuer.
/// One of: <c>regulated</c>, or <c>unregulated</c>.
/// </summary>
[JsonProperty("regulated_status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("regulated_status")]
#endif
public string RegulatedStatus { get; set; }

/// <summary>
/// For external accounts that are cards, possible values are <c>new</c> and <c>errored</c>.
/// If a payout fails, the status is set to <c>errored</c> and <a
Expand Down
39 changes: 39 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
#endif
public long? AmountAuthorized { get; set; }

/// <summary>
/// The latest amount intended to be authorized by this charge.
/// </summary>
[JsonProperty("amount_requested")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount_requested")]
#endif
public long? AmountRequested { get; set; }

/// <summary>
/// Authorization code on the charge.
/// </summary>
Expand Down Expand Up @@ -228,12 +237,42 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
#endif
public ChargePaymentMethodDetailsCardNetworkToken NetworkToken { get; set; }

/// <summary>
/// This is used by the financial networks to identify a transaction. Visa calls this the
/// Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the
/// Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network
/// Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent
/// the date (MM/DD). This field will be available for successful Visa, Mastercard, or
/// American Express transactions and always null for other card brands.
/// </summary>
[JsonProperty("network_transaction_id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("network_transaction_id")]
#endif
public string NetworkTransactionId { get; set; }

[JsonProperty("overcapture")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("overcapture")]
#endif
public ChargePaymentMethodDetailsCardOvercapture Overcapture { get; set; }

[JsonProperty("partial_authorization")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("partial_authorization")]
#endif
public ChargePaymentMethodDetailsCardPartialAuthorization PartialAuthorization { get; set; }

/// <summary>
/// Status of a card based on the card issuer.
/// One of: <c>regulated</c>, or <c>unregulated</c>.
/// </summary>
[JsonProperty("regulated_status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("regulated_status")]
#endif
public string RegulatedStatus { get; set; }

/// <summary>
/// Populated if this transaction used 3D Secure authentication.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// 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 ChargePaymentMethodDetailsCardPartialAuthorization : StripeEntity<ChargePaymentMethodDetailsCardPartialAuthorization>
{
/// <summary>
/// Indicates whether the transaction requested for partial authorization feature and the
/// authorization outcome.
/// One of: <c>declined</c>, <c>fully_authorized</c>, <c>not_requested</c>, or
/// <c>partially_authorized</c>.
/// </summary>
[JsonProperty("status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("status")]
#endif
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,34 @@ public class SessionCollectedInformationTaxId : StripeEntity<SessionCollectedInf
/// <c>ca_pst_sk</c>, <c>my_sst</c>, <c>sg_gst</c>, <c>ae_trn</c>, <c>cl_tin</c>,
/// <c>sa_vat</c>, <c>id_npwp</c>, <c>my_frp</c>, <c>il_vat</c>, <c>ge_vat</c>,
/// <c>ua_vat</c>, <c>is_vat</c>, <c>bg_uic</c>, <c>hu_tin</c>, <c>si_tin</c>,
/// <c>ke_pin</c>, <c>tr_tin</c>, <c>eg_tin</c>, <c>ph_tin</c>, <c>bh_vat</c>,
/// <c>kz_bin</c>, <c>ng_tin</c>, <c>om_vat</c>, <c>de_stn</c>, <c>ch_uid</c>,
/// <c>tz_vat</c>, <c>uz_vat</c>, <c>uz_tin</c>, <c>md_vat</c>, <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>unknown</c>.
/// One of: <c>ad_nrt</c>, <c>ae_trn</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>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>ke_pin</c>, <c>tr_tin</c>, <c>eg_tin</c>, <c>ph_tin</c>, <c>al_tin</c>,
/// <c>bh_vat</c>, <c>kz_bin</c>, <c>ng_tin</c>, <c>om_vat</c>, <c>de_stn</c>,
/// <c>ch_uid</c>, <c>tz_vat</c>, <c>uz_vat</c>, <c>uz_tin</c>, <c>md_vat</c>,
/// <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>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>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>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
Loading

0 comments on commit 5d6f43e

Please sign in to comment.