diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 47a9a28f9f..da5c58a231 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -25e6bd225852aa44d783e9fb3b9895af39479331 \ No newline at end of file +9aa5ee4ed2b929f65b7fbf7c341f938682888500 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 19b4cc8851..048a4fc1a7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2206 \ No newline at end of file +v2252 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 44eaa21a28..a17326a804 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,7 +3,7 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-03-25.dahlia"; + public const string Current = "2026-04-22.dahlia"; public const string CurrentMajor = "dahlia"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs index ec2c7423b7..99675ec829 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -16,6 +16,10 @@ public class AccountSessionComponents : StripeEntity [STJS.JsonPropertyName("account_onboarding")] public AccountSessionComponentsAccountOnboarding AccountOnboarding { get; set; } + [JsonProperty("balance_report")] + [STJS.JsonPropertyName("balance_report")] + public AccountSessionComponentsBalanceReport BalanceReport { get; set; } + [JsonProperty("balances")] [STJS.JsonPropertyName("balances")] public AccountSessionComponentsBalances Balances { get; set; } @@ -68,6 +72,10 @@ public class AccountSessionComponents : StripeEntity [STJS.JsonPropertyName("payout_details")] public AccountSessionComponentsPayoutDetails PayoutDetails { get; set; } + [JsonProperty("payout_reconciliation_report")] + [STJS.JsonPropertyName("payout_reconciliation_report")] + public AccountSessionComponentsPayoutReconciliationReport PayoutReconciliationReport { get; set; } + [JsonProperty("payouts")] [STJS.JsonPropertyName("payouts")] public AccountSessionComponentsPayouts Payouts { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalanceReport.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalanceReport.cs new file mode 100644 index 0000000000..a40c0b1487 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalanceReport.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsBalanceReport : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsBalanceReportFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalanceReportFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalanceReportFeatures.cs new file mode 100644 index 0000000000..edcad895f6 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalanceReportFeatures.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsBalanceReportFeatures : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutReconciliationReport.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutReconciliationReport.cs new file mode 100644 index 0000000000..9012fdc74c --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutReconciliationReport.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsPayoutReconciliationReport : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsPayoutReconciliationReportFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutReconciliationReportFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutReconciliationReportFeatures.cs new file mode 100644 index 0000000000..5707b5bc81 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutReconciliationReportFeatures.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsPayoutReconciliationReportFeatures : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs index d5b520cbd0..a5d4b6cb20 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs @@ -53,6 +53,15 @@ public class AccountCapabilities : StripeEntity [STJS.JsonPropertyName("amazon_pay_payments")] public string AmazonPayPayments { get; set; } + /// + /// The status of the app_distribution capability of the account, or whether the + /// platform can distribute apps to other accounts. + /// One of: active, inactive, or pending. + /// + [JsonProperty("app_distribution")] + [STJS.JsonPropertyName("app_distribution")] + public string AppDistribution { get; set; } + /// /// The status of the BECS Direct Debit (AU) payments capability of the account, or whether /// the account can directly process BECS Direct Debit (AU) charges. @@ -475,6 +484,15 @@ public class AccountCapabilities : StripeEntity [STJS.JsonPropertyName("sofort_payments")] public string SofortPayments { get; set; } + /// + /// The status of the Sunbit capability of the account, or whether the account can directly + /// process Sunbit payments. + /// One of: active, inactive, or pending. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public string SunbitPayments { get; set; } + /// /// The status of the Swish capability of the account, or whether the account can directly /// process Swish payments. diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs index 772d609e84..e9740b3f4b 100644 --- a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs +++ b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs @@ -178,9 +178,10 @@ public IBalanceTransactionSource Source /// Transaction type: adjustment, advance, advance_funding, /// anticipation_repayment, application_fee, application_fee_refund, /// charge, climate_order_purchase, climate_order_refund, - /// connect_collection_transfer, contribution, - /// issuing_authorization_hold, issuing_authorization_release, - /// issuing_dispute, issuing_transaction, obligation_outbound, + /// connect_collection_transfer, contribution, inbound_transfer, + /// inbound_transfer_reversal, issuing_authorization_hold, + /// issuing_authorization_release, issuing_dispute, + /// issuing_transaction, obligation_outbound, /// obligation_reversal_inbound, payment, payment_failure_refund, /// payment_network_reserve_hold, payment_network_reserve_release, /// payment_refund, payment_reversal, payment_unreconciled, @@ -190,14 +191,16 @@ public IBalanceTransactionSource Source /// reserve_hold, reserve_release, stripe_fee, stripe_fx_fee, /// stripe_balance_payment_debit, stripe_balance_payment_debit_reversal, /// tax_fee, topup, topup_reversal, transfer, - /// transfer_cancel, transfer_failure, or transfer_refund. Learn more - /// about balance - /// transaction types and what they represent. To classify transactions for accounting - /// purposes, consider reporting_category instead. + /// transfer_cancel, transfer_failure, transfer_refund, or + /// fee_credit_funding. Learn more about balance transaction + /// types and what they represent. To classify transactions for accounting purposes, + /// consider reporting_category instead. /// One of: adjustment, advance, advance_funding, /// anticipation_repayment, application_fee, application_fee_refund, /// charge, climate_order_purchase, climate_order_refund, - /// connect_collection_transfer, contribution, + /// connect_collection_transfer, contribution, fee_credit_funding, + /// inbound_transfer, inbound_transfer_reversal, /// issuing_authorization_hold, issuing_authorization_release, /// issuing_dispute, issuing_transaction, obligation_outbound, /// obligation_reversal_inbound, payment, payment_failure_refund, diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransactionFeeDetail.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransactionFeeDetail.cs index c2754962d9..10a414f2ee 100644 --- a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransactionFeeDetail.cs +++ b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransactionFeeDetail.cs @@ -40,7 +40,7 @@ public class BalanceTransactionFeeDetail : StripeEntity /// Type of the fee, one of: application_fee, payment_method_passthrough_fee, - /// stripe_fee or tax. + /// stripe_fee, tax, or withheld_tax. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index 6eaa455ef1..5ef7279938 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -208,6 +208,10 @@ public class ChargePaymentMethodDetails : 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")] [STJS.JsonPropertyName("location")] public string Location { get; set; } /// - /// ID of the reader this - /// transaction was made on. + /// ID of the reader this transaction was made on. /// [JsonProperty("reader")] [STJS.JsonPropertyName("reader")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAfterpayClearpay.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAfterpayClearpay.cs index b73f677a98..3d1cf688b4 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAfterpayClearpay.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAfterpayClearpay.cs @@ -16,7 +16,7 @@ public class ChargePaymentMethodDetailsAfterpayClearpay : 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")] [STJS.JsonPropertyName("reference")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs index a4b1398b6e..de7e39573d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs @@ -25,7 +25,7 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity /// The token currency that the transaction was sent with. - /// One of: usdc, usdg, or usdp. + /// One of: phantom_cash, usdc, usdg, usdp, or usdt. /// [JsonProperty("token_currency")] [STJS.JsonPropertyName("token_currency")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsKlarna.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsKlarna.cs index 52d2250b65..a3052dd810 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsKlarna.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsKlarna.cs @@ -8,6 +8,14 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ChargePaymentMethodDetailsKlarna : StripeEntity { + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + /// /// The payer details for this transaction. /// @@ -37,5 +45,13 @@ public class ChargePaymentMethodDetailsKlarna : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs index bca369e387..4a69313412 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsPix.cs @@ -14,5 +14,12 @@ public class ChargePaymentMethodDetailsPix : StripeEntity + /// ID of the multi use Mandate generated by the PaymentIntent. + /// + [JsonProperty("mandate")] + [STJS.JsonPropertyName("mandate")] + public string Mandate { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSunbit.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSunbit.cs new file mode 100644 index 0000000000..a410ab1954 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsSunbit.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ChargePaymentMethodDetailsSunbit : StripeEntity + { + /// + /// The Sunbit transaction ID associated with this payment. + /// + [JsonProperty("transaction_id")] + [STJS.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index 0e3e264fc9..b3a7119221 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -366,6 +366,16 @@ public Invoice Invoice [STJS.JsonPropertyName("locale")] public string Locale { get; set; } + /// + /// Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + 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/SessionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs index 4ccabf4824..0b034e55a3 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs @@ -16,22 +16,23 @@ public class SessionCustomerDetailsTaxId : StripeEntityve_rif, vn_tin, gb_vat, nz_gst, au_abn, /// 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, 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. + /// hk_br, es_cif, pl_nip, it_cf, fo_vat, gi_tin, + /// py_ruc, tw_vat, th_vat, jp_cn, 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, @@ -41,20 +42,20 @@ public class SessionCustomerDetailsTaxId : StripeEntitych_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] 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..ec8a6514c9 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs index a9e5bff9ce..792f5c6df9 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs @@ -23,6 +23,10 @@ public class SessionPaymentMethodOptionsPix : StripeEntity /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. @@ -42,6 +46,7 @@ public class SessionPaymentMethodOptionsPix : StripeEntitysetup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. /// [JsonProperty("setup_future_usage")] [STJS.JsonPropertyName("setup_future_usage")] diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptions.cs new file mode 100644 index 0000000000..01fc76d636 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptions.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionPaymentMethodOptionsPixMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs index 598071f430..6f52ec331a 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs @@ -252,6 +252,10 @@ public Customer Customer [STJS.JsonPropertyName("sofort")] public ConfirmationTokenPaymentMethodPreviewSofort Sofort { get; set; } + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public ConfirmationTokenPaymentMethodPreviewSunbit Sunbit { get; set; } + [JsonProperty("swish")] [STJS.JsonPropertyName("swish")] public ConfirmationTokenPaymentMethodPreviewSwish Swish { get; set; } @@ -274,8 +278,8 @@ public Customer Customer /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSunbit.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSunbit.cs new file mode 100644 index 0000000000..71a6633817 --- /dev/null +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewSunbit.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ConfirmationTokenPaymentMethodPreviewSunbit : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index 86a9a13c1d..4d7a4d5eda 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -760,9 +760,8 @@ public Account OnBehalfOf public StripeList Payments { get; set; } /// - /// End of the usage period during which invoice items were added to this invoice. This - /// looks back one period for a subscription invoice. Use the line + /// The latest timestamp at which invoice items can be associated with this invoice. Use the + /// line /// item period to get the service period for each price. /// [JsonProperty("period_end")] @@ -772,8 +771,8 @@ public Account OnBehalfOf public DateTime PeriodEnd { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Start of the usage period during which invoice items were added to this invoice. This - /// looks back one period for a subscription invoice. Use the line /// item period to get the service period for each price. /// diff --git a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs index e23ff354ac..3061947803 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs @@ -16,22 +16,23 @@ public class InvoiceCustomerTaxId : StripeEntity /// ve_rif, vn_tin, gb_vat, nz_gst, au_abn, /// 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, 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. + /// hk_br, es_cif, pl_nip, it_cf, fo_vat, gi_tin, + /// py_ruc, tw_vat, th_vat, jp_cn, 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, @@ -41,20 +42,20 @@ public class InvoiceCustomerTaxId : StripeEntity /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index d97e7860b1..76c5184bbb 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -39,8 +39,8 @@ public class InvoicePaymentSettings : StripeEntity /// ideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, + /// paypal, payto, pix, promptpay, revolut_pay, + /// sepa_credit_transfer, sepa_debit, sofort, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs index 9d1a40041d..bcf664376a 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs @@ -56,6 +56,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by pix, this sub-hash contains details about the Pix payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("pix")] + [STJS.JsonPropertyName("pix")] + public InvoicePaymentSettingsPaymentMethodOptionsPix Pix { get; set; } + /// /// If paying by sepa_debit, this sub-hash contains details about the SEPA Direct /// Debit payment method options to pass to the invoice’s PaymentIntent. @@ -64,6 +72,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by upi, this sub-hash contains details about the UPI payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("upi")] + [STJS.JsonPropertyName("upi")] + public InvoicePaymentSettingsPaymentMethodOptionsUpi Upi { get; set; } + /// /// If paying by us_bank_account, this sub-hash contains details about the ACH direct /// debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs new file mode 100644 index 0000000000..5303236d90 --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsPix : StripeEntity + { + /// + /// Determines if the amount includes the IOF tax. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. + /// Defaults to 86400 seconds. + /// + [JsonProperty("expires_after_seconds")] + [STJS.JsonPropertyName("expires_after_seconds")] + public long ExpiresAfterSeconds { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpi.cs new file mode 100644 index 0000000000..859bd82dce --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpi.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsUpi : StripeEntity + { + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs new file mode 100644 index 0000000000..d7899abd4d --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// One of fixed or maximum. If fixed, the amount param refers + /// to the exact amount to be charged in future payments. If maximum, the amount + /// charged can be up to the value passed for the amount param. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 6e8fdfea15..bf3558ae14 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -83,6 +83,14 @@ public class Authorization : StripeEntity, IHasId, IHasMetadata, [STJS.JsonPropertyName("card")] public Card Card { get; set; } + /// + /// Whether the card was present at the point of sale for the authorization. + /// One of: not_present, or present. + /// + [JsonProperty("card_presence")] + [STJS.JsonPropertyName("card_presence")] + public string CardPresence { get; set; } + #region Expandable Cardholder /// diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs index 3bafa54076..2abdf911d2 100644 --- a/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs +++ b/src/Stripe.net/Entities/Issuing/Cardholders/CardholderSpendingControls.cs @@ -9,6 +9,17 @@ namespace Stripe.Issuing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class CardholderSpendingControls : StripeEntity { + /// + /// Array of card presence statuses from which authorizations will be allowed. Possible + /// options are present, not_present. All other statuses will be blocked. + /// Cannot be set with blocked_card_presences. Provide an empty value to unset this + /// control. + /// One of: not_present, or present. + /// + [JsonProperty("allowed_card_presences")] + [STJS.JsonPropertyName("allowed_card_presences")] + public List AllowedCardPresences { get; set; } + /// /// Array of strings containing categories @@ -174,6 +185,16 @@ public class CardholderSpendingControls : StripeEntity AllowedMerchantCountries { get; set; } + /// + /// Array of card presence statuses from which authorizations will be declined. Possible + /// options are present, not_present. Cannot be set with + /// allowed_card_presences. Provide an empty value to unset this control. + /// One of: not_present, or present. + /// + [JsonProperty("blocked_card_presences")] + [STJS.JsonPropertyName("blocked_card_presences")] + public List BlockedCardPresences { get; set; } + /// /// Array of strings containing categories diff --git a/src/Stripe.net/Entities/Issuing/Cards/Card.cs b/src/Stripe.net/Entities/Issuing/Cards/Card.cs index 4323924133..284f5e4aa7 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/Card.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/Card.cs @@ -37,7 +37,7 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The reason why the card was canceled. - /// One of: design_rejected, lost, or stolen. + /// One of: design_rejected, fulfillment_error, lost, or stolen. /// [JsonProperty("cancellation_reason")] [STJS.JsonPropertyName("cancellation_reason")] @@ -266,7 +266,8 @@ public Card ReplacementFor /// /// The reason why the previous card needed to be replaced. - /// One of: damaged, expired, lost, or stolen. + /// One of: damaged, expired, fulfillment_error, lost, or + /// stolen. /// [JsonProperty("replacement_reason")] [STJS.JsonPropertyName("replacement_reason")] diff --git a/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs b/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs index 4dd32ed340..6042370fb2 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/CardSpendingControls.cs @@ -9,6 +9,17 @@ namespace Stripe.Issuing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class CardSpendingControls : StripeEntity { + /// + /// Array of card presence statuses from which authorizations will be allowed. Possible + /// options are present, not_present. All other statuses will be blocked. + /// Cannot be set with blocked_card_presences. Provide an empty value to unset this + /// control. + /// One of: not_present, or present. + /// + [JsonProperty("allowed_card_presences")] + [STJS.JsonPropertyName("allowed_card_presences")] + public List AllowedCardPresences { get; set; } + /// /// Array of strings containing categories @@ -174,6 +185,16 @@ public class CardSpendingControls : StripeEntity [STJS.JsonPropertyName("allowed_merchant_countries")] public List AllowedMerchantCountries { get; set; } + /// + /// Array of card presence statuses from which authorizations will be declined. Possible + /// options are present, not_present. Cannot be set with + /// allowed_card_presences. Provide an empty value to unset this control. + /// One of: not_present, or present. + /// + [JsonProperty("blocked_card_presences")] + [STJS.JsonPropertyName("blocked_card_presences")] + public List BlockedCardPresences { get; set; } + /// /// Array of strings containing categories diff --git a/src/Stripe.net/Entities/Mandates/MandateMultiUse.cs b/src/Stripe.net/Entities/Mandates/MandateMultiUse.cs index 9a671ca73d..7edc850a3f 100644 --- a/src/Stripe.net/Entities/Mandates/MandateMultiUse.cs +++ b/src/Stripe.net/Entities/Mandates/MandateMultiUse.cs @@ -8,5 +8,18 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class MandateMultiUse : StripeEntity { + /// + /// The amount of the payment on a multi use mandate. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// The currency of the payment on a multi use mandate. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } } } diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs index 5e3468a5ad..69b6b9f27a 100644 --- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs @@ -64,6 +64,10 @@ public class MandatePaymentMethodDetails : StripeEntity + { + /// + /// Determines if the amount includes the IOF tax. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs index d05ae36720..663c1f3995 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs @@ -238,6 +238,10 @@ public class PaymentAttemptRecordPaymentMethodDetails : StripeEntity /// The token currency that the transaction was sent with. - /// One of: usdc, usdg, or usdp. + /// One of: phantom_cash, usdc, usdg, usdp, or usdt. /// [JsonProperty("token_currency")] [STJS.JsonPropertyName("token_currency")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsKlarna.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsKlarna.cs index b1018ea33c..8b92f65464 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsKlarna.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsKlarna.cs @@ -8,6 +8,14 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentAttemptRecordPaymentMethodDetailsKlarna : StripeEntity { + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + /// /// The payer details for this transaction. /// @@ -37,5 +45,13 @@ public class PaymentAttemptRecordPaymentMethodDetailsKlarna : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPix.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPix.cs index 56c7db51eb..dd1270ac52 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPix.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsPix.cs @@ -14,5 +14,12 @@ public class PaymentAttemptRecordPaymentMethodDetailsPix : StripeEntity + /// ID of the multi use Mandate generated by the PaymentIntent. + /// + [JsonProperty("mandate")] + [STJS.JsonPropertyName("mandate")] + public string Mandate { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSunbit.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSunbit.cs new file mode 100644 index 0000000000..adf07c768b --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsSunbit.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentAttemptRecordPaymentMethodDetailsSunbit : StripeEntity + { + /// + /// The Sunbit transaction ID associated with this payment. + /// + [JsonProperty("transaction_id")] + [STJS.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index dc4b2f6aab..a8252e2d04 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -293,8 +293,8 @@ public Customer Customer /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types")] [STJS.JsonPropertyName("excluded_payment_method_types")] @@ -359,6 +359,13 @@ public Charge LatestCharge [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// Settings for Managed Payments. + /// + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + 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..b149d94170 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs index 2333b2e460..e1f7f2322c 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs @@ -29,6 +29,10 @@ public class PaymentIntentNextAction : StripeEntity [STJS.JsonPropertyName("display_bank_transfer_instructions")] public PaymentIntentNextActionDisplayBankTransferInstructions DisplayBankTransferInstructions { get; set; } + [JsonProperty("klarna_display_qr_code")] + [STJS.JsonPropertyName("klarna_display_qr_code")] + public PaymentIntentNextActionKlarnaDisplayQrCode KlarnaDisplayQrCode { get; set; } + [JsonProperty("konbini_display_details")] [STJS.JsonPropertyName("konbini_display_details")] public PaymentIntentNextActionKonbiniDisplayDetails KonbiniDisplayDetails { get; set; } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionKlarnaDisplayQrCode.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionKlarnaDisplayQrCode.cs new file mode 100644 index 0000000000..7642c98dce --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionKlarnaDisplayQrCode.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentNextActionKlarnaDisplayQrCode : StripeEntity + { + /// + /// The data being used to generate QR code. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public string Data { get; set; } + + /// + /// The timestamp at which the QR code expires. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("expires_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? ExpiresAt { get; set; } + + /// + /// The image_url_png string used to render QR code. + /// + [JsonProperty("image_url_png")] + [STJS.JsonPropertyName("image_url_png")] + public string ImageUrlPng { get; set; } + + /// + /// The image_url_svg string used to render QR code. + /// + [JsonProperty("image_url_svg")] + [STJS.JsonPropertyName("image_url_svg")] + public string ImageUrlSvg { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPix.cs index 5f264888af..15f961407b 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPix.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPix.cs @@ -33,6 +33,10 @@ public class PaymentIntentPaymentMethodOptionsPix : StripeEntity /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. @@ -52,6 +56,7 @@ public class PaymentIntentPaymentMethodOptionsPix : StripeEntitysetup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. /// [JsonProperty("setup_future_usage")] [STJS.JsonPropertyName("setup_future_usage")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptions.cs new file mode 100644 index 0000000000..8a7e6e6dff --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptions.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentMethodOptionsPixMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index 6c58a271c7..35bcf9a33a 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -183,6 +183,17 @@ public Application Application [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// Settings for Managed Payments for this Payment Link and resulting CheckoutSessions, PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + public PaymentLinkManagedPayments 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 @@ -269,8 +280,8 @@ public Account OnBehalfOf /// grabpay, ideal, klarna, konbini, link, mb_way, /// mobilepay, multibanco, oxxo, p24, pay_by_bank, /// paynow, paypal, payto, pix, promptpay, - /// satispay, sepa_debit, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// satispay, sepa_debit, sofort, sunbit, swish, + /// twint, upi, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkManagedPayments.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkManagedPayments.cs new file mode 100644 index 0000000000..95cfe790cf --- /dev/null +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkManagedPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentLinkManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs index 8c4f2f3a3e..6560dd16d3 100644 --- a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs @@ -292,6 +292,10 @@ public class PaymentMethodConfiguration : StripeEntity + { + /// + /// Whether this payment method may be offered at checkout. True if + /// display_preference is on and the payment method's capability is active. + /// + [JsonProperty("available")] + [STJS.JsonPropertyName("available")] + public bool Available { get; set; } + + [JsonProperty("display_preference")] + [STJS.JsonPropertyName("display_preference")] + public PaymentMethodConfigurationSunbitDisplayPreference DisplayPreference { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationSunbitDisplayPreference.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationSunbitDisplayPreference.cs new file mode 100644 index 0000000000..4093148bac --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationSunbitDisplayPreference.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentMethodConfigurationSunbitDisplayPreference : StripeEntity + { + /// + /// For child configs, whether or not the account's preference will be observed. If + /// false, the parent configuration's default is used. + /// + [JsonProperty("overridable")] + [STJS.JsonPropertyName("overridable")] + public bool? Overridable { get; set; } + + /// + /// The account's display preference. + /// One of: none, off, or on. + /// + [JsonProperty("preference")] + [STJS.JsonPropertyName("preference")] + public string Preference { get; set; } + + /// + /// The effective display preference value. + /// One of: off, or on. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 64b6ec0c64..d375c6ae25 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -317,6 +317,10 @@ public Customer Customer [STJS.JsonPropertyName("sofort")] public PaymentMethodSofort Sofort { get; set; } + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public PaymentMethodSunbit Sunbit { get; set; } + [JsonProperty("swish")] [STJS.JsonPropertyName("swish")] public PaymentMethodSwish Swish { get; set; } @@ -339,8 +343,8 @@ public Customer Customer /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSunbit.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSunbit.cs new file mode 100644 index 0000000000..1878ff7246 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodSunbit.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentMethodSunbit : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs index 39ce60636a..2ca2d03927 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs @@ -238,6 +238,10 @@ public class PaymentRecordPaymentMethodDetails : StripeEntity /// The token currency that the transaction was sent with. - /// One of: usdc, usdg, or usdp. + /// One of: phantom_cash, usdc, usdg, usdp, or usdt. /// [JsonProperty("token_currency")] [STJS.JsonPropertyName("token_currency")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsKlarna.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsKlarna.cs index 8d87cd75f3..c4b60dc6e0 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsKlarna.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsKlarna.cs @@ -8,6 +8,14 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentRecordPaymentMethodDetailsKlarna : StripeEntity { + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + /// /// The payer details for this transaction. /// @@ -37,5 +45,13 @@ public class PaymentRecordPaymentMethodDetailsKlarna : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPix.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPix.cs index 59eff18d80..a111774de7 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPix.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsPix.cs @@ -14,5 +14,12 @@ public class PaymentRecordPaymentMethodDetailsPix : StripeEntity + /// ID of the multi use Mandate generated by the PaymentIntent. + /// + [JsonProperty("mandate")] + [STJS.JsonPropertyName("mandate")] + public string Mandate { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSunbit.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSunbit.cs new file mode 100644 index 0000000000..ac0f8ad748 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsSunbit.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentRecordPaymentMethodDetailsSunbit : StripeEntity + { + /// + /// The Sunbit transaction ID associated with this payment. + /// + [JsonProperty("transaction_id")] + [STJS.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs index 4e90134737..9ce2e59da5 100644 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs @@ -94,8 +94,8 @@ public class PaymentEvaluation : StripeEntity, IHasId, IHasMe public PaymentEvaluationPaymentDetails PaymentDetails { get; set; } /// - /// Recommended action based on the score of the fraudulent_payment signal. Possible values - /// are block and continue. + /// Recommended action based on the score of the fraudulent_payment signal. Possible + /// values are block and continue. /// One of: block, or continue. /// [JsonProperty("recommended_action")] diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs index afe505aa07..39deef9ed9 100644 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs @@ -20,17 +20,18 @@ public class PaymentEvaluationSignalsFraudulentPayment : StripeEntity /// Risk level of this signal, based on the score. - /// One of: elevated, highest, or normal. + /// One of: elevated, highest, low, normal, not_assessed, + /// or unknown. /// [JsonProperty("risk_level")] [STJS.JsonPropertyName("risk_level")] public string RiskLevel { get; set; } /// - /// Score for this insight. Possible values for evaluated payments are -1 and any value - /// between 0 and 100. The value is returned with two decimal places. A score of -1 - /// indicates a test integration and higher scores indicate a higher likelihood of the - /// signal being true. + /// Score for this signal. Possible values for evaluated payments are between 0 and 100. The + /// value is returned with two decimal places and higher scores indicate a higher likelihood + /// of the signal being true. A score of -1 is returned when a model evaluation was not + /// performed, such as requests from incomplete integrations. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs index a339fedce5..77bdcb34b7 100644 --- a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs +++ b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs @@ -64,12 +64,12 @@ public class ValueList : StripeEntity, IHasId, IHasMetadata, IHasObje /// /// The type of items in the value list. One of card_fingerprint, card_bin, /// crypto_fingerprint, email, ip_address, country, - /// string, case_sensitive_string, customer_id, + /// string, case_sensitive_string, customer_id, account, /// sepa_debit_fingerprint, or us_bank_account_fingerprint. - /// One of: card_bin, card_fingerprint, case_sensitive_string, - /// country, crypto_fingerprint, customer_id, email, - /// ip_address, sepa_debit_fingerprint, string, or - /// us_bank_account_fingerprint. + /// One of: account, card_bin, card_fingerprint, + /// case_sensitive_string, country, crypto_fingerprint, + /// customer_id, email, ip_address, sepa_debit_fingerprint, + /// string, or us_bank_account_fingerprint. /// [JsonProperty("item_type")] [STJS.JsonPropertyName("item_type")] diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs index ac31d68c73..9594a0794a 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs @@ -80,6 +80,10 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity + /// True if this payment was marked as MOTO and out of scope for SCA. + /// + [JsonProperty("moto")] + [STJS.JsonPropertyName("moto")] + public bool Moto { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPix.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPix.cs new file mode 100644 index 0000000000..5a9fb1029e --- /dev/null +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsPix.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SetupAttemptPaymentMethodDetailsPix : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index 612f5dac78..4e31c262aa 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -215,8 +215,8 @@ public Customer Customer /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types")] [STJS.JsonPropertyName("excluded_payment_method_types")] @@ -286,6 +286,10 @@ public SetupAttempt LatestAttempt [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + 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..e8bc0f2190 --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SetupIntentManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs index 529ac95488..f816c9c357 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs @@ -13,6 +13,10 @@ public class SetupIntentNextAction : StripeEntity [STJS.JsonPropertyName("cashapp_handle_redirect_or_display_qr_code")] public SetupIntentNextActionCashappHandleRedirectOrDisplayQrCode CashappHandleRedirectOrDisplayQrCode { get; set; } + [JsonProperty("pix_display_qr_code")] + [STJS.JsonPropertyName("pix_display_qr_code")] + public SetupIntentNextActionPixDisplayQrCode PixDisplayQrCode { get; set; } + [JsonProperty("redirect_to_url")] [STJS.JsonPropertyName("redirect_to_url")] public SetupIntentNextActionRedirectToUrl RedirectToUrl { get; set; } diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionPixDisplayQrCode.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionPixDisplayQrCode.cs new file mode 100644 index 0000000000..81d1ec87ab --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionPixDisplayQrCode.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SetupIntentNextActionPixDisplayQrCode : StripeEntity + { + /// + /// The raw data string used to generate QR code, it should be used together with QR code + /// library. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public string Data { get; set; } + + /// + /// The date (unix timestamp) when the PIX expires. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("expires_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The URL to the hosted pix instructions page, which allows customers to view the pix QR + /// code. + /// + [JsonProperty("hosted_instructions_url")] + [STJS.JsonPropertyName("hosted_instructions_url")] + public string HostedInstructionsUrl { get; set; } + + /// + /// The image_url_png string used to render png QR code. + /// + [JsonProperty("image_url_png")] + [STJS.JsonPropertyName("image_url_png")] + public string ImageUrlPng { get; set; } + + /// + /// The image_url_svg string used to render svg QR code. + /// + [JsonProperty("image_url_svg")] + [STJS.JsonPropertyName("image_url_svg")] + public string ImageUrlSvg { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs index 26bee2cc6c..3185a7e0bc 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs @@ -44,6 +44,10 @@ public class SetupIntentPaymentMethodOptions : StripeEntity + { + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SetupIntentPaymentMethodOptionsPixMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptions.cs new file mode 100644 index 0000000000..5d5331cea7 --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptions.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SetupIntentPaymentMethodOptionsPixMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index dd116e6ed8..e2416dac76 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -441,6 +441,15 @@ public Invoice LatestInvoice [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// Settings for Managed Payments for this Subscription and resulting Invoices and PaymentIntents. + /// + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + 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..a08ba21071 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index fa55b74a88..4d32ff4f26 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -31,8 +31,8 @@ public class SubscriptionPaymentSettings : StripeEntityideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, + /// paypal, payto, pix, promptpay, revolut_pay, + /// sepa_credit_transfer, sepa_debit, sofort, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs index 00ca0a90d4..d84644747c 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs @@ -56,6 +56,14 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the Pix payment method options to pass to invoices + /// created by the subscription. + /// + [JsonProperty("pix")] + [STJS.JsonPropertyName("pix")] + public SubscriptionPaymentSettingsPaymentMethodOptionsPix Pix { get; set; } + /// /// This sub-hash contains details about the SEPA Direct Debit payment method options to /// pass to invoices created by the subscription. @@ -64,6 +72,14 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the UPI payment method options to pass to invoices + /// created by the subscription. + /// + [JsonProperty("upi")] + [STJS.JsonPropertyName("upi")] + public SubscriptionPaymentSettingsPaymentMethodOptionsUpi Upi { get; set; } + /// /// This sub-hash contains details about the ACH direct debit payment method options to pass /// to invoices created by the subscription. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs new file mode 100644 index 0000000000..577cf47827 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsPix : StripeEntity + { + /// + /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. + /// Defaults to 86400 seconds. + /// + [JsonProperty("expires_after_seconds")] + [STJS.JsonPropertyName("expires_after_seconds")] + public long ExpiresAfterSeconds { get; set; } + + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptions.cs new file mode 100644 index 0000000000..71ef876712 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptions.cs @@ -0,0 +1,43 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpi.cs new file mode 100644 index 0000000000..7396a2c3a5 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpi.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpi : StripeEntity + { + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs new file mode 100644 index 0000000000..7cd48552c8 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// One of fixed or maximum. If fixed, the amount param refers + /// to the exact amount to be charged in future payments. If maximum, the amount + /// charged can be up to the value passed for the amount param. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs b/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs index ffb2b3a259..3f29f7f11f 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs @@ -119,8 +119,11 @@ public class Calculation : StripeEntity, IHasId, IHasObject public List TaxBreakdown { get; set; } /// - /// Timestamp of date at which the tax rules and rates in effect applies for the - /// calculation. + /// The calculation uses the tax rules and rates that are in effect at this timestamp. You + /// can use a date up to 31 days in the past or up to 31 days in the future. If you use a + /// future date, Stripe doesn't guarantee that the expected tax rules and rate being used + /// match the actual rules and rate that will be in effect on that date. We deploy tax + /// changes before their effective date, but not within a fixed window. /// [JsonProperty("tax_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs index cf3c64be6b..a757566ebb 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs @@ -16,22 +16,23 @@ public class CalculationCustomerDetailsTaxId : StripeEntityve_rif, vn_tin, gb_vat, nz_gst, au_abn, /// 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, 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. + /// hk_br, es_cif, pl_nip, it_cf, fo_vat, gi_tin, + /// py_ruc, tw_vat, th_vat, jp_cn, 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, @@ -41,20 +42,20 @@ public class CalculationCustomerDetailsTaxId : StripeEntitych_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs b/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs index 5e93c5ec38..5cd826f723 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs @@ -122,8 +122,11 @@ public class Transaction : StripeEntity, IHasId, IHasMetadata, IHas public TransactionShippingCost ShippingCost { get; set; } /// - /// Timestamp of date at which the tax rules and rates in effect applies for the - /// calculation. + /// The calculation uses the tax rules and rates that are in effect at this timestamp. You + /// can use a date up to 31 days in the past or up to 31 days in the future. If you use a + /// future date, Stripe doesn't guarantee that the expected tax rules and rate being used + /// match the actual rules and rate that will be in effect on that date. We deploy tax + /// changes before their effective date, but not within a fixed window. /// [JsonProperty("tax_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs index ed8c9af3f5..d8b6319224 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs @@ -16,22 +16,23 @@ public class TransactionCustomerDetailsTaxId : StripeEntityve_rif, vn_tin, gb_vat, nz_gst, au_abn, /// 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, 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. + /// hk_br, es_cif, pl_nip, it_cf, fo_vat, gi_tin, + /// py_ruc, tw_vat, th_vat, jp_cn, 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, @@ -41,20 +42,20 @@ public class TransactionCustomerDetailsTaxId : StripeEntitych_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs index d62fc8c21b..ed6200edfb 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxId.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs @@ -123,14 +123,15 @@ public Customer Customer /// ch_uid, ch_vat, cl_tin, cm_niu, cn_tin, /// co_nit, cr_tin, cv_nif, de_stn, do_rcn, /// ec_ruc, eg_tin, es_cif, et_tin, eu_oss_vat, - /// eu_vat, 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, - /// 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, + /// eu_vat, fo_vat, gb_vat, ge_vat, gi_tin, + /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, + /// il_vat, in_gst, is_vat, it_cf, jp_cn, jp_rn, + /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, + /// 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, py_ruc, 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, @@ -146,20 +147,20 @@ public Customer Customer /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalanceReportFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalanceReportFeaturesOptions.cs new file mode 100644 index 0000000000..3eeb762fa5 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalanceReportFeaturesOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsBalanceReportFeaturesOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalanceReportOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalanceReportOptions.cs new file mode 100644 index 0000000000..a406771af1 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalanceReportOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsBalanceReportOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// An empty list, because this embedded component has no features. + /// + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsBalanceReportFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index 0e5770bfad..79ae0dd60f 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -26,6 +26,15 @@ public class AccountSessionComponentsOptions : INestedOptions [STJS.JsonPropertyName("account_onboarding")] public AccountSessionComponentsAccountOnboardingOptions AccountOnboarding { get; set; } + /// + /// Configuration for the balance + /// report embedded component. + /// + [JsonProperty("balance_report")] + [STJS.JsonPropertyName("balance_report")] + public AccountSessionComponentsBalanceReportOptions BalanceReport { get; set; } + /// /// Configuration for the balances @@ -143,6 +152,15 @@ public class AccountSessionComponentsOptions : INestedOptions [STJS.JsonPropertyName("payout_details")] public AccountSessionComponentsPayoutDetailsOptions PayoutDetails { get; set; } + /// + /// Configuration for the payout + /// reconciliation report embedded component. + /// + [JsonProperty("payout_reconciliation_report")] + [STJS.JsonPropertyName("payout_reconciliation_report")] + public AccountSessionComponentsPayoutReconciliationReportOptions PayoutReconciliationReport { get; set; } + /// /// Configuration for the payouts diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutReconciliationReportFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutReconciliationReportFeaturesOptions.cs new file mode 100644 index 0000000000..a41ff46abf --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutReconciliationReportFeaturesOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsPayoutReconciliationReportFeaturesOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutReconciliationReportOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutReconciliationReportOptions.cs new file mode 100644 index 0000000000..a02f5cc5e7 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutReconciliationReportOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsPayoutReconciliationReportOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// An empty list, because this embedded component has no features. + /// + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsPayoutReconciliationReportFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesAppDistributionOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesAppDistributionOptions.cs new file mode 100644 index 0000000000..c109a52224 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesAppDistributionOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCapabilitiesAppDistributionOptions : INestedOptions + { + /// + /// Passing true requests the capability for the account, if it is not already requested. A + /// requested capability may not immediately become active. Any requirements to activate the + /// capability are returned in the requirements arrays. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs index 70d265f7ca..6707c63a2a 100644 --- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs @@ -43,6 +43,13 @@ public class AccountCapabilitiesOptions : INestedOptions [STJS.JsonPropertyName("amazon_pay_payments")] public AccountCapabilitiesAmazonPayPaymentsOptions AmazonPayPayments { get; set; } + /// + /// The app_distribution capability. + /// + [JsonProperty("app_distribution")] + [STJS.JsonPropertyName("app_distribution")] + public AccountCapabilitiesAppDistributionOptions AppDistribution { get; set; } + /// /// The au_becs_debit_payments capability. /// @@ -372,6 +379,13 @@ public class AccountCapabilitiesOptions : INestedOptions [STJS.JsonPropertyName("sofort_payments")] public AccountCapabilitiesSofortPaymentsOptions SofortPayments { get; set; } + /// + /// The sunbit_payments capability. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountCapabilitiesSunbitPaymentsOptions SunbitPayments { get; set; } + /// /// The swish_payments capability. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesSunbitPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesSunbitPaymentsOptions.cs new file mode 100644 index 0000000000..67cbf28a7b --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesSunbitPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCapabilitiesSunbitPaymentsOptions : INestedOptions + { + /// + /// Passing true requests the capability for the account, if it is not already requested. A + /// requested capability may not immediately become active. Any requirements to activate the + /// capability are returned in the requirements arrays. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs b/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs index ea27509608..16b321d46d 100644 --- a/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs @@ -199,8 +199,10 @@ public Dictionary Metadata public AccountTosAcceptanceOptions TosAcceptance { get; set; } /// - /// The type of Stripe account to create. May be one of custom, express or - /// standard. + /// The type parameter is deprecated. Use controller + /// instead to configure dashboard access, fee payer, loss liability, and requirement + /// collection. /// One of: custom, express, or standard. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs b/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs index adcb1be5e0..e494a56600 100644 --- a/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs +++ b/src/Stripe.net/Services/BalanceTransactions/BalanceTransactionListOptions.cs @@ -48,6 +48,7 @@ public class BalanceTransactionListOptions : ListOptions /// advance_funding, anticipation_repayment, application_fee, /// application_fee_refund, charge, climate_order_purchase, /// climate_order_refund, connect_collection_transfer, contribution, + /// inbound_transfer, inbound_transfer_reversal, /// issuing_authorization_hold, issuing_authorization_release, /// issuing_dispute, issuing_transaction, obligation_outbound, /// obligation_reversal_inbound, payment, payment_failure_refund, @@ -59,7 +60,8 @@ public class BalanceTransactionListOptions : ListOptions /// reserve_hold, reserve_release, stripe_fee, stripe_fx_fee, /// stripe_balance_payment_debit, stripe_balance_payment_debit_reversal, /// tax_fee, topup, topup_reversal, transfer, - /// transfer_cancel, transfer_failure, or transfer_refund. + /// transfer_cancel, transfer_failure, transfer_refund, or + /// fee_credit_funding. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs b/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs index 5b2b5f0685..5cd7e83120 100644 --- a/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs +++ b/src/Stripe.net/Services/Billing/MeterEvents/MeterEventCreateOptions.cs @@ -19,7 +19,7 @@ public class MeterEventCreateOptions : BaseOptions /// /// A unique identifier for the event. If not provided, one is generated. We recommend using - /// UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 + /// UUID-like identifiers. Stripe enforces uniqueness within a rolling period of at least 24 /// hours. The enforcement of uniqueness primarily addresses issues arising from accidental /// retries or other problems occurring within extremely brief time intervals. This approach /// helps prevent duplicate entries and ensures data integrity in high-frequency operations. diff --git a/src/Stripe.net/Services/Billing/Meters/MeterDefaultAggregationOptions.cs b/src/Stripe.net/Services/Billing/Meters/MeterDefaultAggregationOptions.cs index 6b8299cc96..01ee039b00 100644 --- a/src/Stripe.net/Services/Billing/Meters/MeterDefaultAggregationOptions.cs +++ b/src/Stripe.net/Services/Billing/Meters/MeterDefaultAggregationOptions.cs @@ -9,9 +9,7 @@ namespace Stripe.Billing public class MeterDefaultAggregationOptions : INestedOptions { /// - /// Specifies how events are aggregated. Allowed values are count to count the number - /// of events, sum to sum each event's value and last to take the last event's - /// value in the window. + /// Specifies how events are aggregated. /// One of: count, last, or sum. /// [JsonProperty("formula")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 26bc819191..2b7e623fe1 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -203,8 +203,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types")] [STJS.JsonPropertyName("excluded_payment_method_types")] @@ -266,6 +266,16 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("locale")] public string Locale { get; set; } + /// + /// Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + 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 @@ -405,7 +415,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// multibanco, naver_pay, nz_bank_account, oxxo, p24, /// pay_by_bank, payco, paynow, paypal, payto, /// pix, promptpay, revolut_pay, samsung_pay, satispay, - /// sepa_debit, sofort, swish, twint, upi, + /// sepa_debit, sofort, sunbit, swish, twint, upi, /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] 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..de7ec03bd9 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionManagedPaymentsOptions : INestedOptions + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs new file mode 100644 index 0000000000..af9f62c411 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs @@ -0,0 +1,77 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionPaymentMethodOptionsPixMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. Required when amount_type=fixed. If not + /// provided for amount_type=maximum, defaults to 40000. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. Defaults to never. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Only brl is supported currently. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. If not provided, the mandate will be active until canceled. If + /// provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. Defaults to monthly. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. Defaults to the displayable + /// business name. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. Start date should be at least 3 days in + /// the future. Defaults to 3 days after the current date. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs index dc72266739..e8894d6311 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs @@ -24,6 +24,13 @@ public class SessionPaymentMethodOptionsPixOptions : INestedOptions [STJS.JsonPropertyName("expires_after_seconds")] public long? ExpiresAfterSeconds { get; set; } + /// + /// Additional fields for mandate creation. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SessionPaymentMethodOptionsPixMandateOptionsOptions MandateOptions { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. @@ -43,6 +50,7 @@ public class SessionPaymentMethodOptionsPixOptions : INestedOptions /// When processing card payments, Stripe uses setup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. /// [JsonProperty("setup_future_usage")] [STJS.JsonPropertyName("setup_future_usage")] diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs index ee78537693..e343abc6fb 100644 --- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs @@ -32,8 +32,8 @@ public class CustomerPaymentMethodListOptions : ListOptions /// mobilepay, multibanco, naver_pay, nz_bank_account, /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// payto, pix, promptpay, revolut_pay, samsung_pay, - /// satispay, sepa_debit, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// satispay, sepa_debit, sofort, sunbit, swish, + /// twint, upi, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs index 4f074bfd84..afde60805a 100644 --- a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs @@ -18,14 +18,15 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// ch_uid, ch_vat, cl_tin, cm_niu, cn_tin, /// co_nit, cr_tin, cv_nif, de_stn, do_rcn, /// ec_ruc, eg_tin, es_cif, et_tin, eu_oss_vat, - /// eu_vat, 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, - /// 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, + /// eu_vat, fo_vat, gb_vat, ge_vat, gi_tin, + /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, + /// il_vat, in_gst, is_vat, it_cf, jp_cn, jp_rn, + /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, + /// 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, py_ruc, 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, @@ -41,19 +42,20 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs index 472b02d0a1..cfcbdbe231 100644 --- a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs @@ -18,14 +18,15 @@ public class CustomerTaxIdDataOptions : INestedOptions /// ch_uid, ch_vat, cl_tin, cm_niu, cn_tin, /// co_nit, cr_tin, cv_nif, de_stn, do_rcn, /// ec_ruc, eg_tin, es_cif, et_tin, eu_oss_vat, - /// eu_vat, 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, - /// 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, + /// eu_vat, fo_vat, gb_vat, ge_vat, gi_tin, + /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, + /// il_vat, in_gst, is_vat, it_cf, jp_cn, jp_rn, + /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, + /// 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, py_ruc, 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, @@ -41,19 +42,20 @@ public class CustomerTaxIdDataOptions : INestedOptions /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index 44eeea7191..eee8eb1309 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -35,7 +35,8 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata public VerificationSessionOptionsOptions Options { get; set; } /// - /// Details provided about the user being verified. These details may be shown to the user. + /// Details provided about the user being verified. These details might be shown to the + /// user. /// [JsonProperty("provided_details")] [STJS.JsonPropertyName("provided_details")] @@ -56,7 +57,7 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata public string RelatedCustomerAccount { get; set; } /// - /// Tokens referencing a Person resource and it's associated account. + /// Tokens referencing a Person resource and its associated account. /// [JsonProperty("related_person")] [STJS.JsonPropertyName("related_person")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs index 734669dccf..a8bcc1f289 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs @@ -18,14 +18,15 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// ch_uid, ch_vat, cl_tin, cm_niu, cn_tin, /// co_nit, cr_tin, cv_nif, de_stn, do_rcn, /// ec_ruc, eg_tin, es_cif, et_tin, eu_oss_vat, - /// eu_vat, 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, - /// 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, + /// eu_vat, fo_vat, gb_vat, ge_vat, gi_tin, + /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, + /// il_vat, in_gst, is_vat, it_cf, jp_cn, jp_rn, + /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, + /// 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, py_ruc, 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, @@ -41,19 +42,20 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index dd7bf341f2..6af665d611 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -55,8 +55,8 @@ public string DefaultMandate /// ideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, + /// paypal, payto, pix, promptpay, revolut_pay, + /// sepa_credit_transfer, sepa_debit, sofort, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs index 4a07674051..7c9f7913d1 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs @@ -14,7 +14,9 @@ public class InvoicePaymentSettingsPaymentMethodOptionsOptions : INestedOptions, private InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceOptions customerBalance; private InvoicePaymentSettingsPaymentMethodOptionsKonbiniOptions konbini; private InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions payto; + private InvoicePaymentSettingsPaymentMethodOptionsPixOptions pix; private InvoicePaymentSettingsPaymentMethodOptionsSepaDebitOptions sepaDebit; + private InvoicePaymentSettingsPaymentMethodOptionsUpiOptions upi; private InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountOptions usBankAccount; [JsonIgnore] @@ -123,6 +125,23 @@ public InvoicePaymentSettingsPaymentMethodOptionsPaytoOptions Payto } } + /// + /// If paying by pix, this sub-hash contains details about the Pix payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("pix", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("pix")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public InvoicePaymentSettingsPaymentMethodOptionsPixOptions Pix + { + get => this.pix; + set + { + this.pix = value; + this.SetTracker.Track(); + } + } + /// /// If paying by sepa_debit, this sub-hash contains details about the SEPA Direct /// Debit payment method options to pass to the invoice’s PaymentIntent. @@ -140,6 +159,23 @@ public InvoicePaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit } } + /// + /// If paying by upi, this sub-hash contains details about the UPI payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("upi", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("upi")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public InvoicePaymentSettingsPaymentMethodOptionsUpiOptions Upi + { + get => this.upi; + set + { + this.upi = value; + this.SetTracker.Track(); + } + } + /// /// If paying by us_bank_account, this sub-hash contains details about the ACH direct /// debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs new file mode 100644 index 0000000000..8bb2d31b9f --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsPixOptions : INestedOptions + { + /// + /// Determines if the amount includes the IOF tax. Defaults to never. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. + /// Defaults to 86400 seconds. + /// + [JsonProperty("expires_after_seconds")] + [STJS.JsonPropertyName("expires_after_seconds")] + public long? ExpiresAfterSeconds { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs new file mode 100644 index 0000000000..7f3a2cf3f1 --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// One of fixed or maximum. If fixed, the amount param refers + /// to the exact amount to be charged in future payments. If maximum, the amount + /// charged can be up to the value passed for the amount param. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiOptions.cs new file mode 100644 index 0000000000..55c1bc67df --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class InvoicePaymentSettingsPaymentMethodOptionsUpiOptions : INestedOptions + { + /// + /// Configuration options for setting up an eMandate. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs index ebe14b5093..678de28660 100644 --- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderSpendingControlsOptions.cs @@ -9,6 +9,17 @@ namespace Stripe.Issuing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class CardholderSpendingControlsOptions : INestedOptions { + /// + /// Array of card presence statuses from which authorizations will be allowed. Possible + /// options are present, not_present. All other statuses will be blocked. + /// Cannot be set with blocked_card_presences. Provide an empty value to unset this + /// control. + /// One of: not_present, or present. + /// + [JsonProperty("allowed_card_presences")] + [STJS.JsonPropertyName("allowed_card_presences")] + public List AllowedCardPresences { get; set; } + /// /// Array of strings containing categories @@ -174,6 +185,16 @@ public class CardholderSpendingControlsOptions : INestedOptions [STJS.JsonPropertyName("allowed_merchant_countries")] public List AllowedMerchantCountries { get; set; } + /// + /// Array of card presence statuses from which authorizations will be declined. Possible + /// options are present, not_present. Cannot be set with + /// allowed_card_presences. Provide an empty value to unset this control. + /// One of: not_present, or present. + /// + [JsonProperty("blocked_card_presences")] + [STJS.JsonPropertyName("blocked_card_presences")] + public List BlockedCardPresences { get; set; } + /// /// Array of strings containing categories diff --git a/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs index b73cc7fba2..3c53aeec9a 100644 --- a/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cards/CardSpendingControlsOptions.cs @@ -9,6 +9,17 @@ namespace Stripe.Issuing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class CardSpendingControlsOptions : INestedOptions { + /// + /// Array of card presence statuses from which authorizations will be allowed. Possible + /// options are present, not_present. All other statuses will be blocked. + /// Cannot be set with blocked_card_presences. Provide an empty value to unset this + /// control. + /// One of: not_present, or present. + /// + [JsonProperty("allowed_card_presences")] + [STJS.JsonPropertyName("allowed_card_presences")] + public List AllowedCardPresences { get; set; } + /// /// Array of strings containing categories @@ -174,6 +185,16 @@ public class CardSpendingControlsOptions : INestedOptions [STJS.JsonPropertyName("allowed_merchant_countries")] public List AllowedMerchantCountries { get; set; } + /// + /// Array of card presence statuses from which authorizations will be declined. Possible + /// options are present, not_present. Cannot be set with + /// allowed_card_presences. Provide an empty value to unset this control. + /// One of: not_present, or present. + /// + [JsonProperty("blocked_card_presences")] + [STJS.JsonPropertyName("blocked_card_presences")] + public List BlockedCardPresences { get; set; } + /// /// Array of strings containing categories diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index fb5f04dae1..a96f0c3777 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -33,6 +33,13 @@ public PaymentIntentAmountDetailsOptions AmountDetails } } + /// + /// Amount to confirm on the PaymentIntent. Defaults to amount if not provided. + /// + [JsonProperty("amount_to_confirm")] + [STJS.JsonPropertyName("amount_to_confirm")] + public long? AmountToConfirm { get; set; } + /// /// Controls when the funds will be captured from the customer's account. /// One of: automatic, automatic_async, or manual. @@ -78,8 +85,8 @@ public PaymentIntentAmountDetailsOptions AmountDetails /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("excluded_payment_method_types")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index ac0c411bd7..409ca73bd3 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -169,8 +169,8 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types")] [STJS.JsonPropertyName("excluded_payment_method_types")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index b7c78afd63..8778c208c5 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -407,6 +407,14 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [STJS.JsonPropertyName("sofort")] public PaymentIntentPaymentMethodDataSofortOptions Sofort { get; set; } + /// + /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment + /// method. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public PaymentIntentPaymentMethodDataSunbitOptions Sunbit { get; set; } + /// /// If this is a swish PaymentMethod, this hash contains details about the Swish /// payment method. @@ -436,8 +444,8 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataSunbitOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataSunbitOptions.cs new file mode 100644 index 0000000000..08b82605b4 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataSunbitOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentIntentPaymentMethodDataSunbitOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs new file mode 100644 index 0000000000..f68c70376e --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs @@ -0,0 +1,77 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. Required when amount_type=fixed. If not + /// provided for amount_type=maximum, defaults to 40000. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. Defaults to never. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Only brl is supported currently. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. If not provided, the mandate will be active until canceled. If + /// provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. Defaults to monthly. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. Defaults to the displayable + /// business name. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. Start date should be at least 3 days in + /// the future. Defaults to 3 days after the current date. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs index cb362ea83d..d2d492f789 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs @@ -35,6 +35,14 @@ public class PaymentIntentPaymentMethodOptionsPixOptions : INestedOptions [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime? ExpiresAt { get; set; } + /// + /// Additional fields for mandate creation. Only applicable when + /// setup_future_usage=off_session. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions MandateOptions { get; set; } + /// /// Indicates that you intend to make future payments with this PaymentIntent's payment /// method. @@ -54,10 +62,7 @@ public class PaymentIntentPaymentMethodOptionsPixOptions : INestedOptions /// When processing card payments, Stripe uses setup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. - /// - /// If you've already set setup_future_usage and you're performing a request using a - /// publishable key, you can only update the value from on_session to - /// off_session. + /// One of: none, or off_session. /// [JsonProperty("setup_future_usage")] [STJS.JsonPropertyName("setup_future_usage")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index 4991798882..2ab21d6a56 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -141,8 +141,8 @@ public long? ApplicationFeeAmount /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("excluded_payment_method_types")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index 253dfcb8f3..5a358892bd 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -122,6 +122,17 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("line_items")] public List LineItems { get; set; } + /// + /// Settings for Managed Payments for this Payment Link and resulting CheckoutSessions, PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] + [STJS.JsonPropertyName("managed_payments")] + public PaymentLinkManagedPaymentsOptions 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 @@ -198,8 +209,8 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// grabpay, ideal, klarna, konbini, link, mb_way, /// mobilepay, multibanco, oxxo, p24, pay_by_bank, /// paynow, paypal, payto, pix, promptpay, - /// satispay, sepa_debit, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// satispay, sepa_debit, sofort, sunbit, swish, + /// twint, upi, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkManagedPaymentsOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkManagedPaymentsOptions.cs new file mode 100644 index 0000000000..2bd443fa29 --- /dev/null +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkManagedPaymentsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentLinkManagedPaymentsOptions : INestedOptions + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index 9e8df785ac..02364ec1b1 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -207,8 +207,8 @@ public List OptionalItems /// grabpay, ideal, klarna, konbini, link, mb_way, /// mobilepay, multibanco, oxxo, p24, pay_by_bank, /// paynow, paypal, payto, pix, promptpay, - /// satispay, sepa_debit, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// satispay, sepa_debit, sofort, sunbit, swish, + /// twint, upi, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs index 2b0a280a71..cc849f65a7 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs @@ -528,6 +528,19 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions [STJS.JsonPropertyName("sofort")] public PaymentMethodConfigurationSofortOptions Sofort { get; set; } + /// + /// Sunbit is a single-use payment + /// method where customers choose to pay in 3, 6, or 12 installments. Customers are + /// redirected from your website or app, authorize the payment with Sunbit, then return to + /// your website or app. You get immediate + /// notification of whether the payment succeeded or failed. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public PaymentMethodConfigurationSunbitOptions Sunbit { get; set; } + /// /// Swish is a real-time payment /// method popular in Sweden. It allows customers to + /// The account's preference for whether or not to display this payment method. + /// One of: none, off, or on. + /// + [JsonProperty("preference")] + [STJS.JsonPropertyName("preference")] + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationSunbitOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationSunbitOptions.cs new file mode 100644 index 0000000000..58e75a8505 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationSunbitOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentMethodConfigurationSunbitOptions : INestedOptions + { + /// + /// Whether or not the payment method should be displayed. + /// + [JsonProperty("display_preference")] + [STJS.JsonPropertyName("display_preference")] + public PaymentMethodConfigurationSunbitDisplayPreferenceOptions DisplayPreference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs index d3ac5fbdd9..c9a017f213 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs @@ -528,6 +528,19 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions [STJS.JsonPropertyName("sofort")] public PaymentMethodConfigurationSofortOptions Sofort { get; set; } + /// + /// Sunbit is a single-use payment + /// method where customers choose to pay in 3, 6, or 12 installments. Customers are + /// redirected from your website or app, authorize the payment with Sunbit, then return to + /// your website or app. You get immediate + /// notification of whether the payment succeeded or failed. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public PaymentMethodConfigurationSunbitOptions Sunbit { get; set; } + /// /// Swish is a real-time payment /// method popular in Sweden. It allows customers to + /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment + /// method. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public PaymentMethodSunbitOptions Sunbit { get; set; } + /// /// If this is a swish PaymentMethod, this hash contains details about the Swish /// payment method. @@ -471,8 +479,8 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// mobilepay, multibanco, naver_pay, nz_bank_account, /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// payto, pix, promptpay, revolut_pay, samsung_pay, - /// satispay, sepa_debit, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// satispay, sepa_debit, sofort, sunbit, swish, + /// twint, upi, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs index 2f66ccafba..f6eba8c01e 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -46,8 +46,8 @@ public class PaymentMethodListOptions : ListOptions /// mobilepay, multibanco, naver_pay, nz_bank_account, /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// payto, pix, promptpay, revolut_pay, samsung_pay, - /// satispay, sepa_debit, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// satispay, sepa_debit, sofort, sunbit, swish, + /// twint, upi, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodSunbitOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodSunbitOptions.cs new file mode 100644 index 0000000000..206fefb45c --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodSunbitOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentMethodSunbitOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs index e1e1e7bf89..cdd04fff92 100644 --- a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs +++ b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs @@ -19,13 +19,13 @@ public class ValueListCreateOptions : BaseOptions, IHasMetadata /// /// Type of the items in the value list. One of card_fingerprint, card_bin, /// crypto_fingerprint, email, ip_address, country, - /// string, case_sensitive_string, customer_id, + /// string, case_sensitive_string, customer_id, account, /// sepa_debit_fingerprint, or us_bank_account_fingerprint. Use string /// if the item type is unknown or mixed. - /// One of: card_bin, card_fingerprint, case_sensitive_string, - /// country, crypto_fingerprint, customer_id, email, - /// ip_address, sepa_debit_fingerprint, string, or - /// us_bank_account_fingerprint. + /// One of: account, card_bin, card_fingerprint, + /// case_sensitive_string, country, crypto_fingerprint, + /// customer_id, email, ip_address, sepa_debit_fingerprint, + /// string, or us_bank_account_fingerprint. /// [JsonProperty("item_type")] [STJS.JsonPropertyName("item_type")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs index e2c7169581..cf62fe1273 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -92,8 +92,8 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types")] [STJS.JsonPropertyName("excluded_payment_method_types")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index d60f002867..6d8b864c4e 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -407,6 +407,14 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [STJS.JsonPropertyName("sofort")] public SetupIntentPaymentMethodDataSofortOptions Sofort { get; set; } + /// + /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment + /// method. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public SetupIntentPaymentMethodDataSunbitOptions Sunbit { get; set; } + /// /// If this is a swish PaymentMethod, this hash contains details about the Swish /// payment method. @@ -436,8 +444,8 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataSunbitOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataSunbitOptions.cs new file mode 100644 index 0000000000..d081def656 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataSunbitOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SetupIntentPaymentMethodDataSunbitOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs index f619fc5595..fe7aa2c080 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs @@ -79,6 +79,14 @@ public class SetupIntentPaymentMethodOptionsOptions : INestedOptions [STJS.JsonPropertyName("payto")] public SetupIntentPaymentMethodOptionsPaytoOptions Payto { get; set; } + /// + /// If this is a pix SetupIntent, this sub-hash contains details about the Pix + /// payment method options. + /// + [JsonProperty("pix")] + [STJS.JsonPropertyName("pix")] + public SetupIntentPaymentMethodOptionsPixOptions Pix { get; set; } + /// /// If this is a sepa_debit SetupIntent, this sub-hash contains details about the /// SEPA Debit payment method options. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs new file mode 100644 index 0000000000..564d59cfb2 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs @@ -0,0 +1,77 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SetupIntentPaymentMethodOptionsPixMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. Required when amount_type=fixed. If not + /// provided for amount_type=maximum, defaults to 40000. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. Defaults to never. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Type of amount. Defaults to maximum. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// Three-letter ISO currency + /// code, in lowercase. Only brl is supported currently. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. If not provided, the mandate will be active until canceled. If + /// provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. Defaults to monthly. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + + /// + /// Subscription name displayed to buyers in their bank app. Defaults to the displayable + /// business name. + /// + [JsonProperty("reference")] + [STJS.JsonPropertyName("reference")] + public string Reference { get; set; } + + /// + /// Start date of the mandate, in YYYY-MM-DD. Start date should be at least 3 days in + /// the future. Defaults to 3 days after the current date. + /// + [JsonProperty("start_date")] + [STJS.JsonPropertyName("start_date")] + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixOptions.cs new file mode 100644 index 0000000000..a5969b90ef --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SetupIntentPaymentMethodOptionsPixOptions : INestedOptions + { + /// + /// Additional fields for mandate creation. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SetupIntentPaymentMethodOptionsPixMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index 2c3d3db5d6..78ccf49315 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -65,8 +65,8 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("excluded_payment_method_types")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index fb78e13404..c71a401d4a 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -37,8 +37,8 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions, IHasSetTrackin /// ideal, jp_credit_transfer, kakao_pay, klarna, /// konbini, kr_card, link, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, + /// paypal, payto, pix, promptpay, revolut_pay, + /// sepa_credit_transfer, sepa_debit, sofort, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs index 5c06215afa..53e2337d3f 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs @@ -14,7 +14,9 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsOptions : INestedOpt private SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceOptions customerBalance; private SubscriptionPaymentSettingsPaymentMethodOptionsKonbiniOptions konbini; private SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions payto; + private SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions pix; private SubscriptionPaymentSettingsPaymentMethodOptionsSepaDebitOptions sepaDebit; + private SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions upi; private SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountOptions usBankAccount; [JsonIgnore] @@ -123,6 +125,23 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsPaytoOptions Payto } } + /// + /// This sub-hash contains details about the Pix payment method options to pass to the + /// invoice’s PaymentIntent. + /// + [JsonProperty("pix", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("pix")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions Pix + { + get => this.pix; + set + { + this.pix = value; + this.SetTracker.Track(); + } + } + /// /// This sub-hash contains details about the SEPA Direct Debit payment method options to /// pass to the invoice’s PaymentIntent. @@ -140,6 +159,23 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit } } + /// + /// This sub-hash contains details about the UPI payment method options to pass to the + /// invoice’s PaymentIntent. + /// + [JsonProperty("upi", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("upi")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions Upi + { + get => this.upi; + set + { + this.upi = value; + this.SetTracker.Track(); + } + } + /// /// This sub-hash contains details about the ACH direct debit payment method options to pass /// to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs new file mode 100644 index 0000000000..172c44270c --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. If not provided, defaults to 40000. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// Determines if the amount includes the IOF tax. Defaults to never. + /// One of: always, or never. + /// + [JsonProperty("amount_includes_iof")] + [STJS.JsonPropertyName("amount_includes_iof")] + public string AmountIncludesIof { get; set; } + + /// + /// Date when the mandate expires and no further payments will be charged, in + /// YYYY-MM-DD. If not provided, the mandate will be active until canceled. + /// + [JsonProperty("end_date")] + [STJS.JsonPropertyName("end_date")] + public string EndDate { get; set; } + + /// + /// Schedule at which the future payments will be charged. Defaults to the subscription + /// servicing interval. + /// One of: halfyearly, monthly, quarterly, weekly, or + /// yearly. + /// + [JsonProperty("payment_schedule")] + [STJS.JsonPropertyName("payment_schedule")] + public string PaymentSchedule { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs new file mode 100644 index 0000000000..a8eed118e7 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions : INestedOptions + { + /// + /// The number of seconds (between 10 and 1209600) after which Pix payment will expire. + /// Defaults to 86400 seconds. + /// + [JsonProperty("expires_after_seconds")] + [STJS.JsonPropertyName("expires_after_seconds")] + public long? ExpiresAfterSeconds { get; set; } + + /// + /// Configuration options for setting up a mandate. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs new file mode 100644 index 0000000000..97687097fe --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public long? Amount { get; set; } + + /// + /// One of fixed or maximum. If fixed, the amount param refers + /// to the exact amount to be charged in future payments. If maximum, the amount + /// charged can be up to the value passed for the amount param. + /// One of: fixed, or maximum. + /// + [JsonProperty("amount_type")] + [STJS.JsonPropertyName("amount_type")] + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions.cs new file mode 100644 index 0000000000..89a71c4b22 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions : INestedOptions + { + /// + /// Configuration options for setting up an eMandate. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index 0bd0630f4c..478869a6d9 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -206,8 +206,9 @@ public virtual Task MigrateAsync(string id, SubscriptionMigrateOpt /// 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.

. + /// the invoice isn’t paid by the expiration date, it is voided and the subscription remains + /// paused. You can only resume subscriptions with collection_method set to + /// charge_automatically. send_invoice subscriptions are not supported.

. ///
public virtual Subscription Resume(string id, SubscriptionResumeOptions options = null, RequestOptions requestOptions = null) { @@ -219,8 +220,9 @@ public virtual Subscription Resume(string id, SubscriptionResumeOptions options /// 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.

. + /// the invoice isn’t paid by the expiration date, it is voided and the subscription remains + /// paused. You can only resume subscriptions with collection_method set to + /// charge_automatically. send_invoice subscriptions are not supported.

. ///
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 ca2edc09d0..c908b86441 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs @@ -18,14 +18,15 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// ch_uid, ch_vat, cl_tin, cm_niu, cn_tin, /// co_nit, cr_tin, cv_nif, de_stn, do_rcn, /// ec_ruc, eg_tin, es_cif, et_tin, eu_oss_vat, - /// eu_vat, 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, - /// 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, + /// eu_vat, fo_vat, gb_vat, ge_vat, gi_tin, + /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, + /// il_vat, in_gst, is_vat, it_cf, jp_cn, jp_rn, + /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, + /// 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, py_ruc, 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, @@ -41,19 +42,20 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs index ee46d36aaa..184ccbed70 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs @@ -9,12 +9,9 @@ namespace Stripe.Tax public class RegistrationCountryOptionsUsLocalAmusementTaxOptions : INestedOptions { /// - /// A FIPS code - /// 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). + /// A jurisdiction code representing the local + /// jurisdiction. /// [JsonProperty("jurisdiction")] [STJS.JsonPropertyName("jurisdiction")] diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs index 057fb8dd8f..77d4c8f6a4 100644 --- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs @@ -25,14 +25,15 @@ public class TaxIdCreateOptions : BaseOptions /// ch_uid, ch_vat, cl_tin, cm_niu, cn_tin, /// co_nit, cr_tin, cv_nif, de_stn, do_rcn, /// ec_ruc, eg_tin, es_cif, et_tin, eu_oss_vat, - /// eu_vat, 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, - /// 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, + /// eu_vat, fo_vat, gb_vat, ge_vat, gi_tin, + /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, + /// il_vat, in_gst, is_vat, it_cf, jp_cn, jp_rn, + /// jp_trn, ke_pin, kg_tin, kh_tin, kr_brn, + /// 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, py_ruc, 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, @@ -48,19 +49,20 @@ public class TaxIdCreateOptions : BaseOptions /// ch_vat, cl_tin, cm_niu, cn_tin, co_nit, /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, - /// 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, 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. + /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, + /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, + /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, + /// kg_tin, kh_tin, kr_brn, 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, py_ruc, 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")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index 86bc312422..8ab9a7b029 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -407,6 +407,14 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet [STJS.JsonPropertyName("sofort")] public ConfirmationTokenPaymentMethodDataSofortOptions Sofort { get; set; } + /// + /// If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment + /// method. + /// + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public ConfirmationTokenPaymentMethodDataSunbitOptions Sunbit { get; set; } + /// /// If this is a swish PaymentMethod, this hash contains details about the Swish /// payment method. @@ -436,8 +444,8 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, /// payco, paynow, paypal, payto, pix, promptpay, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// sofort, swish, twint, upi, us_bank_account, - /// wechat_pay, or zip. + /// sofort, sunbit, swish, twint, upi, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataSunbitOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataSunbitOptions.cs new file mode 100644 index 0000000000..0389790221 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataSunbitOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ConfirmationTokenPaymentMethodDataSunbitOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 522d0a5a8a..8975b0ad09 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -46,8 +46,8 @@ 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, 2026-01-28.clover, 2026-02-25.clover, or - /// 2026-03-25.dahlia. + /// 2025-12-15.clover, 2026-01-28.clover, 2026-02-25.clover, + /// 2026-03-25.dahlia, or 2026-04-22.dahlia. /// [JsonProperty("api_version")] [STJS.JsonPropertyName("api_version")]