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 #3035

Merged
merged 2 commits into from
Dec 12, 2024
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 @@
v1384
v1406
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 @@ -14,8 +14,19 @@ public class CreditBalanceTransactionCredit : StripeEntity<CreditBalanceTransact
#endif
public CreditBalanceTransactionCreditAmount Amount { get; set; }

/// <summary>
/// Details of the invoice to which the reinstated credits were originally applied. Only
/// present if <c>type</c> is <c>credits_application_invoice_voided</c>.
/// </summary>
[JsonProperty("credits_application_invoice_voided")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("credits_application_invoice_voided")]
#endif
public CreditBalanceTransactionCreditCreditsApplicationInvoiceVoided CreditsApplicationInvoiceVoided { get; set; }

/// <summary>
/// The type of credit transaction.
/// One of: <c>credits_application_invoice_voided</c>, or <c>credits_granted</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

#if NET6_0_OR_GREATER
[STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
#endif
public class CreditBalanceTransactionCreditCreditsApplicationInvoiceVoided : StripeEntity<CreditBalanceTransactionCreditCreditsApplicationInvoiceVoided>
{
#region Expandable Invoice

/// <summary>
/// (ID of the Invoice)
/// The invoice to which the reinstated billing credits were originally applied.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public string InvoiceId
{
get => this.InternalInvoice?.Id;
set => this.InternalInvoice = SetExpandableFieldId(value, this.InternalInvoice);
}

/// <summary>
/// (Expanded)
/// The invoice to which the reinstated billing credits were originally applied.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public Invoice Invoice
{
get => this.InternalInvoice?.ExpandedObject;
set => this.InternalInvoice = SetExpandableFieldObject(value, this.InternalInvoice);
}

[JsonProperty("invoice")]
[JsonConverter(typeof(ExpandableFieldConverter<Invoice>))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("invoice")]
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<Invoice>))]
#endif
internal ExpandableField<Invoice> InternalInvoice { get; set; }
#endregion

/// <summary>
/// The invoice line item to which the reinstated billing credits were originally applied.
/// </summary>
[JsonProperty("invoice_line_item")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("invoice_line_item")]
#endif
public string InvoiceLineItem { get; set; }
}
}
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
24 changes: 24 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,20 @@ 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")]
Expand All @@ -249,6 +263,16 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
#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
Expand Up @@ -25,24 +25,30 @@ public class SessionCollectedInformationTaxId : StripeEntity<SessionCollectedInf
/// <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>, or <c>unknown</c>.
/// One of: <c>ad_nrt</c>, <c>ae_trn</c>, <c>ar_cuit</c>, <c>au_abn</c>, <c>au_arn</c>,
/// <c>bg_uic</c>, <c>bh_vat</c>, <c>bo_tin</c>, <c>br_cnpj</c>, <c>br_cpf</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>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>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>kr_brn</c>, <c>kz_bin</c>, <c>li_uid</c>,
/// <c>li_vat</c>, <c>ma_vat</c>, <c>md_vat</c>, <c>mx_rfc</c>, <c>my_frp</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>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>sv_nit</c>, <c>th_vat</c>, <c>tr_tin</c>,
/// <c>tw_vat</c>, <c>tz_vat</c>, <c>ua_vat</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>, or
/// <c>za_vat</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
Loading