diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 6328c51ef8..0a10ecafbf 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -6bd90d0c763120698bef2e92514641c64e20980c \ No newline at end of file +3ac0dc357d86c95bbba40ca9818f5eacf4d0a405 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 97a2932083..1ae2e8d30e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2253 \ No newline at end of file +v2254 \ 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 891da3b06b..a791561aee 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -25,6 +25,10 @@ public class AccountSessionComponents : StripeEntity [STJS.JsonPropertyName("agentic_commerce_settings")] public AccountSessionComponentsAgenticCommerceSettings AgenticCommerceSettings { get; set; } + [JsonProperty("balance_report")] + [STJS.JsonPropertyName("balance_report")] + public AccountSessionComponentsBalanceReport BalanceReport { get; set; } + [JsonProperty("balances")] [STJS.JsonPropertyName("balances")] public AccountSessionComponentsBalances Balances { get; set; } @@ -134,6 +138,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 23c4829a4d..2f011bf0f5 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. @@ -563,6 +572,15 @@ public class AccountCapabilities : StripeEntity [STJS.JsonPropertyName("stripe_balance_payments")] public string StripeBalancePayments { 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 26aeaa2200..76b8948a2f 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 e5e57fd625..78b2b4045c 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -240,6 +240,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/ChargePaymentMethodDetailsGiftCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs index b0a56f3e97..92cce5da20 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs @@ -41,6 +41,13 @@ public class ChargePaymentMethodDetailsGiftCard : StripeEntity + /// The last four digits of the gift card number. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + /// /// The transaction ID from the gift card processor. /// 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/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/SessionCollectedInformationTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs index fc82533300..a53c2b2652 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs @@ -16,22 +16,23 @@ public class SessionCollectedInformationTaxId : 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 SessionCollectedInformationTaxId : 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/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/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs index bf2a68f85a..c223ea5702 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs @@ -280,6 +280,10 @@ public Customer Customer [STJS.JsonPropertyName("stripe_balance")] public ConfirmationTokenPaymentMethodPreviewStripeBalance StripeBalance { get; set; } + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public ConfirmationTokenPaymentMethodPreviewSunbit Sunbit { get; set; } + [JsonProperty("swish")] [STJS.JsonPropertyName("swish")] public ConfirmationTokenPaymentMethodPreviewSwish Swish { get; set; } @@ -303,8 +307,9 @@ public Customer Customer /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, paypay, payto, pix, promptpay, /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, stripe_balance, swish, - /// twint, upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, sofort, stripe_balance, + /// 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/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs b/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs index eb2c5ff2c7..f5dad35bfc 100644 --- a/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItemTaxTaxRateDetails.cs @@ -8,11 +8,39 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class CreditNoteLineItemTaxTaxRateDetails : StripeEntity { + #region Expandable TaxRate + + /// + /// (ID of the TaxRate) + /// ID of the tax rate. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string TaxRateId + { + get => this.InternalTaxRate?.Id; + set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate); + } + /// + /// (Expanded) /// ID of the tax rate. + /// + /// For more information, see the expand documentation. /// + [JsonIgnore] + [STJS.JsonIgnore] + public TaxRate TaxRate + { + get => this.InternalTaxRate?.ExpandedObject; + set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate); + } + [JsonProperty("tax_rate")] + [JsonConverter(typeof(ExpandableFieldConverter))] [STJS.JsonPropertyName("tax_rate")] - public string TaxRate { get; set; } + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalTaxRate { get; set; } + #endregion } } diff --git a/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs b/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs index 59fc50292a..f86b1479c8 100644 --- a/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/CreditNotes/CreditNoteTotalTaxTaxRateDetails.cs @@ -8,11 +8,39 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class CreditNoteTotalTaxTaxRateDetails : StripeEntity { + #region Expandable TaxRate + + /// + /// (ID of the TaxRate) + /// ID of the tax rate. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string TaxRateId + { + get => this.InternalTaxRate?.Id; + set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate); + } + /// + /// (Expanded) /// ID of the tax rate. + /// + /// For more information, see the expand documentation. /// + [JsonIgnore] + [STJS.JsonIgnore] + public TaxRate TaxRate + { + get => this.InternalTaxRate?.ExpandedObject; + set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate); + } + [JsonProperty("tax_rate")] + [JsonConverter(typeof(ExpandableFieldConverter))] [STJS.JsonPropertyName("tax_rate")] - public string TaxRate { get; set; } + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalTaxRate { get; set; } + #endregion } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs index 54d65f4ec7..bfe6636381 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketing.cs @@ -9,6 +9,13 @@ namespace Stripe.DelegatedCheckout [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class RequestedSessionBuyerConsentsMarketing : StripeEntity { + /// + /// The buyer's marketing consent choices. + /// + [JsonProperty("consents")] + [STJS.JsonPropertyName("consents")] + public List Consents { get; set; } + /// /// The available marketing consent options. /// diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingConsent.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingConsent.cs new file mode 100644 index 0000000000..cbdef8481e --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingConsent.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class RequestedSessionBuyerConsentsMarketingConsent : StripeEntity + { + /// + /// The marketing consent channel. + /// One of: email, or sms. + /// + [JsonProperty("channel")] + [STJS.JsonPropertyName("channel")] + public string Channel { get; set; } + + /// + /// The consent status. 'granted' means the buyer opted in, 'none' means they did not. + /// One of: granted, or none. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs index b02ad2da16..58187cd350 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemTaxTaxRateDetails.cs @@ -8,11 +8,39 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class InvoiceLineItemTaxTaxRateDetails : StripeEntity { + #region Expandable TaxRate + + /// + /// (ID of the TaxRate) + /// ID of the tax rate. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string TaxRateId + { + get => this.InternalTaxRate?.Id; + set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate); + } + /// + /// (Expanded) /// ID of the tax rate. + /// + /// For more information, see the expand documentation. /// + [JsonIgnore] + [STJS.JsonIgnore] + public TaxRate TaxRate + { + get => this.InternalTaxRate?.ExpandedObject; + set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate); + } + [JsonProperty("tax_rate")] + [JsonConverter(typeof(ExpandableFieldConverter))] [STJS.JsonPropertyName("tax_rate")] - public string TaxRate { get; set; } + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalTaxRate { get; set; } + #endregion } } diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index e1c5b11b57..546377abec 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -803,9 +803,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")] @@ -815,8 +814,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 787f9290ae..f50850046b 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -34,9 +34,9 @@ public class InvoicePaymentSettings : StripeEntity /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, boleto, card, cashapp, check_scan, - /// crypto, custom, customer_balance, eps, fpx, - /// giropay, grabpay, id_bank_transfer, ideal, + /// bizum, blik, boleto, card, cashapp, + /// check_scan, crypto, custom, customer_balance, eps, + /// fpx, giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs index bd0c2ae85d..f6d47e5121 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs @@ -32,6 +32,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by blik, this sub-hash contains details about the Blik payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("blik")] + [STJS.JsonPropertyName("blik")] + public InvoicePaymentSettingsPaymentMethodOptionsBlik Blik { get; set; } + /// /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBlik.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBlik.cs new file mode 100644 index 0000000000..24ed73df34 --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBlik.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 InvoicePaymentSettingsPaymentMethodOptionsBlik : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs b/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs index c1dc2e7a8f..9ac30976bb 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceTotalTaxTaxRateDetails.cs @@ -8,11 +8,39 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class InvoiceTotalTaxTaxRateDetails : StripeEntity { + #region Expandable TaxRate + + /// + /// (ID of the TaxRate) + /// ID of the tax rate. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string TaxRateId + { + get => this.InternalTaxRate?.Id; + set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate); + } + /// + /// (Expanded) /// ID of the tax rate. + /// + /// For more information, see the expand documentation. /// + [JsonIgnore] + [STJS.JsonIgnore] + public TaxRate TaxRate + { + get => this.InternalTaxRate?.ExpandedObject; + set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate); + } + [JsonProperty("tax_rate")] + [JsonConverter(typeof(ExpandableFieldConverter))] [STJS.JsonPropertyName("tax_rate")] - public string TaxRate { get; set; } + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalTaxRate { get; set; } + #endregion } } diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 5696e8c1ee..a262779b10 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/Orders/OrderTaxDetailsTaxId.cs b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs index d685b6b0be..7052eaab2d 100644 --- a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs @@ -16,22 +16,23 @@ public class OrderTaxDetailsTaxId : 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 OrderTaxDetailsTaxId : 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/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs index 1ff4c311a0..97adbfd527 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs @@ -270,6 +270,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/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs index d8a15f8fa9..7cdf5bcc06 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs @@ -8,6 +8,9 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentAttemptRecordPaymentMethodDetailsGiftCard : StripeEntity { + /// + /// The balance of the gift card after the transaction. + /// [JsonProperty("balance")] [STJS.JsonPropertyName("balance")] public PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance Balance { get; set; } @@ -41,6 +44,13 @@ public class PaymentAttemptRecordPaymentMethodDetailsGiftCard : StripeEntity + /// The last four digits of the gift card number. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + /// /// The transaction ID from the gift card processor. /// diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs index 2e5c648f42..51b012bdc6 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance.cs @@ -13,7 +13,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsGiftCardBalance : StripeEnt /// [JsonProperty("amount")] [STJS.JsonPropertyName("amount")] - public long Amount { get; set; } + public long? Amount { get; set; } /// /// The currency of the balance. 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/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 9c785ae146..dd85653b83 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -312,8 +312,8 @@ public Customer Customer /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs index 3e5a3b778b..56ca8e0a80 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs @@ -19,7 +19,7 @@ public class PaymentIntentAmountDetailsShipping : StripeEntity /// If a physical good is being shipped, the postal code of where it is being shipped from. - /// At most 10 alphanumeric characters long, hyphens are allowed. + /// At most 10 alphanumeric characters long, hyphens and spaces are allowed. /// [JsonProperty("from_postal_code")] [STJS.JsonPropertyName("from_postal_code")] @@ -27,7 +27,7 @@ public class PaymentIntentAmountDetailsShipping : StripeEntity /// If a physical good is being shipped, the postal code of where it is being shipped to. At - /// most 10 alphanumeric characters long, hyphens are allowed. + /// most 10 alphanumeric characters long, hyphens and spaces are allowed. /// [JsonProperty("to_postal_code")] [STJS.JsonPropertyName("to_postal_code")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs index c82422cf89..cd5fcff5ce 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs @@ -33,6 +33,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/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index 50713b3390..c2de15a78f 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -285,8 +285,8 @@ public Account OnBehalfOf /// mb_way, mobilepay, multibanco, oxxo, p24, /// pay_by_bank, paynow, paypal, paypay, payto, /// pix, promptpay, qris, rechnung, satispay, - /// sepa_debit, shopeepay, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, 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/PaymentMethodConfigurations/PaymentMethodConfiguration.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs index 69e700e0ac..e43e0cc9e9 100644 --- a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs +++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs @@ -312,6 +312,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 014a4a5131..1ff4e28a34 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -341,6 +341,13 @@ public Customer Customer [STJS.JsonPropertyName("sepa_debit")] public PaymentMethodSepaDebit SepaDebit { get; set; } + /// + /// ID of the shared payment granted token used in the creation of this PaymentMethod. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + [JsonProperty("shopeepay")] [STJS.JsonPropertyName("shopeepay")] public PaymentMethodShopeepay Shopeepay { get; set; } @@ -353,6 +360,10 @@ public Customer Customer [STJS.JsonPropertyName("stripe_balance")] public PaymentMethodStripeBalance StripeBalance { get; set; } + [JsonProperty("sunbit")] + [STJS.JsonPropertyName("sunbit")] + public PaymentMethodSunbit Sunbit { get; set; } + [JsonProperty("swish")] [STJS.JsonPropertyName("swish")] public PaymentMethodSwish Swish { get; set; } @@ -376,8 +387,9 @@ public Customer Customer /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, paypay, payto, pix, promptpay, /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, stripe_balance, swish, - /// twint, upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, sofort, stripe_balance, + /// 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 896ceec658..92899de836 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs @@ -270,6 +270,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/PaymentRecordPaymentMethodDetailsGiftCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs index 4ee46469d8..ec1323d2bb 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs @@ -8,6 +8,9 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentRecordPaymentMethodDetailsGiftCard : StripeEntity { + /// + /// The balance of the gift card after the transaction. + /// [JsonProperty("balance")] [STJS.JsonPropertyName("balance")] public PaymentRecordPaymentMethodDetailsGiftCardBalance Balance { get; set; } @@ -41,6 +44,13 @@ public class PaymentRecordPaymentMethodDetailsGiftCard : StripeEntity + /// The last four digits of the gift card number. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + /// /// The transaction ID from the gift card processor. /// diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs index cc08c16f40..edae5caeb1 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCardBalance.cs @@ -13,7 +13,7 @@ public class PaymentRecordPaymentMethodDetailsGiftCardBalance : StripeEntity [JsonProperty("amount")] [STJS.JsonPropertyName("amount")] - public long Amount { get; set; } + public long? Amount { get; set; } /// /// The currency of the balance. 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/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/Privacy/RedactionJobs/RedactionJob.cs b/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs index eb75159402..3ef04ab8b8 100644 --- a/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs +++ b/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs @@ -69,5 +69,13 @@ public class RedactionJob : StripeEntity, IHasId, IHasObject [JsonProperty("validation_behavior")] [STJS.JsonPropertyName("validation_behavior")] public string ValidationBehavior { get; set; } + + /// + /// The first 10 validation errors for the current validation attempt. Use the validation + /// errors list endpoint to paginate through the full list. + /// + [JsonProperty("validation_errors")] + [STJS.JsonPropertyName("validation_errors")] + public StripeList ValidationErrors { get; set; } } } diff --git a/src/Stripe.net/Entities/Products/Product.cs b/src/Stripe.net/Entities/Products/Product.cs index 9922574449..ccc36c6c9d 100644 --- a/src/Stripe.net/Entities/Products/Product.cs +++ b/src/Stripe.net/Entities/Products/Product.cs @@ -211,6 +211,15 @@ public TaxCode TaxCode internal ExpandableField InternalTaxCode { get; set; } #endregion + /// + /// Tax details for this product, including the tax code and an optional performance + /// location. + /// + [JsonProperty("tax_details")] + [STJS.JsonPropertyName("tax_details")] + public ProductTaxDetails TaxDetails { get; set; } + /// /// The type of the product. The product is either of type good, which is eligible /// for use with Orders and SKUs, or service, which is eligible for use with diff --git a/src/Stripe.net/Entities/Products/ProductTaxDetails.cs b/src/Stripe.net/Entities/Products/ProductTaxDetails.cs new file mode 100644 index 0000000000..e1a3e3c08f --- /dev/null +++ b/src/Stripe.net/Entities/Products/ProductTaxDetails.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(STJStripeEntityConverter))] + public class ProductTaxDetails : StripeEntity + { + /// + /// The performance location. + /// + [JsonProperty("performance_location")] + [STJS.JsonPropertyName("performance_location")] + public string PerformanceLocation { get; set; } + + /// + /// A tax code ID. + /// + [JsonProperty("tax_code")] + [STJS.JsonPropertyName("tax_code")] + public string TaxCode { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs index c9b164e8d7..c3a2ced0c8 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs @@ -738,9 +738,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")] @@ -750,8 +749,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/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs index a6815ead88..f935405eaa 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs @@ -16,22 +16,23 @@ public class QuotePreviewInvoiceCustomerTaxId : 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 QuotePreviewInvoiceCustomerTaxId : 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/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index e05921a9f8..90e49dfef5 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -34,9 +34,9 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, boleto, card, cashapp, check_scan, - /// crypto, custom, customer_balance, eps, fpx, - /// giropay, grabpay, id_bank_transfer, ideal, + /// bizum, blik, boleto, card, cashapp, + /// check_scan, crypto, custom, customer_balance, eps, + /// fpx, giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs index d106f52525..19d993703a 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs @@ -32,6 +32,14 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti [STJS.JsonPropertyName("bizum")] public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// + /// If paying by blik, this sub-hash contains details about the Blik payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("blik")] + [STJS.JsonPropertyName("blik")] + public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBlik Blik { get; set; } + /// /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBlik.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBlik.cs new file mode 100644 index 0000000000..df5f9df12c --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBlik.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 QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBlik : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceTotalTaxTaxRateDetails.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceTotalTaxTaxRateDetails.cs index d6aeba08f0..7d90c28562 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceTotalTaxTaxRateDetails.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceTotalTaxTaxRateDetails.cs @@ -8,11 +8,39 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class QuotePreviewInvoiceTotalTaxTaxRateDetails : StripeEntity { + #region Expandable TaxRate + + /// + /// (ID of the TaxRate) + /// ID of the tax rate. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string TaxRateId + { + get => this.InternalTaxRate?.Id; + set => this.InternalTaxRate = SetExpandableFieldId(value, this.InternalTaxRate); + } + /// + /// (Expanded) /// ID of the tax rate. + /// + /// For more information, see the expand documentation. /// + [JsonIgnore] + [STJS.JsonIgnore] + public TaxRate TaxRate + { + get => this.InternalTaxRate?.ExpandedObject; + set => this.InternalTaxRate = SetExpandableFieldObject(value, this.InternalTaxRate); + } + [JsonProperty("tax_rate")] + [JsonConverter(typeof(ExpandableFieldConverter))] [STJS.JsonPropertyName("tax_rate")] - public string TaxRate { get; set; } + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalTaxRate { get; set; } + #endregion } } 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/SetupAttemptPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs index 4599862554..3ca0bf685c 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs @@ -98,6 +98,13 @@ public class SetupAttemptPaymentMethodDetailsCard : 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/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index 0740b606d9..ff269958f2 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -216,8 +216,8 @@ public Customer Customer /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 26e86d3bb6..5b5dd947d0 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -26,9 +26,9 @@ public class SubscriptionPaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, boleto, card, cashapp, check_scan, - /// crypto, custom, customer_balance, eps, fpx, - /// giropay, grabpay, id_bank_transfer, ideal, + /// bizum, blik, boleto, card, cashapp, + /// check_scan, crypto, custom, customer_balance, eps, + /// fpx, giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs index f461c0e59e..8e7ac2df00 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs @@ -32,6 +32,14 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the Blik payment method options to pass to invoices + /// created by the subscription. + /// + [JsonProperty("blik")] + [STJS.JsonPropertyName("blik")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBlik Blik { get; set; } + /// /// This sub-hash contains details about the Card payment method options to pass to invoices /// created by the subscription. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlik.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlik.cs new file mode 100644 index 0000000000..4d4026d383 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlik.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 SubscriptionPaymentSettingsPaymentMethodOptionsBlik : StripeEntity + { + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptions.cs new file mode 100644 index 0000000000..75d5db5322 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptions.cs @@ -0,0 +1,22 @@ +// 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 SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptions : StripeEntity + { + /// + /// Date when the mandate expires and no further payments will be charged. If not provided, + /// the mandate will be set to be indefinite. + /// + [JsonProperty("expires_after")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("expires_after")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? ExpiresAfter { 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/Entities/Treasury/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs index 3140b7c1c8..f5b5f051d9 100644 --- a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs @@ -151,6 +151,13 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// The purpose of the OutboundPayment, if applicable. + /// + [JsonProperty("purpose")] + [STJS.JsonPropertyName("purpose")] + public string Purpose { get; set; } + /// /// Details about a returned OutboundPayment. Only set when the status is returned. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs index c7a53ab975..1d8390beed 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs @@ -8,15 +8,12 @@ namespace Stripe.V2.Core using STJS = System.Text.Json.Serialization; /// - /// An Account v2 object represents a company, individual, or other entity that interacts - /// with a platform on Stripe. It contains both identifying information and properties that + /// An Account v2 object represents a company, individual, or other entity that your Stripe + /// integration interacts with. It contains both identifying information and properties that /// control its behavior and functionality. An Account can have one or more configurations /// that enable sets of related features, such as allowing it to act as a merchant or - /// customer. The Accounts v2 API supports both the Global Payouts preview feature and the - /// Connect-Billing integration preview feature. However, a particular Account can only - /// access one of them. The Connect-Billing integration preview feature allows an Account v2 - /// to pay subscription fees to a platform. An Account v1 required a separate Customer - /// object to pay subscription fees. + /// customer. The Accounts v2 API is broadly available to Connect platforms, and to other + /// users in preview. The Accounts v2 API also supports the Global Payouts preview feature. /// [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject @@ -63,8 +60,7 @@ public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject public AccountConfiguration Configuration { get; set; } /// - /// The default contact email address for the Account. Required when configuring the account - /// as a merchant or recipient. + /// The primary contact email address for the Account. /// [JsonProperty("contact_email")] [STJS.JsonPropertyName("contact_email")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs index 3c124bc175..fe3f00cac0 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs @@ -16,7 +16,8 @@ public class AccountConfiguration : StripeEntity public AccountConfigurationCardCreator CardCreator { get; set; } /// - /// The Customer Configuration allows the Account to be used in inbound payment flows. + /// The Customer Configuration allows the Account to be used in inbound payment flows (i.e. + /// customer-facing payment and billing flows). /// [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs index 12f8d088fa..6ad27961f4 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerBilling.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Core public class AccountConfigurationCustomerBilling : StripeEntity { /// - /// ID of a PaymentMethod attached to the customer account to use as the default for - /// invoices and subscriptions. + /// The ID of a PaymentMethod attached to this Account's customer + /// configuration, used as the default payment method for invoices and subscriptions. /// [JsonProperty("default_payment_method")] [STJS.JsonPropertyName("default_payment_method")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs index 2898a07c67..00664d89d1 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs @@ -34,7 +34,9 @@ public class AccountIdentity : StripeEntity public string Country { get; set; } /// - /// The entity type. + /// The entity type represented by the Account. Ensure this field is accurate before adding + /// configurations that rely on identity information, as it determines which identity fields + /// apply and how the Account is validated. /// One of: company, government_entity, individual, or /// non_profit. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs index f478210ff8..744c6fa881 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs @@ -68,7 +68,9 @@ public class AccountIdentityIndividual : StripeEntity public AccountIdentityIndividualDocuments Documents { get; set; } /// - /// The individual's email address. + /// The individual's email address. You can only set this field when the Account is + /// configured as a merchant or recipient. Use contact_email as the + /// primary contact email for this Account. /// [JsonProperty("email")] [STJS.JsonPropertyName("email")] diff --git a/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResult.cs b/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResult.cs new file mode 100644 index 0000000000..0a48f13aa0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResult.cs @@ -0,0 +1,73 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data.Analytics +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// The result of a metric query. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class MetricQueryResult : StripeEntity, IHasId, IHasObject + { + /// + /// The unique identifier of this metric query result. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The timestamp at which this metric query result was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// An array of timeseries data rows. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public List Data { get; set; } + + /// + /// Whether this query was run in live mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Pagination future-proofing: URL to fetch the next page; always null for now. + /// + [JsonProperty("next_page_url")] + [STJS.JsonPropertyName("next_page_url")] + public string NextPageUrl { get; set; } + + /// + /// Pagination future-proofing: URL to fetch the previous page; always null for now. + /// + [JsonProperty("previous_page_url")] + [STJS.JsonPropertyName("previous_page_url")] + public string PreviousPageUrl { get; set; } + + /// + /// A timestamp representing the freshness of the data this metric is aggregated from. + /// + [JsonProperty("refreshed_at")] + [STJS.JsonPropertyName("refreshed_at")] + public DateTime RefreshedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResultData.cs b/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResultData.cs new file mode 100644 index 0000000000..0130db5956 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResultData.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data.Analytics +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class MetricQueryResultData : StripeEntity, IHasId + { + /// + /// A hash of dimension type to dimension instance, if group_by was specified. + /// + [JsonProperty("dimensions")] + [STJS.JsonPropertyName("dimensions")] + public Dictionary Dimensions { get; set; } + + /// + /// A unique identifier for this row. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// Array of metric values returned from this query. + /// + [JsonProperty("results")] + [STJS.JsonPropertyName("results")] + public List Results { get; set; } + + /// + /// Timestamp denoting the start of this time bucket. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResultDataResult.cs b/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResultDataResult.cs new file mode 100644 index 0000000000..b92ea9e4d5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Data/Analytics/MetricQueryResults/MetricQueryResultDataResult.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data.Analytics +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class MetricQueryResultDataResult : StripeEntity + { + /// + /// If this is a monetary metric, the currency it is returned in. Otherwise null. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The Gen6 ID of this metric. + /// + [JsonProperty("metric")] + [STJS.JsonPropertyName("metric")] + public string Metric { get; set; } + + /// + /// The common name of this metric. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The numeric value of this metric. + /// + [JsonProperty("value")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("value")] + public long Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs index f7584cb424..bc3c619bab 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs @@ -17,6 +17,14 @@ public class FinancialAddressCredentials : StripeEntity + /// The credentials of the crypto wallet for the Financial Address. This contains unique + /// details such as the blockchain network, wallet address, and memo of a crypto wallet. + /// + [JsonProperty("crypto_wallet")] + [STJS.JsonPropertyName("crypto_wallet")] + public FinancialAddressCredentialsCryptoWallet CryptoWallet { get; set; } + /// /// The credentials of the UK Bank Account for the FinancialAddress. This contains unique /// banking details such as the sort code, account number, etc. of a UK bank account. @@ -25,6 +33,15 @@ public class FinancialAddressCredentials : StripeEntity + /// The credentials of the Mexican Bank Account for the FinancialAddress. This contains + /// unique banking details such as the CLABE and account holder name of a Mexican bank + /// account. + /// + [JsonProperty("mx_bank_account")] + [STJS.JsonPropertyName("mx_bank_account")] + public FinancialAddressCredentialsMxBankAccount MxBankAccount { get; set; } + /// /// The credentials of the SEPA Bank Account for the FinancialAddress. This contains unique /// banking details such as the IBAN, BIC, etc. of a SEPA bank account. @@ -35,8 +52,8 @@ public class FinancialAddressCredentials : StripeEntity /// Open Enum. The type of Credentials that are provisioned for the FinancialAddress. - /// One of: ca_bank_account, gb_bank_account, sepa_bank_account, or - /// us_bank_account. + /// One of: ca_bank_account, crypto_wallet, gb_bank_account, + /// mx_bank_account, sepa_bank_account, or us_bank_account. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsCryptoWallet.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsCryptoWallet.cs new file mode 100644 index 0000000000..14519cd70a --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsCryptoWallet.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class FinancialAddressCredentialsCryptoWallet : StripeEntity + { + /// + /// The blockchain address of the crypto wallet. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public string Address { get; set; } + + /// + /// Required if the network supports memos (e.g. Stellar). + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The blockchain network of the crypto wallet. + /// One of: arbitrum, avalanche_c_chain, base, ethereum, + /// optimism, polygon, solana, stellar, or tempo. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsMxBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsMxBankAccount.cs new file mode 100644 index 0000000000..cd2ccedbb4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsMxBankAccount.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class FinancialAddressCredentialsMxBankAccount : StripeEntity + { + /// + /// The account holder name to be used during bank transfers. + /// + [JsonProperty("account_holder_name")] + [STJS.JsonPropertyName("account_holder_name")] + public string AccountHolderName { get; set; } + + /// + /// The CLABE (Clave Bancaria Estandarizada) of the Mexican Bank Account. + /// + [JsonProperty("clabe")] + [STJS.JsonPropertyName("clabe")] + public string Clabe { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs index 80ec9a10c5..55bcb78430 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCredit.cs @@ -67,6 +67,14 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("created")] public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + /// + /// This object stores details about the originating crypto transaction that resulted in the + /// ReceivedCredit. Present if type field value is crypto_wallet_transfer. + /// + [JsonProperty("crypto_wallet_transfer")] + [STJS.JsonPropertyName("crypto_wallet_transfer")] + public ReceivedCreditCryptoWalletTransfer CryptoWalletTransfer { get; set; } + /// /// Freeform string set by originator of the ReceivedCredit. /// @@ -139,7 +147,7 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject /// /// Open Enum. The type of flow that caused the ReceivedCredit. /// One of: balance_transfer, bank_transfer, card_spend, - /// external_credit, or stripe_balance_payment. + /// crypto_wallet_transfer, external_credit, or stripe_balance_payment. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs index 1415ba1f69..5063b3998c 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs @@ -16,6 +16,14 @@ public class ReceivedCreditBankTransfer : StripeEntity + /// Hash containing the transaction bank details. Present if origin_type field value + /// is eu_bank_account. + /// + [JsonProperty("eu_bank_account")] + [STJS.JsonPropertyName("eu_bank_account")] + public ReceivedCreditBankTransferEuBankAccount EuBankAccount { get; set; } + /// /// Financial Address on which funds for ReceivedCredit were received. /// @@ -31,9 +39,18 @@ public class ReceivedCreditBankTransfer : StripeEntity + /// Hash containing the transaction bank details. Present if origin_type field value + /// is mx_bank_account. + /// + [JsonProperty("mx_bank_account")] + [STJS.JsonPropertyName("mx_bank_account")] + public ReceivedCreditBankTransferMxBankAccount MxBankAccount { get; set; } + /// /// Open Enum. Indicates the origin of source from which external funds originated from. - /// One of: ca_bank_account, gb_bank_account, sepa_bank_account, or + /// One of: ca_bank_account, crypto_wallet, eu_bank_account, + /// gb_bank_account, mx_bank_account, sepa_bank_account, or /// us_bank_account. /// [JsonProperty("origin_type")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferEuBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferEuBankAccount.cs new file mode 100644 index 0000000000..294ac0b8bc --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferEuBankAccount.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReceivedCreditBankTransferEuBankAccount : StripeEntity + { + /// + /// The account holder name of the bank account the transfer was received from. + /// + [JsonProperty("account_holder_name")] + [STJS.JsonPropertyName("account_holder_name")] + public string AccountHolderName { get; set; } + + /// + /// The bank name the transfer was received from. + /// + [JsonProperty("bank_name")] + [STJS.JsonPropertyName("bank_name")] + public string BankName { get; set; } + + /// + /// The bic of the account that originated the transfer. + /// + [JsonProperty("bic")] + [STJS.JsonPropertyName("bic")] + public string Bic { get; set; } + + /// + /// The last 4 digits of the account number that originated the transfer. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + + /// + /// Open Enum. The money transmission network used to send funds for this ReceivedCredit. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferMxBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferMxBankAccount.cs new file mode 100644 index 0000000000..a87d66725b --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferMxBankAccount.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReceivedCreditBankTransferMxBankAccount : StripeEntity + { + /// + /// The account holder name of the bank account the transfer was received from. + /// + [JsonProperty("account_holder_name")] + [STJS.JsonPropertyName("account_holder_name")] + public string AccountHolderName { get; set; } + + /// + /// The bank name the transfer was received from. + /// + [JsonProperty("bank_name")] + [STJS.JsonPropertyName("bank_name")] + public string BankName { get; set; } + + /// + /// The last 4 digits of the account number that originated the transfer. + /// + [JsonProperty("last4")] + [STJS.JsonPropertyName("last4")] + public string Last4 { get; set; } + + /// + /// Open Enum. The money transmission network used to send funds for this ReceivedCredit. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditCryptoWalletTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditCryptoWalletTransfer.cs new file mode 100644 index 0000000000..12938423a7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditCryptoWalletTransfer.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReceivedCreditCryptoWalletTransfer : StripeEntity + { + /// + /// Hash containing the transaction crypto wallet details. + /// + [JsonProperty("crypto_wallet")] + [STJS.JsonPropertyName("crypto_wallet")] + public ReceivedCreditCryptoWalletTransferCryptoWallet CryptoWallet { get; set; } + + /// + /// Financial Address on which funds for ReceivedCredit were received. + /// + [JsonProperty("financial_address")] + [STJS.JsonPropertyName("financial_address")] + public string FinancialAddress { get; set; } + + /// + /// Open Enum. Indicates the origin of source from which external funds originated from. + /// One of: ca_bank_account, crypto_wallet, eu_bank_account, + /// gb_bank_account, mx_bank_account, sepa_bank_account, or + /// us_bank_account. + /// + [JsonProperty("origin_type")] + [STJS.JsonPropertyName("origin_type")] + public string OriginType { get; set; } + + /// + /// Freeform string set by originator of the external ReceivedCredit. + /// + [JsonProperty("statement_descriptor")] + [STJS.JsonPropertyName("statement_descriptor")] + public string StatementDescriptor { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditCryptoWalletTransferCryptoWallet.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditCryptoWalletTransferCryptoWallet.cs new file mode 100644 index 0000000000..16daf5c17d --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditCryptoWalletTransferCryptoWallet.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReceivedCreditCryptoWalletTransferCryptoWallet : StripeEntity + { + /// + /// The address of the wallet the crypto was received from. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public string Address { get; set; } + + /// + /// A memo also for identifying the recipient for memo-based blockchains (e.g., Stellar),. + /// + [JsonProperty("memo")] + [STJS.JsonPropertyName("memo")] + public string Memo { get; set; } + + /// + /// The network the crypto was received from. + /// One of: arbitrum, avalanche_c_chain, base, ethereum, + /// optimism, polygon, solana, stellar, or tempo. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs index 17a1bf6d20..bf8cd08a34 100644 --- a/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs +++ b/src/Stripe.net/Entities/V2/Network/BusinessProfiles/BusinessProfile.cs @@ -6,7 +6,8 @@ namespace Stripe.V2.Network using STJS = System.Text.Json.Serialization; /// - /// The Stripe profile represents a business' public identity on the Stripe network. + /// The Stripe business profile represents a business' public identity on the Stripe + /// network. /// [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class BusinessProfile : StripeEntity, IHasId, IHasObject @@ -42,7 +43,7 @@ public class BusinessProfile : StripeEntity, IHasId, IHasObject public string Description { get; set; } /// - /// The display name of the Stripe profile. + /// The display name of the Stripe business profile. /// [JsonProperty("display_name")] [STJS.JsonPropertyName("display_name")] @@ -64,7 +65,7 @@ public class BusinessProfile : StripeEntity, IHasId, IHasObject public string Url { get; set; } /// - /// The username of the Stripe profile. + /// The username of the Stripe business profile. /// [JsonProperty("username")] [STJS.JsonPropertyName("username")] diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestCreatedEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestCreatedEvent.cs new file mode 100644 index 0000000000..b1230ac8d3 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestCreatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is created. + /// + public class V2CoreApprovalRequestCreatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestCreatedEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestCreatedEventNotification.cs new file mode 100644 index 0000000000..7f15e7a26b --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestCreatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request is created. + /// + public class V2CoreApprovalRequestCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestExpiredEvent.cs b/src/Stripe.net/Events/V2CoreApprovalRequestExpiredEvent.cs new file mode 100644 index 0000000000..d46de3cb01 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestExpiredEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request expires without being acted upon. + /// + public class V2CoreApprovalRequestExpiredEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreApprovalRequestExpiredEventNotification.cs b/src/Stripe.net/Events/V2CoreApprovalRequestExpiredEventNotification.cs new file mode 100644 index 0000000000..92f24618c1 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreApprovalRequestExpiredEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an approval request expires without being acted upon. + /// + public class V2CoreApprovalRequestExpiredEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.ApprovalRequest FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreApprovalRequestExpiredEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2ExtendExtensionRunFailedEvent.cs b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEvent.cs new file mode 100644 index 0000000000..845c281765 --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEvent.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an extension run fails. + /// + public class V2ExtendExtensionRunFailedEvent : V2.Core.Event + { + /// + /// Data for the v2.extend.extension_run.failed event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2ExtendExtensionRunFailedEventData Data { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventData.cs b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventData.cs new file mode 100644 index 0000000000..910c3cc06d --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventData.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2ExtendExtensionRunFailedEventData : StripeEntity + { + /// + /// Details about the error that occurred. + /// + [JsonProperty("error")] + [STJS.JsonPropertyName("error")] + public V2ExtendExtensionRunFailedEventDataError Error { get; set; } + + /// + /// Details about the extension that failed. + /// + [JsonProperty("extension")] + [STJS.JsonPropertyName("extension")] + public V2ExtendExtensionRunFailedEventDataExtension Extension { get; set; } + + /// + /// The ID of the extension run that failed. + /// + [JsonProperty("extension_run_id")] + [STJS.JsonPropertyName("extension_run_id")] + public string ExtensionRunId { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventDataError.cs b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventDataError.cs new file mode 100644 index 0000000000..c70919d707 --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventDataError.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2ExtendExtensionRunFailedEventDataError : StripeEntity + { + /// + /// URL to the extension run in Workbench for deeper debugging. + /// + [JsonProperty("debug_url")] + [STJS.JsonPropertyName("debug_url")] + public string DebugUrl { get; set; } + + /// + /// Detailed error message. + /// + [JsonProperty("message")] + [STJS.JsonPropertyName("message")] + public string Message { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventDataExtension.cs b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventDataExtension.cs new file mode 100644 index 0000000000..4d2a538f03 --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventDataExtension.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2ExtendExtensionRunFailedEventDataExtension : StripeEntity, + IHasId + { + /// + /// The extension's unique identifier. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The extension method called where the failure occurred. + /// + [JsonProperty("method")] + [STJS.JsonPropertyName("method")] + public string Method { get; set; } + + /// + /// Human-readable name of the extension. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Version of the extension that failed. + /// + [JsonProperty("version")] + [STJS.JsonPropertyName("version")] + public string Version { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventNotification.cs b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventNotification.cs new file mode 100644 index 0000000000..1f63b79f36 --- /dev/null +++ b/src/Stripe.net/Events/V2ExtendExtensionRunFailedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when an extension run fails. + /// + public class V2ExtendExtensionRunFailedEventNotification : V2.Core.EventNotification + { + public V2ExtendExtensionRunFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 66e4860f79..ec8d4d03dd 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -319,6 +319,10 @@ public static class StripeTypeRegistry { "v2.core.event_destination", typeof(V2.Core.EventDestination) }, { "v2.core.vault.gb_bank_account", typeof(V2.Core.Vault.GbBankAccount) }, { "v2.core.vault.us_bank_account", typeof(V2.Core.Vault.UsBankAccount) }, + { + "v2.data.analytics.metric_query_result", typeof( + V2.Data.Analytics.MetricQueryResult) + }, { "v2.data.reporting.query_run", typeof(V2.Data.Reporting.QueryRun) }, { "v2.extend.workflow", typeof(V2.Extend.Workflow) }, { "v2.extend.workflow_run", typeof(V2.Extend.WorkflowRun) }, @@ -1113,6 +1117,14 @@ public static class StripeTypeRegistry "v2.core.approval_request.canceled", typeof( Events.V2CoreApprovalRequestCanceledEvent) }, + { + "v2.core.approval_request.created", typeof( + Events.V2CoreApprovalRequestCreatedEvent) + }, + { + "v2.core.approval_request.expired", typeof( + Events.V2CoreApprovalRequestExpiredEvent) + }, { "v2.core.approval_request.failed", typeof( Events.V2CoreApprovalRequestFailedEvent) @@ -1275,6 +1287,10 @@ public static class StripeTypeRegistry "v2.data.reporting.query_run.updated", typeof( Events.V2DataReportingQueryRunUpdatedEvent) }, + { + "v2.extend.extension_run.failed", typeof( + Events.V2ExtendExtensionRunFailedEvent) + }, { "v2.extend.workflow_run.failed", typeof( Events.V2ExtendWorkflowRunFailedEvent) @@ -2472,6 +2488,14 @@ public static class StripeTypeRegistry "v2.core.approval_request.canceled", typeof( Events.V2CoreApprovalRequestCanceledEventNotification) }, + { + "v2.core.approval_request.created", typeof( + Events.V2CoreApprovalRequestCreatedEventNotification) + }, + { + "v2.core.approval_request.expired", typeof( + Events.V2CoreApprovalRequestExpiredEventNotification) + }, { "v2.core.approval_request.failed", typeof( Events.V2CoreApprovalRequestFailedEventNotification) @@ -2652,6 +2676,10 @@ public static class StripeTypeRegistry "v2.data.reporting.query_run.updated", typeof( Events.V2DataReportingQueryRunUpdatedEventNotification) }, + { + "v2.extend.extension_run.failed", typeof( + Events.V2ExtendExtensionRunFailedEventNotification) + }, { "v2.extend.workflow_run.failed", typeof( Events.V2ExtendWorkflowRunFailedEventNotification) 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 c3bd8f0c77..9250a13d4e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -53,6 +53,15 @@ public class AccountSessionComponentsOptions : INestedOptions [STJS.JsonPropertyName("app_viewport")] public AccountSessionComponentsAppViewportOptions AppViewport { 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 @@ -233,6 +242,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 92a30631a2..13b3299741 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. /// @@ -442,6 +449,13 @@ public class AccountCapabilitiesOptions : INestedOptions [STJS.JsonPropertyName("stripe_balance_payments")] public AccountCapabilitiesStripeBalancePaymentsOptions StripeBalancePayments { 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 fef08c9737..bea71a12a1 100644 --- a/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCreateOptions.cs @@ -208,8 +208,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 39af6c8f45..126f71f2dc 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -244,7 +244,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// pay_by_bank, payco, paynow, paypal, paypay, /// payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, swish, twint, upi, + /// shopeepay, sofort, sunbit, swish, twint, upi, /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("excluded_payment_method_types")] @@ -457,7 +457,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, swish, twint, upi, + /// shopeepay, 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/SessionPaymentMethodOptionsBlikMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBlikMandateOptionsOptions.cs new file mode 100644 index 0000000000..0a1d0e073f --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBlikMandateOptionsOptions.cs @@ -0,0 +1,19 @@ +// 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 SessionPaymentMethodOptionsBlikMandateOptionsOptions : INestedOptions + { + /// + /// Date when the mandate expires and no further payments will be charged. If not provided, + /// the mandate will be set to be indefinite. + /// + [JsonProperty("expires_after")] + [STJS.JsonPropertyName("expires_after")] + public long? ExpiresAfter { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBlikOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBlikOptions.cs new file mode 100644 index 0000000000..d9324e4de2 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBlikOptions.cs @@ -0,0 +1,45 @@ +// 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 SessionPaymentMethodOptionsBlikOptions : INestedOptions, IHasSetTracking + { + private string setupFutureUsage; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// Additional fields for Mandate creation. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SessionPaymentMethodOptionsBlikMandateOptionsOptions MandateOptions { get; set; } + + /// + /// One of: none, off_session, or on_session. + /// + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("setup_future_usage")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string SetupFutureUsage + { + get => this.setupFutureUsage; + set + { + this.setupFutureUsage = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index 4eae01d5c2..c7c5d3f14a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -86,6 +86,13 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions [STJS.JsonPropertyName("bizum")] public SessionPaymentMethodOptionsBizumOptions Bizum { get; set; } + /// + /// contains details about the BLIK payment method options. + /// + [JsonProperty("blik")] + [STJS.JsonPropertyName("blik")] + public SessionPaymentMethodOptionsBlikOptions Blik { get; set; } + /// /// contains details about the Boleto payment method options. /// diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs index 127098bea0..fea2f54b1c 100644 --- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs @@ -33,8 +33,9 @@ public class CustomerPaymentMethodListOptions : ListOptions /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, paypay, payto, pix, promptpay, /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, stripe_balance, swish, - /// twint, upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, sofort, stripe_balance, + /// 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/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingConsentOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingConsentOptions.cs new file mode 100644 index 0000000000..f51b2d6136 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingConsentOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RequestedSessionBuyerConsentsMarketingConsentOptions : INestedOptions + { + /// + /// The marketing consent channel. + /// One of: email, or sms. + /// + [JsonProperty("channel")] + [STJS.JsonPropertyName("channel")] + public string Channel { get; set; } + + /// + /// The consent status. Use 'granted' to indicate the buyer has opted in. + /// One of: granted, or none. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingOptions.cs new file mode 100644 index 0000000000..ffdd125122 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsMarketingOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RequestedSessionBuyerConsentsMarketingOptions : INestedOptions + { + /// + /// The list of marketing consent entries. + /// + [JsonProperty("consents")] + [STJS.JsonPropertyName("consents")] + public List Consents { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsOptions.cs new file mode 100644 index 0000000000..c25402a075 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionBuyerConsentsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RequestedSessionBuyerConsentsOptions : INestedOptions + { + /// + /// The marketing consent data for the buyer. + /// + [JsonProperty("marketing")] + [STJS.JsonPropertyName("marketing")] + public RequestedSessionBuyerConsentsMarketingOptions Marketing { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs index 22dc0bd2a4..194614d2ff 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs @@ -15,6 +15,13 @@ public class RequestedSessionConfirmOptions : BaseOptions [STJS.JsonPropertyName("affiliate_attribution")] public RequestedSessionAffiliateAttributionOptions AffiliateAttribution { get; set; } + /// + /// The buyer's consent choices for marketing communications. + /// + [JsonProperty("buyer_consents")] + [STJS.JsonPropertyName("buyer_consents")] + public RequestedSessionBuyerConsentsOptions BuyerConsents { get; set; } + /// /// The PaymentMethod to use with the requested session. /// diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index 40fb74295c..4e8b430191 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -42,7 +42,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")] @@ -63,7 +64,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 4e2ca9367c..b6350e3595 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -50,9 +50,9 @@ public string DefaultMandate /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, boleto, card, cashapp, check_scan, - /// crypto, custom, customer_balance, eps, fpx, - /// giropay, grabpay, id_bank_transfer, ideal, + /// bizum, blik, boleto, card, cashapp, + /// check_scan, crypto, custom, customer_balance, eps, + /// fpx, giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBlikOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBlikOptions.cs new file mode 100644 index 0000000000..e603f800aa --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsBlikOptions.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 InvoicePaymentSettingsPaymentMethodOptionsBlikOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs index 4ffcc2c09f..08518d1369 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs @@ -11,6 +11,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsOptions : INestedOptions, private InvoicePaymentSettingsPaymentMethodOptionsAcssDebitOptions acssDebit; private InvoicePaymentSettingsPaymentMethodOptionsBancontactOptions bancontact; private InvoicePaymentSettingsPaymentMethodOptionsBizumOptions bizum; + private InvoicePaymentSettingsPaymentMethodOptionsBlikOptions blik; private InvoicePaymentSettingsPaymentMethodOptionsCardOptions card; private InvoicePaymentSettingsPaymentMethodOptionsCheckScanOptions checkScan; private InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceOptions customerBalance; @@ -77,6 +78,23 @@ public InvoicePaymentSettingsPaymentMethodOptionsBizumOptions Bizum } } + /// + /// If paying by blik, this sub-hash contains details about the Blik payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("blik", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("blik")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public InvoicePaymentSettingsPaymentMethodOptionsBlikOptions Blik + { + get => this.blik; + set + { + this.blik = value; + this.SetTracker.Track(); + } + } + /// /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the invoice’s PaymentIntent. 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/Orders/OrderTaxDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs index c08227fda7..2042c2847d 100644 --- a/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs @@ -18,14 +18,15 @@ public class OrderTaxDetailsTaxIdOptions : 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 OrderTaxDetailsTaxIdOptions : 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/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs index ba0caf7729..185483dd95 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs @@ -36,7 +36,7 @@ public long? Amount /// /// If a physical good is being shipped, the postal code of where it is being shipped from. - /// At most 10 alphanumeric characters long, hyphens are allowed. + /// At most 10 alphanumeric characters long, hyphens and spaces are allowed. /// [JsonProperty("from_postal_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("from_postal_code")] @@ -53,7 +53,7 @@ public string FromPostalCode /// /// If a physical good is being shipped, the postal code of where it is being shipped to. At - /// most 10 alphanumeric characters long, hyphens are allowed. + /// most 10 alphanumeric characters long, hyphens and spaces are allowed. /// [JsonProperty("to_postal_code", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("to_postal_code")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index b2d921aefd..8d29b7b1f5 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -41,6 +41,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; } + /// /// The amount of the application fee (if any) that will be requested to be applied to the /// payment and transferred to the application owner's Stripe account. The amount of the @@ -108,8 +115,8 @@ public long? ApplicationFeeAmount /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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 003e017655..6e9c33b9f0 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -177,8 +177,8 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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 a3a1af7367..9360cb6b68 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -439,6 +439,13 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [STJS.JsonPropertyName("sepa_debit")] public PaymentIntentPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } + /// + /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. @@ -462,6 +469,14 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [STJS.JsonPropertyName("stripe_balance")] public PaymentIntentPaymentMethodDataStripeBalanceOptions StripeBalance { 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. @@ -492,8 +507,8 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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/PaymentIntentPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs index c0009b18ee..d2d492f789 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixOptions.cs @@ -62,10 +62,6 @@ 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")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index 3aeaae0a96..5dfb4fb25e 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -149,8 +149,8 @@ public long? ApplicationFeeAmount /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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 66f787dfdd..a07194aab7 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -217,8 +217,8 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata /// mb_way, mobilepay, multibanco, oxxo, p24, /// pay_by_bank, paynow, paypal, paypay, payto, /// pix, promptpay, qris, rechnung, satispay, - /// sepa_debit, shopeepay, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, 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/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index f9c8e229f6..6ac631bb5e 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -208,8 +208,8 @@ public List OptionalItems /// mb_way, mobilepay, multibanco, oxxo, p24, /// pay_by_bank, paynow, paypal, paypay, payto, /// pix, promptpay, qris, rechnung, satispay, - /// sepa_debit, shopeepay, sofort, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, 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 4fbb0c6cb4..453c994a6b 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs @@ -574,6 +574,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 884fada1f6..054a6e7cca 100644 --- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs @@ -574,6 +574,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. @@ -527,8 +535,9 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, paypay, payto, pix, promptpay, /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, stripe_balance, swish, - /// twint, upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, sofort, stripe_balance, + /// 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 4bd84904cd..b7ff2fa85f 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -47,8 +47,9 @@ public class PaymentMethodListOptions : ListOptions /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, paypay, payto, pix, promptpay, /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, stripe_balance, swish, - /// twint, upi, us_bank_account, wechat_pay, or zip. + /// sepa_debit, shopeepay, sofort, stripe_balance, + /// 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 500f7944b2..47d00a48b4 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -93,8 +93,8 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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 3ea3872e8a..5c48627017 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -439,6 +439,13 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [STJS.JsonPropertyName("sepa_debit")] public SetupIntentPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } + /// + /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. @@ -462,6 +469,14 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [STJS.JsonPropertyName("stripe_balance")] public SetupIntentPaymentMethodDataStripeBalanceOptions StripeBalance { 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. @@ -492,8 +507,8 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index 01f7e41210..8e194b4607 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -66,8 +66,8 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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/SharedPayment/IssuedTokens/IssuedTokenCreateOptions.cs b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenCreateOptions.cs new file mode 100644 index 0000000000..a10cd88e5b --- /dev/null +++ b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenCreateOptions.cs @@ -0,0 +1,58 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class IssuedTokenCreateOptions : BaseOptions + { + /// + /// The PaymentMethod that is going to be shared by the SharedPaymentIssuedToken. + /// + [JsonProperty("payment_method")] + [STJS.JsonPropertyName("payment_method")] + public string PaymentMethod { get; set; } + + /// + /// If the customer does not exit their browser while authenticating, they will be + /// redirected to this specified URL after completion. + /// + [JsonProperty("return_url")] + [STJS.JsonPropertyName("return_url")] + public string ReturnUrl { get; set; } + + /// + /// Seller details of the SharedPaymentIssuedToken, including network_id and external_id. + /// + [JsonProperty("seller_details")] + [STJS.JsonPropertyName("seller_details")] + public IssuedTokenSellerDetailsOptions SellerDetails { get; set; } + + /// + /// Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a + /// customer later. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to the SharedPaymentIssuedToken. The values here are visible by default with the + /// party that you share this SharedPaymentIssuedToken with. + /// + [JsonProperty("shared_metadata")] + [STJS.JsonPropertyName("shared_metadata")] + public Dictionary SharedMetadata { get; set; } + + /// + /// Limits on how this SharedPaymentToken can be used. + /// + [JsonProperty("usage_limits")] + [STJS.JsonPropertyName("usage_limits")] + public IssuedTokenUsageLimitsOptions UsageLimits { get; set; } + } +} diff --git a/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenGetOptions.cs b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenGetOptions.cs new file mode 100644 index 0000000000..a881c2ca14 --- /dev/null +++ b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class IssuedTokenGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenRevokeOptions.cs b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenRevokeOptions.cs new file mode 100644 index 0000000000..78cefd9174 --- /dev/null +++ b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenRevokeOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class IssuedTokenRevokeOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenSellerDetailsOptions.cs b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenSellerDetailsOptions.cs new file mode 100644 index 0000000000..f0012567cd --- /dev/null +++ b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenSellerDetailsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class IssuedTokenSellerDetailsOptions : INestedOptions + { + /// + /// A unique id within a network that identifies a logical seller, usually this would be the + /// unique merchant id. + /// + [JsonProperty("external_id")] + [STJS.JsonPropertyName("external_id")] + public string ExternalId { get; set; } + + /// + /// A string that identifies the network that this SharedToken is being created for. + /// + [JsonProperty("network_business_profile")] + [STJS.JsonPropertyName("network_business_profile")] + public string NetworkBusinessProfile { get; set; } + } +} diff --git a/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenService.cs b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenService.cs new file mode 100644 index 0000000000..f486f03d68 --- /dev/null +++ b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenService.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using System; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class IssuedTokenService : Service, + ICreatable, + IRetrievable + { + public IssuedTokenService() + { + } + + internal IssuedTokenService(ApiRequestor requestor) + : base(requestor) + { + } + + public IssuedTokenService(IStripeClient client) + : base(client) + { + } + + /// + ///

Creates a new SharedPaymentIssuedToken object

. + ///
+ public virtual IssuedToken Create(IssuedTokenCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/shared_payment/issued_tokens", options, requestOptions); + } + + /// + ///

Creates a new SharedPaymentIssuedToken object

. + ///
+ public virtual Task CreateAsync(IssuedTokenCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/shared_payment/issued_tokens", options, requestOptions, cancellationToken); + } + + /// + ///

Retrieves an existing SharedPaymentIssuedToken object

. + ///
+ public virtual IssuedToken Get(string id, IssuedTokenGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v1/shared_payment/issued_tokens/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + ///

Retrieves an existing SharedPaymentIssuedToken object

. + ///
+ public virtual Task GetAsync(string id, IssuedTokenGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/shared_payment/issued_tokens/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + ///

Revokes a SharedPaymentIssuedToken

. + ///
+ public virtual IssuedToken Revoke(string id, IssuedTokenRevokeOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/shared_payment/issued_tokens/{WebUtility.UrlEncode(id)}/revoke", options, requestOptions); + } + + /// + ///

Revokes a SharedPaymentIssuedToken

. + ///
+ public virtual Task RevokeAsync(string id, IssuedTokenRevokeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/shared_payment/issued_tokens/{WebUtility.UrlEncode(id)}/revoke", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenUsageLimitsOptions.cs b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenUsageLimitsOptions.cs new file mode 100644 index 0000000000..77294fdc85 --- /dev/null +++ b/src/Stripe.net/Services/SharedPayment/IssuedTokens/IssuedTokenUsageLimitsOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class IssuedTokenUsageLimitsOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Time at which this SharedPaymentToken expires and can no longer be used to confirm a + /// PaymentIntent. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("expires_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? ExpiresAt { get; set; } + + /// + /// Max amount that can be captured using this SharedPaymentToken. + /// + [JsonProperty("max_amount")] + [STJS.JsonPropertyName("max_amount")] + public long? MaxAmount { get; set; } + + /// + /// The recurring interval at which the shared payment token's amount usage restrictions + /// reset. + /// One of: month, week, or year. + /// + [JsonProperty("recurring_interval")] + [STJS.JsonPropertyName("recurring_interval")] + public string RecurringInterval { get; set; } + } +} diff --git a/src/Stripe.net/Services/SharedPaymentService.cs b/src/Stripe.net/Services/SharedPaymentService.cs index 7990c37df0..75ed5ec5f8 100644 --- a/src/Stripe.net/Services/SharedPaymentService.cs +++ b/src/Stripe.net/Services/SharedPaymentService.cs @@ -8,6 +8,7 @@ namespace Stripe public class SharedPaymentService : Service { private SharedPayment.GrantedTokenService grantedTokens; + private SharedPayment.IssuedTokenService issuedTokens; internal SharedPaymentService(ApiRequestor requestor) : base(requestor) @@ -21,5 +22,8 @@ internal SharedPaymentService(IStripeClient client) public virtual SharedPayment.GrantedTokenService GrantedTokens => this.grantedTokens ??= new SharedPayment.GrantedTokenService( this.Requestor); + + public virtual SharedPayment.IssuedTokenService IssuedTokens => this.issuedTokens ??= new SharedPayment.IssuedTokenService( + this.Requestor); } } diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index 792de83009..ea097cff00 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -32,9 +32,9 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions, IHasSetTrackin /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, boleto, card, cashapp, check_scan, - /// crypto, custom, customer_balance, eps, fpx, - /// giropay, grabpay, id_bank_transfer, ideal, + /// bizum, blik, boleto, card, cashapp, + /// check_scan, crypto, custom, customer_balance, eps, + /// fpx, giropay, grabpay, id_bank_transfer, ideal, /// jp_credit_transfer, kakao_pay, klarna, konbini, /// kr_card, link, momo, multibanco, naver_pay, /// nz_bank_account, p24, pay_by_bank, payco, paynow, diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptionsOptions.cs new file mode 100644 index 0000000000..dcb6104e74 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptionsOptions.cs @@ -0,0 +1,19 @@ +// 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 SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptionsOptions : INestedOptions + { + /// + /// Date when the mandate expires and no further payments will be charged. If not provided, + /// the mandate will be set to be indefinite. + /// + [JsonProperty("expires_after")] + [STJS.JsonPropertyName("expires_after")] + public long? ExpiresAfter { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikOptions.cs new file mode 100644 index 0000000000..3cfcdf4f41 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsBlikOptions.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 SubscriptionPaymentSettingsPaymentMethodOptionsBlikOptions : INestedOptions + { + /// + /// Configuration options for setting up a mandate. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBlikMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs index ca19f91dcc..fdcd90fe13 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs @@ -11,6 +11,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsOptions : INestedOpt private SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitOptions acssDebit; private SubscriptionPaymentSettingsPaymentMethodOptionsBancontactOptions bancontact; private SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions bizum; + private SubscriptionPaymentSettingsPaymentMethodOptionsBlikOptions blik; private SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions card; private SubscriptionPaymentSettingsPaymentMethodOptionsCheckScanOptions checkScan; private SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceOptions customerBalance; @@ -77,6 +78,23 @@ public SubscriptionPaymentSettingsPaymentMethodOptionsBizumOptions Bizum } } + /// + /// This sub-hash contains details about the Blik payment method options to pass to the + /// invoice’s PaymentIntent. + /// + [JsonProperty("blik", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("blik")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public SubscriptionPaymentSettingsPaymentMethodOptionsBlikOptions Blik + { + get => this.blik; + set + { + this.blik = value; + this.SetTracker.Track(); + } + } + /// /// This sub-hash contains details about the Card 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 index 98070582fe..172c44270c 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs @@ -32,7 +32,8 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOpt public string EndDate { get; set; } /// - /// Schedule at which the future payments will be charged. Defaults to monthly. + /// Schedule at which the future payments will be charged. Defaults to the subscription + /// servicing interval. /// One of: halfyearly, monthly, quarterly, weekly, or /// yearly. /// diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index 050db7d3bb..0086496c68 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -246,11 +246,11 @@ public virtual Task PauseAsync(string id, SubscriptionPauseOptions /// ///

Initiates resumption of a paused subscription, optionally resetting the billing cycle - /// 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.

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

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

Initiates resumption of a paused subscription, optionally resetting the billing cycle - /// anchor and creating prorations. If 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.

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

. ///
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/RegistrationCountryOptionsUsAdmissionsTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsAdmissionsTaxOptions.cs new file mode 100644 index 0000000000..7c1693afca --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsAdmissionsTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsAdmissionsTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsAttendanceTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsAttendanceTaxOptions.cs new file mode 100644 index 0000000000..d0797da8cd --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsAttendanceTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsAttendanceTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsEntertainmentTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsEntertainmentTaxOptions.cs new file mode 100644 index 0000000000..ef9f4ea9d1 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsEntertainmentTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsEntertainmentTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsGrossReceiptsTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsGrossReceiptsTaxOptions.cs new file mode 100644 index 0000000000..7e04e1d3ee --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsGrossReceiptsTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsGrossReceiptsTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHospitalityTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHospitalityTaxOptions.cs new file mode 100644 index 0000000000..568bb6e769 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsHospitalityTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsHospitalityTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} 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/Tax/Registrations/RegistrationCountryOptionsUsLuxuryTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLuxuryTaxOptions.cs new file mode 100644 index 0000000000..81e144e4f9 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLuxuryTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsLuxuryTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs index 9f06f1afdd..f6cb217623 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs @@ -8,6 +8,34 @@ namespace Stripe.Tax [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class RegistrationCountryOptionsUsOptions : INestedOptions { + /// + /// Options for the admission tax registration. + /// + [JsonProperty("admissions_tax")] + [STJS.JsonPropertyName("admissions_tax")] + public RegistrationCountryOptionsUsAdmissionsTaxOptions AdmissionsTax { get; set; } + + /// + /// Options for the attendance tax registration. + /// + [JsonProperty("attendance_tax")] + [STJS.JsonPropertyName("attendance_tax")] + public RegistrationCountryOptionsUsAttendanceTaxOptions AttendanceTax { get; set; } + + /// + /// Options for the entertainment tax registration. + /// + [JsonProperty("entertainment_tax")] + [STJS.JsonPropertyName("entertainment_tax")] + public RegistrationCountryOptionsUsEntertainmentTaxOptions EntertainmentTax { get; set; } + + /// + /// Options for the gross receipts tax registration. + /// + [JsonProperty("gross_receipts_tax")] + [STJS.JsonPropertyName("gross_receipts_tax")] + public RegistrationCountryOptionsUsGrossReceiptsTaxOptions GrossReceiptsTax { get; set; } + /// /// Options for the home rule tax registration. /// @@ -15,6 +43,13 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions [STJS.JsonPropertyName("home_rule_tax")] public RegistrationCountryOptionsUsHomeRuleTaxOptions HomeRuleTax { get; set; } + /// + /// Options for the hospitality tax registration. + /// + [JsonProperty("hospitality_tax")] + [STJS.JsonPropertyName("hospitality_tax")] + public RegistrationCountryOptionsUsHospitalityTaxOptions HospitalityTax { get; set; } + /// /// Options for the local amusement tax registration. /// @@ -29,6 +64,20 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions [STJS.JsonPropertyName("local_lease_tax")] public RegistrationCountryOptionsUsLocalLeaseTaxOptions LocalLeaseTax { get; set; } + /// + /// Options for the luxury tax registration. + /// + [JsonProperty("luxury_tax")] + [STJS.JsonPropertyName("luxury_tax")] + public RegistrationCountryOptionsUsLuxuryTaxOptions LuxuryTax { get; set; } + + /// + /// Options for the resort tax registration. + /// + [JsonProperty("resort_tax")] + [STJS.JsonPropertyName("resort_tax")] + public RegistrationCountryOptionsUsResortTaxOptions ResortTax { get; set; } + /// /// Two-letter US state code (ISO /// 3166-2). @@ -44,6 +93,13 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions [STJS.JsonPropertyName("state_sales_tax")] public RegistrationCountryOptionsUsStateSalesTaxOptions StateSalesTax { get; set; } + /// + /// Options for the tourism tax registration. + /// + [JsonProperty("tourism_tax")] + [STJS.JsonPropertyName("tourism_tax")] + public RegistrationCountryOptionsUsTourismTaxOptions TourismTax { get; set; } + /// /// Type of registration to be created in the US. /// One of: admissions_tax, attendance_tax, entertainment_tax, diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsResortTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsResortTaxOptions.cs new file mode 100644 index 0000000000..8ce9376cf4 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsResortTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsResortTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsTourismTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsTourismTaxOptions.cs new file mode 100644 index 0000000000..8a936aacc8 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsTourismTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsTourismTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} 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 35cc9ae010..e4ecab47f9 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -439,6 +439,13 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet [STJS.JsonPropertyName("sepa_debit")] public ConfirmationTokenPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } + /// + /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. @@ -462,6 +469,14 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet [STJS.JsonPropertyName("stripe_balance")] public ConfirmationTokenPaymentMethodDataStripeBalanceOptions StripeBalance { 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. @@ -492,8 +507,8 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// oxxo, p24, pay_by_bank, payco, paynow, paypal, /// paypay, payto, pix, promptpay, qris, rechnung, /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// upi, us_bank_account, wechat_pay, or zip. + /// shopeepay, sofort, stripe_balance, 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/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs index b86f3e021c..6f4a8a4523 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationMerchantDataOptions.cs @@ -191,6 +191,14 @@ public class AuthorizationMerchantDataOptions : INestedOptions [STJS.JsonPropertyName("network_id")] public string NetworkId { get; set; } + /// + /// The identifier of the payment facilitator (PayFac) that processed this authorization, as + /// assigned by the card network. + /// + [JsonProperty("payment_facilitator_id")] + [STJS.JsonPropertyName("payment_facilitator_id")] + public string PaymentFacilitatorId { get; set; } + /// /// Postal code where the seller is located. /// @@ -205,6 +213,14 @@ public class AuthorizationMerchantDataOptions : INestedOptions [STJS.JsonPropertyName("state")] public string State { get; set; } + /// + /// The identifier of the sub-merchant involved in this authorization, as assigned by the + /// payment facilitator. + /// + [JsonProperty("sub_merchant_id")] + [STJS.JsonPropertyName("sub_merchant_id")] + public string SubMerchantId { get; set; } + /// /// An ID assigned by the seller to the location of the sale. /// diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs index 68a4dbbc33..3467ba8c9f 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionMerchantDataOptions.cs @@ -191,6 +191,14 @@ public class TransactionMerchantDataOptions : INestedOptions [STJS.JsonPropertyName("network_id")] public string NetworkId { get; set; } + /// + /// The identifier of the payment facilitator (PayFac) that processed this authorization, as + /// assigned by the card network. + /// + [JsonProperty("payment_facilitator_id")] + [STJS.JsonPropertyName("payment_facilitator_id")] + public string PaymentFacilitatorId { get; set; } + /// /// Postal code where the seller is located. /// @@ -205,6 +213,14 @@ public class TransactionMerchantDataOptions : INestedOptions [STJS.JsonPropertyName("state")] public string State { get; set; } + /// + /// The identifier of the sub-merchant involved in this authorization, as assigned by the + /// payment facilitator. + /// + [JsonProperty("sub_merchant_id")] + [STJS.JsonPropertyName("sub_merchant_id")] + public string SubMerchantId { get; set; } + /// /// An ID assigned by the seller to the location of the sale. /// diff --git a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs index dc5092a24f..4ecb04b6c9 100644 --- a/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/Treasury/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -87,6 +87,14 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// The purpose of the OutboundPayment, if applicable. This list is not exhaustive, do not + /// specify this parameter if your purpose does not match any that are provided. + /// + [JsonProperty("purpose")] + [STJS.JsonPropertyName("purpose")] + public string Purpose { get; set; } + /// /// The description that appears on the receiving end for this OutboundPayment (for example, /// bank statement for external bank transfer). Maximum 10 characters for ach diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs index 187bebccbb..feeaff6ba7 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityIndividualOptions.cs @@ -51,7 +51,9 @@ public class AccountTokenCreateIdentityIndividualOptions : INestedOptions, IHasM public AccountTokenCreateIdentityIndividualDocumentsOptions Documents { get; set; } /// - /// The individual's email address. + /// The individual's email address. You can only set this field when the Account is + /// configured as a merchant or recipient. Use contact_email as the + /// primary contact email for this Account. /// [JsonProperty("email")] [STJS.JsonPropertyName("email")] diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs index bec4bd446c..20afc3d944 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateOptions.cs @@ -9,8 +9,7 @@ namespace Stripe.V2.Core public class AccountTokenCreateOptions : BaseOptions { /// - /// The default contact email address for the Account. Required when configuring the account - /// as a merchant or recipient. + /// The primary contact email address for the Account. /// [JsonProperty("contact_email")] [STJS.JsonPropertyName("contact_email")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs index 809d64e970..fb463f24ba 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs @@ -16,7 +16,8 @@ public class AccountCreateConfigurationOptions : INestedOptions public AccountCreateConfigurationCardCreatorOptions CardCreator { get; set; } /// - /// The Customer Configuration allows the Account to be used in inbound payment flows. + /// The Customer Configuration allows the Account to be used in inbound payment flows (i.e. + /// customer-facing payment and billing flows). /// [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs index 871557b19a..7bd78f90b5 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs @@ -45,7 +45,9 @@ public class AccountCreateIdentityIndividualOptions : INestedOptions, IHasMetada public AccountCreateIdentityIndividualDocumentsOptions Documents { get; set; } /// - /// The individual's email address. + /// The individual's email address. You can only set this field when the Account is + /// configured as a merchant or recipient. Use contact_email as the + /// primary contact email for this Account. /// [JsonProperty("email")] [STJS.JsonPropertyName("email")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs index d05dd931ba..38a3a614bd 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs @@ -34,7 +34,9 @@ public class AccountCreateIdentityOptions : INestedOptions public string Country { get; set; } /// - /// The entity type. + /// The entity type represented by the Account. Ensure this field is accurate before adding + /// configurations that rely on identity information, as it determines which identity fields + /// apply and how the Account is validated. /// One of: company, government_entity, individual, or /// non_profit. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs index ca439ad585..d48ba85949 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs @@ -25,8 +25,7 @@ public class AccountCreateOptions : BaseOptions, IHasMetadata public AccountCreateConfigurationOptions Configuration { get; set; } /// - /// The default contact email address for the Account. Required when configuring the account - /// as a merchant or recipient. + /// The primary contact email address for the Account. /// [JsonProperty("contact_email")] [STJS.JsonPropertyName("contact_email")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs index 3cf237a868..615a9467e2 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountService.cs @@ -50,8 +50,8 @@ public virtual Task CloseAsync(string id, AccountCloseOptions options = } /// - /// An Account is a representation of a company, individual or other entity that a user - /// interacts with. Accounts contain identifying information about the entity, and + /// Create an Account that represents a company, individual, or other entity that your + /// business interacts with. Accounts contain identifying information about the entity, and /// configurations that store the features an account has access to. An account can be /// configured as any or all of the following configurations: Customer, Merchant and/or /// Recipient. @@ -62,8 +62,8 @@ public virtual Account Create(AccountCreateOptions options, RequestOptions reque } /// - /// An Account is a representation of a company, individual or other entity that a user - /// interacts with. Accounts contain identifying information about the entity, and + /// Create an Account that represents a company, individual, or other entity that your + /// business interacts with. Accounts contain identifying information about the entity, and /// configurations that store the features an account has access to. An account can be /// configured as any or all of the following configurations: Customer, Merchant and/or /// Recipient. diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs index c3383cdacb..45a0292ed8 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationCustomerBillingOptions.cs @@ -9,8 +9,8 @@ namespace Stripe.V2.Core public class AccountUpdateConfigurationCustomerBillingOptions : INestedOptions { /// - /// ID of a PaymentMethod attached to the customer account to use as the default for - /// invoices and subscriptions. + /// The ID of a PaymentMethod attached to this Account's customer + /// configuration, used as the default payment method for invoices and subscriptions. /// [JsonProperty("default_payment_method")] [STJS.JsonPropertyName("default_payment_method")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs index 4e12c248f5..8804794f33 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs @@ -51,7 +51,9 @@ public class AccountUpdateIdentityIndividualOptions : INestedOptions, IHasMetada public AccountUpdateIdentityIndividualDocumentsOptions Documents { get; set; } /// - /// The individual's email address. + /// The individual's email address. You can only set this field when the Account is + /// configured as a merchant or recipient. Use contact_email as the + /// primary contact email for this Account. /// [JsonProperty("email")] [STJS.JsonPropertyName("email")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs index a83c7c5580..2092a83e2b 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs @@ -34,7 +34,9 @@ public class AccountUpdateIdentityOptions : INestedOptions public string Country { get; set; } /// - /// The entity type. + /// The entity type represented by the Account. Ensure this field is accurate before adding + /// configurations that rely on identity information, as it determines which identity fields + /// apply and how the Account is validated. /// One of: company, government_entity, individual, or /// non_profit. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs index 6791e59a82..34b32f3765 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs @@ -27,8 +27,7 @@ public class AccountUpdateOptions : BaseOptions, IHasMetadata public AccountUpdateConfigurationOptions Configuration { get; set; } /// - /// The default contact email address for the Account. Required when configuring the account - /// as a merchant or recipient. + /// The primary contact email address for the Account. /// [JsonProperty("contact_email")] [STJS.JsonPropertyName("contact_email")] diff --git a/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryCreateMetricOptions.cs b/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryCreateMetricOptions.cs new file mode 100644 index 0000000000..b3cef2b476 --- /dev/null +++ b/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryCreateMetricOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data.Analytics +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class MetricQueryCreateMetricOptions : INestedOptions, IHasId + { + /// + /// The Gen6 ID for this metric, e.g. metric_61Sud3n5oAGVCWiSr5. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The common name for this metric, e.g. mrr_minor_units. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryCreateOptions.cs b/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryCreateOptions.cs new file mode 100644 index 0000000000..d9855a8914 --- /dev/null +++ b/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryCreateOptions.cs @@ -0,0 +1,85 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data.Analytics +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class MetricQueryCreateOptions : BaseOptions + { + /// + /// Which currency to return monetary metric results in. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// Timestamp denoting the end of the time range to request data for. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public DateTime? EndsAt { get; set; } + + /// + /// Which dimension values to filter on; keys are dimension names, values are arrays of + /// dimension values to filter on. + /// + [JsonProperty("filters")] + [STJS.JsonPropertyName("filters")] + public Dictionary Filters { get; set; } + + /// + /// The time granularity to aggregate results by. + /// One of: day, month, week, or year. + /// + [JsonProperty("granularity")] + [STJS.JsonPropertyName("granularity")] + public string Granularity { get; set; } + + /// + /// Which dimension keys to group by; if not specified no grouping is performed. + /// + [JsonProperty("group_by")] + [STJS.JsonPropertyName("group_by")] + public List GroupBy { get; set; } + + /// + /// The maximum number of rows in the response. + /// + [JsonProperty("limit")] + [STJS.JsonPropertyName("limit")] + public long? Limit { get; set; } + + /// + /// A list of the metrics to be returned; all metrics must share the same metric namespace. + /// + [JsonProperty("metrics")] + [STJS.JsonPropertyName("metrics")] + public List Metrics { get; set; } + + /// + /// Pagination future-proofing: page token for navigating to next/previous batch of rows. + /// + [JsonProperty("page")] + [STJS.JsonPropertyName("page")] + public string Page { get; set; } + + /// + /// Timestamp denoting the beginning of the time range to request data for. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public DateTime? StartsAt { get; set; } + + /// + /// The timezone results should be in; defaults to the merchant's timezone. + /// + [JsonProperty("timezone")] + [STJS.JsonPropertyName("timezone")] + public string Timezone { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryService.cs b/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryService.cs new file mode 100644 index 0000000000..25f7e3d7bc --- /dev/null +++ b/src/Stripe.net/Services/V2/Data/Analytics/MetricQueries/MetricQueryService.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data.Analytics +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class MetricQueryService : Service + { + internal MetricQueryService(ApiRequestor requestor) + : base(requestor) + { + } + + internal MetricQueryService(IStripeClient client) + : base(client) + { + } + + /// + /// Run a synchronous metric query against one or more metrics within the same metric + /// namespace. + /// + public virtual MetricQueryResult Create(MetricQueryCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/data/analytics/metric_query", options, requestOptions); + } + + /// + /// Run a synchronous metric query against one or more metrics within the same metric + /// namespace. + /// + public virtual Task CreateAsync(MetricQueryCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/data/analytics/metric_query", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Data/AnalyticsService.cs b/src/Stripe.net/Services/V2/Data/AnalyticsService.cs new file mode 100644 index 0000000000..dc15e8b6d5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Data/AnalyticsService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Data +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class AnalyticsService : Service + { + private V2.Data.Analytics.MetricQueryService metricQuery; + + internal AnalyticsService(ApiRequestor requestor) + : base(requestor) + { + } + + internal AnalyticsService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Data.Analytics.MetricQueryService MetricQuery => this.metricQuery ??= new V2.Data.Analytics.MetricQueryService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/DatumService.cs b/src/Stripe.net/Services/V2/DataService.cs similarity index 57% rename from src/Stripe.net/Services/V2/DatumService.cs rename to src/Stripe.net/Services/V2/DataService.cs index bedfe79a88..3654998219 100644 --- a/src/Stripe.net/Services/V2/DatumService.cs +++ b/src/Stripe.net/Services/V2/DataService.cs @@ -5,20 +5,24 @@ namespace Stripe.V2 using System.Threading; using System.Threading.Tasks; - public class DatumService : Service + public class DataService : Service { + private V2.Data.AnalyticsService analytics; private V2.Data.ReportingService reporting; - internal DatumService(ApiRequestor requestor) + internal DataService(ApiRequestor requestor) : base(requestor) { } - internal DatumService(IStripeClient client) + internal DataService(IStripeClient client) : base(client) { } + public virtual V2.Data.AnalyticsService Analytics => this.analytics ??= new V2.Data.AnalyticsService( + this.Requestor); + public virtual V2.Data.ReportingService Reporting => this.reporting ??= new V2.Data.ReportingService( this.Requestor); } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateCryptoPropertiesOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateCryptoPropertiesOptions.cs new file mode 100644 index 0000000000..ef65a87a20 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateCryptoPropertiesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class FinancialAddressCreateCryptoPropertiesOptions : INestedOptions + { + /// + /// The blockchain network of the crypto wallet. + /// One of: arbitrum, avalanche_c_chain, base, ethereum, + /// optimism, polygon, solana, stellar, or tempo. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs index 8b3d00a020..512a14112c 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAddresses/FinancialAddressCreateOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class FinancialAddressCreateOptions : BaseOptions { + /// + /// Properties needed to create a FinancialAddress for an FA with USDC currency. + /// + [JsonProperty("crypto_properties")] + [STJS.JsonPropertyName("crypto_properties")] + public FinancialAddressCreateCryptoPropertiesOptions CryptoProperties { get; set; } + /// /// The ID of the FinancialAccount the new FinancialAddress should be associated with. /// @@ -23,10 +30,18 @@ public class FinancialAddressCreateOptions : BaseOptions [STJS.JsonPropertyName("sepa_bank_account")] public FinancialAddressCreateSepaBankAccountOptions SepaBankAccount { get; set; } + /// + /// Open Enum. The currency the FinancialAddress settles into the FinancialAccount. + /// Currently, only the usd, gbp and usdc values are supported. + /// + [JsonProperty("settlement_currency")] + [STJS.JsonPropertyName("settlement_currency")] + public string SettlementCurrency { get; set; } + /// /// The type of FinancialAddress details to provision. - /// One of: ca_bank_account, gb_bank_account, sepa_bank_account, or - /// us_bank_account. + /// One of: ca_bank_account, crypto_wallet, gb_bank_account, + /// mx_bank_account, sepa_bank_account, or us_bank_account. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs index 6b768b2371..f15c595525 100644 --- a/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs +++ b/src/Stripe.net/Services/V2/Network/BusinessProfiles/BusinessProfileService.cs @@ -20,7 +20,7 @@ internal BusinessProfileService(IStripeClient client) } /// - /// Retrieve a Stripe profile by its Network ID. + /// Retrieve a Stripe business profile by its Network ID. /// public virtual BusinessProfile Get(string id, BusinessProfileGetOptions options = null, RequestOptions requestOptions = null) { @@ -28,7 +28,7 @@ public virtual BusinessProfile Get(string id, BusinessProfileGetOptions options } /// - /// Retrieve a Stripe profile by its Network ID. + /// Retrieve a Stripe business profile by its Network ID. /// public virtual Task GetAsync(string id, BusinessProfileGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -36,7 +36,8 @@ public virtual Task GetAsync(string id, BusinessProfileGetOptio } /// - /// Retrieve the Stripe profile associated with the requesting merchant and livemode. + /// Retrieve the Stripe business profile associated with the requesting merchant and + /// livemode. /// public virtual BusinessProfile Me(BusinessProfileMeOptions options = null, RequestOptions requestOptions = null) { @@ -44,7 +45,8 @@ public virtual BusinessProfile Me(BusinessProfileMeOptions options = null, Reque } /// - /// Retrieve the Stripe profile associated with the requesting merchant and livemode. + /// Retrieve the Stripe business profile associated with the requesting merchant and + /// livemode. /// public virtual Task MeAsync(BusinessProfileMeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/V2Services.cs b/src/Stripe.net/Services/V2Services.cs index 6b377a7c52..525f422139 100644 --- a/src/Stripe.net/Services/V2Services.cs +++ b/src/Stripe.net/Services/V2Services.cs @@ -10,7 +10,7 @@ public class V2Services : Service private V2.BillingService billing; private V2.CommerceService commerce; private V2.CoreService core; - private V2.DatumService data; + private V2.DataService data; private V2.ExtendService extend; private V2.IamService iam; private V2.MoneyManagementService moneyManagement; @@ -40,7 +40,7 @@ internal V2Services(IStripeClient client) public virtual V2.CoreService Core => this.core ??= new V2.CoreService( this.Requestor); - public virtual V2.DatumService Data => this.data ??= new V2.DatumService( + public virtual V2.DataService Data => this.data ??= new V2.DataService( this.Requestor); public virtual V2.ExtendService Extend => this.extend ??= new V2.ExtendService( diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 1bbf2411fb..89d8dc3bb5 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")] diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 886dfe18f7..c99337f403 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -9222,6 +9222,39 @@ public void TestV2CoreVaultUsBankAccountPost5() "/v2/core/vault/us_bank_accounts/id_123/send_microdeposits"); } + [Fact] + public void TestV2DataAnalyticsMetricQueryPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/data/analytics/metric_query", + (HttpStatusCode)200, + "{\"object\":\"v2.data.analytics.metric_query_result\",\"created\":\"1970-01-12T21:42:34.472Z\",\"data\":[{\"dimensions\":{\"key\":\"dimensions\"},\"id\":\"obj_123\",\"results\":[{\"metric\":\"metric\",\"name\":\"name\",\"value\":\"111972721\"}],\"timestamp\":\"1970-01-01T15:18:46.294Z\"}],\"id\":\"obj_123\",\"livemode\":true,\"refreshed_at\":\"1970-01-01T11:25:45.896Z\"}"); + var options = new Stripe.V2.Data.Analytics.MetricQueryCreateOptions + { + EndsAt = DateTimeOffset.Parse("1970-01-19T14:12:09.638Z") + .UtcDateTime, + Granularity = "week", + Metrics = new List + { + new Stripe.V2.Data.Analytics.MetricQueryCreateMetricOptions + { + Id = "obj_123", + Name = "name", + }, + }, + StartsAt = DateTimeOffset.Parse("1970-01-25T15:13:01.215Z") + .UtcDateTime, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Data.Analytics.MetricQuery; + Stripe.V2.Data.Analytics.MetricQueryResult metricQueryResult = service + .Create(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/data/analytics/metric_query"); + } + [Fact] public void TestV2DataReportingQueryRunPost() { @@ -9687,7 +9720,7 @@ public void TestV2MoneyManagementFinancialAddressPost() var options = new Stripe.V2.MoneyManagement.FinancialAddressCreateOptions { FinancialAccount = "financial_account", - Type = "sepa_bank_account", + Type = "ca_bank_account", }; var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses; @@ -10512,10 +10545,6 @@ public void TestV2PaymentsOffSessionPaymentPost() Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, Cadence = "unscheduled", Customer = "customer", - Metadata = new Dictionary - { - { "key", "metadata" }, - }, }; var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; @@ -10568,17 +10597,10 @@ public void TestV2PaymentsOffSessionPaymentPost3() "/v2/payments/off_session_payments/id_123/capture", (HttpStatusCode)200, "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); - var options = new Stripe.V2.Payments.OffSessionPaymentCaptureOptions - { - Metadata = new Dictionary - { - { "key", "metadata" }, - }, - }; var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service - .Capture("id_123", options); + .Capture("id_123"); this.AssertRequest( HttpMethod.Post, "/v2/payments/off_session_payments/id_123/capture"); @@ -11246,7 +11268,7 @@ public void TestFinancialAccountNotOpenError() var options = new Stripe.V2.MoneyManagement.FinancialAddressCreateOptions { FinancialAccount = "financial_account", - Type = "sepa_bank_account", + Type = "ca_bank_account", }; var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses;