diff --git a/CHANGELOG.md b/CHANGELOG.md index 623adf016a..514f08f1a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,20 @@ This release changes the pinned API version to `2026-01-28.preview`. * Add support for snapshot event `InvoicePaymentDetached` with resource `InvoicePayment` * [#3276](https://github.com/stripe/stripe-dotnet/pull/3276) Add EventNotificationHandler example +## 50.3.0 - 2026-01-28 +This release changes the pinned API version to `2026-01-28.clover`. + +* [#3296](https://github.com/stripe/stripe-dotnet/pull/3296) Update generated code + * Add support for new resource `Radar.PaymentEvaluation` + * Add support for `Create` method on resource `Radar.PaymentEvaluation` + * Add support for `AdjustableQuantity` on `LineItem` + * Add support for `EnforceArithmeticValidation` on `PaymentIntentAmountDetailsOptions` + * Add support for `Error` on `PaymentIntent.AmountDetails` + * Remove support for `Bgn` on `Terminal.Configuration.Tipping` and `TerminalConfigurationTippingOptions` + * Add support for `Topup` on `Treasury.ReceivedDebit.LinkedFlows` + * Add support for `ContactPhone` on `V2.Core.AccountCreateOptions`, `V2.Core.AccountTokenCreateOptions`, `V2.Core.AccountUpdateOptions`, and `V2.Core.Account` + * Add support for `RegistrationDate` on `V2.Core.Account.Identity.BusinessDetails`, `V2CoreAccountIdentityBusinessDetailsOptions`, and `V2CoreAccountTokenIdentityBusinessDetailsOptions` + ## 50.2.0 - 2026-01-16 * [#3292](https://github.com/stripe/stripe-dotnet/pull/3292) Update generated code * Add support for event notifications `V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingDefaultsUpdatedEvent`, `V2CoreAccountIncludingFutureRequirementsUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, `V2CoreAccountIncludingRequirementsUpdatedEvent`, and `V2CoreAccountUpdatedEvent` with related object `V2.Core.Account` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index aa8c1d2391..17557a68f2 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -529796460735eb8ef64a29787291f1b4d4b29f1c \ No newline at end of file +e65e48569f6dfad2d5f1b58018017856520c3ae6 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 469687e756..58dae79358 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2160 \ No newline at end of file +v2186 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 463ef0b027..25bfb67af0 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-01-28.preview"; + public const string Current = "2026-02-25.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index fa4c78fb08..9440c8af83 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -1172,6 +1172,41 @@ public static class EventTypes /// public const string ReportingReportTypeUpdated = "reporting.report_type.updated"; + /// + /// Occurs when a reserve hold is created. + /// + public const string ReserveHoldCreated = "reserve.hold.created"; + + /// + /// Occurs when a reserve hold is updated. + /// + public const string ReserveHoldUpdated = "reserve.hold.updated"; + + /// + /// Occurs when a reserve plan is created. + /// + public const string ReservePlanCreated = "reserve.plan.created"; + + /// + /// Occurs when a reserve plan is disabled. + /// + public const string ReservePlanDisabled = "reserve.plan.disabled"; + + /// + /// Occurs when a reserve plan expires. + /// + public const string ReservePlanExpired = "reserve.plan.expired"; + + /// + /// Occurs when a reserve plan is updated. + /// + public const string ReservePlanUpdated = "reserve.plan.updated"; + + /// + /// Occurs when a reserve release is created. + /// + public const string ReserveReleaseCreated = "reserve.release.created"; + /// /// Occurs whenever a review is closed. The review's reason field indicates why: /// approved, disputed, refunded, refunded_as_fraud, or diff --git a/src/Stripe.net/Constants/FilePurpose.cs b/src/Stripe.net/Constants/FilePurpose.cs index eb0738cffb..884e19184f 100644 --- a/src/Stripe.net/Constants/FilePurpose.cs +++ b/src/Stripe.net/Constants/FilePurpose.cs @@ -40,5 +40,9 @@ public static class FilePurpose public const string TerminalAndroidApk = "terminal_android_apk"; public const string TerminalReaderSplashscreen = "terminal_reader_splashscreen"; + + public const string TerminalWifiCertificate = "terminal_wifi_certificate"; + + public const string TerminalWifiPrivateKey = "terminal_wifi_private_key"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/Accounts/AccountSettings.cs b/src/Stripe.net/Entities/Accounts/AccountSettings.cs index 1e02550dd0..42fa373245 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettings.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettings.cs @@ -74,6 +74,12 @@ public class AccountSettings : StripeEntity #endif public AccountSettingsSepaDebitPayments SepaDebitPayments { get; set; } + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountSettingsSmartDisputes SmartDisputes { get; set; } + [JsonProperty("tax_forms")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tax_forms")] diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs index c8379c5e9e..c0c3d3990e 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs @@ -8,6 +8,16 @@ namespace Stripe public class AccountSettingsPayments : StripeEntity { + /// + /// When enabled, the customer of this Account will receive an email receipt when their + /// payment is successful. If this parameter is not set, the default value is false. + /// + [JsonProperty("email_customers_on_successful_payment")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email_customers_on_successful_payment")] +#endif + public bool? EmailCustomersOnSuccessfulPayment { get; set; } + /// /// The default text that appears on credit card statements when a charge is made. This /// field prefixes any dynamic statement_descriptor specified on the charge. diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputes.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputes.cs new file mode 100644 index 0000000000..6835fe1d03 --- /dev/null +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputes.cs @@ -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 AccountSettingsSmartDisputes : StripeEntity + { + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountSettingsSmartDisputesAutoRespond AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputesAutoRespond.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputesAutoRespond.cs new file mode 100644 index 0000000000..e3a36edc3f --- /dev/null +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputesAutoRespond.cs @@ -0,0 +1,31 @@ +// 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 AccountSettingsSmartDisputesAutoRespond : StripeEntity + { + /// + /// The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + + /// + /// The effective value for auto-respond. Can be 'on' or 'off'. + /// One of: off, or on. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index 47c956b654..57f2ca47ab 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs index 730a39446d..82e049d9dc 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs @@ -144,6 +144,16 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -190,6 +200,16 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index bc567700a9..b28fc994ff 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -438,6 +438,18 @@ public Invoice Invoice #endif public string Locale { get; set; } + /// + /// Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SessionManagedPayments ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs index a45729d7af..1f9f471ba9 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs @@ -17,21 +17,21 @@ public class SessionCollectedInformationTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class SessionCollectedInformationTaxId : StripeEntitygb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs index dd48c60530..531e7970e2 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs @@ -10,7 +10,7 @@ namespace Stripe.Checkout public class SessionCustomFieldDropdown : StripeEntity { /// - /// The value that will pre-fill on the payment page. + /// The value that pre-fills on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs index 53efe5fb7e..8d2ff04898 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldNumeric : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs index 5be884376a..70032c5463 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldText : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs index e7dc857efe..54bc6d49ff 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextAfterSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs index 3b6e9881b5..689fe802ef 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextShippingAddress : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs index ad7d29bce2..e06a960fd9 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs index d17dd8a829..f9f6d471c4 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextTermsOfServiceAcceptance : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs index fb6c4753df..8a41e5340b 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs @@ -17,21 +17,21 @@ public class SessionCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class SessionCustomerDetailsTaxId : StripeEntitygb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs new file mode 100644 index 0000000000..6a89958324 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 SessionManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index e7c9f4f372..bdf5ef4e95 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfe { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index fd3a7302fd..20b9c6d3cf 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 90b4397635..f3e43facbf 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -151,7 +151,7 @@ public class Event : StripeEntity, IHasId, IHasObject /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing_portal.configuration.created, + /// billing.credit_grant.created, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -254,15 +254,18 @@ public class Event : StripeEntity, IHasId, IHasObject /// radar.early_fraud_warning.updated, refund.created, refund.failed, /// refund.updated, reporting.report_run.failed, /// reporting.report_run.succeeded, reporting.report_type.updated, - /// review.closed, review.opened, setup_intent.canceled, - /// setup_intent.created, setup_intent.requires_action, - /// setup_intent.setup_failed, setup_intent.succeeded, - /// sigma.scheduled_query_run.created, source.canceled, - /// source.chargeable, source.failed, source.mandate_notification, - /// source.refund_attributes_required, source.transaction.created, - /// source.transaction.updated, subscription_schedule.aborted, - /// subscription_schedule.canceled, subscription_schedule.completed, - /// subscription_schedule.created, subscription_schedule.expiring, + /// reserve.hold.created, reserve.hold.updated, reserve.plan.created, + /// reserve.plan.disabled, reserve.plan.expired, reserve.plan.updated, + /// reserve.release.created, review.closed, review.opened, + /// setup_intent.canceled, setup_intent.created, + /// setup_intent.requires_action, setup_intent.setup_failed, + /// setup_intent.succeeded, sigma.scheduled_query_run.created, + /// source.canceled, source.chargeable, source.failed, + /// source.mandate_notification, source.refund_attributes_required, + /// source.transaction.created, source.transaction.updated, + /// subscription_schedule.aborted, subscription_schedule.canceled, + /// subscription_schedule.completed, subscription_schedule.created, + /// subscription_schedule.expiring, /// subscription_schedule.price_migration_failed, /// subscription_schedule.released, subscription_schedule.updated, /// tax.form.updated, tax.settings.updated, tax_rate.created, @@ -293,9 +296,9 @@ public class Event : StripeEntity, IHasId, IHasObject /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, /// invoice_payment.detached, billing.credit_balance_transaction.created, - /// billing.credit_grant.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, or ping. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Files/File.cs b/src/Stripe.net/Entities/Files/File.cs index 141360e07e..3beae726ba 100644 --- a/src/Stripe.net/Entities/Files/File.cs +++ b/src/Stripe.net/Entities/Files/File.cs @@ -88,7 +88,8 @@ public class File : StripeEntity, IHasId, IHasObject /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, platform_terms_of_service, selfie, /// sigma_scheduled_query, tax_document_user_upload, - /// terminal_android_apk, or terminal_reader_splashscreen. + /// terminal_android_apk, terminal_reader_splashscreen, + /// terminal_wifi_certificate, or terminal_wifi_private_key. /// [JsonProperty("purpose")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index 955941bcac..2a4b33b27d 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -949,7 +949,8 @@ public Account OnBehalfOf public InvoicePaymentSettings PaymentSettings { get; set; } /// - /// Payments for this invoice. + /// Payments for this invoice. Use invoice + /// payment to get more details. /// [JsonProperty("payments")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs index 99508e7a87..7120d9c271 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs @@ -17,21 +17,21 @@ public class InvoiceCustomerTaxId : StripeEntity /// au_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class InvoiceCustomerTaxId : StripeEntity /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index bd25a5449d..c17e620601 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -42,10 +42,11 @@ public class InvoicePaymentSettings : StripeEntity /// customer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index 6af33af56b..bf7609ef74 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransf { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs index f7bd1af814..d2435a9894 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -42,8 +42,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions : Strip public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs index 20a1fdd8e2..fc1310f825 100644 --- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs +++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs @@ -8,6 +8,15 @@ namespace Stripe public class MandatePaymentMethodDetailsBacsDebit : StripeEntity { + /// + /// The display name for the account on this mandate. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + /// /// The status of the mandate on the Bacs network. Can be one of pending, /// revoked, refused, or accepted. @@ -40,6 +49,15 @@ public class MandatePaymentMethodDetailsBacsDebit : StripeEntity + /// The service user number for the account on this mandate. + /// + [JsonProperty("service_user_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_user_number")] +#endif + public string ServiceUserNumber { get; set; } + /// /// The URL that will contain the mandate that the customer has signed. /// diff --git a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index a16faf9980..6e68459889 100644 --- a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs index 8096586ba2..e3a2edfe40 100644 --- a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs @@ -17,21 +17,21 @@ public class OrderTaxDetailsTaxId : StripeEntity /// au_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class OrderTaxDetailsTaxId : StripeEntity /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs index 4f71a46db0..e0de63950e 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs @@ -9,8 +9,7 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that - /// this transaction's reader is assigned to. + /// ID of the location that this reader is assigned to. /// [JsonProperty("location")] #if NET6_0_OR_GREATER @@ -19,8 +18,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this - /// transaction was made on. + /// ID of the reader this transaction was made on. /// [JsonProperty("reader")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs index cd7e73896b..0ecabdd31e 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs @@ -18,7 +18,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay : StripeEn public string OrderId { get; set; } /// - /// Order identifier shown to the merchant in Afterpay’s online portal. + /// Order identifier shown to the merchant in Afterpay's online portal. /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs index ed24e8d833..b7e14d0b92 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCardChecks : StripeEntity { /// + /// If you provide a value for address.line1, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_line1_check")] @@ -18,6 +20,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardChecks : StripeEntity

+ /// If you provide a address postal code, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_postal_code_check")] @@ -27,6 +31,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardChecks : StripeEntity

+ /// If you provide a CVC, the check results is one of pass, fail, + /// unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("cvc_check")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs index f4fe81391b..f770a56af5 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs @@ -8,6 +8,9 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCardInstallments : StripeEntity { + ///

+ /// Installment plan selected for the payment. + /// [JsonProperty("plan")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("plan")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs index 66ea4a7719..521225bc65 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs index d7a9d046af..d35c8f70f1 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity { /// + /// For authenticated transactions: Indicates how the issuing bank authenticated the + /// customer. /// One of: challenge, or frictionless. /// [JsonProperty("authentication_flow")] @@ -18,6 +20,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn public string AuthenticationFlow { get; set; } /// + /// Indicates the outcome of 3D Secure authentication. /// One of: attempt_acknowledged, authenticated, exempted, /// failed, not_supported, or processing_error. /// @@ -28,6 +31,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn public string Result { get; set; } /// + /// Additional information about why 3D Secure succeeded or failed, based on the + /// result. /// One of: abandoned, bypassed, canceled, card_not_enrolled, /// network_not_supported, protocol_error, or rejected. /// @@ -38,6 +43,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn public string ResultReason { get; set; } /// + /// The version of 3D Secure that was used. /// One of: 1.0.2, 2.1.0, or 2.2.0. /// [JsonProperty("version")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs index 3cf2b2a168..27c9bf0a83 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs @@ -144,6 +144,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresent : StripeEnti #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -190,6 +200,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresent : StripeEnti #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs index 48cc7fcf22..56c8a40ede 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs @@ -62,7 +62,7 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity [JsonProperty("product_name")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index 3a21e47898..d74966e1bc 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -439,6 +439,15 @@ public Charge LatestCharge #endif public bool Livemode { get; set; } + /// + /// Settings for Managed Payments. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public PaymentIntentManagedPayments ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs new file mode 100644 index 0000000000..8a9082b47c --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 PaymentIntentManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index 99c36c9f93..ee098c8f27 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs index ba3ac70ac0..c206207676 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs @@ -58,6 +58,16 @@ public class PaymentIntentPaymentMethodOptionsUsBankAccount : StripeEntity + /// The purpose of the transaction. + /// One of: goods, other, services, or unspecified. + /// + [JsonProperty("transaction_purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_purpose")] +#endif + public string TransactionPurpose { get; set; } + /// /// Bank account verification method. /// One of: automatic, instant, or microdeposits. diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs index cdbd358759..e7879b89a3 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs @@ -10,7 +10,7 @@ namespace Stripe public class PaymentLinkCustomFieldDropdown : StripeEntity { /// - /// The value that will pre-fill on the payment page. + /// The value that pre-fills on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs index 9a5d6255eb..9f54969aa7 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldNumeric : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs index 94c0ac3f92..cfcfd68379 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldText : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs index a921d25d6d..5cfc5749c5 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextAfterSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs index ff5b0b53bc..a118404b98 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextShippingAddress : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs index e25982a951..c5f3fa3b56 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs index 2b24ccea5d..3ad263dba6 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextTermsOfServiceAcceptance : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index 69abf23bd5..651e3d8af2 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs index 45040df18d..948c4464de 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs @@ -9,8 +9,7 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that - /// this transaction's reader is assigned to. + /// ID of the location that this reader is assigned to. /// [JsonProperty("location")] #if NET6_0_OR_GREATER @@ -19,8 +18,7 @@ public class PaymentRecordPaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this - /// transaction was made on. + /// ID of the reader this transaction was made on. /// [JsonProperty("reader")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs index e1c30446be..247794d916 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs @@ -18,7 +18,7 @@ public class PaymentRecordPaymentMethodDetailsAfterpayClearpay : StripeEntity - /// Order identifier shown to the merchant in Afterpay’s online portal. + /// Order identifier shown to the merchant in Afterpay's online portal. /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs index 27f6964fcf..c02c7cb472 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCardChecks : StripeEntity { /// + /// If you provide a value for address.line1, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_line1_check")] @@ -18,6 +20,8 @@ public class PaymentRecordPaymentMethodDetailsCardChecks : StripeEntity + /// If you provide a address postal code, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_postal_code_check")] @@ -27,6 +31,8 @@ public class PaymentRecordPaymentMethodDetailsCardChecks : StripeEntity + /// If you provide a CVC, the check results is one of pass, fail, + /// unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("cvc_check")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs index 2cf78cae33..a6d30debd6 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs @@ -8,6 +8,9 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCardInstallments : StripeEntity { + /// + /// Installment plan selected for the payment. + /// [JsonProperty("plan")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("plan")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs index 497b00eafd..8cc7213750 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs index 0aaf45b173..d899b7bbe7 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity { /// + /// For authenticated transactions: Indicates how the issuing bank authenticated the + /// customer. /// One of: challenge, or frictionless. /// [JsonProperty("authentication_flow")] @@ -18,6 +20,7 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity + /// Indicates the outcome of 3D Secure authentication. /// One of: attempt_acknowledged, authenticated, exempted, /// failed, not_supported, or processing_error. /// @@ -28,6 +31,8 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity + /// Additional information about why 3D Secure succeeded or failed, based on the + /// result. /// One of: abandoned, bypassed, canceled, card_not_enrolled, /// network_not_supported, protocol_error, or rejected. /// @@ -38,6 +43,7 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity + /// The version of 3D Secure that was used. /// One of: 1.0.2, 2.1.0, or 2.2.0. /// [JsonProperty("version")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs index c64488af7d..7c85e52aed 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs @@ -144,6 +144,16 @@ public class PaymentRecordPaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -190,6 +200,16 @@ public class PaymentRecordPaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs index f9258babdf..1df2858120 100644 --- a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs +++ b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs @@ -55,7 +55,7 @@ public class PromotionCode : StripeEntity, IHasId, IHasMetadata, /// /// The customer-facing code. Regardless of case, this code must be unique across all active /// promotion codes for each customer. Valid characters are lower case letters (a-z), upper - /// case letters (A-Z), and digits (0-9). + /// case letters (A-Z), digits (0-9), and dashes (-). /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs index b8c588f886..d67a720f27 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs @@ -872,7 +872,8 @@ public Account OnBehalfOf public QuotePreviewInvoicePaymentSettings PaymentSettings { get; set; } /// - /// Payments for this invoice. + /// Payments for this invoice. Use invoice + /// payment to get more details. /// [JsonProperty("payments")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs index e1fd6270c2..9f7f590793 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs @@ -17,21 +17,21 @@ public class QuotePreviewInvoiceCustomerTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class QuotePreviewInvoiceCustomerTaxId : StripeEntitygb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index ebb116829d..a652e83323 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -42,10 +42,11 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntitycustomer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index 40cfc02c05..2253dfd2b8 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalan { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs index 420a44209a..dce21254aa 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -42,8 +42,7 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOpt public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs index 687af0d5c8..4a3a272398 100644 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs @@ -10,15 +10,6 @@ namespace Stripe.Radar public class PaymentEvaluationInsights : StripeEntity { - /// - /// Stripe Radar's evaluation of the likelihood of a card issuer decline on this payment. - /// - [JsonProperty("card_issuer_decline")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("card_issuer_decline")] -#endif - public PaymentEvaluationInsightsCardIssuerDecline CardIssuerDecline { get; set; } - /// /// The timestamp when the evaluation was performed. /// diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsCardIssuerDecline.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsCardIssuerDecline.cs deleted file mode 100644 index 9cdaf744a2..0000000000 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsCardIssuerDecline.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Radar -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class PaymentEvaluationInsightsCardIssuerDecline : StripeEntity - { - /// - /// Stripe Radar's evaluation of the likelihood that the payment will be declined by the - /// card issuer. Scores range from 0 to 100, with higher values indicating a higher - /// likelihood of decline. - /// - [JsonProperty("model_score")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("model_score")] -#endif - public decimal ModelScore { get; set; } - - /// - /// Recommended action based on the model score. Possible values are block and - /// continue. - /// One of: block, or continue. - /// - [JsonProperty("recommended_action")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("recommended_action")] -#endif - public string RecommendedAction { get; set; } - } -} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index bc03caff56..b0c53861dd 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -335,6 +335,12 @@ public SetupAttempt LatestAttempt #endif public bool Livemode { get; set; } + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SetupIntentManagedPayments ManagedPayments { get; set; } + #region Expandable Mandate /// diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs new file mode 100644 index 0000000000..f33ab74909 --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 SetupIntentManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index 28059643d6..47fec37f6c 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -545,6 +545,17 @@ public Invoice LatestInvoice #endif public bool Livemode { get; set; } + /// + /// Settings for Managed Payments for this Subscription and resulting Invoices and PaymentIntents. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SubscriptionManagedPayments ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs new file mode 100644 index 0000000000..32d52db77d --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 SubscriptionManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 55b799a2ef..72921093ba 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -32,10 +32,11 @@ public class SubscriptionPaymentSettings : StripeEntitycustomer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index dc90703422..ea48e1b696 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs index 87a1b0884c..7ecc07c087 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -42,8 +42,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions : public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs index b27af1c020..c9068b71e6 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs @@ -9,7 +9,7 @@ namespace Stripe public class SubscriptionTrialSettings : StripeEntity { /// - /// Defines how a subscription behaves when a free trial ends. + /// Defines how a subscription behaves when a trial ends. /// [JsonProperty("end_behavior")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs index edaecb508f..3ba4d89895 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs @@ -17,21 +17,21 @@ public class CalculationCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class CalculationCustomerDetailsTaxId : StripeEntitygb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs index c986b1ec4a..12aa3e9283 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs @@ -338,6 +338,12 @@ public class RegistrationCountryOptions : StripeEntity + { + /// + /// Type of registration in country. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs index 6b8bd9f7d8..dff8975bb7 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs @@ -17,21 +17,21 @@ public class TransactionCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class TransactionCustomerDetailsTaxId : StripeEntitygb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs index f769771c8b..c69466cc27 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxId.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs @@ -153,16 +153,16 @@ public Customer Customer /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. Note that - /// some legacy tax IDs have type unknown. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. Note that some legacy tax IDs have type unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -175,16 +175,17 @@ public Customer Customer /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs index 4cc274b23a..7b473e4a93 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs @@ -44,6 +44,12 @@ public class Configuration : StripeEntity, IHasId, IHasObject #endif public ConfigurationBbposWiseposE BbposWiseposE { get; set; } + [JsonProperty("cellular")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cellular")] +#endif + public ConfigurationCellular Cellular { get; set; } + /// /// Whether this object is deleted or not. /// @@ -106,6 +112,12 @@ public class Configuration : StripeEntity, IHasId, IHasObject #endif public ConfigurationStripeS700 StripeS700 { get; set; } + [JsonProperty("stripe_s710")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_s710")] +#endif + public ConfigurationStripeS710 StripeS710 { get; set; } + [JsonProperty("tipping")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tipping")] diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationCellular.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationCellular.cs new file mode 100644 index 0000000000..533fe3a755 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationCellular.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationCellular : StripeEntity + { + /// + /// Whether a cellular-capable reader can connect to the internet over cellular. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationStripeS710.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationStripeS710.cs new file mode 100644 index 0000000000..c5a3893089 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationStripeS710.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + 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 ConfigurationStripeS710 : StripeEntity + { + #region Expandable Splashscreen + + /// + /// (ID of the File) + /// A File ID representing an image to display on the reader. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public string SplashscreenId + { + get => this.InternalSplashscreen?.Id; + set => this.InternalSplashscreen = SetExpandableFieldId(value, this.InternalSplashscreen); + } + + /// + /// (Expanded) + /// A File ID representing an image to display on the reader. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public File Splashscreen + { + get => this.InternalSplashscreen?.ExpandedObject; + set => this.InternalSplashscreen = SetExpandableFieldObject(value, this.InternalSplashscreen); + } + + [JsonProperty("splashscreen")] + [JsonConverter(typeof(ExpandableFieldConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("splashscreen")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] +#endif + internal ExpandableField InternalSplashscreen { get; set; } + #endregion + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs index bdcf24bf00..fc9fc8e303 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs @@ -70,8 +70,9 @@ public class Reader : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// Device type of the reader. /// One of: bbpos_chipper2x, bbpos_wisepad3, bbpos_wisepos_e, - /// mobile_phone_reader, simulated_stripe_s700, simulated_wisepos_e, - /// stripe_m2, stripe_s700, or verifone_P400. + /// mobile_phone_reader, simulated_stripe_s700, simulated_stripe_s710, + /// simulated_wisepos_e, stripe_m2, stripe_s700, stripe_s710, or + /// verifone_P400. /// [JsonProperty("device_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs index 77ac3672ef..ec859934ea 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs @@ -7,6 +7,11 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Bill Setting Version is a specific configuration of a BillSetting at a point in time. + /// Bill Setting Versions enable you to track changes to bill generation and invoice + /// settings over time and manage which version is active for new billing operations. + /// public class BillSettingVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs index 0cc871b0f3..f888439053 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs @@ -8,6 +8,10 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Cadence represents a billing schedule applied to a customer, defining when and how + /// often to generate invoices, such as on monthly or annual billing cycle. + /// public class Cadence : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs index 0a1770f736..079d1f51e7 100644 --- a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs @@ -7,6 +7,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Collection Setting Version is a specific configuration of a CollectionSetting at a + /// point in time. Collection Setting Versions enable you to track changes to payment + /// collection settings over time and manage which version is active for new billing + /// operations. + /// public class CollectionSettingVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs index 8b5037d4fc..8ec3983c76 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs @@ -7,6 +7,11 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Meter Event Adjustment is used to cancel or modify previously recorded meter events. + /// Meter Event Adjustments allow you to correct billing data by canceling individual events + /// or event ranges, with tracking of adjustment status and creation time. + /// public class MeterEventAdjustment : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs index f12f3d8d27..7b88ae971f 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs @@ -7,6 +7,11 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Meter Event Session is an authentication session for the high-throughput meter event + /// API. Meter Event Sessions provide temporary authentication tokens with expiration times, + /// enabling secure and efficient bulk submission of usage events. + /// public class MeterEventSession : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs index d372b43532..39c116ceda 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs @@ -9,7 +9,9 @@ namespace Stripe.V2.Billing #endif /// - /// Fix me empty_doc_string. + /// A Meter Event is a usage record that captures billable activity for usage-based billing. + /// Meter Events contain an event name, timestamp, and payload with customer mapping and + /// usage value, enabling accurate usage tracking and billing. /// public class MeterEvent : StripeEntity, IHasObject { diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs index c23ac2fb04..f4cd2ef949 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs @@ -9,9 +9,15 @@ namespace Stripe.V2.Core #endif /// - /// A V2 Account is a representation of a company or individual that a Stripe user does - /// business with. Accounts contain the contact details, Legal Entity information, and - /// configuration required to enable the Account for use across Stripe products. + /// An Account v2 object represents a company, individual, or other entity that interacts + /// with a platform on Stripe. It contains both identifying information and properties that + /// control its behavior and functionality. An Account can have one or more configurations + /// that enable sets of related features, such as allowing it to act as a merchant or + /// customer. The Accounts v2 API supports both the Global Payouts preview feature and the + /// Connect-Billing integration preview feature. However, a particular Account can only + /// access one of them. The Connect-Billing integration preview feature allows an Account v2 + /// to pay subscription fees to a platform. An Account v1 required a separate Customer + /// object to pay subscription fees. /// public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject { diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs index 1fbe049046..f2d34c247a 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs @@ -93,6 +93,15 @@ public class AccountConfigurationMerchant : StripeEntity + /// Settings for Smart Disputes automatic response feature. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountConfigurationMerchantSmartDisputes SmartDisputes { get; set; } + /// /// Statement descriptor. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputes.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputes.cs new file mode 100644 index 0000000000..a88149d62e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputes.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSmartDisputes : StripeEntity + { + /// + /// Settings for Smart Disputes auto_respond. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountConfigurationMerchantSmartDisputesAutoRespond AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputesAutoRespond.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputesAutoRespond.cs new file mode 100644 index 0000000000..e8c2b60ac6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputesAutoRespond.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSmartDisputesAutoRespond : StripeEntity + { + /// + /// The preference for automatic dispute responses. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + + /// + /// The effective value for automatic dispute responses. + /// One of: off, or on. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs index 0d201a098a..d102c7e487 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs @@ -23,31 +23,35 @@ public class AccountConfigurationRecipientDefaultOutboundDestination : StripeEnt /// am_bank_account, at_bank_account, au_bank_account, /// ba_bank_account, be_bank_account, bg_bank_account, /// bh_bank_account, bj_bank_account, bn_bank_account, - /// bs_bank_account, bw_bank_account, card, ca_bank_account, - /// ch_bank_account, ci_bank_account, crypto_wallet, - /// cy_bank_account, cz_bank_account, de_bank_account, - /// dk_bank_account, dz_bank_account, ec_bank_account, + /// bs_bank_account, bt_bank_account, bw_bank_account, card, + /// ca_bank_account, ch_bank_account, ci_bank_account, + /// crypto_wallet, cr_bank_account, cy_bank_account, + /// cz_bank_account, de_bank_account, dk_bank_account, + /// do_bank_account, dz_bank_account, ec_bank_account, /// ee_bank_account, es_bank_account, et_bank_account, /// fi_bank_account, fr_bank_account, gb_bank_account, - /// gm_bank_account, gr_bank_account, gy_bank_account, - /// hk_bank_account, hr_bank_account, hu_bank_account, - /// id_bank_account, ie_bank_account, il_bank_account, - /// in_bank_account, is_bank_account, it_bank_account, - /// jm_bank_account, jo_bank_account, ke_bank_account, - /// kh_bank_account, kw_bank_account, lc_bank_account, - /// li_bank_account, lk_bank_account, lt_bank_account, - /// lu_bank_account, lv_bank_account, ma_bank_account, - /// mc_bank_account, mg_bank_account, mn_bank_account, - /// mt_bank_account, mu_bank_account, mx_bank_account, - /// my_bank_account, na_bank_account, nl_bank_account, - /// no_bank_account, nz_bank_account, om_bank_account, - /// pa_bank_account, ph_bank_account, pl_bank_account, - /// pt_bank_account, qa_bank_account, ro_bank_account, - /// rs_bank_account, rw_bank_account, se_bank_account, - /// sg_bank_account, si_bank_account, sk_bank_account, - /// sn_bank_account, sv_bank_account, th_bank_account, - /// tn_bank_account, tr_bank_account, tt_bank_account, - /// tz_bank_account, us_bank_account, vn_bank_account, or + /// gm_bank_account, gr_bank_account, gt_bank_account, + /// gy_bank_account, hk_bank_account, hr_bank_account, + /// hu_bank_account, id_bank_account, ie_bank_account, + /// il_bank_account, in_bank_account, is_bank_account, + /// it_bank_account, jm_bank_account, jo_bank_account, + /// ke_bank_account, kh_bank_account, kw_bank_account, + /// lc_bank_account, li_bank_account, lk_bank_account, + /// lt_bank_account, lu_bank_account, lv_bank_account, + /// ma_bank_account, mc_bank_account, md_bank_account, + /// mg_bank_account, mk_bank_account, mn_bank_account, + /// mo_bank_account, mt_bank_account, mu_bank_account, + /// mx_bank_account, my_bank_account, mz_bank_account, + /// na_bank_account, nl_bank_account, no_bank_account, + /// nz_bank_account, om_bank_account, pa_bank_account, + /// pe_bank_account, ph_bank_account, pk_bank_account, + /// pl_bank_account, pt_bank_account, qa_bank_account, + /// ro_bank_account, rs_bank_account, rw_bank_account, + /// se_bank_account, sg_bank_account, si_bank_account, + /// sk_bank_account, sn_bank_account, sv_bank_account, + /// th_bank_account, tn_bank_account, tr_bank_account, + /// tt_bank_account, tw_bank_account, tz_bank_account, + /// us_bank_account, uz_bank_account, vn_bank_account, or /// za_bank_account. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs index 32d51ceaaf..9c0634b052 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs @@ -16,7 +16,7 @@ public class AccountIdentityBusinessDetailsAnnualRevenueAmount : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs index 18c61f4bb4..973b02c764 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs @@ -16,7 +16,7 @@ public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount : Strip #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs b/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs index 2824831239..323bb2b38d 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs @@ -6,6 +6,10 @@ namespace Stripe.V2 using STJS = System.Text.Json.Serialization; #endif + /// + /// Credit Simulations represent simulated credit transactions applied to financial + /// addresses for testing purposes. + /// public class FinancialAddressCreditSimulation : StripeEntity, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs index bf1fa3f38e..4c2549ef88 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs @@ -7,6 +7,10 @@ namespace Stripe.V2 using STJS = System.Text.Json.Serialization; #endif + /// + /// Generated Microdeposits represent verification deposits sent to a financial address for + /// ownership verification, containing the deposited amounts and status. + /// public class FinancialAddressGeneratedMicrodeposits : StripeEntity, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs index d41cc533cc..253c396886 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodepositsAmount.cs @@ -16,7 +16,7 @@ public class FinancialAddressGeneratedMicrodepositsAmount : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs index 5173c0d452..c4b2a25f63 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAmount.cs @@ -16,7 +16,7 @@ public class AdjustmentAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs index 6326007886..4a88990fd0 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceAvailable.cs @@ -16,7 +16,7 @@ public class FinancialAccountBalanceAvailable : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs index 37d63037ff..63031bb474 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceInboundPending.cs @@ -16,7 +16,7 @@ public class FinancialAccountBalanceInboundPending : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs index 4f516dec2e..fcdcb869ee 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalanceOutboundPending.cs @@ -16,7 +16,7 @@ public class FinancialAccountBalanceOutboundPending : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs index f058cde6b7..3679eba592 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs @@ -8,8 +8,8 @@ namespace Stripe.V2.MoneyManagement #endif /// - /// A FinancialAddress contains information needed to transfer money to a Financial Account. - /// A Financial Account can have more than one Financial Address. + /// A Financial Address contains information needed to transfer money to a Financial + /// Account. A Financial Account can have more than one Financial Address. /// public class FinancialAddress : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs index 0c985c1344..c01061136e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferAmount.cs @@ -16,7 +16,7 @@ public class InboundTransferAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs index f310acb1ef..add3daf160 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferFromDebited.cs @@ -16,7 +16,7 @@ public class InboundTransferFromDebited : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs index f01185632a..ffabdb9c30 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferToCredited.cs @@ -16,7 +16,7 @@ public class InboundTransferToCredited : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs index 851de2fa88..b0cb94b225 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteAmount.cs @@ -16,7 +16,7 @@ public class OutboundPaymentQuoteAmount : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs index 1507b25952..c4287e7163 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteEstimatedFeeAmount.cs @@ -16,7 +16,7 @@ public class OutboundPaymentQuoteEstimatedFeeAmount : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs index 2f97f62389..d48cff4694 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteFromDebited.cs @@ -16,7 +16,7 @@ public class OutboundPaymentQuoteFromDebited : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs index 3ea3f84e39..1e8cee94e1 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteToCredited.cs @@ -16,7 +16,7 @@ public class OutboundPaymentQuoteToCredited : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs index 2d2927a6f8..2017880970 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs @@ -131,6 +131,15 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada #endif public string OutboundPaymentQuote { get; set; } + /// + /// The purpose of the OutboundPayment. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + /// /// A link to the Stripe-hosted receipt for this OutboundPayment. The receipt link remains /// active for 60 days from the OutboundPayment creation date. After this period, the link diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs index 92030279b2..9f9dd42cf8 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentAmount.cs @@ -16,7 +16,7 @@ public class OutboundPaymentAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs index 27c0a913da..b36b1d11c4 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentFromDebited.cs @@ -16,7 +16,7 @@ public class OutboundPaymentFromDebited : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs index f5f22ad86a..ccf6126cfa 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToCredited.cs @@ -16,7 +16,7 @@ public class OutboundPaymentToCredited : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs index 6dc642b9a0..a14c5770e6 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferAmount.cs @@ -16,7 +16,7 @@ public class OutboundTransferAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs index 17fcf3f492..1c207bc3ce 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferFromDebited.cs @@ -16,7 +16,7 @@ public class OutboundTransferFromDebited : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs index 4fdf13d1f5..716efad420 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToCredited.cs @@ -16,7 +16,7 @@ public class OutboundTransferToCredited : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs index d154944360..0d6a07e060 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs @@ -41,6 +41,15 @@ public class PayoutMethodBankAccount : StripeEntity #endif public string BankName { get; set; } + /// + /// The branch number of the bank account, if present. + /// + [JsonProperty("branch_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("branch_number")] +#endif + public string BranchNumber { get; set; } + /// /// The country code of the bank account. /// @@ -94,5 +103,14 @@ public class PayoutMethodBankAccount : StripeEntity [STJS.JsonPropertyName("supported_currencies")] #endif public List SupportedCurrencies { get; set; } + + /// + /// The swift code of the bank or financial institution. + /// + [JsonProperty("swift_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("swift_code")] +#endif + public string SwiftCode { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs index 01296762fc..9586b382dd 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditAmount.cs @@ -16,7 +16,7 @@ public class ReceivedCreditAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs index 073e1cfa5e..cda74e626f 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitAmount.cs @@ -16,7 +16,7 @@ public class ReceivedDebitAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactAvailable.cs index 1d23ae0e35..88520db7fc 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactAvailable.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactAvailable.cs @@ -16,7 +16,7 @@ public class TransactionEntryBalanceImpactAvailable : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs index 6fbba64e14..5a23d6fb4b 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactInboundPending.cs @@ -16,7 +16,7 @@ public class TransactionEntryBalanceImpactInboundPending : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs index 53baec0624..0218f1aa88 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryBalanceImpactOutboundPending.cs @@ -16,7 +16,7 @@ public class TransactionEntryBalanceImpactOutboundPending : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs index b814f83751..05ec85fc25 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionAmount.cs @@ -16,7 +16,7 @@ public class TransactionAmount : StripeEntity #if NET6_0_OR_GREATER [STJS.JsonPropertyName("value")] #endif - public long? Value { get; set; } + public long Value { get; set; } /// /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs index 374c251df4..3d6e473ee3 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactAvailable.cs @@ -16,7 +16,7 @@ public class TransactionBalanceImpactAvailable : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs index 8d4f094023..9ee411dc26 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactInboundPending.cs @@ -16,7 +16,7 @@ public class TransactionBalanceImpactInboundPending : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs index 5a3ae73275..fa9a0757d0 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionBalanceImpactOutboundPending.cs @@ -16,7 +16,7 @@ public class TransactionBalanceImpactOutboundPending : StripeEntity /// Three-letter ISO currency diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs index ea088b839e..c70820d6db 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs @@ -99,6 +99,15 @@ public class AccountSettingsOptions : INestedOptions #endif public AccountSettingsPaypayPaymentsOptions PaypayPayments { get; set; } + /// + /// Settings specific to the account's use of Smart Disputes. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountSettingsSmartDisputesOptions SmartDisputes { get; set; } + /// /// Settings specific to the account's tax forms. /// diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs index 94fc683e9c..ed3d1bf1be 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs @@ -8,6 +8,17 @@ namespace Stripe public class AccountSettingsPaymentsOptions : INestedOptions { + /// + /// When you enable this parameter, the customer of this Account receives an email receipt + /// when their payment succeeds. If this parameter isn't set, the default value is + /// false. + /// + [JsonProperty("email_customers_on_successful_payment")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email_customers_on_successful_payment")] +#endif + public bool? EmailCustomersOnSuccessfulPayment { get; set; } + /// /// The default text that appears on statements for non-card charges outside of Japan. For /// card charges, if you don't set a statement_descriptor_prefix, this text is also diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesAutoRespondOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesAutoRespondOptions.cs new file mode 100644 index 0000000000..af67858a2f --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesAutoRespondOptions.cs @@ -0,0 +1,21 @@ +// 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 AccountSettingsSmartDisputesAutoRespondOptions : INestedOptions + { + /// + /// The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesOptions.cs new file mode 100644 index 0000000000..d2d0ed16c0 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesOptions.cs @@ -0,0 +1,20 @@ +// 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 AccountSettingsSmartDisputesOptions : INestedOptions + { + /// + /// Smart Disputes auto-respond settings for the account. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountSettingsSmartDisputesAutoRespondOptions AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs b/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs index 21a59dbe1a..0c783f768f 100644 --- a/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs +++ b/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs @@ -20,7 +20,7 @@ public class AlertUsageThresholdOptions : INestedOptions public List Filters { get; set; } /// - /// Defines at which value the alert will fire. + /// Defines the threshold value that triggers the alert. /// [JsonProperty("gte")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs index 15ec619cab..7cb1ed2f57 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs @@ -10,7 +10,7 @@ public class SessionCreateOptions : BaseOptions { /// /// The ID of an existing configuration to + /// href="https://docs.stripe.com/api/customer_portal/configurations">configuration to /// use for this session, describing its functionality and features. If not specified, the /// session uses the default configuration. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 018f4cfaa5..89827b12d3 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -306,6 +306,18 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata #endif public string Locale { get; set; } + /// + /// Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SessionManagedPaymentsOptions ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs index c3cc7e8282..a39eb57ce0 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs @@ -10,8 +10,8 @@ namespace Stripe.Checkout public class SessionCustomFieldDropdownOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page.Must match a value in - /// the options array. + /// The value that pre-fills the field on the payment page.Must match a value in the + /// options array. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs index 339f5982b2..3b4b7fa371 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldNumericOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs index 9bc477c0de..ca97514fed 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldTextOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs index c803f9e155..673d4735de 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextAfterSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs index 44676934e7..5c603c618a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextShippingAddressOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs index f9a7c09811..d52241f355 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs index dcdde77fc9..da069c6f9a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextTermsOfServiceAcceptanceOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs new file mode 100644 index 0000000000..216cb88241 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs @@ -0,0 +1,22 @@ +// 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 SessionManagedPaymentsOptions : INestedOptions + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 53bef818d1..7fca8eceea 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfe { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs index 06e59f7cdc..9988a547b7 100644 --- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs +++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs @@ -50,8 +50,9 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions public long? Quantity { get; set; } /// - /// A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with - /// tax_rates. + /// A list of up to 10 tax amounts for the credit note line item. Not valid when + /// tax_rates is used or if invoice is set up with + /// automatic_tax[enabled]=true. /// [JsonProperty("tax_amounts")] #if NET6_0_OR_GREATER @@ -61,7 +62,7 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions /// /// The tax rates which apply to the credit note line item. Only valid when the type - /// is custom_line_item and cannot be mixed with tax_amounts. + /// is custom_line_item and tax_amounts is not used. /// [JsonProperty("tax_rates")] #if NET6_0_OR_GREATER @@ -71,7 +72,8 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions /// /// Type of the credit note line item, one of invoice_line_item or - /// custom_line_item. + /// custom_line_item. custom_line_item is not valid when the invoice is set up + /// with automatic_tax[enabled]=true. /// One of: custom_line_item, or invoice_line_item. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs index 8c7c6d3d98..a5fbd2cdce 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs @@ -50,8 +50,9 @@ public class CreditNoteLineOptions : INestedOptions public long? Quantity { get; set; } /// - /// A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with - /// tax_rates. + /// A list of up to 10 tax amounts for the credit note line item. Not valid when + /// tax_rates is used or if invoice is set up with + /// automatic_tax[enabled]=true. /// [JsonProperty("tax_amounts")] #if NET6_0_OR_GREATER @@ -61,7 +62,7 @@ public class CreditNoteLineOptions : INestedOptions /// /// The tax rates which apply to the credit note line item. Only valid when the type - /// is custom_line_item and cannot be mixed with tax_amounts. + /// is custom_line_item and tax_amounts is not used. /// [JsonProperty("tax_rates")] #if NET6_0_OR_GREATER @@ -71,7 +72,8 @@ public class CreditNoteLineOptions : INestedOptions /// /// Type of the credit note line item, one of invoice_line_item or - /// custom_line_item. + /// custom_line_item. custom_line_item is not valid when the invoice is set up + /// with automatic_tax[enabled]=true. /// One of: custom_line_item, or invoice_line_item. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs index 58e957056a..224803d770 100644 --- a/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class CustomerFundingInstructionsBankTransferEuBankTransferOptions : INes { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs index b24f940c0e..a256c9f95f 100644 --- a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs @@ -22,15 +22,16 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, + /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs index 3e3e3dcde6..2e345f968e 100644 --- a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs @@ -22,15 +22,16 @@ public class CustomerTaxIdDataOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class CustomerTaxIdDataOptions : INestedOptions /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, + /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Files/FileCreateOptions.cs b/src/Stripe.net/Services/Files/FileCreateOptions.cs index 9dfc810809..b62df336e9 100644 --- a/src/Stripe.net/Services/Files/FileCreateOptions.cs +++ b/src/Stripe.net/Services/Files/FileCreateOptions.cs @@ -35,7 +35,8 @@ public class FileCreateOptions : BaseOptions /// business_icon, business_logo, customer_signature, /// dispute_evidence, identity_document, issuing_regulatory_reporting, /// pci_document, platform_terms_of_service, tax_document_user_upload, - /// terminal_android_apk, or terminal_reader_splashscreen. + /// terminal_android_apk, terminal_reader_splashscreen, + /// terminal_wifi_certificate, or terminal_wifi_private_key. /// [JsonProperty("purpose")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Files/FileListOptions.cs b/src/Stripe.net/Services/Files/FileListOptions.cs index 16b89ec9a4..a0477265fe 100644 --- a/src/Stripe.net/Services/Files/FileListOptions.cs +++ b/src/Stripe.net/Services/Files/FileListOptions.cs @@ -31,7 +31,8 @@ public class FileListOptions : ListOptions /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, platform_terms_of_service, selfie, /// sigma_scheduled_query, tax_document_user_upload, - /// terminal_android_apk, or terminal_reader_splashscreen. + /// terminal_android_apk, terminal_reader_splashscreen, + /// terminal_wifi_certificate, or terminal_wifi_private_key. /// [JsonProperty("purpose")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs index b8ebd3ac04..03993ab670 100644 --- a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.FinancialConnections public class SessionManualEntryOptions : INestedOptions { /// - /// Whether manual entry will be handled by Stripe during the Session. + /// How manual entry should be handled. /// One of: automatic, or custom. /// [JsonProperty("mode")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs index 804bb9bac7..ab5a2b2a43 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs @@ -22,15 +22,16 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, + /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 27359c35c3..3299ae5284 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -42,10 +42,11 @@ public class InvoicePaymentSettingsOptions : INestedOptions /// customer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 105fd1f4c6..e553fa02f2 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransf { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs index 2f8e40eb96..5f07ea034a 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -42,8 +42,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 7d7e93d1ed..cd24f4ed82 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs index cc40234d80..bed72e8e5b 100644 --- a/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs @@ -22,15 +22,16 @@ public class OrderTaxDetailsTaxIdOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class OrderTaxDetailsTaxIdOptions : INestedOptions /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, + /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs index d232c2f22f..cd68a9758c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs @@ -44,7 +44,7 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions /// The product name of the line item. Required for L3 rates. At most 1024 characters long. /// /// For Cards, this field is truncated to 26 alphanumeric characters before being sent to - /// the card networks. For Paypal, this field is truncated to 127 characters. + /// the card networks. For PayPal, this field is truncated to 127 characters. /// [JsonProperty("product_name")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs index b95fe37b51..9534ff7a25 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions : { /// /// Identifier that categorizes the items being purchased using a standardized commodity - /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. /// [JsonProperty("commodity_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs index 55ca30ab59..88527fd3ea 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOp { /// /// Identifier that categorizes the items being purchased using a standardized commodity - /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. /// [JsonProperty("commodity_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs index 7db3ef8dc5..e1e4d705da 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs @@ -9,8 +9,8 @@ namespace Stripe public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INestedOptions { /// - /// This sub-hash contains line item details that are specific to card payment - /// method.". + /// This sub-hash contains line item details that are specific to the card payment + /// method. /// [JsonProperty("card")] #if NET6_0_OR_GREATER @@ -19,8 +19,8 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INe public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions Card { get; set; } /// - /// This sub-hash contains line item details that are specific to card_present - /// payment method.". + /// This sub-hash contains line item details that are specific to the card_present + /// payment method. /// [JsonProperty("card_present")] #if NET6_0_OR_GREATER @@ -29,8 +29,8 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INe public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions CardPresent { get; set; } /// - /// This sub-hash contains line item details that are specific to klarna payment - /// method.". + /// This sub-hash contains line item details that are specific to the klarna payment + /// method. /// [JsonProperty("klarna")] #if NET6_0_OR_GREATER @@ -39,8 +39,8 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INe public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions Klarna { get; set; } /// - /// This sub-hash contains line item details that are specific to paypal payment - /// method.". + /// This sub-hash contains line item details that are specific to the paypal payment + /// method. /// [JsonProperty("paypal")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs index c48097088e..834035f014 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -32,8 +32,8 @@ public class PaymentIntentAmountDetailsOptions : INestedOptions /// fails. Use this for strict validation that prevents processing with line item data that /// has arithmetic inconsistencies. /// - /// For card payments, Stripe doesn't send line item data if there's an arithmetic - /// validation error to card networks. + /// For card payments, Stripe doesn't send line item data to card networks if there's an + /// arithmetic validation error. /// [JsonProperty("enforce_arithmetic_validation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 9082dfb5c4..7ce9b071b1 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs index 7dc575a6de..c9802d8dee 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs @@ -87,6 +87,16 @@ public class PaymentIntentPaymentMethodOptionsUsBankAccountOptions : INestedOpti #endif public string TargetDate { get; set; } + /// + /// The purpose of the transaction. + /// One of: goods, other, services, or unspecified. + /// + [JsonProperty("transaction_purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_purpose")] +#endif + public string TransactionPurpose { get; set; } + /// /// Bank account verification method. /// One of: automatic, instant, or microdeposits. diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs index 60cf1c96f0..d647439c97 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs @@ -10,8 +10,8 @@ namespace Stripe public class PaymentLinkCustomFieldDropdownOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page.Must match a value in - /// the options array. + /// The value that pre-fills the field on the payment page.Must match a value in the + /// options array. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs index fe0ef1e974..9ae0b7aece 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldNumericOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs index 0d93430830..31e31bdbc7 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldTextOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs index 51f46d5677..edd4e137c1 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextAfterSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs index d90f30095f..f088ea6e05 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextShippingAddressOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs index cd3a0e38ea..a7c8618bba 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs index 9b1fd94bf0..a00b6dd339 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextTermsOfServiceAcceptanceOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index c9661634ff..9f46fba392 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -141,6 +141,20 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata #endif public PaymentLinkNameCollectionOptions NameCollection { get; set; } + /// + /// A list of optional items the customer can add to their order at checkout. Use this + /// parameter to pass one-time or recurring Prices. There is a maximum of 10 optional + /// items allowed on a payment link, and the existing limits on the number of line items + /// allowed on a payment link apply to the combined number of line items and optional items. + /// There is a maximum of 20 combined line items and optional items. + /// + [JsonProperty("optional_items")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("optional_items")] +#endif + public List OptionalItems { get; set; } + /// /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in /// payment mode. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs index 35d532eed2..2eb67ed5d2 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs @@ -22,6 +22,12 @@ public class PaymentRecordReportPaymentAttemptCanceledOptions : BaseOptions, IHa #endif public DateTime? CanceledAt { get; set; } + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// [JsonProperty("metadata")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("metadata")] diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs index cd36873e63..15728cb66d 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs @@ -22,6 +22,12 @@ public class PaymentRecordReportPaymentAttemptFailedOptions : BaseOptions, IHasM #endif public DateTime? FailedAt { get; set; } + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// [JsonProperty("metadata")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("metadata")] diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs index da6406a5dc..d74c1040ac 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs @@ -22,6 +22,12 @@ public class PaymentRecordReportPaymentAttemptGuaranteedOptions : BaseOptions, I #endif public DateTime? GuaranteedAt { get; set; } + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// [JsonProperty("metadata")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("metadata")] diff --git a/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs b/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs index ccbab14908..5244350041 100644 --- a/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs +++ b/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs @@ -23,7 +23,7 @@ public class PromotionCodeCreateOptions : BaseOptions, IHasMetadata /// /// The customer-facing code. Regardless of case, this code must be unique across all active /// promotion codes for a specific customer. Valid characters are lower case letters (a-z), - /// upper case letters (A-Z), and digits (0-9). + /// upper case letters (A-Z), digits (0-9), and dashes (-). /// /// If left blank, we will generate one automatically. /// diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs index cf13d23d08..70b3877ba7 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs @@ -20,6 +20,43 @@ public class SubscriptionItemDeleteOptions : BaseOptions #endif public bool? ClearUsage { get; set; } + /// + /// Use allow_incomplete to transition the subscription to status=past_due if + /// a payment is required but cannot be paid. This allows you to manage scenarios where + /// additional user actions are needed to pay a subscription's invoice. For example, SCA + /// regulation may require 3DS authentication to complete payment. See the SCA + /// Migration Guide for Billing to learn more. This is the default behavior. + /// + /// Use default_incomplete to transition the subscription to status=past_due + /// when payment is required and await explicit confirmation of the invoice's payment + /// intent. This allows simpler management of scenarios where additional user actions are + /// needed to pay a subscription’s invoice. Such as failed payments, SCA + /// regulation, or collecting a mandate for a bank debit payment method. + /// + /// Use pending_if_incomplete to update the subscription using pending + /// updates. When you use pending_if_incomplete you can only pass the parameters + /// supported + /// by pending updates. + /// + /// Use error_if_incomplete if you want Stripe to return an HTTP 402 status code if a + /// subscription's invoice cannot be paid. For example, if a payment method requires 3DS + /// authentication due to SCA regulation and further user action is needed, this parameter + /// does not update the subscription and returns an error instead. This was the default + /// behavior for API versions prior to 2019-03-14. See the changelog to learn more. + /// One of: allow_incomplete, default_incomplete, error_if_incomplete, + /// or pending_if_incomplete. + /// + [JsonProperty("payment_behavior")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_behavior")] +#endif + public string PaymentBehavior { get; set; } + /// /// Determines how to handle prorations when the diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index e13c9a7481..28b6a51aec 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -32,10 +32,11 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions /// customer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 527cd9a931..9397ae29e5 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs index 5482e68385..3622ca8435 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -42,8 +42,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOpt public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index 4a0f53304f..e12ec294ca 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -203,11 +203,11 @@ public virtual Task MigrateAsync(string id, SubscriptionMigrateOpt /// ///

Initiates resumption of a paused subscription, optionally resetting the billing cycle - /// anchor and creating prorations. If a resumption invoice is generated, it must be paid or - /// marked uncollectible before the subscription will be unpaused. If payment succeeds the - /// subscription will become active, and if payment fails the subscription will be - /// past_due. The resumption invoice will void automatically if not paid by the - /// expiration date.

. + /// anchor and creating prorations. If no resumption invoice is generated, the subscription + /// becomes active immediately. If a resumption invoice is generated, the + /// subscription remains paused until the invoice is paid or marked uncollectible. If + /// the invoice is not paid by the expiration date, it is voided and the subscription + /// remains paused.

. ///
public virtual Subscription Resume(string id, SubscriptionResumeOptions options = null, RequestOptions requestOptions = null) { @@ -216,11 +216,11 @@ public virtual Subscription Resume(string id, SubscriptionResumeOptions options /// ///

Initiates resumption of a paused subscription, optionally resetting the billing cycle - /// anchor and creating prorations. If a resumption invoice is generated, it must be paid or - /// marked uncollectible before the subscription will be unpaused. If payment succeeds the - /// subscription will become active, and if payment fails the subscription will be - /// past_due. The resumption invoice will void automatically if not paid by the - /// expiration date.

. + /// anchor and creating prorations. If no resumption invoice is generated, the subscription + /// becomes active immediately. If a resumption invoice is generated, the + /// subscription remains paused until the invoice is paid or marked uncollectible. If + /// the invoice is not paid by the expiration date, it is voided and the subscription + /// remains paused.

. ///
public virtual Task ResumeAsync(string id, SubscriptionResumeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs index 78150e0f8f..d1057ba717 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs @@ -22,15 +22,16 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, + /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. ///
[JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLkOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLkOptions.cs new file mode 100644 index 0000000000..f784f47416 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLkOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsLkOptions : INestedOptions + { + /// + /// Type of registration to be created in country. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs index 63143a47f0..b929e89f53 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs @@ -503,6 +503,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions #endif public RegistrationCountryOptionsLaOptions La { get; set; } + /// + /// Options for the registration in LK. + /// + [JsonProperty("lk")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lk")] +#endif + public RegistrationCountryOptionsLkOptions Lk { get; set; } + /// /// Options for the registration in LT. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs index 7f9f086e23..92749b9571 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs @@ -10,10 +10,11 @@ public class RegistrationCountryOptionsUsLocalAmusementTaxOptions : INestedOptio { /// /// A FIPS code - /// representing the local jurisdiction. Supported FIPS codes are: 14000 (Chicago), - /// 02154 (Arlington Heights), 06613 (Bloomington), 10906 (Campton - /// Hills), 21696 (East Dundee), 24582 (Evanston), 45421 (Lynwood), - /// 48892 (Midlothian), 64343 (River Grove), and 68081 (Schiller Park). + /// representing the local jurisdiction. Supported FIPS codes are: 02154 (Arlington + /// Heights), 05248 (Bensenville), 06613 (Bloomington), 10906 (Campton + /// Hills), 14000 (Chicago), 21696 (East Dundee), 24582 (Evanston), + /// 45421 (Lynwood), 48892 (Midlothian), 64343 (River Grove), + /// 64421 (Riverside), 65806 (Roselle), and 68081 (Schiller Park). /// [JsonProperty("jurisdiction")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs index 1753779bc5..1208ca90ed 100644 --- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs @@ -31,15 +31,16 @@ public class TaxIdCreateOptions : BaseOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// lk_vat, ma_vat, md_vat, me_pib, mk_vat, + /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, + /// ng_tin, no_vat, no_voec, np_pan, nz_gst, + /// om_vat, pe_ruc, ph_tin, pl_nip, ro_tin, + /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst, + /// sg_uen, si_tin, sn_ninea, sr_fin, sv_nit, + /// th_vat, tj_tin, tr_tin, tw_vat, tz_vat, + /// ua_vat, ug_tin, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -52,16 +53,16 @@ public class TaxIdCreateOptions : BaseOptions /// gb_vat, ge_vat, gn_nif, hk_br, hr_oib, hu_tin, /// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn, /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, li_uid, li_vat, ma_vat, - /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, - /// my_frp, my_itn, my_sst, ng_tin, no_vat, - /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, - /// ph_tin, pl_nip, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_vat, + /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, + /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, + /// no_vat, no_voec, np_pan, nz_gst, om_vat, + /// pe_ruc, ph_tin, pl_nip, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, + /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. ///
[JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCellularOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCellularOptions.cs new file mode 100644 index 0000000000..d0e5f84718 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCellularOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationCellularOptions : INestedOptions + { + /// + /// Determines whether to allow the reader to connect to a cellular network. Defaults to + /// false. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs index 018fff4d28..513fec4d26 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs @@ -26,6 +26,15 @@ public class ConfigurationCreateOptions : BaseOptions #endif public ConfigurationBbposWiseposEOptions BbposWiseposE { get; set; } + /// + /// Configuration for cellular connectivity. + /// + [JsonProperty("cellular")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cellular")] +#endif + public ConfigurationCellularOptions Cellular { get; set; } + /// /// Name of the configuration. /// @@ -71,6 +80,15 @@ public class ConfigurationCreateOptions : BaseOptions #endif public ConfigurationStripeS700Options StripeS700 { get; set; } + /// + /// An object containing device type specific settings for Stripe S710 readers. + /// + [JsonProperty("stripe_s710")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_s710")] +#endif + public ConfigurationStripeS710Options StripeS710 { get; set; } + /// /// Tipping configurations for readers that support on-reader tips. /// diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS710Options.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS710Options.cs new file mode 100644 index 0000000000..cb048682f6 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS710Options.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationStripeS710Options : INestedOptions + { + /// + /// A File ID representing an image you want to display on the reader. + /// + [JsonProperty("splashscreen")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("splashscreen")] +#endif + public string Splashscreen { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs index f24685e0da..39e052918c 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs @@ -26,6 +26,15 @@ public class ConfigurationUpdateOptions : BaseOptions #endif public ConfigurationBbposWiseposEOptions BbposWiseposE { get; set; } + /// + /// Configuration for cellular connectivity. + /// + [JsonProperty("cellular")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cellular")] +#endif + public ConfigurationCellularOptions Cellular { get; set; } + /// /// Name of the configuration. /// @@ -72,7 +81,16 @@ public class ConfigurationUpdateOptions : BaseOptions public ConfigurationStripeS700Options StripeS700 { get; set; } /// - /// Tipping configurations for readers. supporting on-reader tips. + /// An object containing device type specific settings for Stripe S710 readers. + /// + [JsonProperty("stripe_s710")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_s710")] +#endif + public ConfigurationStripeS710Options StripeS710 { get; set; } + + /// + /// Tipping configurations for readers that support on-reader tips. /// [JsonProperty("tipping")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs index fb255cc549..c63ac3aa92 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs @@ -11,8 +11,9 @@ public class ReaderListOptions : ListOptions /// /// Filters readers by device type. /// One of: bbpos_chipper2x, bbpos_wisepad3, bbpos_wisepos_e, - /// mobile_phone_reader, simulated_stripe_s700, simulated_wisepos_e, - /// stripe_m2, stripe_s700, or verifone_P400. + /// mobile_phone_reader, simulated_stripe_s700, simulated_stripe_s710, + /// simulated_wisepos_e, stripe_m2, stripe_s700, stripe_s710, or + /// verifone_P400. /// [JsonProperty("device_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs index a35f22cccb..f3fb8bd434 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs @@ -73,6 +73,15 @@ public class AccountCreateConfigurationMerchantOptions : INestedOptions #endif public AccountCreateConfigurationMerchantScriptStatementDescriptorOptions ScriptStatementDescriptor { get; set; } + /// + /// Settings used for Smart Disputes. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountCreateConfigurationMerchantSmartDisputesOptions SmartDisputes { get; set; } + /// /// Statement descriptor. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions.cs new file mode 100644 index 0000000000..eed3ceb5b6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions : INestedOptions + { + /// + /// The preference for Smart Disputes auto-respond. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesOptions.cs new file mode 100644 index 0000000000..7ec2f09bad --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantSmartDisputesOptions : INestedOptions + { + /// + /// Settings for Smart Disputes auto_respond. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs index 272d6d1d3b..d3353bf7fe 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs @@ -83,6 +83,15 @@ public class AccountUpdateConfigurationMerchantOptions : INestedOptions #endif public AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions ScriptStatementDescriptor { get; set; } + /// + /// Settings for Smart Disputes automatic response feature. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountUpdateConfigurationMerchantSmartDisputesOptions SmartDisputes { get; set; } + /// /// Settings for the default statement descriptor text. diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions.cs new file mode 100644 index 0000000000..0ac4c4b568 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions : INestedOptions + { + /// + /// The preference for automatic dispute responses. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesOptions.cs new file mode 100644 index 0000000000..753eb96bf5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantSmartDisputesOptions : INestedOptions + { + /// + /// Settings for Smart Disputes auto_respond. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs index c6c3eed433..d9521596f1 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -66,6 +66,15 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata #endif public string OutboundPaymentQuote { get; set; } + /// + /// The purpose of the OutboundPayment. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + /// /// Details about the notification settings for the OutboundPayment recipient. /// diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 50e2cfbce6..e961d7e1b7 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -43,7 +43,7 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, /// 2025-06-30.basil, 2025-07-30.basil, 2025-08-27.basil, /// 2025-09-30.clover, 2025-10-29.clover, 2025-11-17.clover, - /// 2025-12-15.clover, or 2026-01-28.clover. + /// 2025-12-15.clover, 2026-01-28.clover, or 2026-02-25.clover. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER @@ -80,7 +80,7 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing_portal.configuration.created, + /// billing.credit_grant.created, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -183,15 +183,18 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// radar.early_fraud_warning.updated, refund.created, refund.failed, /// refund.updated, reporting.report_run.failed, /// reporting.report_run.succeeded, reporting.report_type.updated, - /// review.closed, review.opened, setup_intent.canceled, - /// setup_intent.created, setup_intent.requires_action, - /// setup_intent.setup_failed, setup_intent.succeeded, - /// sigma.scheduled_query_run.created, source.canceled, - /// source.chargeable, source.failed, source.mandate_notification, - /// source.refund_attributes_required, source.transaction.created, - /// source.transaction.updated, subscription_schedule.aborted, - /// subscription_schedule.canceled, subscription_schedule.completed, - /// subscription_schedule.created, subscription_schedule.expiring, + /// reserve.hold.created, reserve.hold.updated, reserve.plan.created, + /// reserve.plan.disabled, reserve.plan.expired, reserve.plan.updated, + /// reserve.release.created, review.closed, review.opened, + /// setup_intent.canceled, setup_intent.created, + /// setup_intent.requires_action, setup_intent.setup_failed, + /// setup_intent.succeeded, sigma.scheduled_query_run.created, + /// source.canceled, source.chargeable, source.failed, + /// source.mandate_notification, source.refund_attributes_required, + /// source.transaction.created, source.transaction.updated, + /// subscription_schedule.aborted, subscription_schedule.canceled, + /// subscription_schedule.completed, subscription_schedule.created, + /// subscription_schedule.expiring, /// subscription_schedule.price_migration_failed, /// subscription_schedule.released, subscription_schedule.updated, /// tax.form.updated, tax.settings.updated, tax_rate.created, @@ -222,9 +225,9 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, /// invoice_payment.detached, billing.credit_balance_transaction.created, - /// billing.credit_grant.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, or ping. ///
[JsonProperty("enabled_events")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 1235b1ac00..5f70ea868d 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -37,7 +37,7 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing_portal.configuration.created, + /// billing.credit_grant.created, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -140,15 +140,18 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// radar.early_fraud_warning.updated, refund.created, refund.failed, /// refund.updated, reporting.report_run.failed, /// reporting.report_run.succeeded, reporting.report_type.updated, - /// review.closed, review.opened, setup_intent.canceled, - /// setup_intent.created, setup_intent.requires_action, - /// setup_intent.setup_failed, setup_intent.succeeded, - /// sigma.scheduled_query_run.created, source.canceled, - /// source.chargeable, source.failed, source.mandate_notification, - /// source.refund_attributes_required, source.transaction.created, - /// source.transaction.updated, subscription_schedule.aborted, - /// subscription_schedule.canceled, subscription_schedule.completed, - /// subscription_schedule.created, subscription_schedule.expiring, + /// reserve.hold.created, reserve.hold.updated, reserve.plan.created, + /// reserve.plan.disabled, reserve.plan.expired, reserve.plan.updated, + /// reserve.release.created, review.closed, review.opened, + /// setup_intent.canceled, setup_intent.created, + /// setup_intent.requires_action, setup_intent.setup_failed, + /// setup_intent.succeeded, sigma.scheduled_query_run.created, + /// source.canceled, source.chargeable, source.failed, + /// source.mandate_notification, source.refund_attributes_required, + /// source.transaction.created, source.transaction.updated, + /// subscription_schedule.aborted, subscription_schedule.canceled, + /// subscription_schedule.completed, subscription_schedule.created, + /// subscription_schedule.expiring, /// subscription_schedule.price_migration_failed, /// subscription_schedule.released, subscription_schedule.updated, /// tax.form.updated, tax.settings.updated, tax_rate.created, @@ -179,9 +182,9 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, /// invoice_payment.detached, billing.credit_balance_transaction.created, - /// billing.credit_grant.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, or ping. ///
[JsonProperty("enabled_events")] #if NET6_0_OR_GREATER diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 9a70ac1cdb..23b2e65d94 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -7364,7 +7364,7 @@ public void TestV2MoneyManagementAdjustmentGet() HttpMethod.Get, "/v2/money_management/adjustments", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.StripeList adjustments = service @@ -7381,7 +7381,7 @@ public void TestV2MoneyManagementAdjustmentGet2() HttpMethod.Get, "/v2/money_management/adjustments/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.adjustment\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.MoneyManagement.Adjustment adjustment = service.Get( @@ -7398,7 +7398,7 @@ public void TestV2MoneyManagementFinancialAccountGet() HttpMethod.Get, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"data\":[{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.StripeList financialAccounts = service @@ -7415,7 +7415,7 @@ public void TestV2MoneyManagementFinancialAccountPost() HttpMethod.Post, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountCreateOptions { Type = "storage", @@ -7436,7 +7436,7 @@ public void TestV2MoneyManagementFinancialAccountGet2() HttpMethod.Get, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -7453,7 +7453,7 @@ public void TestV2MoneyManagementFinancialAccountPost2() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; @@ -7471,7 +7471,7 @@ public void TestV2MoneyManagementFinancialAccountPost3() HttpMethod.Post, "/v2/money_management/financial_accounts/id_123/close", (HttpStatusCode)200, - "{\"balance\":{\"available\":{\"key\":{}},\"inbound_pending\":{\"key\":{}},\"outbound_pending\":{\"key\":{}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); + "{\"balance\":{\"available\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"inbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}},\"outbound_pending\":{\"key\":{\"value\":111972721,\"currency\":\"usd\"}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"status\":\"closed\",\"type\":\"other\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -7544,7 +7544,7 @@ public void TestV2MoneyManagementInboundTransferGet() HttpMethod.Get, "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.StripeList inboundTransfers = service @@ -7561,7 +7561,7 @@ public void TestV2MoneyManagementInboundTransferPost() HttpMethod.Post, "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.InboundTransferCreateOptions { Amount = new Stripe.V2.MoneyManagement.InboundTransferCreateAmountOptions @@ -7596,7 +7596,7 @@ public void TestV2MoneyManagementInboundTransferGet2() HttpMethod.Get, "/v2/money_management/inbound_transfers/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"payment_method\":{\"type\":\"type\"}},\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\"}],\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.MoneyManagement.InboundTransfer inboundTransfer = service @@ -7613,7 +7613,7 @@ public void TestV2MoneyManagementOutboundPaymentGet() HttpMethod.Get, "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.StripeList outboundPayments = service @@ -7630,7 +7630,7 @@ public void TestV2MoneyManagementOutboundPaymentPost() HttpMethod.Post, "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions @@ -7666,7 +7666,7 @@ public void TestV2MoneyManagementOutboundPaymentGet2() HttpMethod.Get, "/v2/money_management/outbound_payments/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -7683,7 +7683,7 @@ public void TestV2MoneyManagementOutboundPaymentPost2() HttpMethod.Post, "/v2/money_management/outbound_payments/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -7700,7 +7700,7 @@ public void TestV2MoneyManagementOutboundPaymentQuotePost() HttpMethod.Post, "/v2/money_management/outbound_payment_quotes", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions { Amount = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateAmountOptions @@ -7736,7 +7736,7 @@ public void TestV2MoneyManagementOutboundPaymentQuoteGet() HttpMethod.Get, "/v2/money_management/outbound_payment_quotes/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_status\":\"active\",\"rates\":{\"key\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPaymentQuotes; Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service @@ -7840,7 +7840,7 @@ public void TestV2MoneyManagementOutboundTransferGet() HttpMethod.Get, "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.StripeList outboundTransfers = service @@ -7857,7 +7857,7 @@ public void TestV2MoneyManagementOutboundTransferPost() HttpMethod.Post, "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions { Amount = new Stripe.V2.MoneyManagement.OutboundTransferCreateAmountOptions @@ -7892,7 +7892,7 @@ public void TestV2MoneyManagementOutboundTransferGet2() HttpMethod.Get, "/v2/money_management/outbound_transfers/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -7909,7 +7909,7 @@ public void TestV2MoneyManagementOutboundTransferPost2() HttpMethod.Post, "/v2/money_management/outbound_transfers/id_123/cancel", (HttpStatusCode)200, - "{\"amount\":{},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"debited\":{\"value\":111972721,\"currency\":\"usd\"},\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"value\":111972721,\"currency\":\"usd\"},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -8014,7 +8014,7 @@ public void TestV2MoneyManagementReceivedCreditGet() HttpMethod.Get, "/v2/money_management/received_credits", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.StripeList receivedCredits = service @@ -8031,7 +8031,7 @@ public void TestV2MoneyManagementReceivedCreditGet2() HttpMethod.Get, "/v2/money_management/received_credits/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_credit\",\"status\":\"returned\",\"type\":\"balance_transfer\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.MoneyManagement.ReceivedCredit receivedCredit = service @@ -8048,7 +8048,7 @@ public void TestV2MoneyManagementReceivedDebitGet() HttpMethod.Get, "/v2/money_management/received_debits", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.StripeList receivedDebits = service @@ -8065,7 +8065,7 @@ public void TestV2MoneyManagementReceivedDebitGet2() HttpMethod.Get, "/v2/money_management/received_debits/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"status\":\"canceled\",\"type\":\"bank_transfer\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.MoneyManagement.ReceivedDebit receivedDebit = service.Get( @@ -8082,7 +8082,7 @@ public void TestV2MoneyManagementTransactionGet() HttpMethod.Get, "/v2/money_management/transactions", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{},\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.StripeList transactions = service @@ -8099,7 +8099,7 @@ public void TestV2MoneyManagementTransactionGet2() HttpMethod.Get, "/v2/money_management/transactions/id_123", (HttpStatusCode)200, - "{\"amount\":{},\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.MoneyManagement.Transaction transaction = service.Get( @@ -8116,7 +8116,7 @@ public void TestV2MoneyManagementTransactionEntryGet() HttpMethod.Get, "/v2/money_management/transaction_entries", (HttpStatusCode)200, - "{\"data\":[{\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.StripeList transactionEntries = service @@ -8133,7 +8133,7 @@ public void TestV2MoneyManagementTransactionEntryGet2() HttpMethod.Get, "/v2/money_management/transaction_entries/id_123", (HttpStatusCode)200, - "{\"balance_impact\":{\"available\":{},\"inbound_pending\":{},\"outbound_pending\":{}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"fee_transaction\"}},\"livemode\":true}"); + "{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit\",\"financial_account\":\"financial_account\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service @@ -8176,7 +8176,7 @@ public void TestV2TestHelpersFinancialAddressPost2() HttpMethod.Post, "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits", (HttpStatusCode)200, - "{\"amounts\":[{}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); + "{\"amounts\":[{\"value\":111972721,\"currency\":\"usd\"}],\"object\":\"financial_address_generated_microdeposits\",\"status\":\"accepted\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.TestHelpers.FinancialAddresses; Stripe.V2.FinancialAddressGeneratedMicrodeposits financialAddressGeneratedMicrodeposits = service @@ -8364,7 +8364,11 @@ public void TestInsufficientFundsError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions(), + Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd", @@ -8531,7 +8535,11 @@ public void TestRecipientNotNotifiableError() { var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { - Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions(), + Amount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateAmountOptions + { + Value = 111972721, + Currency = "usd", + }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { Currency = "usd",