Skip to content

Commit

Permalink
Update generated code for v1412
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 14, 2024
1 parent 4ec386f commit 2aa0699
Show file tree
Hide file tree
Showing 85 changed files with 1,227 additions and 326 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1409
v1412
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 @@ -6,11 +6,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")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,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")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,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")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,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")]
public bool DisableStripeUserAuthentication { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,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")]
public bool DisableStripeUserAuthentication { get; set; }
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 @@ -53,8 +53,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")]
public List<string> EventuallyDue { get; set; }
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 @@ -54,9 +54,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")]
public List<string> EventuallyDue { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,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")]
public List<string> EventuallyDue { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,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")]
public List<string> EventuallyDue { get; set; }
Expand Down
17 changes: 17 additions & 0 deletions src/Stripe.net/Entities/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ public Account Account
[JsonProperty("address_zip_check")]
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")]
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 @@ -291,6 +301,13 @@ public Customer Customer
[JsonProperty("networks")]
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")]
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
18 changes: 18 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,27 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
[JsonProperty("network_token")]
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")]
public string NetworkTransactionId { get; set; }

[JsonProperty("overcapture")]
public ChargePaymentMethodDetailsCardOvercapture Overcapture { 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")]
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
Expand Up @@ -19,33 +19,34 @@ public class SessionCustomerDetailsTaxId : StripeEntity<SessionCustomerDetailsTa
/// <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")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ public class ConfirmationTokenPaymentMethodPreviewCard : StripeEntity<Confirmati
[JsonProperty("networks")]
public ConfirmationTokenPaymentMethodPreviewCardNetworks 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")]
public string RegulatedStatus { get; set; }

/// <summary>
/// Contains details on how this Card may be used for 3D Secure authentication.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ public class DisputeEvidenceDetailsEnhancedEligibility : StripeEntity<DisputeEvi
{
[JsonProperty("visa_compelling_evidence_3")]
public DisputeEvidenceDetailsEnhancedEligibilityVisaCompellingEvidence3 VisaCompellingEvidence3 { get; set; }

[JsonProperty("visa_compliance")]
public DisputeEvidenceDetailsEnhancedEligibilityVisaCompliance VisaCompliance { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class DisputeEvidenceDetailsEnhancedEligibilityVisaCompliance : StripeEntity<DisputeEvidenceDetailsEnhancedEligibilityVisaCompliance>
{
/// <summary>
/// Visa compliance eligibility status.
/// One of: <c>fee_acknowledged</c>, or <c>requires_fee_acknowledgement</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ public class DisputeEvidenceEnhancedEvidence : StripeEntity<DisputeEvidenceEnhan
{
[JsonProperty("visa_compelling_evidence_3")]
public DisputeEvidenceEnhancedEvidenceVisaCompellingEvidence3 VisaCompellingEvidence3 { get; set; }

[JsonProperty("visa_compliance")]
public DisputeEvidenceEnhancedEvidenceVisaCompliance VisaCompliance { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class DisputeEvidenceEnhancedEvidenceVisaCompliance : StripeEntity<DisputeEvidenceEnhancedEvidenceVisaCompliance>
{
/// <summary>
/// A field acknowledging the fee incurred when countering a Visa compliance dispute. If
/// this field is set to true, evidence can be submitted for the compliance dispute. Stripe
/// collects a 500 USD (or local equivalent) amount to cover the network costs associated
/// with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win
/// the dispute.
/// </summary>
[JsonProperty("fee_acknowledged")]
public bool FeeAcknowledged { get; set; }
}
}
Loading

0 comments on commit 2aa0699

Please sign in to comment.