diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 32518f99b7..3fdaa4ab05 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1642
\ No newline at end of file
+v1719
\ No newline at end of file
diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs
index 53a6443585..33e3751580 100644
--- a/src/Stripe.net/Constants/ApiVersion.cs
+++ b/src/Stripe.net/Constants/ApiVersion.cs
@@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
- public const string Current = "2025-03-31.basil";
+ public const string Current = "2025-04-30.basil";
}
}
\ No newline at end of file
diff --git a/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs b/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
index 0fbbd3d6eb..c7f913081d 100644
--- a/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -38,6 +39,17 @@ public class AccountBusinessProfile : StripeEntity
#endif
public string Mcc { get; set; }
+ ///
+ /// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
+ /// One of: lgbtqi_owned_business, minority_owned_business,
+ /// none_of_these_apply, prefer_not_to_answer, or women_owned_business.
+ ///
+ [JsonProperty("minority_owned_business_designation")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("minority_owned_business_designation")]
+#endif
+ public List MinorityOwnedBusinessDesignation { get; set; }
+
[JsonProperty("monthly_estimated_revenue")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("monthly_estimated_revenue")]
diff --git a/src/Stripe.net/Entities/Accounts/AccountCompany.cs b/src/Stripe.net/Entities/Accounts/AccountCompany.cs
index cab28dea10..a8933b7d82 100644
--- a/src/Stripe.net/Entities/Accounts/AccountCompany.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountCompany.cs
@@ -171,6 +171,12 @@ public class AccountCompany : StripeEntity
#endif
public string Phone { get; set; }
+ [JsonProperty("registration_date")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("registration_date")]
+#endif
+ public AccountCompanyRegistrationDate RegistrationDate { get; set; }
+
///
/// The category identifying the legal structure of the company or legal entity. Also
/// available for accounts where
+ {
+ ///
+ /// The day of registration, between 1 and 31.
+ ///
+ [JsonProperty("day")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("day")]
+#endif
+ public long? Day { get; set; }
+
+ ///
+ /// The month of registration, between 1 and 12.
+ ///
+ [JsonProperty("month")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("month")]
+#endif
+ public long? Month { get; set; }
+
+ ///
+ /// The four-digit year of registration.
+ ///
+ [JsonProperty("year")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("year")]
+#endif
+ public long? Year { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs
index 98fed84463..a7071f38d7 100644
--- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs
@@ -66,8 +66,10 @@ public class AccountFutureRequirementsError : StripeEntityverification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs b/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
index 2bf03d9d87..a82d942e90 100644
--- a/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs
@@ -66,8 +66,10 @@ public class AccountRequirementsError : StripeEntity
/// verification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs
index 13f7191e16..af2553d58d 100644
--- a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs
+++ b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirementsError.cs
@@ -66,8 +66,10 @@ public class BankAccountFutureRequirementsError : StripeEntityverification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs
index f35f8cb8aa..9709655865 100644
--- a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs
+++ b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirementsError.cs
@@ -66,8 +66,10 @@ public class BankAccountRequirementsError : StripeEntityverification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs
index b560d2978f..4011942911 100644
--- a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs
+++ b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirementsError.cs
@@ -66,8 +66,10 @@ public class CapabilityFutureRequirementsError : StripeEntityverification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/Charges/ChargeBillingDetails.cs b/src/Stripe.net/Entities/Charges/ChargeBillingDetails.cs
index 7bc3476a0c..01b4154812 100644
--- a/src/Stripe.net/Entities/Charges/ChargeBillingDetails.cs
+++ b/src/Stripe.net/Entities/Charges/ChargeBillingDetails.cs
@@ -43,5 +43,15 @@ public class ChargeBillingDetails : StripeEntity
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }
+
+ ///
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs
index 8701191c8b..4dca42d77b 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs
@@ -135,8 +135,11 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject
///
/// The client secret of your Checkout Session. Applies to Checkout Sessions with
- /// ui_mode: embedded. Client secret to be used when initializing Stripe.js embedded
- /// checkout.
+ /// ui_mode: embedded or ui_mode: custom. For ui_mode: embedded, the
+ /// client secret is to be used when initializing Stripe.js embedded checkout. For
+ /// ui_mode: custom, use the client secret with initCheckout on your front
+ /// end.
///
[JsonProperty("client_secret")]
#if NET6_0_OR_GREATER
@@ -584,7 +587,7 @@ public PaymentLink PaymentLink
/// CheckoutSession object.
///
/// For specific permissions, please refer to their dedicated subsections, such as
- /// permissions.update.shipping_details.
+ /// permissions.update_shipping_details.
///
[JsonProperty("permissions")]
#if NET6_0_OR_GREATER
@@ -626,9 +629,9 @@ public PaymentLink PaymentLink
public string RedirectOnCompletion { get; set; }
///
- /// Applies to Checkout Sessions with ui_mode: embedded. The URL to redirect your
- /// customer back to after they authenticate or cancel their payment on the payment method's
- /// app or site.
+ /// Applies to Checkout Sessions with ui_mode: embedded or ui_mode: custom.
+ /// The URL to redirect your customer back to after they authenticate or cancel their
+ /// payment on the payment method's app or site.
///
[JsonProperty("return_url")]
#if NET6_0_OR_GREATER
@@ -834,5 +837,14 @@ public Subscription Subscription
[STJS.JsonPropertyName("url")]
#endif
public string Url { get; set; }
+
+ ///
+ /// Wallet-specific configuration for this Checkout Session.
+ ///
+ [JsonProperty("wallet_options")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("wallet_options")]
+#endif
+ public SessionWalletOptions WalletOptions { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTax.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTax.cs
index 1be8203d03..975087f0a3 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTax.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTax.cs
@@ -28,6 +28,15 @@ public class SessionAutomaticTax : StripeEntity
#endif
public SessionAutomaticTaxLiability Liability { get; set; }
+ ///
+ /// The tax provider powering automatic tax.
+ ///
+ [JsonProperty("provider")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("provider")]
+#endif
+ public string Provider { get; set; }
+
///
/// The status of the most recent automated tax calculation for this session.
/// One of: complete, failed, or requires_location_inputs.
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs
index a40e92c046..46fcbd4115 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs
@@ -28,28 +28,32 @@ public class SessionCustomerDetailsTaxId : StripeEntityma_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, or
+ /// 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, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
/// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
/// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
- /// ma_vat, md_vat, me_pib, mk_vat, mr_nif,
- /// mx_rfc, my_frp, my_itn, my_sst, ng_tin,
- /// no_vat, no_voec, np_pan, nz_gst, om_vat,
- /// pe_ruc, ph_tin, 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.
+ /// 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, unknown,
+ /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
+ /// vn_tin, za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionWalletOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionWalletOptions.cs
new file mode 100644
index 0000000000..4a75486629
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionWalletOptions.cs
@@ -0,0 +1,17 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class SessionWalletOptions : StripeEntity
+ {
+ [JsonProperty("link")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("link")]
+#endif
+ public SessionWalletOptionsLink Link { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionWalletOptionsLink.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionWalletOptionsLink.cs
new file mode 100644
index 0000000000..f75695377f
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionWalletOptionsLink.cs
@@ -0,0 +1,21 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class SessionWalletOptionsLink : StripeEntity
+ {
+ ///
+ /// Describes whether Checkout should display Link. Defaults to auto.
+ /// One of: auto, or never.
+ ///
+ [JsonProperty("display")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("display")]
+#endif
+ public string Display { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCard.cs
index b87f8ea371..88740b9476 100644
--- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCard.cs
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCard.cs
@@ -16,5 +16,14 @@ public class ConfirmationTokenPaymentMethodOptionsCard : StripeEntity
+ /// Installment configuration for payments.
+ ///
+ [JsonProperty("installments")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("installments")]
+#endif
+ public ConfirmationTokenPaymentMethodOptionsCardInstallments Installments { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallments.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallments.cs
new file mode 100644
index 0000000000..008388e3f1
--- /dev/null
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallments.cs
@@ -0,0 +1,17 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ConfirmationTokenPaymentMethodOptionsCardInstallments : StripeEntity
+ {
+ [JsonProperty("plan")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("plan")]
+#endif
+ public ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan Plan { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs
new file mode 100644
index 0000000000..80c7bbaa1a
--- /dev/null
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs
@@ -0,0 +1,40 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan : StripeEntity
+ {
+ ///
+ /// For fixed_count installment plans, this is the number of installment payments
+ /// your customer will make to their credit card.
+ ///
+ [JsonProperty("count")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("count")]
+#endif
+ public long? Count { get; set; }
+
+ ///
+ /// For fixed_count installment plans, this is the interval between installment
+ /// payments your customer will make to their credit card. One of month.
+ ///
+ [JsonProperty("interval")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("interval")]
+#endif
+ public string Interval { get; set; }
+
+ ///
+ /// Type of installment plan, one of fixed_count.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBillingDetails.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBillingDetails.cs
index 3e3120c920..c76efdaee4 100644
--- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBillingDetails.cs
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewBillingDetails.cs
@@ -43,5 +43,15 @@ public class ConfirmationTokenPaymentMethodPreviewBillingDetails : StripeEntity<
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }
+
+ ///
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Coupons/Coupon.cs b/src/Stripe.net/Entities/Coupons/Coupon.cs
index 18ffdd61b9..156aa5e926 100644
--- a/src/Stripe.net/Entities/Coupons/Coupon.cs
+++ b/src/Stripe.net/Entities/Coupons/Coupon.cs
@@ -99,7 +99,7 @@ public class Coupon : StripeEntity, IHasId, IHasMetadata, IHasObject
public bool? Deleted { get; set; }
///
- /// One of forever, once, and repeating. Describes how long a customer
+ /// One of forever, once, or repeating. Describes how long a customer
/// who applies this coupon will get the discount.
/// One of: forever, once, or repeating.
///
diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs
index 65c7b3d64c..2a1bf9fc9d 100644
--- a/src/Stripe.net/Entities/Events/Event.cs
+++ b/src/Stripe.net/Entities/Events/Event.cs
@@ -81,6 +81,12 @@ public class Event : StripeEntity, IHasId, IHasObject
#endif
public string ApiVersion { get; set; }
+ [JsonProperty("context")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("context")]
+#endif
+ public string Context { get; set; }
+
///
/// Time at which the object was created. Measured in seconds since the Unix epoch.
///
diff --git a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
index d9e6a69ca7..30d989a89b 100644
--- a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTax.cs
@@ -42,6 +42,15 @@ public class InvoiceAutomaticTax : StripeEntity
#endif
public InvoiceAutomaticTaxLiability Liability { get; set; }
+ ///
+ /// The tax provider powering automatic tax.
+ ///
+ [JsonProperty("provider")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("provider")]
+#endif
+ public string Provider { get; set; }
+
///
/// The status of the most recent automated tax calculation for this invoice.
/// One of: complete, failed, or requires_location_inputs.
diff --git a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs
index c778a14147..9477751ff4 100644
--- a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs
@@ -28,28 +28,32 @@ public class InvoiceCustomerTaxId : StripeEntity
/// 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, or
+ /// 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, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
/// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
/// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
- /// ma_vat, md_vat, me_pib, mk_vat, mr_nif,
- /// mx_rfc, my_frp, my_itn, my_sst, ng_tin,
- /// no_vat, no_voec, np_pan, nz_gst, om_vat,
- /// pe_ruc, ph_tin, 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.
+ /// 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, unknown,
+ /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
+ /// vn_tin, za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs
index 99c593b691..828590b5f9 100644
--- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs
@@ -36,7 +36,7 @@ public class InvoicePaymentSettings : StripeEntity
/// customer’s default payment method, and your invoice template
/// settings.
- /// One of: ach_credit_transfer, ach_debit, acss_debit,
+ /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm,
/// amazon_pay, au_becs_debit, bacs_debit, bancontact,
/// boleto, card, cashapp, customer_balance, eps,
/// fpx, giropay, grabpay, ideal, jp_credit_transfer,
diff --git a/src/Stripe.net/Entities/LoginLinks/LoginLink.cs b/src/Stripe.net/Entities/LoginLinks/LoginLink.cs
index 5f128704dc..3a9bded574 100644
--- a/src/Stripe.net/Entities/LoginLinks/LoginLink.cs
+++ b/src/Stripe.net/Entities/LoginLinks/LoginLink.cs
@@ -9,10 +9,12 @@ namespace Stripe
#endif
///
- /// Login Links are single-use URLs for a connected account to access the Express Dashboard.
- /// The connected account's account.controller.stripe_dashboard.type
- /// must be express to have access to the Express Dashboard.
+ /// Login Links are single-use URLs that takes an Express account to the login page for
+ /// their Stripe dashboard. A Login Link differs from an Account Link in that it takes the
+ /// user directly to their Express
+ /// dashboard for the specified account.
///
public class LoginLink : StripeEntity, IHasObject
{
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs
index 353319fcb9..5a1f666095 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs
@@ -62,6 +62,12 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity
+ {
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs
index b45c1c5755..3c8e7c3318 100644
--- a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs
+++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs
@@ -322,6 +322,12 @@ 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")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("available")]
+#endif
+ public bool Available { get; set; }
+
+ [JsonProperty("display_preference")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("display_preference")]
+#endif
+ public PaymentMethodConfigurationPixDisplayPreference DisplayPreference { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPixDisplayPreference.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPixDisplayPreference.cs
new file mode 100644
index 0000000000..f041cdb1cd
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationPixDisplayPreference.cs
@@ -0,0 +1,41 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentMethodConfigurationPixDisplayPreference : 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")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("overridable")]
+#endif
+ public bool? Overridable { get; set; }
+
+ ///
+ /// The account's display preference.
+ /// One of: none, off, or on.
+ ///
+ [JsonProperty("preference")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("preference")]
+#endif
+ public string Preference { get; set; }
+
+ ///
+ /// The effective display preference value.
+ /// One of: off, or on.
+ ///
+ [JsonProperty("value")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("value")]
+#endif
+ public string Value { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs
index 9ecf7cdb81..336b367198 100644
--- a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs
+++ b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs
@@ -94,6 +94,15 @@ public class PaymentMethodDomain : StripeEntity, IHasId, IH
#endif
public PaymentMethodDomainGooglePay GooglePay { get; set; }
+ ///
+ /// Indicates the status of a specific payment method on a payment method domain.
+ ///
+ [JsonProperty("klarna")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("klarna")]
+#endif
+ public PaymentMethodDomainKlarna Klarna { get; set; }
+
///
/// Indicates the status of a specific payment method on a payment method domain.
///
diff --git a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomainKlarna.cs b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomainKlarna.cs
new file mode 100644
index 0000000000..124ed64df4
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomainKlarna.cs
@@ -0,0 +1,31 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentMethodDomainKlarna : StripeEntity
+ {
+ ///
+ /// The status of the payment method on the domain.
+ /// One of: active, or inactive.
+ ///
+ [JsonProperty("status")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("status")]
+#endif
+ public string Status { get; set; }
+
+ ///
+ /// Contains additional details about the status of a payment method for a specific payment
+ /// method domain.
+ ///
+ [JsonProperty("status_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("status_details")]
+#endif
+ public PaymentMethodDomainKlarnaStatusDetails StatusDetails { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomainKlarnaStatusDetails.cs b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomainKlarnaStatusDetails.cs
new file mode 100644
index 0000000000..625a99ffe7
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomainKlarnaStatusDetails.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentMethodDomainKlarnaStatusDetails : StripeEntity
+ {
+ ///
+ /// The error message associated with the status of the payment method on the domain.
+ ///
+ [JsonProperty("error_message")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("error_message")]
+#endif
+ public string ErrorMessage { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBillingDetails.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBillingDetails.cs
index 228dab5f56..f648ccddb1 100644
--- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBillingDetails.cs
+++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodBillingDetails.cs
@@ -43,5 +43,15 @@ public class PaymentMethodBillingDetails : StripeEntity
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Persons/Person.cs b/src/Stripe.net/Entities/Persons/Person.cs
index c560c82929..e459e613dd 100644
--- a/src/Stripe.net/Entities/Persons/Person.cs
+++ b/src/Stripe.net/Entities/Persons/Person.cs
@@ -326,6 +326,15 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject
#endif
public bool SsnLast4Provided { get; set; }
+ ///
+ /// Demographic data related to the person.
+ ///
+ [JsonProperty("us_cfpb_data")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("us_cfpb_data")]
+#endif
+ public PersonUsCfpbData UsCfpbData { get; set; }
+
[JsonProperty("verification")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("verification")]
diff --git a/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs b/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs
index 7499873499..c90f72329e 100644
--- a/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs
+++ b/src/Stripe.net/Entities/Persons/PersonFutureRequirementsError.cs
@@ -66,8 +66,10 @@ public class PersonFutureRequirementsError : StripeEntityverification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs b/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs
index 667e080cf7..1508bb8d68 100644
--- a/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs
+++ b/src/Stripe.net/Entities/Persons/PersonRequirementsError.cs
@@ -66,8 +66,10 @@ public class PersonRequirementsError : StripeEntity
/// verification_failed_name_match, verification_failed_other,
/// verification_failed_representative_authority,
/// verification_failed_residential_address, verification_failed_tax_id_match,
- /// verification_failed_tax_id_not_issued, verification_missing_directors,
- /// verification_missing_executives, verification_missing_owners,
+ /// verification_failed_tax_id_not_issued,
+ /// verification_legal_entity_structure_mismatch,
+ /// verification_missing_directors, verification_missing_executives,
+ /// verification_missing_owners,
/// verification_rejected_ownership_exemption_reason,
/// verification_requires_additional_memorandum_of_associations,
/// verification_requires_additional_proof_of_registration, or
diff --git a/src/Stripe.net/Entities/Persons/PersonUsCfpbData.cs b/src/Stripe.net/Entities/Persons/PersonUsCfpbData.cs
new file mode 100644
index 0000000000..85e43f16c1
--- /dev/null
+++ b/src/Stripe.net/Entities/Persons/PersonUsCfpbData.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PersonUsCfpbData : StripeEntity
+ {
+ ///
+ /// The persons ethnicity details.
+ ///
+ [JsonProperty("ethnicity_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity_details")]
+#endif
+ public PersonUsCfpbDataEthnicityDetails EthnicityDetails { get; set; }
+
+ ///
+ /// The persons race details.
+ ///
+ [JsonProperty("race_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race_details")]
+#endif
+ public PersonUsCfpbDataRaceDetails RaceDetails { get; set; }
+
+ ///
+ /// The persons self-identified gender.
+ ///
+ [JsonProperty("self_identified_gender")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("self_identified_gender")]
+#endif
+ public string SelfIdentifiedGender { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Persons/PersonUsCfpbDataEthnicityDetails.cs b/src/Stripe.net/Entities/Persons/PersonUsCfpbDataEthnicityDetails.cs
new file mode 100644
index 0000000000..4b9afedd2f
--- /dev/null
+++ b/src/Stripe.net/Entities/Persons/PersonUsCfpbDataEthnicityDetails.cs
@@ -0,0 +1,33 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PersonUsCfpbDataEthnicityDetails : StripeEntity
+ {
+ ///
+ /// The persons ethnicity.
+ /// One of: cuban, hispanic_or_latino, mexican,
+ /// not_hispanic_or_latino, other_hispanic_or_latino,
+ /// prefer_not_to_answer, or puerto_rican.
+ ///
+ [JsonProperty("ethnicity")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity")]
+#endif
+ public List Ethnicity { get; set; }
+
+ ///
+ /// Please specify your origin, when other is selected.
+ ///
+ [JsonProperty("ethnicity_other")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity_other")]
+#endif
+ public string EthnicityOther { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Persons/PersonUsCfpbDataRaceDetails.cs b/src/Stripe.net/Entities/Persons/PersonUsCfpbDataRaceDetails.cs
new file mode 100644
index 0000000000..a254bed310
--- /dev/null
+++ b/src/Stripe.net/Entities/Persons/PersonUsCfpbDataRaceDetails.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PersonUsCfpbDataRaceDetails : StripeEntity
+ {
+ ///
+ /// The persons race.
+ /// One of: african_american, american_indian_or_alaska_native, asian,
+ /// asian_indian, black_or_african_american, chinese, ethiopian,
+ /// filipino, guamanian_or_chamorro, haitian, jamaican,
+ /// japanese, korean, native_hawaiian,
+ /// native_hawaiian_or_other_pacific_islander, nigerian, other_asian,
+ /// other_black_or_african_american, other_pacific_islander,
+ /// prefer_not_to_answer, samoan, somali, vietnamese, or
+ /// white.
+ ///
+ [JsonProperty("race")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race")]
+#endif
+ public List Race { get; set; }
+
+ ///
+ /// Please specify your race, when other is selected.
+ ///
+ [JsonProperty("race_other")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race_other")]
+#endif
+ public string RaceOther { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Persons/PersonVerification.cs b/src/Stripe.net/Entities/Persons/PersonVerification.cs
index 6c53aab1c8..a894c72bff 100644
--- a/src/Stripe.net/Entities/Persons/PersonVerification.cs
+++ b/src/Stripe.net/Entities/Persons/PersonVerification.cs
@@ -49,7 +49,9 @@ public class PersonVerification : StripeEntity
///
/// The state of verification for the person. Possible values are unverified,
- /// pending, or verified.
+ /// pending, or verified. Please refer guide to handle
+ /// verification updates.
///
[JsonProperty("status")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/Quotes/QuoteAutomaticTax.cs b/src/Stripe.net/Entities/Quotes/QuoteAutomaticTax.cs
index 14510fa376..18acdb19a7 100644
--- a/src/Stripe.net/Entities/Quotes/QuoteAutomaticTax.cs
+++ b/src/Stripe.net/Entities/Quotes/QuoteAutomaticTax.cs
@@ -28,6 +28,15 @@ public class QuoteAutomaticTax : StripeEntity
#endif
public QuoteAutomaticTaxLiability Liability { get; set; }
+ ///
+ /// The tax provider powering automatic tax.
+ ///
+ [JsonProperty("provider")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("provider")]
+#endif
+ public string Provider { get; set; }
+
///
/// The status of the most recent automated tax calculation for this quote.
/// One of: complete, failed, or requires_location_inputs.
diff --git a/src/Stripe.net/Entities/Refunds/Refund.cs b/src/Stripe.net/Entities/Refunds/Refund.cs
index 84567e583e..28eca40244 100644
--- a/src/Stripe.net/Entities/Refunds/Refund.cs
+++ b/src/Stripe.net/Entities/Refunds/Refund.cs
@@ -290,6 +290,17 @@ public PaymentIntent PaymentIntent
internal ExpandableField InternalPaymentIntent { get; set; }
#endregion
+ ///
+ /// Provides the reason for why the refund is pending. Possible values are:
+ /// processing, insufficient_funds, or charge_pending.
+ /// One of: charge_pending, insufficient_funds, or processing.
+ ///
+ [JsonProperty("pending_reason")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("pending_reason")]
+#endif
+ public string PendingReason { get; set; }
+
[JsonProperty("presentment_details")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("presentment_details")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs
index c28d8e5e55..42563b0918 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs
@@ -26,7 +26,7 @@ public class SubscriptionPaymentSettings : StripeEntityinvoice template
/// settings.
- /// One of: ach_credit_transfer, ach_debit, acss_debit,
+ /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm,
/// amazon_pay, au_becs_debit, bacs_debit, bancontact,
/// boleto, card, cashapp, customer_balance, eps,
/// fpx, giropay, grabpay, ideal, jp_credit_transfer,
diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs
index 6aa809d361..c8aa4a2812 100644
--- a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs
+++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs
@@ -28,28 +28,32 @@ public class CalculationCustomerDetailsTaxId : StripeEntityma_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, or
+ /// 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, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
/// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
/// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
- /// ma_vat, md_vat, me_pib, mk_vat, mr_nif,
- /// mx_rfc, my_frp, my_itn, my_sst, ng_tin,
- /// no_vat, no_voec, np_pan, nz_gst, om_vat,
- /// pe_ruc, ph_tin, 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.
+ /// 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, unknown,
+ /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
+ /// vn_tin, za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs
index 5f9b55a89a..b003607222 100644
--- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs
@@ -44,6 +44,18 @@ public class RegistrationCountryOptions : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAz.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAz.cs
new file mode 100644
index 0000000000..1e044350a2
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAz.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsAz : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBd.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBd.cs
new file mode 100644
index 0000000000..8b479f223d
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBd.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsBd : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBf.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBf.cs
new file mode 100644
index 0000000000..5565db2b00
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBf.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsBf : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBj.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBj.cs
new file mode 100644
index 0000000000..1b045edb49
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBj.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsBj : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCm.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCm.cs
new file mode 100644
index 0000000000..7ce22f8b33
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCm.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsCm : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCv.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCv.cs
new file mode 100644
index 0000000000..c1720050bd
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCv.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsCv : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEt.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEt.cs
new file mode 100644
index 0000000000..280cf62eaa
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEt.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsEt : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIn.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIn.cs
new file mode 100644
index 0000000000..64c8f4ab9b
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIn.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsIn : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsKg.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsKg.cs
new file mode 100644
index 0000000000..bf56b85607
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsKg.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsKg : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLa.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLa.cs
new file mode 100644
index 0000000000..97e07442a3
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLa.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsLa : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPh.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPh.cs
new file mode 100644
index 0000000000..2ac687059d
--- /dev/null
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPh.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsPh : StripeEntity
+ {
+ ///
+ /// Type of registration in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs
index 4de6c81726..307d7cd482 100644
--- a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs
+++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs
@@ -28,28 +28,32 @@ public class TransactionCustomerDetailsTaxId : StripeEntityma_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, or
+ /// 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, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
/// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
/// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
- /// ma_vat, md_vat, me_pib, mk_vat, mr_nif,
- /// mx_rfc, my_frp, my_itn, my_sst, ng_tin,
- /// no_vat, no_voec, np_pan, nz_gst, om_vat,
- /// pe_ruc, ph_tin, 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.
+ /// 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, unknown,
+ /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
+ /// vn_tin, za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs
index 28a663ab36..267d71e21c 100644
--- a/src/Stripe.net/Entities/TaxIds/TaxId.cs
+++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs
@@ -132,37 +132,18 @@ public Customer Customer
///
/// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin,
- /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin,
- /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj,
+ /// ao_tin, ar_cuit, au_abn, au_arn, aw_tin,
+ /// az_tin, ba_tin, bb_tin, bd_bin, bf_ifu,
+ /// bg_uic, bh_vat, bj_ifu, bo_tin, br_cnpj,
/// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst,
/// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif,
- /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit,
- /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin,
- /// es_cif, 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, kh_tin, kr_brn, kz_bin, li_uid,
- /// li_vat, ma_vat, md_vat, me_pib, mk_vat,
- /// mr_nif, mx_rfc, my_frp, my_itn, my_sst,
- /// ng_tin, no_vat, no_voec, np_pan, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat,
- /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat,
- /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat,
- /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. Note that
- /// some legacy tax IDs have type unknown.
- /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
- /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
- /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
- /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
+ /// 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,
/// 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,
@@ -170,8 +151,31 @@ public Customer Customer
/// 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.
+ /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
+ /// vn_tin, za_vat, zm_tin, or zw_tin. Note that some legacy tax
+ /// IDs have type unknown.
+ /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
+ /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
+ /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, unknown,
+ /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
+ /// vn_tin, za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEvent.cs b/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEvent.cs
index 2e7a5767ea..1fa31bc3bb 100644
--- a/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEvent.cs
+++ b/src/Stripe.net/Events/V1BillingMeterErrorReportTriggeredEvent.cs
@@ -8,7 +8,7 @@ namespace Stripe.Events
#endif
///
- /// This event occurs when there are invalid async usage events for a given meter.
+ /// Occurs when a Meter has invalid async usage events.
///
public class V1BillingMeterErrorReportTriggeredEvent : V2.Event
{
diff --git a/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEvent.cs b/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEvent.cs
index d2653eab7e..1d436ff04f 100644
--- a/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEvent.cs
+++ b/src/Stripe.net/Events/V1BillingMeterNoMeterFoundEvent.cs
@@ -8,7 +8,7 @@ namespace Stripe.Events
#endif
///
- /// This event occurs when async usage events have missing or invalid meter ids.
+ /// Occurs when a Meter's id is missing or invalid in async usage events.
///
public class V1BillingMeterNoMeterFoundEvent : V2.Event
{
diff --git a/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs b/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs
new file mode 100644
index 0000000000..1b8f4bdae3
--- /dev/null
+++ b/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs
@@ -0,0 +1,42 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Events
+{
+ using System.Threading.Tasks;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ ///
+ /// A ping event used to test the connection to an event destination.
+ ///
+ public class V2CoreEventDestinationPingEvent : V2.Event
+ {
+ ///
+ /// Object containing the reference to API resource relevant to the event.
+ ///
+ [JsonProperty("related_object")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("related_object")]
+#endif
+
+ public V2.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.EventDestination FetchRelatedObject()
+ {
+ return this.FetchRelatedObject(this.RelatedObject);
+ }
+ }
+}
diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
index 5e7a35ab38..fc502bd233 100644
--- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
+++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
@@ -198,6 +198,10 @@ public static class StripeTypeRegistry
"v1.billing.meter.no_meter_found", typeof(
Events.V1BillingMeterNoMeterFoundEvent)
},
+ {
+ "v2.core.event_destination.ping", typeof(
+ Events.V2CoreEventDestinationPingEvent)
+ },
// ThinTypesToEventTypes: The end of the section generated from our OpenAPI spec
});
diff --git a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountBankAccountOptions.cs b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountBankAccountOptions.cs
index 102615c397..e501e9e1bf 100644
--- a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountBankAccountOptions.cs
+++ b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountBankAccountOptions.cs
@@ -65,10 +65,10 @@ public class AccountExternalAccountBankAccountOptions : INestedOptions, IHasObje
public string Currency { get; set; }
///
- /// The routing number, sort code, or other country-appropriateinstitution number for the
- /// bank account. For US bank accounts, this is required and should bethe ACH routing
- /// number, not the wire routing number. If you are providing an IBAN
- /// foraccount_number, this field is not required.
+ /// The routing number, sort code, or other country-appropriate institution number for the
+ /// bank account. For US bank accounts, this is required and should be the ACH routing
+ /// number, not the wire routing number. If you are providing an IBAN for
+ /// account_number, this field is not required.
///
[JsonProperty("routing_number")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs
index 150558a54b..a3feb5dbd2 100644
--- a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs
+++ b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs
@@ -261,6 +261,15 @@ public class AccountPersonCreateOptions : BaseOptions, IHasMetadata
#endif
public string SsnLast4 { get; set; }
+ ///
+ /// Demographic data related to the person.
+ ///
+ [JsonProperty("us_cfpb_data")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("us_cfpb_data")]
+#endif
+ public AccountPersonUsCfpbDataOptions UsCfpbData { get; set; }
+
///
/// The person's verification status.
///
diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs
index b6186fe25d..c9a7c9449e 100644
--- a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs
+++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs
@@ -261,6 +261,15 @@ public class AccountPersonUpdateOptions : BaseOptions, IHasMetadata
#endif
public string SsnLast4 { get; set; }
+ ///
+ /// Demographic data related to the person.
+ ///
+ [JsonProperty("us_cfpb_data")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("us_cfpb_data")]
+#endif
+ public AccountPersonUsCfpbDataOptions UsCfpbData { get; set; }
+
///
/// The person's verification status.
///
diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataEthnicityDetailsOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataEthnicityDetailsOptions.cs
new file mode 100644
index 0000000000..f49ebbbd60
--- /dev/null
+++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataEthnicityDetailsOptions.cs
@@ -0,0 +1,33 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonUsCfpbDataEthnicityDetailsOptions : INestedOptions
+ {
+ ///
+ /// The persons ethnicity.
+ /// One of: cuban, hispanic_or_latino, mexican,
+ /// not_hispanic_or_latino, other_hispanic_or_latino,
+ /// prefer_not_to_answer, or puerto_rican.
+ ///
+ [JsonProperty("ethnicity")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity")]
+#endif
+ public List Ethnicity { get; set; }
+
+ ///
+ /// Please specify your origin, when other is selected.
+ ///
+ [JsonProperty("ethnicity_other")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity_other")]
+#endif
+ public string EthnicityOther { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataOptions.cs
new file mode 100644
index 0000000000..cdb0a9d245
--- /dev/null
+++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataOptions.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonUsCfpbDataOptions : INestedOptions
+ {
+ ///
+ /// The persons ethnicity details.
+ ///
+ [JsonProperty("ethnicity_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity_details")]
+#endif
+ public AccountPersonUsCfpbDataEthnicityDetailsOptions EthnicityDetails { get; set; }
+
+ ///
+ /// The persons race details.
+ ///
+ [JsonProperty("race_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race_details")]
+#endif
+ public AccountPersonUsCfpbDataRaceDetailsOptions RaceDetails { get; set; }
+
+ ///
+ /// The persons self-identified gender.
+ ///
+ [JsonProperty("self_identified_gender")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("self_identified_gender")]
+#endif
+ public string SelfIdentifiedGender { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataRaceDetailsOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataRaceDetailsOptions.cs
new file mode 100644
index 0000000000..80c1ca74a0
--- /dev/null
+++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUsCfpbDataRaceDetailsOptions.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountPersonUsCfpbDataRaceDetailsOptions : INestedOptions
+ {
+ ///
+ /// The persons race.
+ /// One of: african_american, american_indian_or_alaska_native, asian,
+ /// asian_indian, black_or_african_american, chinese, ethiopian,
+ /// filipino, guamanian_or_chamorro, haitian, jamaican,
+ /// japanese, korean, native_hawaiian,
+ /// native_hawaiian_or_other_pacific_islander, nigerian, other_asian,
+ /// other_black_or_african_american, other_pacific_islander,
+ /// prefer_not_to_answer, samoan, somali, vietnamese, or
+ /// white.
+ ///
+ [JsonProperty("race")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race")]
+#endif
+ public List Race { get; set; }
+
+ ///
+ /// Please specify your race, when other is selected.
+ ///
+ [JsonProperty("race_other")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race_other")]
+#endif
+ public string RaceOther { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Accounts/AccountBankAccountOptions.cs b/src/Stripe.net/Services/Accounts/AccountBankAccountOptions.cs
index 66db03e17b..1b8abc0c06 100644
--- a/src/Stripe.net/Services/Accounts/AccountBankAccountOptions.cs
+++ b/src/Stripe.net/Services/Accounts/AccountBankAccountOptions.cs
@@ -65,10 +65,10 @@ public class AccountBankAccountOptions : INestedOptions, IHasObject
public string Object { get; set; } = "bank_account";
///
- /// The routing number, sort code, or other country-appropriateinstitution number for the
- /// bank account. For US bank accounts, this is required and should bethe ACH routing
- /// number, not the wire routing number. If you are providing an IBAN
- /// foraccount_number, this field is not required.
+ /// The routing number, sort code, or other country-appropriate institution number for the
+ /// bank account. For US bank accounts, this is required and should be the ACH routing
+ /// number, not the wire routing number. If you are providing an IBAN for
+ /// account_number, this field is not required.
///
[JsonProperty("routing_number")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs b/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs
index 0f889bc606..5fa0c207f7 100644
--- a/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs
+++ b/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
@@ -38,6 +39,17 @@ public class AccountBusinessProfileOptions : INestedOptions
#endif
public string Mcc { get; set; }
+ ///
+ /// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
+ /// One of: lgbtqi_owned_business, minority_owned_business,
+ /// none_of_these_apply, prefer_not_to_answer, or women_owned_business.
+ ///
+ [JsonProperty("minority_owned_business_designation")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("minority_owned_business_designation")]
+#endif
+ public List MinorityOwnedBusinessDesignation { get; set; }
+
///
/// An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil
/// and India.
diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs
index 130cbeb71a..1362a71745 100644
--- a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs
+++ b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs
@@ -163,6 +163,12 @@ public class AccountCompanyOptions : INestedOptions
#endif
public string Phone { get; set; }
+ [JsonProperty("registration_date")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("registration_date")]
+#endif
+ public AccountCompanyRegistrationDateOptions RegistrationDate { get; set; }
+
///
/// The identification number given to a company when it is registered or incorporated, if
/// distinct from the identification number used for filing taxes. (Examples are the CIN for
diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyRegistrationDateOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyRegistrationDateOptions.cs
new file mode 100644
index 0000000000..c640410833
--- /dev/null
+++ b/src/Stripe.net/Services/Accounts/AccountCompanyRegistrationDateOptions.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class AccountCompanyRegistrationDateOptions : INestedOptions
+ {
+ ///
+ /// The day of registration, between 1 and 31.
+ ///
+ [JsonProperty("day")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("day")]
+#endif
+ public long? Day { get; set; }
+
+ ///
+ /// The month of registration, between 1 and 12.
+ ///
+ [JsonProperty("month")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("month")]
+#endif
+ public long? Month { get; set; }
+
+ ///
+ /// The four-digit year of registration.
+ ///
+ [JsonProperty("year")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("year")]
+#endif
+ public long? Year { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs
index 206addd7cc..3abfe8832f 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs
@@ -399,10 +399,11 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
///
/// This property is used to set up permissions for various actions (e.g., update) on the
- /// CheckoutSession object.
+ /// CheckoutSession object. Can only be set when creating embedded or custom
+ /// sessions.
///
/// For specific permissions, please refer to their dedicated subsections, such as
- /// permissions.update.shipping_details.
+ /// permissions.update_shipping_details.
///
[JsonProperty("permissions")]
#if NET6_0_OR_GREATER
@@ -541,5 +542,14 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
[STJS.JsonPropertyName("ui_mode")]
#endif
public string UiMode { get; set; }
+
+ ///
+ /// Wallet-specific configuration.
+ ///
+ [JsonProperty("wallet_options")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("wallet_options")]
+#endif
+ public SessionWalletOptionsOptions WalletOptions { get; set; }
}
}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs
index f6ff1df81e..2314c588e7 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs
@@ -10,7 +10,8 @@ namespace Stripe.Checkout
public class SessionUpdateOptions : BaseOptions, IHasMetadata
{
///
- /// Information about the customer collected within the Checkout Session.
+ /// Information about the customer collected within the Checkout Session. Can only be set
+ /// when updating embedded or custom sessions.
///
[JsonProperty("collected_information")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionWalletOptionsLinkOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionWalletOptionsLinkOptions.cs
new file mode 100644
index 0000000000..503df3286e
--- /dev/null
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionWalletOptionsLinkOptions.cs
@@ -0,0 +1,23 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class SessionWalletOptionsLinkOptions : INestedOptions
+ {
+ ///
+ /// Specifies whether Checkout should display Link as a payment option. By default, Checkout
+ /// will display all the supported wallets that the Checkout Session was created with. This
+ /// is the auto behavior, and it is the default choice.
+ /// One of: auto, or never.
+ ///
+ [JsonProperty("display")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("display")]
+#endif
+ public string Display { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionWalletOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionWalletOptionsOptions.cs
new file mode 100644
index 0000000000..4343327da8
--- /dev/null
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionWalletOptionsOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class SessionWalletOptionsOptions : INestedOptions
+ {
+ ///
+ /// contains details about the Link wallet options.
+ ///
+ [JsonProperty("link")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("link")]
+#endif
+ public SessionWalletOptionsLinkOptions Link { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs
index 1e60941c34..8ceb514efe 100644
--- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs
+++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs
@@ -11,8 +11,7 @@ public class CustomerPaymentMethodListOptions : ListOptions
///
/// This field indicates whether this payment method can be shown again to its customer in a
/// checkout flow. Stripe products such as Checkout and Elements use this field to determine
- /// whether a payment method can be shown as a saved payment method in a checkout flow. The
- /// field defaults to unspecified.
+ /// whether a payment method can be shown as a saved payment method in a checkout flow.
/// One of: always, limited, or unspecified.
///
[JsonProperty("allow_redisplay")]
diff --git a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs
index 285e1e5a64..2ae2023e85 100644
--- a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs
+++ b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs
@@ -10,36 +10,18 @@ public class CustomerTaxIdCreateOptions : BaseOptions
{
///
/// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin,
- /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin,
- /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj,
+ /// ao_tin, ar_cuit, au_abn, au_arn, aw_tin,
+ /// az_tin, ba_tin, bb_tin, bd_bin, bf_ifu,
+ /// bg_uic, bh_vat, bj_ifu, bo_tin, br_cnpj,
/// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst,
/// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif,
- /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit,
- /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin,
- /// es_cif, 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, kh_tin, kr_brn, kz_bin, li_uid,
- /// li_vat, ma_vat, md_vat, me_pib, mk_vat,
- /// mr_nif, mx_rfc, my_frp, my_itn, my_sst,
- /// ng_tin, no_vat, no_voec, np_pan, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat,
- /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat,
- /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat,
- /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin.
- /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
- /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
- /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
- /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
+ /// 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,
/// 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,
@@ -49,6 +31,28 @@ public class CustomerTaxIdCreateOptions : BaseOptions
/// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin,
/// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
/// vn_tin, za_vat, zm_tin, or zw_tin.
+ /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
+ /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
+ /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, us_ein,
+ /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin,
+ /// za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs
index 959b6afc0f..110a96303f 100644
--- a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs
+++ b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs
@@ -10,36 +10,18 @@ public class CustomerTaxIdDataOptions : INestedOptions
{
///
/// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin,
- /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin,
- /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj,
+ /// ao_tin, ar_cuit, au_abn, au_arn, aw_tin,
+ /// az_tin, ba_tin, bb_tin, bd_bin, bf_ifu,
+ /// bg_uic, bh_vat, bj_ifu, bo_tin, br_cnpj,
/// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst,
/// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif,
- /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit,
- /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin,
- /// es_cif, 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, kh_tin, kr_brn, kz_bin, li_uid,
- /// li_vat, ma_vat, md_vat, me_pib, mk_vat,
- /// mr_nif, mx_rfc, my_frp, my_itn, my_sst,
- /// ng_tin, no_vat, no_voec, np_pan, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat,
- /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat,
- /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat,
- /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin.
- /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
- /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
- /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
- /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
+ /// 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,
/// 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,
@@ -49,6 +31,28 @@ public class CustomerTaxIdDataOptions : INestedOptions
/// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin,
/// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
/// vn_tin, za_vat, zm_tin, or zw_tin.
+ /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
+ /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
+ /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, us_ein,
+ /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin,
+ /// za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs
index 9d0033763c..81bd3ab26b 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs
@@ -10,36 +10,18 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions
{
///
/// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin,
- /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin,
- /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj,
+ /// ao_tin, ar_cuit, au_abn, au_arn, aw_tin,
+ /// az_tin, ba_tin, bb_tin, bd_bin, bf_ifu,
+ /// bg_uic, bh_vat, bj_ifu, bo_tin, br_cnpj,
/// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst,
/// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif,
- /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit,
- /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin,
- /// es_cif, 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, kh_tin, kr_brn, kz_bin, li_uid,
- /// li_vat, ma_vat, md_vat, me_pib, mk_vat,
- /// mr_nif, mx_rfc, my_frp, my_itn, my_sst,
- /// ng_tin, no_vat, no_voec, np_pan, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat,
- /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat,
- /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat,
- /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin.
- /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
- /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
- /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
- /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
+ /// 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,
/// 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,
@@ -49,6 +31,28 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions
/// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin,
/// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
/// vn_tin, za_vat, zm_tin, or zw_tin.
+ /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
+ /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
+ /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, us_ein,
+ /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin,
+ /// za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs
index 1b1c43ee13..6a3ca56a84 100644
--- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs
@@ -36,7 +36,7 @@ public class InvoicePaymentSettingsOptions : INestedOptions
/// customer’s default payment method, and your invoice template
/// settings. Should not be specified with payment_method_configuration.
- /// One of: ach_credit_transfer, ach_debit, acss_debit,
+ /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm,
/// amazon_pay, au_becs_debit, bacs_debit, bancontact,
/// boleto, card, cashapp, customer_balance, eps,
/// fpx, giropay, grabpay, ideal, jp_credit_transfer,
diff --git a/src/Stripe.net/Services/Invoices/InvoiceService.cs b/src/Stripe.net/Services/Invoices/InvoiceService.cs
index 15d9cbeae8..ce0a9c4631 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceService.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceService.cs
@@ -78,10 +78,10 @@ public virtual Task CreateAsync(InvoiceCreateOptions options, RequestOp
}
///
- /// At any time, you can preview the upcoming invoice for a customer. This will show you
- /// all the charges that are pending, including subscription renewal charges, invoice item
- /// charges, etc. It will also show you any discounts that are applicable to the
- /// invoice.
.
+ /// At any time, you can preview the upcoming invoice for a subscription or subscription
+ /// schedule. This will show you all the charges that are pending, including subscription
+ /// renewal charges, invoice item charges, etc. It will also show you any discounts that are
+ /// applicable to the invoice.
.
///
/// Note that when you are viewing an upcoming invoice, you are simply viewing a preview
/// – the invoice has not yet been created. As such, the upcoming invoice will not show up
@@ -107,10 +107,10 @@ public virtual Invoice CreatePreview(InvoiceCreatePreviewOptions options = null,
}
///
- /// At any time, you can preview the upcoming invoice for a customer. This will show you
- /// all the charges that are pending, including subscription renewal charges, invoice item
- /// charges, etc. It will also show you any discounts that are applicable to the
- /// invoice.
.
+ /// At any time, you can preview the upcoming invoice for a subscription or subscription
+ /// schedule. This will show you all the charges that are pending, including subscription
+ /// renewal charges, invoice item charges, etc. It will also show you any discounts that are
+ /// applicable to the invoice.
.
///
/// Note that when you are viewing an upcoming invoice, you are simply viewing a preview
/// – the invoice has not yet been created. As such, the upcoming invoice will not show up
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillingDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillingDetailsOptions.cs
index e86728ac85..f90dbf1f3a 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillingDetailsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataBillingDetailsOptions.cs
@@ -43,5 +43,15 @@ public class PaymentIntentPaymentMethodDataBillingDetailsOptions : INestedOption
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }
+
+ ///
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
index 298e2ad302..05fe62fba7 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
@@ -113,7 +113,7 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
public PaymentIntentPaymentMethodDataBancontactOptions Bancontact { get; set; }
///
- /// If this is a billie PaymentMethod, this hash contains details about the billie
+ /// If this is a billie PaymentMethod, this hash contains details about the Billie
/// payment method.
///
[JsonProperty("billie")]
@@ -426,7 +426,7 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
public PaymentIntentPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; }
///
- /// If this is a Revolut Pay PaymentMethod, this hash contains details about the
+ /// If this is a revolut_pay PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
///
[JsonProperty("revolut_pay")]
@@ -447,7 +447,7 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
///
/// If this is a satispay PaymentMethod, this hash contains details about the
- /// satispay payment method.
+ /// Satispay payment method.
///
[JsonProperty("satispay")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsBillieOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsBillieOptions.cs
new file mode 100644
index 0000000000..bf7fbb9a6b
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsBillieOptions.cs
@@ -0,0 +1,27 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentIntentPaymentMethodOptionsBillieOptions : INestedOptions
+ {
+ ///
+ /// Controls when the funds are captured from the customer's account.
+ ///
+ /// If provided, this parameter overrides the behavior of the top-level capture_method
+ /// for this payment method type when finalizing the payment with this payment method type.
+ ///
+ /// If capture_method is already set on the PaymentIntent, providing an empty value
+ /// for this parameter unsets the stored value for this payment method type.
+ ///
+ [JsonProperty("capture_method")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("capture_method")]
+#endif
+ public string CaptureMethod { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
index 95574bdda8..04afd0b0af 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
@@ -98,6 +98,16 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions
#endif
public PaymentIntentPaymentMethodOptionsBancontactOptions Bancontact { get; set; }
+ ///
+ /// If this is a billie PaymentMethod, this sub-hash contains details about the
+ /// Billie payment method options.
+ ///
+ [JsonProperty("billie")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("billie")]
+#endif
+ public PaymentIntentPaymentMethodOptionsBillieOptions Billie { get; set; }
+
///
/// If this is a blik PaymentMethod, this sub-hash contains details about the BLIK
/// payment method options.
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs
index 2e5da2449f..b6335bde16 100644
--- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs
@@ -463,6 +463,17 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions
#endif
public PaymentMethodConfigurationPaypalOptions Paypal { get; set; }
+ ///
+ /// Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate
+ /// and approve payments by scanning a QR code in their preferred banking app. Check this page for more details.
+ ///
+ [JsonProperty("pix")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("pix")]
+#endif
+ public PaymentMethodConfigurationPixOptions Pix { get; set; }
+
///
/// PromptPay is a Thailand-based payment method that allows customers to make a payment
/// using their preferred app from participating banks. Check this
+ /// The account's preference for whether or not to display this payment method.
+ /// One of: none, off, or on.
+ ///
+ [JsonProperty("preference")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("preference")]
+#endif
+ public string Preference { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPixOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPixOptions.cs
new file mode 100644
index 0000000000..72e52631db
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationPixOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class PaymentMethodConfigurationPixOptions : INestedOptions
+ {
+ ///
+ /// Whether or not the payment method should be displayed.
+ ///
+ [JsonProperty("display_preference")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("display_preference")]
+#endif
+ public PaymentMethodConfigurationPixDisplayPreferenceOptions DisplayPreference { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs
index 6dd4ee4ac0..808f398f2d 100644
--- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs
@@ -463,6 +463,17 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions
#endif
public PaymentMethodConfigurationPaypalOptions Paypal { get; set; }
+ ///
+ /// Pix is a payment method popular in Brazil. When paying with Pix, customers authenticate
+ /// and approve payments by scanning a QR code in their preferred banking app. Check this page for more details.
+ ///
+ [JsonProperty("pix")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("pix")]
+#endif
+ public PaymentMethodConfigurationPixOptions Pix { get; set; }
+
///
/// PromptPay is a Thailand-based payment method that allows customers to make a payment
/// using their preferred app from participating banks. Check this
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs
index 3f89850afc..576ce4e670 100644
--- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs
@@ -113,7 +113,7 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
public PaymentMethodBancontactOptions Bancontact { get; set; }
///
- /// If this is a billie PaymentMethod, this hash contains details about the billie
+ /// If this is a billie PaymentMethod, this hash contains details about the Billie
/// payment method.
///
[JsonProperty("billie")]
@@ -459,7 +459,7 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
public PaymentMethodRadarOptionsOptions RadarOptions { get; set; }
///
- /// If this is a Revolut Pay PaymentMethod, this hash contains details about the
+ /// If this is a revolut_pay PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
///
[JsonProperty("revolut_pay")]
@@ -480,7 +480,7 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
///
/// If this is a satispay PaymentMethod, this hash contains details about the
- /// satispay payment method.
+ /// Satispay payment method.
///
[JsonProperty("satispay")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataBillingDetailsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataBillingDetailsOptions.cs
index ba04be64eb..f07347c806 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataBillingDetailsOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataBillingDetailsOptions.cs
@@ -43,5 +43,15 @@ public class SetupIntentPaymentMethodDataBillingDetailsOptions : INestedOptions
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }
+
+ ///
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs
index d1bbc6d765..8c86260d49 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs
@@ -113,7 +113,7 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
public SetupIntentPaymentMethodDataBancontactOptions Bancontact { get; set; }
///
- /// If this is a billie PaymentMethod, this hash contains details about the billie
+ /// If this is a billie PaymentMethod, this hash contains details about the Billie
/// payment method.
///
[JsonProperty("billie")]
@@ -426,7 +426,7 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
public SetupIntentPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; }
///
- /// If this is a Revolut Pay PaymentMethod, this hash contains details about the
+ /// If this is a revolut_pay PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
///
[JsonProperty("revolut_pay")]
@@ -447,7 +447,7 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
///
/// If this is a satispay PaymentMethod, this hash contains details about the
- /// satispay payment method.
+ /// Satispay payment method.
///
[JsonProperty("satispay")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs
index 642490968b..7598a893bd 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs
@@ -26,7 +26,7 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions
/// customer’s default payment method, and your invoice template
/// settings. Should not be specified with payment_method_configuration.
- /// One of: ach_credit_transfer, ach_debit, acss_debit,
+ /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm,
/// amazon_pay, au_becs_debit, bacs_debit, bancontact,
/// boleto, card, cashapp, customer_balance, eps,
/// fpx, giropay, grabpay, ideal, jp_credit_transfer,
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs
index e0118620d0..342f051fee 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs
@@ -39,7 +39,8 @@ public SubscriptionService(IStripeClient client)
/// href="https://stripe.com/docs/api#delete_invoiceitem">deleted. If you’ve set the
/// subscription to cancel at the end of the period, any pending prorations are also left in
/// place and collected at the end of the period. But if the subscription is set to cancel
- /// immediately, pending prorations are removed.
.
+ /// immediately, pending prorations are removed if invoice_now and prorate are
+ /// both set to true.
.
///
/// By default, upon subscription cancellation, Stripe stops automatic collection of all
/// finalized invoices for the customer. This is intended to prevent unexpected payment
@@ -63,7 +64,8 @@ public virtual Subscription Cancel(string id, SubscriptionCancelOptions options
/// href="https://stripe.com/docs/api#delete_invoiceitem">deleted. If you’ve set the
/// subscription to cancel at the end of the period, any pending prorations are also left in
/// place and collected at the end of the period. But if the subscription is set to cancel
- /// immediately, pending prorations are removed.
.
+ /// immediately, pending prorations are removed if invoice_now and prorate are
+ /// both set to true.
.
///
/// By default, upon subscription cancellation, Stripe stops automatic collection of all
/// finalized invoices for the customer. This is intended to prevent unexpected payment
diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs
index 5798619d92..c110edeab4 100644
--- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs
+++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs
@@ -10,36 +10,18 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions
{
///
/// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin,
- /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin,
- /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj,
+ /// ao_tin, ar_cuit, au_abn, au_arn, aw_tin,
+ /// az_tin, ba_tin, bb_tin, bd_bin, bf_ifu,
+ /// bg_uic, bh_vat, bj_ifu, bo_tin, br_cnpj,
/// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst,
/// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif,
- /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit,
- /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin,
- /// es_cif, 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, kh_tin, kr_brn, kz_bin, li_uid,
- /// li_vat, ma_vat, md_vat, me_pib, mk_vat,
- /// mr_nif, mx_rfc, my_frp, my_itn, my_sst,
- /// ng_tin, no_vat, no_voec, np_pan, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat,
- /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat,
- /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat,
- /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin.
- /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
- /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
- /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
- /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
+ /// 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,
/// 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,
@@ -49,6 +31,28 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions
/// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin,
/// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
/// vn_tin, za_vat, zm_tin, or zw_tin.
+ /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
+ /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
+ /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, us_ein,
+ /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin,
+ /// za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs
new file mode 100644
index 0000000000..6532c161d3
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsAwOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAzOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAzOptions.cs
new file mode 100644
index 0000000000..cb10012c0a
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAzOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsAzOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs
new file mode 100644
index 0000000000..8155c3bdef
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsBdOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs
new file mode 100644
index 0000000000..4464d86437
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsBfOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBjOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBjOptions.cs
new file mode 100644
index 0000000000..bb1efa879a
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBjOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsBjOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCmOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCmOptions.cs
new file mode 100644
index 0000000000..9fdfa8636b
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCmOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsCmOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCvOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCvOptions.cs
new file mode 100644
index 0000000000..f03ae84f1d
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCvOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsCvOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs
new file mode 100644
index 0000000000..4897a85a7c
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsEtOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsInOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsInOptions.cs
new file mode 100644
index 0000000000..a646eda95b
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsInOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsInOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsKgOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsKgOptions.cs
new file mode 100644
index 0000000000..6a3cc35ad7
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsKgOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsKgOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLaOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLaOptions.cs
new file mode 100644
index 0000000000..dca62d9a2c
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLaOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsLaOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs
index 854ed04a66..fe0b1f40f6 100644
--- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs
@@ -62,6 +62,24 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsAuOptions Au { get; set; }
+ ///
+ /// Options for the registration in AW.
+ ///
+ [JsonProperty("aw")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("aw")]
+#endif
+ public RegistrationCountryOptionsAwOptions Aw { get; set; }
+
+ ///
+ /// Options for the registration in AZ.
+ ///
+ [JsonProperty("az")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("az")]
+#endif
+ public RegistrationCountryOptionsAzOptions Az { get; set; }
+
///
/// Options for the registration in BA.
///
@@ -80,6 +98,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsBbOptions Bb { get; set; }
+ ///
+ /// Options for the registration in BD.
+ ///
+ [JsonProperty("bd")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("bd")]
+#endif
+ public RegistrationCountryOptionsBdOptions Bd { get; set; }
+
///
/// Options for the registration in BE.
///
@@ -89,6 +116,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsBeOptions Be { get; set; }
+ ///
+ /// Options for the registration in BF.
+ ///
+ [JsonProperty("bf")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("bf")]
+#endif
+ public RegistrationCountryOptionsBfOptions Bf { get; set; }
+
///
/// Options for the registration in BG.
///
@@ -107,6 +143,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsBhOptions Bh { get; set; }
+ ///
+ /// Options for the registration in BJ.
+ ///
+ [JsonProperty("bj")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("bj")]
+#endif
+ public RegistrationCountryOptionsBjOptions Bj { get; set; }
+
///
/// Options for the registration in BS.
///
@@ -161,6 +206,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsClOptions Cl { get; set; }
+ ///
+ /// Options for the registration in CM.
+ ///
+ [JsonProperty("cm")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("cm")]
+#endif
+ public RegistrationCountryOptionsCmOptions Cm { get; set; }
+
///
/// Options for the registration in CO.
///
@@ -179,6 +233,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsCrOptions Cr { get; set; }
+ ///
+ /// Options for the registration in CV.
+ ///
+ [JsonProperty("cv")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("cv")]
+#endif
+ public RegistrationCountryOptionsCvOptions Cv { get; set; }
+
///
/// Options for the registration in CY.
///
@@ -251,6 +314,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsEsOptions Es { get; set; }
+ ///
+ /// Options for the registration in ET.
+ ///
+ [JsonProperty("et")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("et")]
+#endif
+ public RegistrationCountryOptionsEtOptions Et { get; set; }
+
///
/// Options for the registration in FI.
///
@@ -341,6 +413,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsIeOptions Ie { get; set; }
+ ///
+ /// Options for the registration in IN.
+ ///
+ [JsonProperty("in")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("in")]
+#endif
+ public RegistrationCountryOptionsInOptions In { get; set; }
+
///
/// Options for the registration in IS.
///
@@ -377,6 +458,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsKeOptions Ke { get; set; }
+ ///
+ /// Options for the registration in KG.
+ ///
+ [JsonProperty("kg")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("kg")]
+#endif
+ public RegistrationCountryOptionsKgOptions Kg { get; set; }
+
///
/// Options for the registration in KH.
///
@@ -404,6 +494,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsKzOptions Kz { get; set; }
+ ///
+ /// Options for the registration in LA.
+ ///
+ [JsonProperty("la")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("la")]
+#endif
+ public RegistrationCountryOptionsLaOptions La { get; set; }
+
///
/// Options for the registration in LT.
///
@@ -566,6 +665,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions
#endif
public RegistrationCountryOptionsPeOptions Pe { get; set; }
+ ///
+ /// Options for the registration in PH.
+ ///
+ [JsonProperty("ph")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ph")]
+#endif
+ public RegistrationCountryOptionsPhOptions Ph { get; set; }
+
///
/// Options for the registration in PL.
///
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPhOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPhOptions.cs
new file mode 100644
index 0000000000..24b427ca40
--- /dev/null
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPhOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Tax
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class RegistrationCountryOptionsPhOptions : INestedOptions
+ {
+ ///
+ /// Type of registration to be created in country.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs
index 64b7e6b0ad..8a1893bdfb 100644
--- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs
+++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs
@@ -19,36 +19,18 @@ public class TaxIdCreateOptions : BaseOptions
///
/// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin,
- /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin,
- /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj,
+ /// ao_tin, ar_cuit, au_abn, au_arn, aw_tin,
+ /// az_tin, ba_tin, bb_tin, bd_bin, bf_ifu,
+ /// bg_uic, bh_vat, bj_ifu, bo_tin, br_cnpj,
/// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst,
/// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif,
- /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit,
- /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin,
- /// es_cif, 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, kh_tin, kr_brn, kz_bin, li_uid,
- /// li_vat, ma_vat, md_vat, me_pib, mk_vat,
- /// mr_nif, mx_rfc, my_frp, my_itn, my_sst,
- /// ng_tin, no_vat, no_voec, np_pan, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat,
- /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat,
- /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat,
- /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin.
- /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
- /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin,
- /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
- /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
- /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid,
- /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin,
- /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif,
- /// 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,
- /// kh_tin, kr_brn, kz_bin, li_uid, li_vat,
+ /// 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,
/// 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,
@@ -58,6 +40,28 @@ public class TaxIdCreateOptions : BaseOptions
/// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin,
/// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif,
/// vn_tin, za_vat, zm_tin, or zw_tin.
+ /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin,
+ /// ar_cuit, au_abn, au_arn, aw_tin, az_tin,
+ /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic,
+ /// bh_vat, bj_ifu, bo_tin, br_cnpj, br_cpf,
+ /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc,
+ /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, 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, 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, ro_tin, rs_pib, ru_inn, ru_kpp,
+ /// sa_vat, sg_gst, sg_uen, si_tin, sn_ninea,
+ /// sr_fin, sv_nit, th_vat, tj_tin, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, ug_tin, us_ein,
+ /// uy_ruc, uz_tin, uz_vat, ve_rif, vn_tin,
+ /// za_vat, zm_tin, or zw_tin.
///
[JsonProperty("type")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs
index e01df0b94b..15bdb0c28e 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenCreateOptions.cs
@@ -26,6 +26,15 @@ public class ConfirmationTokenCreateOptions : BaseOptions
#endif
public ConfirmationTokenPaymentMethodDataOptions PaymentMethodData { get; set; }
+ ///
+ /// Payment-method-specific configuration for this ConfirmationToken.
+ ///
+ [JsonProperty("payment_method_options")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("payment_method_options")]
+#endif
+ public ConfirmationTokenPaymentMethodOptionsOptions PaymentMethodOptions { get; set; }
+
///
/// Return URL used to confirm the Intent.
///
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataBillingDetailsOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataBillingDetailsOptions.cs
index fa641e4ab1..43befae183 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataBillingDetailsOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataBillingDetailsOptions.cs
@@ -43,5 +43,15 @@ public class ConfirmationTokenPaymentMethodDataBillingDetailsOptions : INestedOp
[STJS.JsonPropertyName("phone")]
#endif
public string Phone { get; set; }
+
+ ///
+ /// Taxpayer identification number. Used only for transactions between LATAM buyers and
+ /// non-LATAM sellers.
+ ///
+ [JsonProperty("tax_id")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("tax_id")]
+#endif
+ public string TaxId { get; set; }
}
}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
index ed87090e3f..3e63c248c3 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
@@ -113,7 +113,7 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet
public ConfirmationTokenPaymentMethodDataBancontactOptions Bancontact { get; set; }
///
- /// If this is a billie PaymentMethod, this hash contains details about the billie
+ /// If this is a billie PaymentMethod, this hash contains details about the Billie
/// payment method.
///
[JsonProperty("billie")]
@@ -426,7 +426,7 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet
public ConfirmationTokenPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; }
///
- /// If this is a Revolut Pay PaymentMethod, this hash contains details about the
+ /// If this is a revolut_pay PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
///
[JsonProperty("revolut_pay")]
@@ -447,7 +447,7 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet
///
/// If this is a satispay PaymentMethod, this hash contains details about the
- /// satispay payment method.
+ /// Satispay payment method.
///
[JsonProperty("satispay")]
#if NET6_0_OR_GREATER
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsOptions.cs
new file mode 100644
index 0000000000..4ee65f27df
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsOptions.cs
@@ -0,0 +1,21 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsOptions : INestedOptions
+ {
+ ///
+ /// The selected installment plan to use for this payment attempt. This parameter can only
+ /// be provided during confirmation.
+ ///
+ [JsonProperty("plan")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("plan")]
+#endif
+ public ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions Plan { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs
new file mode 100644
index 0000000000..ec7d8d257b
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs
@@ -0,0 +1,41 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions : INestedOptions
+ {
+ ///
+ /// For fixed_count installment plans, this is required. It represents the number of
+ /// installment payments your customer will make to their credit card.
+ ///
+ [JsonProperty("count")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("count")]
+#endif
+ public long? Count { get; set; }
+
+ ///
+ /// For fixed_count installment plans, this is required. It represents the interval
+ /// between installment payments your customer will make to their credit card. One of
+ /// month.
+ ///
+ [JsonProperty("interval")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("interval")]
+#endif
+ public string Interval { get; set; }
+
+ ///
+ /// Type of installment plan, one of fixed_count.
+ ///
+ [JsonProperty("type")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("type")]
+#endif
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardOptions.cs
new file mode 100644
index 0000000000..c0b2fcbe22
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ConfirmationTokenPaymentMethodOptionsCardOptions : INestedOptions
+ {
+ ///
+ /// Installment configuration for payments confirmed using this ConfirmationToken.
+ ///
+ [JsonProperty("installments")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("installments")]
+#endif
+ public ConfirmationTokenPaymentMethodOptionsCardInstallmentsOptions Installments { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsOptions.cs
new file mode 100644
index 0000000000..7079d55781
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class ConfirmationTokenPaymentMethodOptionsOptions : INestedOptions
+ {
+ ///
+ /// Configuration for any card payments confirmed using this ConfirmationToken.
+ ///
+ [JsonProperty("card")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("card")]
+#endif
+ public ConfirmationTokenPaymentMethodOptionsCardOptions Card { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs
index 73a87fd50b..5f2609ac15 100644
--- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs
+++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs
@@ -173,6 +173,12 @@ public class TokenAccountCompanyOptions : INestedOptions
#endif
public string Phone { get; set; }
+ [JsonProperty("registration_date")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("registration_date")]
+#endif
+ public TokenAccountCompanyRegistrationDateOptions RegistrationDate { get; set; }
+
///
/// The identification number given to a company when it is registered or incorporated, if
/// distinct from the identification number used for filing taxes. (Examples are the CIN for
diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyRegistrationDateOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyRegistrationDateOptions.cs
new file mode 100644
index 0000000000..ebc942d2f7
--- /dev/null
+++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyRegistrationDateOptions.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class TokenAccountCompanyRegistrationDateOptions : INestedOptions
+ {
+ ///
+ /// The day of registration, between 1 and 31.
+ ///
+ [JsonProperty("day")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("day")]
+#endif
+ public long? Day { get; set; }
+
+ ///
+ /// The month of registration, between 1 and 12.
+ ///
+ [JsonProperty("month")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("month")]
+#endif
+ public long? Month { get; set; }
+
+ ///
+ /// The four-digit year of registration.
+ ///
+ [JsonProperty("year")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("year")]
+#endif
+ public long? Year { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs
index d63ce08870..1d282b8ac6 100644
--- a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs
+++ b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs
@@ -251,6 +251,15 @@ public class TokenPersonOptions : INestedOptions, IHasMetadata
#endif
public string SsnLast4 { get; set; }
+ ///
+ /// Demographic data related to the person.
+ ///
+ [JsonProperty("us_cfpb_data")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("us_cfpb_data")]
+#endif
+ public TokenPersonUsCfpbDataOptions UsCfpbData { get; set; }
+
///
/// The person's verification status.
///
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataEthnicityDetailsOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataEthnicityDetailsOptions.cs
new file mode 100644
index 0000000000..8dc9adea08
--- /dev/null
+++ b/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataEthnicityDetailsOptions.cs
@@ -0,0 +1,33 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class TokenPersonUsCfpbDataEthnicityDetailsOptions : INestedOptions
+ {
+ ///
+ /// The persons ethnicity.
+ /// One of: cuban, hispanic_or_latino, mexican,
+ /// not_hispanic_or_latino, other_hispanic_or_latino,
+ /// prefer_not_to_answer, or puerto_rican.
+ ///
+ [JsonProperty("ethnicity")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity")]
+#endif
+ public List Ethnicity { get; set; }
+
+ ///
+ /// Please specify your origin, when other is selected.
+ ///
+ [JsonProperty("ethnicity_other")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity_other")]
+#endif
+ public string EthnicityOther { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataOptions.cs
new file mode 100644
index 0000000000..39ab134eb5
--- /dev/null
+++ b/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataOptions.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class TokenPersonUsCfpbDataOptions : INestedOptions
+ {
+ ///
+ /// The persons ethnicity details.
+ ///
+ [JsonProperty("ethnicity_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("ethnicity_details")]
+#endif
+ public TokenPersonUsCfpbDataEthnicityDetailsOptions EthnicityDetails { get; set; }
+
+ ///
+ /// The persons race details.
+ ///
+ [JsonProperty("race_details")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race_details")]
+#endif
+ public TokenPersonUsCfpbDataRaceDetailsOptions RaceDetails { get; set; }
+
+ ///
+ /// The persons self-identified gender.
+ ///
+ [JsonProperty("self_identified_gender")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("self_identified_gender")]
+#endif
+ public string SelfIdentifiedGender { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataRaceDetailsOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataRaceDetailsOptions.cs
new file mode 100644
index 0000000000..7e72e8ea12
--- /dev/null
+++ b/src/Stripe.net/Services/Tokens/TokenPersonUsCfpbDataRaceDetailsOptions.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+#if NET6_0_OR_GREATER
+ using STJS = System.Text.Json.Serialization;
+#endif
+
+ public class TokenPersonUsCfpbDataRaceDetailsOptions : INestedOptions
+ {
+ ///
+ /// The persons race.
+ /// One of: african_american, american_indian_or_alaska_native, asian,
+ /// asian_indian, black_or_african_american, chinese, ethiopian,
+ /// filipino, guamanian_or_chamorro, haitian, jamaican,
+ /// japanese, korean, native_hawaiian,
+ /// native_hawaiian_or_other_pacific_islander, nigerian, other_asian,
+ /// other_black_or_african_american, other_pacific_islander,
+ /// prefer_not_to_answer, samoan, somali, vietnamese, or
+ /// white.
+ ///
+ [JsonProperty("race")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race")]
+#endif
+ public List Race { get; set; }
+
+ ///
+ /// Please specify your race, when other is selected.
+ ///
+ [JsonProperty("race_other")]
+#if NET6_0_OR_GREATER
+ [STJS.JsonPropertyName("race_other")]
+#endif
+ public string RaceOther { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
index d63e711e6f..54a3074761 100644
--- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
+++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
@@ -39,8 +39,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata
/// 2022-08-01, 2022-11-15, 2023-08-16, 2023-10-16,
/// 2024-04-10, 2024-06-20, 2024-09-30.acacia,
/// 2024-10-28.acacia, 2024-11-20.acacia, 2024-12-18.acacia,
- /// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard, or
- /// 2025-03-31.basil.
+ /// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard,
+ /// 2025-03-31.basil, or 2025-04-30.basil.
///
[JsonProperty("api_version")]
#if NET6_0_OR_GREATER
diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs
index 4e0126150a..73cbb1a83a 100644
--- a/src/StripeTests/Services/GeneratedExamplesTest.cs
+++ b/src/StripeTests/Services/GeneratedExamplesTest.cs
@@ -30,7 +30,7 @@ public void TestAccountLinksPost()
Type = "account_onboarding",
};
var service = new AccountLinkService(this.StripeClient);
- service.Create(options);
+ AccountLink accountLink = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/account_links");
}
@@ -49,7 +49,9 @@ public void TestAccountsCapabilitiesGet()
public void TestAccountsCapabilitiesGet2()
{
var service = new AccountCapabilityService(this.StripeClient);
- service.Get("acct_xxxxxxxxxxxxx", "card_payments");
+ Capability capability = service.Get(
+ "acct_xxxxxxxxxxxxx",
+ "card_payments");
this.AssertRequest(
HttpMethod.Get,
"/v1/accounts/acct_xxxxxxxxxxxxx/capabilities/card_payments");
@@ -63,7 +65,10 @@ public void TestAccountsCapabilitiesPost()
Requested = true,
};
var service = new AccountCapabilityService(this.StripeClient);
- service.Update("acct_xxxxxxxxxxxxx", "card_payments", options);
+ Capability capability = service.Update(
+ "acct_xxxxxxxxxxxxx",
+ "card_payments",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/accounts/acct_xxxxxxxxxxxxx/capabilities/card_payments");
@@ -73,7 +78,7 @@ public void TestAccountsCapabilitiesPost()
public void TestAccountsDelete()
{
var service = new AccountService(this.StripeClient);
- service.Delete("acct_xxxxxxxxxxxxx");
+ Account deleted = service.Delete("acct_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/accounts/acct_xxxxxxxxxxxxx");
@@ -92,7 +97,7 @@ public void TestAccountsGet()
public void TestAccountsGet2()
{
var service = new AccountService(this.StripeClient);
- service.Get("acct_xxxxxxxxxxxxx");
+ Account account = service.Get("acct_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/accounts/acct_xxxxxxxxxxxxx");
@@ -102,7 +107,7 @@ public void TestAccountsGet2()
public void TestAccountsLoginLinksPost()
{
var service = new AccountLoginLinkService(this.StripeClient);
- service.Create("acct_xxxxxxxxxxxxx");
+ LoginLink loginLink = service.Create("acct_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/accounts/acct_xxxxxxxxxxxxx/login_links");
@@ -112,7 +117,9 @@ public void TestAccountsLoginLinksPost()
public void TestAccountsPersonsDelete()
{
var service = new AccountPersonService(this.StripeClient);
- service.Delete("acct_xxxxxxxxxxxxx", "person_xxxxxxxxxxxxx");
+ Person deleted = service.Delete(
+ "acct_xxxxxxxxxxxxx",
+ "person_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/accounts/acct_xxxxxxxxxxxxx/persons/person_xxxxxxxxxxxxx");
@@ -136,7 +143,9 @@ public void TestAccountsPersonsGet()
public void TestAccountsPersonsGet2()
{
var service = new AccountPersonService(this.StripeClient);
- service.Get("acct_xxxxxxxxxxxxx", "person_xxxxxxxxxxxxx");
+ Person person = service.Get(
+ "acct_xxxxxxxxxxxxx",
+ "person_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/accounts/acct_xxxxxxxxxxxxx/persons/person_xxxxxxxxxxxxx");
@@ -151,7 +160,7 @@ public void TestAccountsPersonsPost()
LastName = "Diaz",
};
var service = new AccountPersonService(this.StripeClient);
- service.Create("acct_xxxxxxxxxxxxx", options);
+ Person person = service.Create("acct_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/accounts/acct_xxxxxxxxxxxxx/persons");
@@ -168,7 +177,7 @@ public void TestAccountsPersonsPost2()
},
};
var service = new AccountPersonService(this.StripeClient);
- service.Update(
+ Person person = service.Update(
"acct_xxxxxxxxxxxxx",
"person_xxxxxxxxxxxxx",
options);
@@ -198,7 +207,7 @@ public void TestAccountsPost()
},
};
var service = new AccountService(this.StripeClient);
- service.Create(options);
+ Account account = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/accounts");
}
@@ -213,7 +222,7 @@ public void TestAccountsPost2()
},
};
var service = new AccountService(this.StripeClient);
- service.Update("acct_xxxxxxxxxxxxx", options);
+ Account account = service.Update("acct_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/accounts/acct_xxxxxxxxxxxxx");
@@ -224,7 +233,7 @@ public void TestAccountsRejectPost()
{
var options = new AccountRejectOptions { Reason = "fraud" };
var service = new AccountService(this.StripeClient);
- service.Reject("acct_xxxxxxxxxxxxx", options);
+ Account account = service.Reject("acct_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/accounts/acct_xxxxxxxxxxxxx/reject");
@@ -246,7 +255,7 @@ public void TestApplicationFeesGet()
public void TestApplicationFeesGet2()
{
var service = new ApplicationFeeService(this.StripeClient);
- service.Get("fee_xxxxxxxxxxxxx");
+ ApplicationFee applicationFee = service.Get("fee_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/application_fees/fee_xxxxxxxxxxxxx");
@@ -269,7 +278,9 @@ public void TestApplicationFeesRefundsGet()
public void TestApplicationFeesRefundsGet2()
{
var service = new ApplicationFeeRefundService(this.StripeClient);
- service.Get("fee_xxxxxxxxxxxxx", "fr_xxxxxxxxxxxxx");
+ ApplicationFeeRefund applicationFeeRefund = service.Get(
+ "fee_xxxxxxxxxxxxx",
+ "fr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/application_fees/fee_xxxxxxxxxxxxx/refunds/fr_xxxxxxxxxxxxx");
@@ -279,7 +290,8 @@ public void TestApplicationFeesRefundsGet2()
public void TestApplicationFeesRefundsPost()
{
var service = new ApplicationFeeRefundService(this.StripeClient);
- service.Create("fee_xxxxxxxxxxxxx");
+ ApplicationFeeRefund applicationFeeRefund = service.Create(
+ "fee_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/application_fees/fee_xxxxxxxxxxxxx/refunds");
@@ -296,7 +308,10 @@ public void TestApplicationFeesRefundsPost2()
},
};
var service = new ApplicationFeeRefundService(this.StripeClient);
- service.Update("fee_xxxxxxxxxxxxx", "fr_xxxxxxxxxxxxx", options);
+ ApplicationFeeRefund applicationFeeRefund = service.Update(
+ "fee_xxxxxxxxxxxxx",
+ "fr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/application_fees/fee_xxxxxxxxxxxxx/refunds/fr_xxxxxxxxxxxxx");
@@ -311,7 +326,7 @@ public void TestAppsSecretsDeletePost()
Scope = new Stripe.Apps.SecretScopeOptions { Type = "account" },
};
var service = new Stripe.Apps.SecretService(this.StripeClient);
- service.DeleteWhere(options);
+ Stripe.Apps.Secret secret = service.DeleteWhere(options);
this.AssertRequest(HttpMethod.Post, "/v1/apps/secrets/delete");
}
@@ -324,7 +339,7 @@ public void TestAppsSecretsFindGet()
Scope = new Stripe.Apps.SecretScopeOptions { Type = "account" },
};
var service = new Stripe.Apps.SecretService(this.StripeClient);
- service.Find(options);
+ Stripe.Apps.Secret secret = service.Find(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/apps/secrets/find",
@@ -373,7 +388,7 @@ public void TestAppsSecretsPost()
Scope = new Stripe.Apps.SecretScopeOptions { Type = "account" },
};
var service = new Stripe.Apps.SecretService(this.StripeClient);
- service.Create(options);
+ Stripe.Apps.Secret secret = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/apps/secrets");
}
@@ -387,7 +402,7 @@ public void TestAppsSecretsPost2()
Scope = new Stripe.Apps.SecretScopeOptions { Type = "account" },
};
var service = new Stripe.Apps.SecretService(this.StripeClient);
- service.Create(options);
+ Stripe.Apps.Secret secret = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/apps/secrets");
}
@@ -408,7 +423,8 @@ public void TestBalanceTransactionsGet()
public void TestBalanceTransactionsGet2()
{
var service = new BalanceTransactionService(this.StripeClient);
- service.Get("txn_xxxxxxxxxxxxx");
+ BalanceTransaction balanceTransaction = service.Get(
+ "txn_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/balance_transactions/txn_xxxxxxxxxxxxx");
@@ -436,7 +452,8 @@ public void TestBillingPortalConfigurationsGet2()
{
var service = new Stripe.BillingPortal.ConfigurationService(
this.StripeClient);
- service.Get("bpc_xxxxxxxxxxxxx");
+ Stripe.BillingPortal.Configuration configuration = service.Get(
+ "bpc_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/billing_portal/configurations/bpc_xxxxxxxxxxxxx");
@@ -467,7 +484,8 @@ public void TestBillingPortalConfigurationsPost()
};
var service = new Stripe.BillingPortal.ConfigurationService(
this.StripeClient);
- service.Create(options);
+ Stripe.BillingPortal.Configuration configuration = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/billing_portal/configurations");
@@ -486,7 +504,9 @@ public void TestBillingPortalConfigurationsPost2()
};
var service = new Stripe.BillingPortal.ConfigurationService(
this.StripeClient);
- service.Update("bpc_xxxxxxxxxxxxx", options);
+ Stripe.BillingPortal.Configuration configuration = service.Update(
+ "bpc_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/billing_portal/configurations/bpc_xxxxxxxxxxxxx");
@@ -502,7 +522,7 @@ public void TestBillingPortalSessionsPost()
};
var service = new Stripe.BillingPortal.SessionService(
this.StripeClient);
- service.Create(options);
+ Stripe.BillingPortal.Session session = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/billing_portal/sessions");
}
@@ -510,7 +530,7 @@ public void TestBillingPortalSessionsPost()
public void TestChargesCapturePost()
{
var service = new ChargeService(this.StripeClient);
- service.Capture("ch_xxxxxxxxxxxxx");
+ Charge charge = service.Capture("ch_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/charges/ch_xxxxxxxxxxxxx/capture");
@@ -529,7 +549,7 @@ public void TestChargesGet()
public void TestChargesGet2()
{
var service = new ChargeService(this.StripeClient);
- service.Get("ch_xxxxxxxxxxxxx");
+ Charge charge = service.Get("ch_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/charges/ch_xxxxxxxxxxxxx");
}
@@ -544,7 +564,7 @@ public void TestChargesPost()
Description = "My First Test Charge (created for API docs at https://www.stripe.com/docs/api)",
};
var service = new ChargeService(this.StripeClient);
- service.Create(options);
+ Charge charge = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/charges");
}
@@ -559,7 +579,7 @@ public void TestChargesPost2()
},
};
var service = new ChargeService(this.StripeClient);
- service.Update("ch_xxxxxxxxxxxxx", options);
+ Charge charge = service.Update("ch_xxxxxxxxxxxxx", options);
this.AssertRequest(HttpMethod.Post, "/v1/charges/ch_xxxxxxxxxxxxx");
}
@@ -571,7 +591,7 @@ public void TestChargesSearchGet()
Query = "amount>999 AND metadata['order_id']:'6735'",
};
var service = new ChargeService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult charges = service.Search(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/charges/search",
@@ -582,7 +602,7 @@ public void TestChargesSearchGet()
public void TestCheckoutSessionsExpirePost()
{
var service = new Stripe.Checkout.SessionService(this.StripeClient);
- service.Expire("sess_xyz");
+ Stripe.Checkout.Session session = service.Expire("sess_xyz");
this.AssertRequest(
HttpMethod.Post,
"/v1/checkout/sessions/sess_xyz/expire");
@@ -592,7 +612,8 @@ public void TestCheckoutSessionsExpirePost()
public void TestCheckoutSessionsExpirePost2()
{
var service = new Stripe.Checkout.SessionService(this.StripeClient);
- service.Expire("cs_test_xxxxxxxxxxxxx");
+ Stripe.Checkout.Session session = service.Expire(
+ "cs_test_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/checkout/sessions/cs_test_xxxxxxxxxxxxx/expire");
@@ -615,7 +636,8 @@ public void TestCheckoutSessionsGet()
public void TestCheckoutSessionsGet2()
{
var service = new Stripe.Checkout.SessionService(this.StripeClient);
- service.Get("cs_test_xxxxxxxxxxxxx");
+ Stripe.Checkout.Session session = service.Get(
+ "cs_test_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/checkout/sessions/cs_test_xxxxxxxxxxxxx");
@@ -669,7 +691,7 @@ public void TestCheckoutSessionsPost()
},
};
var service = new Stripe.Checkout.SessionService(this.StripeClient);
- service.Create(options);
+ Stripe.Checkout.Session session = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/checkout/sessions");
}
@@ -690,7 +712,7 @@ public void TestCheckoutSessionsPost2()
Mode = "payment",
};
var service = new Stripe.Checkout.SessionService(this.StripeClient);
- service.Create(options);
+ Stripe.Checkout.Session session = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/checkout/sessions");
}
@@ -704,7 +726,7 @@ public void TestCoreEventsGet()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":{\"type\":\"request\",\"request\":{\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.Events;
- service.Get("ll_123");
+ Stripe.V2.Event result = service.Get("ll_123");
this.AssertRequest(HttpMethod.Get, "/v2/core/events/ll_123");
}
@@ -721,7 +743,7 @@ public void TestCountrySpecsGet()
public void TestCountrySpecsGet2()
{
var service = new CountrySpecService(this.StripeClient);
- service.Get("US");
+ CountrySpec countrySpec = service.Get("US");
this.AssertRequest(HttpMethod.Get, "/v1/country_specs/US");
}
@@ -729,7 +751,7 @@ public void TestCountrySpecsGet2()
public void TestCouponsDelete()
{
var service = new CouponService(this.StripeClient);
- service.Delete("Z4OV52SU");
+ Coupon deleted = service.Delete("Z4OV52SU");
this.AssertRequest(HttpMethod.Delete, "/v1/coupons/Z4OV52SU");
}
@@ -746,7 +768,7 @@ public void TestCouponsGet()
public void TestCouponsGet2()
{
var service = new CouponService(this.StripeClient);
- service.Get("Z4OV52SU");
+ Coupon coupon = service.Get("Z4OV52SU");
this.AssertRequest(HttpMethod.Get, "/v1/coupons/Z4OV52SU");
}
@@ -759,7 +781,7 @@ public void TestCouponsPost()
Duration = "once",
};
var service = new CouponService(this.StripeClient);
- service.Create(options);
+ Coupon coupon = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/coupons");
}
@@ -774,7 +796,7 @@ public void TestCouponsPost2()
},
};
var service = new CouponService(this.StripeClient);
- service.Update("Z4OV52SU", options);
+ Coupon coupon = service.Update("Z4OV52SU", options);
this.AssertRequest(HttpMethod.Post, "/v1/coupons/Z4OV52SU");
}
@@ -804,7 +826,7 @@ public void TestCreditNotesPost()
},
};
var service = new CreditNoteService(this.StripeClient);
- service.Create(options);
+ CreditNote creditNote = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/credit_notes");
}
@@ -825,7 +847,7 @@ public void TestCreditNotesPreviewGet()
},
};
var service = new CreditNoteService(this.StripeClient);
- service.Preview(options);
+ CreditNote creditNote = service.Preview(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/credit_notes/preview",
@@ -836,7 +858,7 @@ public void TestCreditNotesPreviewGet()
public void TestCreditNotesVoidPost()
{
var service = new CreditNoteService(this.StripeClient);
- service.VoidCreditNote("cn_xxxxxxxxxxxxx");
+ CreditNote creditNote = service.VoidCreditNote("cn_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/credit_notes/cn_xxxxxxxxxxxxx/void");
@@ -857,7 +879,7 @@ public void TestCustomerSessionsPost()
},
};
var service = new CustomerSessionService(this.StripeClient);
- service.Create(options);
+ CustomerSession customerSession = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/customer_sessions");
}
@@ -883,7 +905,9 @@ public void TestCustomersBalanceTransactionsGet2()
{
var service = new CustomerBalanceTransactionService(
this.StripeClient);
- service.Get("cus_xxxxxxxxxxxxx", "cbtxn_xxxxxxxxxxxxx");
+ CustomerBalanceTransaction customerBalanceTransaction = service.Get(
+ "cus_xxxxxxxxxxxxx",
+ "cbtxn_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/customers/cus_xxxxxxxxxxxxx/balance_transactions/cbtxn_xxxxxxxxxxxxx");
@@ -899,7 +923,8 @@ public void TestCustomersBalanceTransactionsPost()
};
var service = new CustomerBalanceTransactionService(
this.StripeClient);
- service.Create("cus_xxxxxxxxxxxxx", options);
+ CustomerBalanceTransaction customerBalanceTransaction = service
+ .Create("cus_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/customers/cus_xxxxxxxxxxxxx/balance_transactions");
@@ -917,7 +942,8 @@ public void TestCustomersBalanceTransactionsPost2()
};
var service = new CustomerBalanceTransactionService(
this.StripeClient);
- service.Update("cus_xxxxxxxxxxxxx", "cbtxn_xxxxxxxxxxxxx", options);
+ CustomerBalanceTransaction customerBalanceTransaction = service
+ .Update("cus_xxxxxxxxxxxxx", "cbtxn_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/customers/cus_xxxxxxxxxxxxx/balance_transactions/cbtxn_xxxxxxxxxxxxx");
@@ -927,7 +953,7 @@ public void TestCustomersBalanceTransactionsPost2()
public void TestCustomersCashBalanceGet()
{
var service = new CustomerCashBalanceService(this.StripeClient);
- service.Get("cus_123");
+ CashBalance cashBalance = service.Get("cus_123");
this.AssertRequest(
HttpMethod.Get,
"/v1/customers/cus_123/cash_balance");
@@ -944,7 +970,7 @@ public void TestCustomersCashBalancePost()
},
};
var service = new CustomerCashBalanceService(this.StripeClient);
- service.Update("cus_123", options);
+ CashBalance cashBalance = service.Update("cus_123", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/customers/cus_123/cash_balance");
@@ -971,7 +997,7 @@ public void TestCustomersCashBalanceTransactionsGet()
public void TestCustomersDelete()
{
var service = new CustomerService(this.StripeClient);
- service.Delete("cus_xxxxxxxxxxxxx");
+ Customer deleted = service.Delete("cus_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/customers/cus_xxxxxxxxxxxxx");
@@ -992,7 +1018,9 @@ public void TestCustomersFundingInstructionsPost()
};
var service = new CustomerFundingInstructionsService(
this.StripeClient);
- service.Create("cus_123", options);
+ FundingInstructions fundingInstructions = service.Create(
+ "cus_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/customers/cus_123/funding_instructions");
@@ -1020,7 +1048,7 @@ public void TestCustomersGet2()
public void TestCustomersGet3()
{
var service = new CustomerService(this.StripeClient);
- service.Get("cus_xxxxxxxxxxxxx");
+ Customer customer = service.Get("cus_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/customers/cus_xxxxxxxxxxxxx");
@@ -1068,7 +1096,7 @@ public void TestCustomersPost()
Description = "My First Test Customer (created for API docs at https://www.stripe.com/docs/api)",
};
var service = new CustomerService(this.StripeClient);
- service.Create(options);
+ Customer customer = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/customers");
}
@@ -1083,7 +1111,7 @@ public void TestCustomersPost2()
},
};
var service = new CustomerService(this.StripeClient);
- service.Update("cus_xxxxxxxxxxxxx", options);
+ Customer customer = service.Update("cus_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/customers/cus_xxxxxxxxxxxxx");
@@ -1097,7 +1125,7 @@ public void TestCustomersSearchGet()
Query = "name:'fakename' AND metadata['foo']:'bar'",
};
var service = new CustomerService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult customers = service.Search(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/customers/search",
@@ -1112,7 +1140,7 @@ public void TestCustomersSearchGet2()
Query = "name:'fakename' AND metadata['foo']:'bar'",
};
var service = new CustomerService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult customers = service.Search(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/customers/search",
@@ -1123,7 +1151,9 @@ public void TestCustomersSearchGet2()
public void TestCustomersTaxIdsDelete()
{
var service = new CustomerTaxIdService(this.StripeClient);
- service.Delete("cus_xxxxxxxxxxxxx", "txi_xxxxxxxxxxxxx");
+ TaxId deleted = service.Delete(
+ "cus_xxxxxxxxxxxxx",
+ "txi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/customers/cus_xxxxxxxxxxxxx/tax_ids/txi_xxxxxxxxxxxxx");
@@ -1147,7 +1177,7 @@ public void TestCustomersTaxIdsGet()
public void TestCustomersTaxIdsGet2()
{
var service = new CustomerTaxIdService(this.StripeClient);
- service.Get("cus_xxxxxxxxxxxxx", "txi_xxxxxxxxxxxxx");
+ TaxId taxId = service.Get("cus_xxxxxxxxxxxxx", "txi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/customers/cus_xxxxxxxxxxxxx/tax_ids/txi_xxxxxxxxxxxxx");
@@ -1162,7 +1192,7 @@ public void TestCustomersTaxIdsPost()
Value = "DE123456789",
};
var service = new CustomerTaxIdService(this.StripeClient);
- service.Create("cus_xxxxxxxxxxxxx", options);
+ TaxId taxId = service.Create("cus_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/customers/cus_xxxxxxxxxxxxx/tax_ids");
@@ -1172,7 +1202,7 @@ public void TestCustomersTaxIdsPost()
public void TestDisputesClosePost()
{
var service = new DisputeService(this.StripeClient);
- service.Close("dp_xxxxxxxxxxxxx");
+ Dispute dispute = service.Close("dp_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/disputes/dp_xxxxxxxxxxxxx/close");
@@ -1191,7 +1221,7 @@ public void TestDisputesGet()
public void TestDisputesGet2()
{
var service = new DisputeService(this.StripeClient);
- service.Get("dp_xxxxxxxxxxxxx");
+ Dispute dispute = service.Get("dp_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/disputes/dp_xxxxxxxxxxxxx");
}
@@ -1206,7 +1236,7 @@ public void TestDisputesPost()
},
};
var service = new DisputeService(this.StripeClient);
- service.Update("dp_xxxxxxxxxxxxx", options);
+ Dispute dispute = service.Update("dp_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/disputes/dp_xxxxxxxxxxxxx");
@@ -1225,7 +1255,7 @@ public void TestEventsGet()
public void TestEventsGet2()
{
var service = new EventService(this.StripeClient);
- service.Get("evt_xxxxxxxxxxxxx");
+ Event result = service.Get("evt_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/events/evt_xxxxxxxxxxxxx");
}
@@ -1242,7 +1272,7 @@ public void TestFileLinksGet()
public void TestFileLinksGet2()
{
var service = new FileLinkService(this.StripeClient);
- service.Get("link_xxxxxxxxxxxxx");
+ FileLink fileLink = service.Get("link_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/file_links/link_xxxxxxxxxxxxx");
@@ -1256,7 +1286,7 @@ public void TestFileLinksPost()
File = "file_xxxxxxxxxxxxx",
};
var service = new FileLinkService(this.StripeClient);
- service.Create(options);
+ FileLink fileLink = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/file_links");
}
@@ -1271,7 +1301,7 @@ public void TestFileLinksPost2()
},
};
var service = new FileLinkService(this.StripeClient);
- service.Update("link_xxxxxxxxxxxxx", options);
+ FileLink fileLink = service.Update("link_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/file_links/link_xxxxxxxxxxxxx");
@@ -1290,7 +1320,7 @@ public void TestFilesGet()
public void TestFilesGet2()
{
var service = new FileService(this.StripeClient);
- service.Get("file_xxxxxxxxxxxxx");
+ File file = service.Get("file_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/files/file_xxxxxxxxxxxxx");
}
@@ -1304,7 +1334,7 @@ public void TestFilesPost()
System.Text.Encoding.UTF8.GetBytes("File contents")),
};
var service = new FileService(this.StripeClient);
- service.Create(options);
+ File file = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/files");
}
@@ -1313,7 +1343,8 @@ public void TestFinancialConnectionsAccountsDisconnectPost()
{
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Disconnect("fca_xyz");
+ Stripe.FinancialConnections.Account account = service.Disconnect(
+ "fca_xyz");
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/accounts/fca_xyz/disconnect");
@@ -1324,7 +1355,8 @@ public void TestFinancialConnectionsAccountsDisconnectPost2()
{
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Disconnect("fca_xxxxxxxxxxxxx");
+ Stripe.FinancialConnections.Account account = service.Disconnect(
+ "fca_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/accounts/fca_xxxxxxxxxxxxx/disconnect");
@@ -1347,7 +1379,8 @@ public void TestFinancialConnectionsAccountsGet2()
{
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Get("fca_xyz");
+ Stripe.FinancialConnections.Account account = service.Get(
+ "fca_xyz");
this.AssertRequest(
HttpMethod.Get,
"/v1/financial_connections/accounts/fca_xyz");
@@ -1378,7 +1411,8 @@ public void TestFinancialConnectionsAccountsGet4()
{
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Get("fca_xxxxxxxxxxxxx");
+ Stripe.FinancialConnections.Account account = service.Get(
+ "fca_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/financial_connections/accounts/fca_xxxxxxxxxxxxx");
@@ -1428,7 +1462,9 @@ public void TestFinancialConnectionsAccountsRefreshPost()
};
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Refresh("fca_xyz", options);
+ Stripe.FinancialConnections.Account account = service.Refresh(
+ "fca_xyz",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/accounts/fca_xyz/refresh");
@@ -1443,7 +1479,9 @@ public void TestFinancialConnectionsAccountsSubscribePost()
};
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Subscribe("fa_123", options);
+ Stripe.FinancialConnections.Account account = service.Subscribe(
+ "fa_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/accounts/fa_123/subscribe");
@@ -1458,7 +1496,9 @@ public void TestFinancialConnectionsAccountsUnsubscribePost()
};
var service = new Stripe.FinancialConnections.AccountService(
this.StripeClient);
- service.Unsubscribe("fa_123", options);
+ Stripe.FinancialConnections.Account account = service.Unsubscribe(
+ "fa_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/accounts/fa_123/unsubscribe");
@@ -1469,7 +1509,8 @@ public void TestFinancialConnectionsSessionsGet()
{
var service = new Stripe.FinancialConnections.SessionService(
this.StripeClient);
- service.Get("fcsess_xyz");
+ Stripe.FinancialConnections.Session session = service.Get(
+ "fcsess_xyz");
this.AssertRequest(
HttpMethod.Get,
"/v1/financial_connections/sessions/fcsess_xyz");
@@ -1480,7 +1521,8 @@ public void TestFinancialConnectionsSessionsGet2()
{
var service = new Stripe.FinancialConnections.SessionService(
this.StripeClient);
- service.Get("fcsess_xxxxxxxxxxxxx");
+ Stripe.FinancialConnections.Session session = service.Get(
+ "fcsess_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/financial_connections/sessions/fcsess_xxxxxxxxxxxxx");
@@ -1500,7 +1542,8 @@ public void TestFinancialConnectionsSessionsPost()
};
var service = new Stripe.FinancialConnections.SessionService(
this.StripeClient);
- service.Create(options);
+ Stripe.FinancialConnections.Session session = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/sessions");
@@ -1524,7 +1567,8 @@ public void TestFinancialConnectionsSessionsPost2()
};
var service = new Stripe.FinancialConnections.SessionService(
this.StripeClient);
- service.Create(options);
+ Stripe.FinancialConnections.Session session = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/financial_connections/sessions");
@@ -1535,7 +1579,8 @@ public void TestFinancialConnectionsTransactionsGet()
{
var service = new Stripe.FinancialConnections.TransactionService(
this.StripeClient);
- service.Get("tr_123");
+ Stripe.FinancialConnections.Transaction transaction = service.Get(
+ "tr_123");
this.AssertRequest(
HttpMethod.Get,
"/v1/financial_connections/transactions/tr_123");
@@ -1580,7 +1625,8 @@ public void TestIdentityVerificationReportsGet2()
{
var service = new Stripe.Identity.VerificationReportService(
this.StripeClient);
- service.Get("vr_xxxxxxxxxxxxx");
+ Stripe.Identity.VerificationReport verificationReport = service.Get(
+ "vr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/identity/verification_reports/vr_xxxxxxxxxxxxx");
@@ -1591,7 +1637,8 @@ public void TestIdentityVerificationSessionsCancelPost()
{
var service = new Stripe.Identity.VerificationSessionService(
this.StripeClient);
- service.Cancel("vs_xxxxxxxxxxxxx");
+ Stripe.Identity.VerificationSession verificationSession = service
+ .Cancel("vs_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx/cancel");
@@ -1619,7 +1666,8 @@ public void TestIdentityVerificationSessionsGet2()
{
var service = new Stripe.Identity.VerificationSessionService(
this.StripeClient);
- service.Get("vs_xxxxxxxxxxxxx");
+ Stripe.Identity.VerificationSession verificationSession = service
+ .Get("vs_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx");
@@ -1634,7 +1682,8 @@ public void TestIdentityVerificationSessionsPost()
};
var service = new Stripe.Identity.VerificationSessionService(
this.StripeClient);
- service.Create(options);
+ Stripe.Identity.VerificationSession verificationSession = service
+ .Create(options);
this.AssertRequest(
HttpMethod.Post,
"/v1/identity/verification_sessions");
@@ -1649,7 +1698,8 @@ public void TestIdentityVerificationSessionsPost2()
};
var service = new Stripe.Identity.VerificationSessionService(
this.StripeClient);
- service.Update("vs_xxxxxxxxxxxxx", options);
+ Stripe.Identity.VerificationSession verificationSession = service
+ .Update("vs_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx");
@@ -1660,7 +1710,8 @@ public void TestIdentityVerificationSessionsRedactPost()
{
var service = new Stripe.Identity.VerificationSessionService(
this.StripeClient);
- service.Redact("vs_xxxxxxxxxxxxx");
+ Stripe.Identity.VerificationSession verificationSession = service
+ .Redact("vs_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/identity/verification_sessions/vs_xxxxxxxxxxxxx/redact");
@@ -1670,7 +1721,7 @@ public void TestIdentityVerificationSessionsRedactPost()
public void TestInvoiceitemsDelete()
{
var service = new InvoiceItemService(this.StripeClient);
- service.Delete("ii_xxxxxxxxxxxxx");
+ InvoiceItem deleted = service.Delete("ii_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/invoiceitems/ii_xxxxxxxxxxxxx");
@@ -1689,7 +1740,7 @@ public void TestInvoiceitemsGet()
public void TestInvoiceitemsGet2()
{
var service = new InvoiceItemService(this.StripeClient);
- service.Get("ii_xxxxxxxxxxxxx");
+ InvoiceItem invoiceItem = service.Get("ii_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/invoiceitems/ii_xxxxxxxxxxxxx");
@@ -1703,7 +1754,7 @@ public void TestInvoiceitemsPost()
Customer = "cus_xxxxxxxxxxxxx",
};
var service = new InvoiceItemService(this.StripeClient);
- service.Create(options);
+ InvoiceItem invoiceItem = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/invoiceitems");
}
@@ -1718,7 +1769,9 @@ public void TestInvoiceitemsPost2()
},
};
var service = new InvoiceItemService(this.StripeClient);
- service.Update("ii_xxxxxxxxxxxxx", options);
+ InvoiceItem invoiceItem = service.Update(
+ "ii_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/invoiceitems/ii_xxxxxxxxxxxxx");
@@ -1728,7 +1781,7 @@ public void TestInvoiceitemsPost2()
public void TestInvoicesDelete()
{
var service = new InvoiceService(this.StripeClient);
- service.Delete("in_xxxxxxxxxxxxx");
+ Invoice deleted = service.Delete("in_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/invoices/in_xxxxxxxxxxxxx");
@@ -1738,7 +1791,7 @@ public void TestInvoicesDelete()
public void TestInvoicesFinalizePost()
{
var service = new InvoiceService(this.StripeClient);
- service.FinalizeInvoice("in_xxxxxxxxxxxxx");
+ Invoice invoice = service.FinalizeInvoice("in_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/invoices/in_xxxxxxxxxxxxx/finalize");
@@ -1757,7 +1810,7 @@ public void TestInvoicesGet()
public void TestInvoicesGet2()
{
var service = new InvoiceService(this.StripeClient);
- service.Get("in_xxxxxxxxxxxxx");
+ Invoice invoice = service.Get("in_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/invoices/in_xxxxxxxxxxxxx");
}
@@ -1769,7 +1822,7 @@ public void TestInvoicesGet3()
Expand = new List { "customer" },
};
var service = new InvoiceService(this.StripeClient);
- service.Get("in_xxxxxxxxxxxxx", options);
+ Invoice invoice = service.Get("in_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Get,
"/v1/invoices/in_xxxxxxxxxxxxx",
@@ -1780,7 +1833,7 @@ public void TestInvoicesGet3()
public void TestInvoicesMarkUncollectiblePost()
{
var service = new InvoiceService(this.StripeClient);
- service.MarkUncollectible("in_xxxxxxxxxxxxx");
+ Invoice invoice = service.MarkUncollectible("in_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/invoices/in_xxxxxxxxxxxxx/mark_uncollectible");
@@ -1790,7 +1843,7 @@ public void TestInvoicesMarkUncollectiblePost()
public void TestInvoicesPayPost()
{
var service = new InvoiceService(this.StripeClient);
- service.Pay("in_xxxxxxxxxxxxx");
+ Invoice invoice = service.Pay("in_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/invoices/in_xxxxxxxxxxxxx/pay");
@@ -1804,7 +1857,7 @@ public void TestInvoicesPost()
Customer = "cus_xxxxxxxxxxxxx",
};
var service = new InvoiceService(this.StripeClient);
- service.Create(options);
+ Invoice invoice = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/invoices");
}
@@ -1819,7 +1872,7 @@ public void TestInvoicesPost2()
},
};
var service = new InvoiceService(this.StripeClient);
- service.Update("in_xxxxxxxxxxxxx", options);
+ Invoice invoice = service.Update("in_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/invoices/in_xxxxxxxxxxxxx");
@@ -1833,7 +1886,7 @@ public void TestInvoicesSearchGet()
Query = "total>999 AND metadata['order_id']:'6735'",
};
var service = new InvoiceService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult invoices = service.Search(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/invoices/search",
@@ -1844,7 +1897,7 @@ public void TestInvoicesSearchGet()
public void TestInvoicesSendPost()
{
var service = new InvoiceService(this.StripeClient);
- service.SendInvoice("in_xxxxxxxxxxxxx");
+ Invoice invoice = service.SendInvoice("in_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/invoices/in_xxxxxxxxxxxxx/send");
@@ -1854,7 +1907,7 @@ public void TestInvoicesSendPost()
public void TestInvoicesVoidPost()
{
var service = new InvoiceService(this.StripeClient);
- service.VoidInvoice("in_xxxxxxxxxxxxx");
+ Invoice invoice = service.VoidInvoice("in_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/invoices/in_xxxxxxxxxxxxx/void");
@@ -1865,7 +1918,8 @@ public void TestIssuingAuthorizationsApprovePost()
{
var service = new Stripe.Issuing.AuthorizationService(
this.StripeClient);
- service.Approve("iauth_xxxxxxxxxxxxx");
+ Stripe.Issuing.Authorization authorization = service.Approve(
+ "iauth_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx/approve");
@@ -1876,7 +1930,8 @@ public void TestIssuingAuthorizationsDeclinePost()
{
var service = new Stripe.Issuing.AuthorizationService(
this.StripeClient);
- service.Decline("iauth_xxxxxxxxxxxxx");
+ Stripe.Issuing.Authorization authorization = service.Decline(
+ "iauth_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx/decline");
@@ -1904,7 +1959,8 @@ public void TestIssuingAuthorizationsGet2()
{
var service = new Stripe.Issuing.AuthorizationService(
this.StripeClient);
- service.Get("iauth_xxxxxxxxxxxxx");
+ Stripe.Issuing.Authorization authorization = service.Get(
+ "iauth_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx");
@@ -1922,7 +1978,9 @@ public void TestIssuingAuthorizationsPost()
};
var service = new Stripe.Issuing.AuthorizationService(
this.StripeClient);
- service.Update("iauth_xxxxxxxxxxxxx", options);
+ Stripe.Issuing.Authorization authorization = service.Update(
+ "iauth_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/authorizations/iauth_xxxxxxxxxxxxx");
@@ -1950,7 +2008,8 @@ public void TestIssuingCardholdersGet2()
{
var service = new Stripe.Issuing.CardholderService(
this.StripeClient);
- service.Get("ich_xxxxxxxxxxxxx");
+ Stripe.Issuing.Cardholder cardholder = service.Get(
+ "ich_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/cardholders/ich_xxxxxxxxxxxxx");
@@ -1979,7 +2038,7 @@ public void TestIssuingCardholdersPost()
};
var service = new Stripe.Issuing.CardholderService(
this.StripeClient);
- service.Create(options);
+ Stripe.Issuing.Cardholder cardholder = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/issuing/cardholders");
}
@@ -1995,7 +2054,9 @@ public void TestIssuingCardholdersPost2()
};
var service = new Stripe.Issuing.CardholderService(
this.StripeClient);
- service.Update("ich_xxxxxxxxxxxxx", options);
+ Stripe.Issuing.Cardholder cardholder = service.Update(
+ "ich_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/cardholders/ich_xxxxxxxxxxxxx");
@@ -2014,7 +2075,7 @@ public void TestIssuingCardsGet()
public void TestIssuingCardsGet2()
{
var service = new Stripe.Issuing.CardService(this.StripeClient);
- service.Get("ic_xxxxxxxxxxxxx");
+ Stripe.Issuing.Card card = service.Get("ic_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/cards/ic_xxxxxxxxxxxxx");
@@ -2030,7 +2091,7 @@ public void TestIssuingCardsPost()
Type = "virtual",
};
var service = new Stripe.Issuing.CardService(this.StripeClient);
- service.Create(options);
+ Stripe.Issuing.Card card = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/issuing/cards");
}
@@ -2045,7 +2106,9 @@ public void TestIssuingCardsPost2()
},
};
var service = new Stripe.Issuing.CardService(this.StripeClient);
- service.Update("ic_xxxxxxxxxxxxx", options);
+ Stripe.Issuing.Card card = service.Update(
+ "ic_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/cards/ic_xxxxxxxxxxxxx");
@@ -2067,7 +2130,7 @@ public void TestIssuingDisputesGet()
public void TestIssuingDisputesGet2()
{
var service = new Stripe.Issuing.DisputeService(this.StripeClient);
- service.Get("idp_xxxxxxxxxxxxx");
+ Stripe.Issuing.Dispute dispute = service.Get("idp_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/disputes/idp_xxxxxxxxxxxxx");
@@ -2089,7 +2152,7 @@ public void TestIssuingDisputesPost()
},
};
var service = new Stripe.Issuing.DisputeService(this.StripeClient);
- service.Create(options);
+ Stripe.Issuing.Dispute dispute = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/issuing/disputes");
}
@@ -2097,7 +2160,8 @@ public void TestIssuingDisputesPost()
public void TestIssuingDisputesSubmitPost()
{
var service = new Stripe.Issuing.DisputeService(this.StripeClient);
- service.Submit("idp_xxxxxxxxxxxxx");
+ Stripe.Issuing.Dispute dispute = service.Submit(
+ "idp_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/disputes/idp_xxxxxxxxxxxxx/submit");
@@ -2120,7 +2184,8 @@ public void TestIssuingPersonalizationDesignsGet2()
{
var service = new Stripe.Issuing.PersonalizationDesignService(
this.StripeClient);
- service.Get("pd_xyz");
+ Stripe.Issuing.PersonalizationDesign personalizationDesign = service
+ .Get("pd_xyz");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/personalization_designs/pd_xyz");
@@ -2135,7 +2200,8 @@ public void TestIssuingPersonalizationDesignsPost()
};
var service = new Stripe.Issuing.PersonalizationDesignService(
this.StripeClient);
- service.Create(options);
+ Stripe.Issuing.PersonalizationDesign personalizationDesign = service
+ .Create(options);
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/personalization_designs");
@@ -2147,7 +2213,8 @@ public void TestIssuingPersonalizationDesignsPost2()
var options = new Stripe.Issuing.PersonalizationDesignUpdateOptions();
var service = new Stripe.Issuing.PersonalizationDesignService(
this.StripeClient);
- service.Update("pd_xyz", options);
+ Stripe.Issuing.PersonalizationDesign personalizationDesign = service
+ .Update("pd_xyz", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/personalization_designs/pd_xyz");
@@ -2168,7 +2235,8 @@ public void TestIssuingPhysicalBundlesGet2()
{
var service = new Stripe.Issuing.PhysicalBundleService(
this.StripeClient);
- service.Get("pb_xyz");
+ Stripe.Issuing.PhysicalBundle physicalBundle = service.Get(
+ "pb_xyz");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/physical_bundles/pb_xyz");
@@ -2196,7 +2264,8 @@ public void TestIssuingTransactionsGet2()
{
var service = new Stripe.Issuing.TransactionService(
this.StripeClient);
- service.Get("ipi_xxxxxxxxxxxxx");
+ Stripe.Issuing.Transaction transaction = service.Get(
+ "ipi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/issuing/transactions/ipi_xxxxxxxxxxxxx");
@@ -2214,7 +2283,9 @@ public void TestIssuingTransactionsPost()
};
var service = new Stripe.Issuing.TransactionService(
this.StripeClient);
- service.Update("ipi_xxxxxxxxxxxxx", options);
+ Stripe.Issuing.Transaction transaction = service.Update(
+ "ipi_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/issuing/transactions/ipi_xxxxxxxxxxxxx");
@@ -2224,7 +2295,7 @@ public void TestIssuingTransactionsPost()
public void TestMandatesGet()
{
var service = new MandateService(this.StripeClient);
- service.Get("mandate_xxxxxxxxxxxxx");
+ Mandate mandate = service.Get("mandate_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/mandates/mandate_xxxxxxxxxxxxx");
@@ -2234,7 +2305,8 @@ public void TestMandatesGet()
public void TestPaymentIntentsApplyCustomerBalancePost()
{
var service = new PaymentIntentService(this.StripeClient);
- service.ApplyCustomerBalance("pi_xxxxxxxxxxxxx");
+ PaymentIntent paymentIntent = service.ApplyCustomerBalance(
+ "pi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/apply_customer_balance");
@@ -2244,7 +2316,7 @@ public void TestPaymentIntentsApplyCustomerBalancePost()
public void TestPaymentIntentsCancelPost()
{
var service = new PaymentIntentService(this.StripeClient);
- service.Cancel("pi_xxxxxxxxxxxxx");
+ PaymentIntent paymentIntent = service.Cancel("pi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/cancel");
@@ -2254,7 +2326,7 @@ public void TestPaymentIntentsCancelPost()
public void TestPaymentIntentsCapturePost()
{
var service = new PaymentIntentService(this.StripeClient);
- service.Capture("pi_xxxxxxxxxxxxx");
+ PaymentIntent paymentIntent = service.Capture("pi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/capture");
@@ -2268,7 +2340,9 @@ public void TestPaymentIntentsConfirmPost()
PaymentMethod = "pm_card_visa",
};
var service = new PaymentIntentService(this.StripeClient);
- service.Confirm("pi_xxxxxxxxxxxxx", options);
+ PaymentIntent paymentIntent = service.Confirm(
+ "pi_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/confirm");
@@ -2290,7 +2364,7 @@ public void TestPaymentIntentsGet()
public void TestPaymentIntentsGet2()
{
var service = new PaymentIntentService(this.StripeClient);
- service.Get("pi_xxxxxxxxxxxxx");
+ PaymentIntent paymentIntent = service.Get("pi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/payment_intents/pi_xxxxxxxxxxxxx");
@@ -2304,7 +2378,9 @@ public void TestPaymentIntentsIncrementAuthorizationPost()
Amount = 2099,
};
var service = new PaymentIntentService(this.StripeClient);
- service.IncrementAuthorization("pi_xxxxxxxxxxxxx", options);
+ PaymentIntent paymentIntent = service.IncrementAuthorization(
+ "pi_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/increment_authorization");
@@ -2323,7 +2399,7 @@ public void TestPaymentIntentsPost()
},
};
var service = new PaymentIntentService(this.StripeClient);
- service.Create(options);
+ PaymentIntent paymentIntent = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payment_intents");
}
@@ -2340,7 +2416,7 @@ public void TestPaymentIntentsPost2()
},
};
var service = new PaymentIntentService(this.StripeClient);
- service.Create(options);
+ PaymentIntent paymentIntent = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payment_intents");
}
@@ -2355,7 +2431,9 @@ public void TestPaymentIntentsPost3()
},
};
var service = new PaymentIntentService(this.StripeClient);
- service.Update("pi_xxxxxxxxxxxxx", options);
+ PaymentIntent paymentIntent = service.Update(
+ "pi_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx");
@@ -2378,7 +2456,7 @@ public void TestPaymentIntentsPost4()
},
};
var service = new PaymentIntentService(this.StripeClient);
- service.Create(options);
+ PaymentIntent paymentIntent = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payment_intents");
}
@@ -2390,7 +2468,8 @@ public void TestPaymentIntentsSearchGet()
Query = "status:'succeeded' AND metadata['order_id']:'6735'",
};
var service = new PaymentIntentService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult paymentIntents = service.Search(
+ options);
this.AssertRequest(
HttpMethod.Get,
"/v1/payment_intents/search",
@@ -2401,7 +2480,8 @@ public void TestPaymentIntentsSearchGet()
public void TestPaymentIntentsVerifyMicrodepositsPost()
{
var service = new PaymentIntentService(this.StripeClient);
- service.VerifyMicrodeposits("pi_xxxxxxxxxxxxx");
+ PaymentIntent paymentIntent = service.VerifyMicrodeposits(
+ "pi_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/verify_microdeposits");
@@ -2415,7 +2495,9 @@ public void TestPaymentIntentsVerifyMicrodepositsPost2()
Amounts = new List { 32, 45 },
};
var service = new PaymentIntentService(this.StripeClient);
- service.VerifyMicrodeposits("pi_xxxxxxxxxxxxx", options);
+ PaymentIntent paymentIntent = service.VerifyMicrodeposits(
+ "pi_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_intents/pi_xxxxxxxxxxxxx/verify_microdeposits");
@@ -2425,7 +2507,7 @@ public void TestPaymentIntentsVerifyMicrodepositsPost2()
public void TestPaymentLinksGet()
{
var service = new PaymentLinkService(this.StripeClient);
- service.Get("pl_xyz");
+ PaymentLink paymentLink = service.Get("pl_xyz");
this.AssertRequest(HttpMethod.Get, "/v1/payment_links/pl_xyz");
}
@@ -2442,7 +2524,7 @@ public void TestPaymentLinksGet2()
public void TestPaymentLinksGet3()
{
var service = new PaymentLinkService(this.StripeClient);
- service.Get("plink_xxxxxxxxxxxxx");
+ PaymentLink paymentLink = service.Get("plink_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/payment_links/plink_xxxxxxxxxxxxx");
@@ -2473,7 +2555,7 @@ public void TestPaymentLinksPost()
},
};
var service = new PaymentLinkService(this.StripeClient);
- service.Create(options);
+ PaymentLink paymentLink = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payment_links");
}
@@ -2492,7 +2574,7 @@ public void TestPaymentLinksPost2()
},
};
var service = new PaymentLinkService(this.StripeClient);
- service.Create(options);
+ PaymentLink paymentLink = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payment_links");
}
@@ -2501,7 +2583,9 @@ public void TestPaymentLinksPost3()
{
var options = new PaymentLinkUpdateOptions { Active = false };
var service = new PaymentLinkService(this.StripeClient);
- service.Update("plink_xxxxxxxxxxxxx", options);
+ PaymentLink paymentLink = service.Update(
+ "plink_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_links/plink_xxxxxxxxxxxxx");
@@ -2529,7 +2613,8 @@ public void TestPaymentMethodConfigurationsGet2()
{
var service = new PaymentMethodConfigurationService(
this.StripeClient);
- service.Get("foo");
+ PaymentMethodConfiguration paymentMethodConfiguration = service.Get(
+ "foo");
this.AssertRequest(
HttpMethod.Get,
"/v1/payment_method_configurations/foo");
@@ -2557,7 +2642,8 @@ public void TestPaymentMethodConfigurationsPost()
};
var service = new PaymentMethodConfigurationService(
this.StripeClient);
- service.Create(options);
+ PaymentMethodConfiguration paymentMethodConfiguration = service
+ .Create(options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_method_configurations");
@@ -2578,7 +2664,8 @@ public void TestPaymentMethodConfigurationsPost2()
};
var service = new PaymentMethodConfigurationService(
this.StripeClient);
- service.Update("foo", options);
+ PaymentMethodConfiguration paymentMethodConfiguration = service
+ .Update("foo", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_method_configurations/foo");
@@ -2592,7 +2679,9 @@ public void TestPaymentMethodsAttachPost()
Customer = "cus_xxxxxxxxxxxxx",
};
var service = new PaymentMethodService(this.StripeClient);
- service.Attach("pm_xxxxxxxxxxxxx", options);
+ PaymentMethod paymentMethod = service.Attach(
+ "pm_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_methods/pm_xxxxxxxxxxxxx/attach");
@@ -2602,7 +2691,7 @@ public void TestPaymentMethodsAttachPost()
public void TestPaymentMethodsDetachPost()
{
var service = new PaymentMethodService(this.StripeClient);
- service.Detach("pm_xxxxxxxxxxxxx");
+ PaymentMethod paymentMethod = service.Detach("pm_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_methods/pm_xxxxxxxxxxxxx/detach");
@@ -2628,7 +2717,7 @@ public void TestPaymentMethodsGet()
public void TestPaymentMethodsGet2()
{
var service = new PaymentMethodService(this.StripeClient);
- service.Get("pm_xxxxxxxxxxxxx");
+ PaymentMethod paymentMethod = service.Get("pm_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/payment_methods/pm_xxxxxxxxxxxxx");
@@ -2649,7 +2738,7 @@ public void TestPaymentMethodsPost()
},
};
var service = new PaymentMethodService(this.StripeClient);
- service.Create(options);
+ PaymentMethod paymentMethod = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payment_methods");
}
@@ -2664,7 +2753,9 @@ public void TestPaymentMethodsPost2()
},
};
var service = new PaymentMethodService(this.StripeClient);
- service.Update("pm_xxxxxxxxxxxxx", options);
+ PaymentMethod paymentMethod = service.Update(
+ "pm_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/payment_methods/pm_xxxxxxxxxxxxx");
@@ -2674,7 +2765,7 @@ public void TestPaymentMethodsPost2()
public void TestPayoutsCancelPost()
{
var service = new PayoutService(this.StripeClient);
- service.Cancel("po_xxxxxxxxxxxxx");
+ Payout payout = service.Cancel("po_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payouts/po_xxxxxxxxxxxxx/cancel");
@@ -2693,7 +2784,7 @@ public void TestPayoutsGet()
public void TestPayoutsGet2()
{
var service = new PayoutService(this.StripeClient);
- service.Get("po_xxxxxxxxxxxxx");
+ Payout payout = service.Get("po_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/payouts/po_xxxxxxxxxxxxx");
}
@@ -2706,7 +2797,7 @@ public void TestPayoutsPost()
Currency = "usd",
};
var service = new PayoutService(this.StripeClient);
- service.Create(options);
+ Payout payout = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/payouts");
}
@@ -2721,7 +2812,7 @@ public void TestPayoutsPost2()
},
};
var service = new PayoutService(this.StripeClient);
- service.Update("po_xxxxxxxxxxxxx", options);
+ Payout payout = service.Update("po_xxxxxxxxxxxxx", options);
this.AssertRequest(HttpMethod.Post, "/v1/payouts/po_xxxxxxxxxxxxx");
}
@@ -2729,7 +2820,7 @@ public void TestPayoutsPost2()
public void TestPayoutsReversePost()
{
var service = new PayoutService(this.StripeClient);
- service.Reverse("po_xxxxxxxxxxxxx");
+ Payout payout = service.Reverse("po_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/payouts/po_xxxxxxxxxxxxx/reverse");
@@ -2739,7 +2830,7 @@ public void TestPayoutsReversePost()
public void TestPlansDelete()
{
var service = new PlanService(this.StripeClient);
- service.Delete("price_xxxxxxxxxxxxx");
+ Plan deleted = service.Delete("price_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/plans/price_xxxxxxxxxxxxx");
@@ -2758,7 +2849,7 @@ public void TestPlansGet()
public void TestPlansGet2()
{
var service = new PlanService(this.StripeClient);
- service.Get("price_xxxxxxxxxxxxx");
+ Plan plan = service.Get("price_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/plans/price_xxxxxxxxxxxxx");
}
@@ -2773,7 +2864,7 @@ public void TestPlansPost()
Product = "prod_xxxxxxxxxxxxx",
};
var service = new PlanService(this.StripeClient);
- service.Create(options);
+ Plan plan = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/plans");
}
@@ -2788,7 +2879,7 @@ public void TestPlansPost2()
Product = new PlanProductOptions { Name = "My product" },
};
var service = new PlanService(this.StripeClient);
- service.Create(options);
+ Plan plan = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/plans");
}
@@ -2803,7 +2894,7 @@ public void TestPlansPost3()
},
};
var service = new PlanService(this.StripeClient);
- service.Update("price_xxxxxxxxxxxxx", options);
+ Plan plan = service.Update("price_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/plans/price_xxxxxxxxxxxxx");
@@ -2822,7 +2913,7 @@ public void TestPricesGet()
public void TestPricesGet2()
{
var service = new PriceService(this.StripeClient);
- service.Get("price_xxxxxxxxxxxxx");
+ Price price = service.Get("price_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/prices/price_xxxxxxxxxxxxx");
@@ -2854,7 +2945,7 @@ public void TestPricesPost()
Product = "prod_xxxxxxxxxxxxx",
};
var service = new PriceService(this.StripeClient);
- service.Create(options);
+ Price price = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/prices");
}
@@ -2869,7 +2960,7 @@ public void TestPricesPost2()
Product = "prod_xxxxxxxxxxxxx",
};
var service = new PriceService(this.StripeClient);
- service.Create(options);
+ Price price = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/prices");
}
@@ -2884,7 +2975,7 @@ public void TestPricesPost3()
},
};
var service = new PriceService(this.StripeClient);
- service.Update("price_xxxxxxxxxxxxx", options);
+ Price price = service.Update("price_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/prices/price_xxxxxxxxxxxxx");
@@ -2898,7 +2989,7 @@ public void TestPricesSearchGet()
Query = "active:'true' AND metadata['order_id']:'6735'",
};
var service = new PriceService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult prices = service.Search(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/prices/search",
@@ -2909,7 +3000,7 @@ public void TestPricesSearchGet()
public void TestProductsDelete()
{
var service = new ProductService(this.StripeClient);
- service.Delete("prod_xxxxxxxxxxxxx");
+ Product deleted = service.Delete("prod_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/products/prod_xxxxxxxxxxxxx");
@@ -2928,7 +3019,7 @@ public void TestProductsGet()
public void TestProductsGet2()
{
var service = new ProductService(this.StripeClient);
- service.Get("prod_xxxxxxxxxxxxx");
+ Product product = service.Get("prod_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/products/prod_xxxxxxxxxxxxx");
@@ -2939,7 +3030,7 @@ public void TestProductsPost()
{
var options = new ProductCreateOptions { Name = "Gold Special" };
var service = new ProductService(this.StripeClient);
- service.Create(options);
+ Product product = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/products");
}
@@ -2954,7 +3045,7 @@ public void TestProductsPost2()
},
};
var service = new ProductService(this.StripeClient);
- service.Update("prod_xxxxxxxxxxxxx", options);
+ Product product = service.Update("prod_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/products/prod_xxxxxxxxxxxxx");
@@ -2968,7 +3059,7 @@ public void TestProductsSearchGet()
Query = "active:'true' AND metadata['order_id']:'6735'",
};
var service = new ProductService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult products = service.Search(options);
this.AssertRequest(
HttpMethod.Get,
"/v1/products/search",
@@ -2991,7 +3082,7 @@ public void TestPromotionCodesGet()
public void TestPromotionCodesGet2()
{
var service = new PromotionCodeService(this.StripeClient);
- service.Get("promo_xxxxxxxxxxxxx");
+ PromotionCode promotionCode = service.Get("promo_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/promotion_codes/promo_xxxxxxxxxxxxx");
@@ -3005,7 +3096,7 @@ public void TestPromotionCodesPost()
Coupon = "Z4OV52SU",
};
var service = new PromotionCodeService(this.StripeClient);
- service.Create(options);
+ PromotionCode promotionCode = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/promotion_codes");
}
@@ -3020,7 +3111,9 @@ public void TestPromotionCodesPost2()
},
};
var service = new PromotionCodeService(this.StripeClient);
- service.Update("promo_xxxxxxxxxxxxx", options);
+ PromotionCode promotionCode = service.Update(
+ "promo_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/promotion_codes/promo_xxxxxxxxxxxxx");
@@ -3030,7 +3123,7 @@ public void TestPromotionCodesPost2()
public void TestQuotesAcceptPost()
{
var service = new QuoteService(this.StripeClient);
- service.Accept("qt_xxxxxxxxxxxxx");
+ Quote quote = service.Accept("qt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/quotes/qt_xxxxxxxxxxxxx/accept");
@@ -3040,7 +3133,7 @@ public void TestQuotesAcceptPost()
public void TestQuotesCancelPost()
{
var service = new QuoteService(this.StripeClient);
- service.Cancel("qt_xxxxxxxxxxxxx");
+ Quote quote = service.Cancel("qt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/quotes/qt_xxxxxxxxxxxxx/cancel");
@@ -3050,7 +3143,7 @@ public void TestQuotesCancelPost()
public void TestQuotesFinalizePost()
{
var service = new QuoteService(this.StripeClient);
- service.FinalizeQuote("qt_xxxxxxxxxxxxx");
+ Quote quote = service.FinalizeQuote("qt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/quotes/qt_xxxxxxxxxxxxx/finalize");
@@ -3069,7 +3162,7 @@ public void TestQuotesGet()
public void TestQuotesGet2()
{
var service = new QuoteService(this.StripeClient);
- service.Get("qt_xxxxxxxxxxxxx");
+ Quote quote = service.Get("qt_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/quotes/qt_xxxxxxxxxxxxx");
}
@@ -3109,7 +3202,7 @@ public void TestQuotesPost()
},
};
var service = new QuoteService(this.StripeClient);
- service.Create(options);
+ Quote quote = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/quotes");
}
@@ -3124,7 +3217,7 @@ public void TestQuotesPost2()
},
};
var service = new QuoteService(this.StripeClient);
- service.Update("qt_xxxxxxxxxxxxx", options);
+ Quote quote = service.Update("qt_xxxxxxxxxxxxx", options);
this.AssertRequest(HttpMethod.Post, "/v1/quotes/qt_xxxxxxxxxxxxx");
}
@@ -3150,7 +3243,8 @@ public void TestRadarEarlyFraudWarningsGet2()
{
var service = new Stripe.Radar.EarlyFraudWarningService(
this.StripeClient);
- service.Get("issfr_xxxxxxxxxxxxx");
+ Stripe.Radar.EarlyFraudWarning earlyFraudWarning = service.Get(
+ "issfr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/radar/early_fraud_warnings/issfr_xxxxxxxxxxxxx");
@@ -3161,7 +3255,8 @@ public void TestRadarValueListItemsDelete()
{
var service = new Stripe.Radar.ValueListItemService(
this.StripeClient);
- service.Delete("rsli_xxxxxxxxxxxxx");
+ Stripe.Radar.ValueListItem deleted = service.Delete(
+ "rsli_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/radar/value_list_items/rsli_xxxxxxxxxxxxx");
@@ -3190,7 +3285,8 @@ public void TestRadarValueListItemsGet2()
{
var service = new Stripe.Radar.ValueListItemService(
this.StripeClient);
- service.Get("rsli_xxxxxxxxxxxxx");
+ Stripe.Radar.ValueListItem valueListItem = service.Get(
+ "rsli_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/radar/value_list_items/rsli_xxxxxxxxxxxxx");
@@ -3206,7 +3302,7 @@ public void TestRadarValueListItemsPost()
};
var service = new Stripe.Radar.ValueListItemService(
this.StripeClient);
- service.Create(options);
+ Stripe.Radar.ValueListItem valueListItem = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/radar/value_list_items");
}
@@ -3214,7 +3310,8 @@ public void TestRadarValueListItemsPost()
public void TestRadarValueListsDelete()
{
var service = new Stripe.Radar.ValueListService(this.StripeClient);
- service.Delete("rsl_xxxxxxxxxxxxx");
+ Stripe.Radar.ValueList deleted = service.Delete(
+ "rsl_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/radar/value_lists/rsl_xxxxxxxxxxxxx");
@@ -3237,7 +3334,7 @@ public void TestRadarValueListsGet()
public void TestRadarValueListsGet2()
{
var service = new Stripe.Radar.ValueListService(this.StripeClient);
- service.Get("rsl_xxxxxxxxxxxxx");
+ Stripe.Radar.ValueList valueList = service.Get("rsl_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/radar/value_lists/rsl_xxxxxxxxxxxxx");
@@ -3253,7 +3350,7 @@ public void TestRadarValueListsPost()
ItemType = "ip_address",
};
var service = new Stripe.Radar.ValueListService(this.StripeClient);
- service.Create(options);
+ Stripe.Radar.ValueList valueList = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/radar/value_lists");
}
@@ -3265,7 +3362,9 @@ public void TestRadarValueListsPost2()
Name = "Updated IP Block List",
};
var service = new Stripe.Radar.ValueListService(this.StripeClient);
- service.Update("rsl_xxxxxxxxxxxxx", options);
+ Stripe.Radar.ValueList valueList = service.Update(
+ "rsl_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/radar/value_lists/rsl_xxxxxxxxxxxxx");
@@ -3275,7 +3374,7 @@ public void TestRadarValueListsPost2()
public void TestRefundsCancelPost()
{
var service = new RefundService(this.StripeClient);
- service.Cancel("re_xxxxxxxxxxxxx");
+ Refund refund = service.Cancel("re_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/refunds/re_xxxxxxxxxxxxx/cancel");
@@ -3294,7 +3393,7 @@ public void TestRefundsGet()
public void TestRefundsGet2()
{
var service = new RefundService(this.StripeClient);
- service.Get("re_xxxxxxxxxxxxx");
+ Refund refund = service.Get("re_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/refunds/re_xxxxxxxxxxxxx");
}
@@ -3306,7 +3405,7 @@ public void TestRefundsPost()
Charge = "ch_xxxxxxxxxxxxx",
};
var service = new RefundService(this.StripeClient);
- service.Create(options);
+ Refund refund = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/refunds");
}
@@ -3321,7 +3420,7 @@ public void TestRefundsPost2()
},
};
var service = new RefundService(this.StripeClient);
- service.Update("re_xxxxxxxxxxxxx", options);
+ Refund refund = service.Update("re_xxxxxxxxxxxxx", options);
this.AssertRequest(HttpMethod.Post, "/v1/refunds/re_xxxxxxxxxxxxx");
}
@@ -3347,7 +3446,8 @@ public void TestReportingReportRunsGet2()
{
var service = new Stripe.Reporting.ReportRunService(
this.StripeClient);
- service.Get("frr_xxxxxxxxxxxxx");
+ Stripe.Reporting.ReportRun reportRun = service.Get(
+ "frr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/reporting/report_runs/frr_xxxxxxxxxxxxx");
@@ -3370,7 +3470,7 @@ public void TestReportingReportRunsPost()
};
var service = new Stripe.Reporting.ReportRunService(
this.StripeClient);
- service.Create(options);
+ Stripe.Reporting.ReportRun reportRun = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/reporting/report_runs");
}
@@ -3389,7 +3489,8 @@ public void TestReportingReportTypesGet2()
{
var service = new Stripe.Reporting.ReportTypeService(
this.StripeClient);
- service.Get("balance.summary.1");
+ Stripe.Reporting.ReportType reportType = service.Get(
+ "balance.summary.1");
this.AssertRequest(
HttpMethod.Get,
"/v1/reporting/report_types/balance.summary.1");
@@ -3399,7 +3500,7 @@ public void TestReportingReportTypesGet2()
public void TestReviewsApprovePost()
{
var service = new ReviewService(this.StripeClient);
- service.Approve("prv_xxxxxxxxxxxxx");
+ Review review = service.Approve("prv_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/reviews/prv_xxxxxxxxxxxxx/approve");
@@ -3418,7 +3519,7 @@ public void TestReviewsGet()
public void TestReviewsGet2()
{
var service = new ReviewService(this.StripeClient);
- service.Get("prv_xxxxxxxxxxxxx");
+ Review review = service.Get("prv_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/reviews/prv_xxxxxxxxxxxxx");
}
@@ -3442,7 +3543,7 @@ public void TestSetupAttemptsGet()
public void TestSetupIntentsCancelPost()
{
var service = new SetupIntentService(this.StripeClient);
- service.Cancel("seti_xxxxxxxxxxxxx");
+ SetupIntent setupIntent = service.Cancel("seti_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/setup_intents/seti_xxxxxxxxxxxxx/cancel");
@@ -3456,7 +3557,9 @@ public void TestSetupIntentsConfirmPost()
PaymentMethod = "pm_card_visa",
};
var service = new SetupIntentService(this.StripeClient);
- service.Confirm("seti_xxxxxxxxxxxxx", options);
+ SetupIntent setupIntent = service.Confirm(
+ "seti_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/setup_intents/seti_xxxxxxxxxxxxx/confirm");
@@ -3475,7 +3578,7 @@ public void TestSetupIntentsGet()
public void TestSetupIntentsGet2()
{
var service = new SetupIntentService(this.StripeClient);
- service.Get("seti_xxxxxxxxxxxxx");
+ SetupIntent setupIntent = service.Get("seti_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/setup_intents/seti_xxxxxxxxxxxxx");
@@ -3489,7 +3592,7 @@ public void TestSetupIntentsPost()
PaymentMethodTypes = new List { "card" },
};
var service = new SetupIntentService(this.StripeClient);
- service.Create(options);
+ SetupIntent setupIntent = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/setup_intents");
}
@@ -3504,7 +3607,9 @@ public void TestSetupIntentsPost2()
},
};
var service = new SetupIntentService(this.StripeClient);
- service.Update("seti_xxxxxxxxxxxxx", options);
+ SetupIntent setupIntent = service.Update(
+ "seti_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/setup_intents/seti_xxxxxxxxxxxxx");
@@ -3514,7 +3619,8 @@ public void TestSetupIntentsPost2()
public void TestSetupIntentsVerifyMicrodepositsPost()
{
var service = new SetupIntentService(this.StripeClient);
- service.VerifyMicrodeposits("seti_xxxxxxxxxxxxx");
+ SetupIntent setupIntent = service.VerifyMicrodeposits(
+ "seti_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/setup_intents/seti_xxxxxxxxxxxxx/verify_microdeposits");
@@ -3528,7 +3634,9 @@ public void TestSetupIntentsVerifyMicrodepositsPost2()
Amounts = new List { 32, 45 },
};
var service = new SetupIntentService(this.StripeClient);
- service.VerifyMicrodeposits("seti_xxxxxxxxxxxxx", options);
+ SetupIntent setupIntent = service.VerifyMicrodeposits(
+ "seti_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/setup_intents/seti_xxxxxxxxxxxxx/verify_microdeposits");
@@ -3555,7 +3663,7 @@ public void TestShippingRatesGet2()
public void TestShippingRatesGet3()
{
var service = new ShippingRateService(this.StripeClient);
- service.Get("shr_xxxxxxxxxxxxx");
+ ShippingRate shippingRate = service.Get("shr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/shipping_rates/shr_xxxxxxxxxxxxx");
@@ -3575,7 +3683,7 @@ public void TestShippingRatesPost()
Type = "fixed_amount",
};
var service = new ShippingRateService(this.StripeClient);
- service.Create(options);
+ ShippingRate shippingRate = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/shipping_rates");
}
@@ -3593,7 +3701,7 @@ public void TestShippingRatesPost2()
},
};
var service = new ShippingRateService(this.StripeClient);
- service.Create(options);
+ ShippingRate shippingRate = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/shipping_rates");
}
@@ -3608,7 +3716,9 @@ public void TestShippingRatesPost3()
},
};
var service = new ShippingRateService(this.StripeClient);
- service.Update("shr_xxxxxxxxxxxxx", options);
+ ShippingRate shippingRate = service.Update(
+ "shr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/shipping_rates/shr_xxxxxxxxxxxxx");
@@ -3636,7 +3746,8 @@ public void TestSigmaScheduledQueryRunsGet2()
{
var service = new Stripe.Sigma.ScheduledQueryRunService(
this.StripeClient);
- service.Get("sqr_xxxxxxxxxxxxx");
+ Stripe.Sigma.ScheduledQueryRun scheduledQueryRun = service.Get(
+ "sqr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/sigma/scheduled_query_runs/sqr_xxxxxxxxxxxxx");
@@ -3646,7 +3757,7 @@ public void TestSigmaScheduledQueryRunsGet2()
public void TestSourcesGet()
{
var service = new SourceService(this.StripeClient);
- service.Get("src_xxxxxxxxxxxxx");
+ Source source = service.Get("src_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/sources/src_xxxxxxxxxxxxx");
}
@@ -3654,7 +3765,7 @@ public void TestSourcesGet()
public void TestSourcesGet2()
{
var service = new SourceService(this.StripeClient);
- service.Get("src_xxxxxxxxxxxxx");
+ Source source = service.Get("src_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/sources/src_xxxxxxxxxxxxx");
}
@@ -3669,7 +3780,7 @@ public void TestSourcesPost()
},
};
var service = new SourceService(this.StripeClient);
- service.Update("src_xxxxxxxxxxxxx", options);
+ Source source = service.Update("src_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/sources/src_xxxxxxxxxxxxx");
@@ -3679,7 +3790,7 @@ public void TestSourcesPost()
public void TestSubscriptionItemsDelete()
{
var service = new SubscriptionItemService(this.StripeClient);
- service.Delete("si_xxxxxxxxxxxxx");
+ SubscriptionItem deleted = service.Delete("si_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/subscription_items/si_xxxxxxxxxxxxx");
@@ -3705,7 +3816,7 @@ public void TestSubscriptionItemsGet()
public void TestSubscriptionItemsGet2()
{
var service = new SubscriptionItemService(this.StripeClient);
- service.Get("si_xxxxxxxxxxxxx");
+ SubscriptionItem subscriptionItem = service.Get("si_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/subscription_items/si_xxxxxxxxxxxxx");
@@ -3721,7 +3832,7 @@ public void TestSubscriptionItemsPost()
Quantity = 2,
};
var service = new SubscriptionItemService(this.StripeClient);
- service.Create(options);
+ SubscriptionItem subscriptionItem = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/subscription_items");
}
@@ -3736,7 +3847,9 @@ public void TestSubscriptionItemsPost2()
},
};
var service = new SubscriptionItemService(this.StripeClient);
- service.Update("si_xxxxxxxxxxxxx", options);
+ SubscriptionItem subscriptionItem = service.Update(
+ "si_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/subscription_items/si_xxxxxxxxxxxxx");
@@ -3746,7 +3859,8 @@ public void TestSubscriptionItemsPost2()
public void TestSubscriptionSchedulesCancelPost()
{
var service = new SubscriptionScheduleService(this.StripeClient);
- service.Cancel("sub_sched_xxxxxxxxxxxxx");
+ SubscriptionSchedule subscriptionSchedule = service.Cancel(
+ "sub_sched_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx/cancel");
@@ -3769,7 +3883,8 @@ public void TestSubscriptionSchedulesGet()
public void TestSubscriptionSchedulesGet2()
{
var service = new SubscriptionScheduleService(this.StripeClient);
- service.Get("sub_sched_xxxxxxxxxxxxx");
+ SubscriptionSchedule subscriptionSchedule = service.Get(
+ "sub_sched_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx");
@@ -3801,7 +3916,7 @@ public void TestSubscriptionSchedulesPost()
},
};
var service = new SubscriptionScheduleService(this.StripeClient);
- service.Create(options);
+ SubscriptionSchedule subscriptionSchedule = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/subscription_schedules");
}
@@ -3813,7 +3928,9 @@ public void TestSubscriptionSchedulesPost2()
EndBehavior = "release",
};
var service = new SubscriptionScheduleService(this.StripeClient);
- service.Update("sub_sched_xxxxxxxxxxxxx", options);
+ SubscriptionSchedule subscriptionSchedule = service.Update(
+ "sub_sched_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx");
@@ -3823,7 +3940,8 @@ public void TestSubscriptionSchedulesPost2()
public void TestSubscriptionSchedulesReleasePost()
{
var service = new SubscriptionScheduleService(this.StripeClient);
- service.Release("sub_sched_xxxxxxxxxxxxx");
+ SubscriptionSchedule subscriptionSchedule = service.Release(
+ "sub_sched_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/subscription_schedules/sub_sched_xxxxxxxxxxxxx/release");
@@ -3833,7 +3951,7 @@ public void TestSubscriptionSchedulesReleasePost()
public void TestSubscriptionsDelete()
{
var service = new SubscriptionService(this.StripeClient);
- service.Cancel("sub_xxxxxxxxxxxxx");
+ Subscription subscription = service.Cancel("sub_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/subscriptions/sub_xxxxxxxxxxxxx");
@@ -3843,7 +3961,7 @@ public void TestSubscriptionsDelete()
public void TestSubscriptionsDiscountDelete()
{
var service = new SubscriptionService(this.StripeClient);
- service.DeleteDiscount("sub_xyz");
+ Discount discount = service.DeleteDiscount("sub_xyz");
this.AssertRequest(
HttpMethod.Delete,
"/v1/subscriptions/sub_xyz/discount");
@@ -3862,7 +3980,7 @@ public void TestSubscriptionsGet()
public void TestSubscriptionsGet2()
{
var service = new SubscriptionService(this.StripeClient);
- service.Get("sub_xxxxxxxxxxxxx");
+ Subscription subscription = service.Get("sub_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/subscriptions/sub_xxxxxxxxxxxxx");
@@ -3883,7 +4001,7 @@ public void TestSubscriptionsPost()
},
};
var service = new SubscriptionService(this.StripeClient);
- service.Create(options);
+ Subscription subscription = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/subscriptions");
}
@@ -3898,7 +4016,9 @@ public void TestSubscriptionsPost2()
},
};
var service = new SubscriptionService(this.StripeClient);
- service.Update("sub_xxxxxxxxxxxxx", options);
+ Subscription subscription = service.Update(
+ "sub_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/subscriptions/sub_xxxxxxxxxxxxx");
@@ -3912,7 +4032,8 @@ public void TestSubscriptionsSearchGet()
Query = "status:'active' AND metadata['order_id']:'6735'",
};
var service = new SubscriptionService(this.StripeClient);
- service.Search(options);
+ StripeSearchResult subscriptions = service.Search(
+ options);
this.AssertRequest(
HttpMethod.Get,
"/v1/subscriptions/search",
@@ -3959,7 +4080,7 @@ public void TestTaxCalculationsPost()
},
};
var service = new Stripe.Tax.CalculationService(this.StripeClient);
- service.Create(options);
+ Stripe.Tax.Calculation calculation = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tax/calculations");
}
@@ -3976,7 +4097,7 @@ public void TestTaxCodesGet()
public void TestTaxCodesGet2()
{
var service = new TaxCodeService(this.StripeClient);
- service.Get("txcd_xxxxxxxxxxxxx");
+ TaxCode taxCode = service.Get("txcd_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/tax_codes/txcd_xxxxxxxxxxxxx");
@@ -3986,7 +4107,7 @@ public void TestTaxCodesGet2()
public void TestTaxIdsDelete()
{
var service = new TaxIdService(this.StripeClient);
- service.Delete("taxid_123");
+ TaxId deleted = service.Delete("taxid_123");
this.AssertRequest(HttpMethod.Delete, "/v1/tax_ids/taxid_123");
}
@@ -4002,7 +4123,7 @@ public void TestTaxIdsGet()
public void TestTaxIdsGet2()
{
var service = new TaxIdService(this.StripeClient);
- service.Get("taxid_123");
+ TaxId taxId = service.Get("taxid_123");
this.AssertRequest(HttpMethod.Get, "/v1/tax_ids/taxid_123");
}
@@ -4015,7 +4136,7 @@ public void TestTaxIdsPost()
Value = "123",
};
var service = new TaxIdService(this.StripeClient);
- service.Create(options);
+ TaxId taxId = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tax_ids");
}
@@ -4032,7 +4153,7 @@ public void TestTaxRatesGet()
public void TestTaxRatesGet2()
{
var service = new TaxRateService(this.StripeClient);
- service.Get("txr_xxxxxxxxxxxxx");
+ TaxRate taxRate = service.Get("txr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/tax_rates/txr_xxxxxxxxxxxxx");
@@ -4050,7 +4171,7 @@ public void TestTaxRatesPost()
Inclusive = false,
};
var service = new TaxRateService(this.StripeClient);
- service.Create(options);
+ TaxRate taxRate = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tax_rates");
}
@@ -4059,7 +4180,7 @@ public void TestTaxRatesPost2()
{
var options = new TaxRateUpdateOptions { Active = false };
var service = new TaxRateService(this.StripeClient);
- service.Update("txr_xxxxxxxxxxxxx", options);
+ TaxRate taxRate = service.Update("txr_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/tax_rates/txr_xxxxxxxxxxxxx");
@@ -4097,7 +4218,7 @@ public void TestTaxRegistrationsPost()
ActiveFrom = Stripe.Tax.RegistrationActiveFrom.Now,
};
var service = new Stripe.Tax.RegistrationService(this.StripeClient);
- service.Create(options);
+ Stripe.Tax.Registration registration = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tax/registrations");
}
@@ -4109,7 +4230,9 @@ public void TestTaxRegistrationsPost2()
ExpiresAt = Stripe.Tax.RegistrationExpiresAt.Now,
};
var service = new Stripe.Tax.RegistrationService(this.StripeClient);
- service.Update("taxreg_xxxxxxxxxxxxx", options);
+ Stripe.Tax.Registration registration = service.Update(
+ "taxreg_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/tax/registrations/taxreg_xxxxxxxxxxxxx");
@@ -4120,7 +4243,7 @@ public void TestTaxSettingsGet()
{
var options = new Stripe.Tax.SettingsGetOptions();
var service = new Stripe.Tax.SettingsService(this.StripeClient);
- service.Get(options);
+ Stripe.Tax.Settings settings = service.Get(options);
this.AssertRequest(HttpMethod.Get, "/v1/tax/settings");
}
@@ -4135,7 +4258,7 @@ public void TestTaxSettingsPost()
},
};
var service = new Stripe.Tax.SettingsService(this.StripeClient);
- service.Update(options);
+ Stripe.Tax.Settings settings = service.Update(options);
this.AssertRequest(HttpMethod.Post, "/v1/tax/settings");
}
@@ -4148,7 +4271,8 @@ public void TestTaxTransactionsCreateFromCalculationPost()
Reference = "yyy",
};
var service = new Stripe.Tax.TransactionService(this.StripeClient);
- service.CreateFromCalculation(options);
+ Stripe.Tax.Transaction transaction = service.CreateFromCalculation(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/tax/transactions/create_from_calculation");
@@ -4159,7 +4283,7 @@ public void TestTerminalConfigurationsDelete()
{
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Delete("uc_123");
+ Stripe.Terminal.Configuration deleted = service.Delete("uc_123");
this.AssertRequest(
HttpMethod.Delete,
"/v1/terminal/configurations/uc_123");
@@ -4170,7 +4294,8 @@ public void TestTerminalConfigurationsDelete2()
{
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Delete("tmc_xxxxxxxxxxxxx");
+ Stripe.Terminal.Configuration deleted = service.Delete(
+ "tmc_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/terminal/configurations/tmc_xxxxxxxxxxxxx");
@@ -4191,7 +4316,7 @@ public void TestTerminalConfigurationsGet2()
{
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Get("uc_123");
+ Stripe.Terminal.Configuration configuration = service.Get("uc_123");
this.AssertRequest(
HttpMethod.Get,
"/v1/terminal/configurations/uc_123");
@@ -4219,7 +4344,8 @@ public void TestTerminalConfigurationsGet4()
{
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Get("tmc_xxxxxxxxxxxxx");
+ Stripe.Terminal.Configuration configuration = service.Get(
+ "tmc_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/terminal/configurations/tmc_xxxxxxxxxxxxx");
@@ -4231,7 +4357,8 @@ public void TestTerminalConfigurationsPost()
var options = new Stripe.Terminal.ConfigurationCreateOptions();
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Create(options);
+ Stripe.Terminal.Configuration configuration = service.Create(
+ options);
this.AssertRequest(HttpMethod.Post, "/v1/terminal/configurations");
}
@@ -4250,7 +4377,9 @@ public void TestTerminalConfigurationsPost2()
};
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Update("uc_123", options);
+ Stripe.Terminal.Configuration configuration = service.Update(
+ "uc_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/configurations/uc_123");
@@ -4268,7 +4397,8 @@ public void TestTerminalConfigurationsPost3()
};
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Create(options);
+ Stripe.Terminal.Configuration configuration = service.Create(
+ options);
this.AssertRequest(HttpMethod.Post, "/v1/terminal/configurations");
}
@@ -4284,7 +4414,9 @@ public void TestTerminalConfigurationsPost4()
};
var service = new Stripe.Terminal.ConfigurationService(
this.StripeClient);
- service.Update("tmc_xxxxxxxxxxxxx", options);
+ Stripe.Terminal.Configuration configuration = service.Update(
+ "tmc_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/configurations/tmc_xxxxxxxxxxxxx");
@@ -4296,7 +4428,8 @@ public void TestTerminalConnectionTokensPost()
var options = new Stripe.Terminal.ConnectionTokenCreateOptions();
var service = new Stripe.Terminal.ConnectionTokenService(
this.StripeClient);
- service.Create(options);
+ Stripe.Terminal.ConnectionToken connectionToken = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/connection_tokens");
@@ -4307,7 +4440,8 @@ public void TestTerminalLocationsDelete()
{
var service = new Stripe.Terminal.LocationService(
this.StripeClient);
- service.Delete("tml_xxxxxxxxxxxxx");
+ Stripe.Terminal.Location deleted = service.Delete(
+ "tml_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/terminal/locations/tml_xxxxxxxxxxxxx");
@@ -4332,7 +4466,8 @@ public void TestTerminalLocationsGet2()
{
var service = new Stripe.Terminal.LocationService(
this.StripeClient);
- service.Get("tml_xxxxxxxxxxxxx");
+ Stripe.Terminal.Location location = service.Get(
+ "tml_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/terminal/locations/tml_xxxxxxxxxxxxx");
@@ -4355,7 +4490,7 @@ public void TestTerminalLocationsPost()
};
var service = new Stripe.Terminal.LocationService(
this.StripeClient);
- service.Create(options);
+ Stripe.Terminal.Location location = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/terminal/locations");
}
@@ -4368,7 +4503,9 @@ public void TestTerminalLocationsPost2()
};
var service = new Stripe.Terminal.LocationService(
this.StripeClient);
- service.Update("tml_xxxxxxxxxxxxx", options);
+ Stripe.Terminal.Location location = service.Update(
+ "tml_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/locations/tml_xxxxxxxxxxxxx");
@@ -4378,7 +4515,8 @@ public void TestTerminalLocationsPost2()
public void TestTerminalReadersCancelActionPost()
{
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.CancelAction("tmr_xxxxxxxxxxxxx");
+ Stripe.Terminal.Reader reader = service.CancelAction(
+ "tmr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/cancel_action");
@@ -4388,7 +4526,8 @@ public void TestTerminalReadersCancelActionPost()
public void TestTerminalReadersDelete()
{
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.Delete("tmr_xxxxxxxxxxxxx");
+ Stripe.Terminal.Reader deleted = service.Delete(
+ "tmr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx");
@@ -4410,7 +4549,7 @@ public void TestTerminalReadersGet()
public void TestTerminalReadersGet2()
{
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.Get("tmr_xxxxxxxxxxxxx");
+ Stripe.Terminal.Reader reader = service.Get("tmr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx");
@@ -4426,7 +4565,7 @@ public void TestTerminalReadersPost()
Location = "tml_1234",
};
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.Create(options);
+ Stripe.Terminal.Reader reader = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/terminal/readers");
}
@@ -4438,7 +4577,9 @@ public void TestTerminalReadersPost2()
Label = "Blue Rabbit",
};
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.Update("tmr_xxxxxxxxxxxxx", options);
+ Stripe.Terminal.Reader reader = service.Update(
+ "tmr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx");
@@ -4452,7 +4593,9 @@ public void TestTerminalReadersProcessPaymentIntentPost()
PaymentIntent = "pi_xxxxxxxxxxxxx",
};
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.ProcessPaymentIntent("tmr_xxxxxxxxxxxxx", options);
+ Stripe.Terminal.Reader reader = service.ProcessPaymentIntent(
+ "tmr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_payment_intent");
@@ -4467,7 +4610,9 @@ public void TestTerminalReadersProcessSetupIntentPost()
AllowRedisplay = "always",
};
var service = new Stripe.Terminal.ReaderService(this.StripeClient);
- service.ProcessSetupIntent("tmr_xxxxxxxxxxxxx", options);
+ Stripe.Terminal.Reader reader = service.ProcessSetupIntent(
+ "tmr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/terminal/readers/tmr_xxxxxxxxxxxxx/process_setup_intent");
@@ -4483,7 +4628,8 @@ public void TestTestHelpersCustomersFundCashBalancePost()
};
var service = new Stripe.TestHelpers.CustomerService(
this.StripeClient);
- service.FundCashBalance("cus_123", options);
+ CustomerCashBalanceTransaction customerCashBalanceTransaction = service
+ .FundCashBalance("cus_123", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/customers/cus_123/fund_cash_balance");
@@ -4548,7 +4694,9 @@ public void TestTestHelpersIssuingAuthorizationsCapturePost()
};
var service = new Stripe.TestHelpers.Issuing.AuthorizationService(
this.StripeClient);
- service.Capture("example_authorization", options);
+ Stripe.Issuing.Authorization authorization = service.Capture(
+ "example_authorization",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/authorizations/example_authorization/capture");
@@ -4559,7 +4707,8 @@ public void TestTestHelpersIssuingAuthorizationsExpirePost()
{
var service = new Stripe.TestHelpers.Issuing.AuthorizationService(
this.StripeClient);
- service.Expire("example_authorization");
+ Stripe.Issuing.Authorization authorization = service.Expire(
+ "example_authorization");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/authorizations/example_authorization/expire");
@@ -4575,7 +4724,9 @@ public void TestTestHelpersIssuingAuthorizationsIncrementPost()
};
var service = new Stripe.TestHelpers.Issuing.AuthorizationService(
this.StripeClient);
- service.Increment("example_authorization", options);
+ Stripe.Issuing.Authorization authorization = service.Increment(
+ "example_authorization",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/authorizations/example_authorization/increment");
@@ -4622,7 +4773,8 @@ public void TestTestHelpersIssuingAuthorizationsPost()
};
var service = new Stripe.TestHelpers.Issuing.AuthorizationService(
this.StripeClient);
- service.Create(options);
+ Stripe.Issuing.Authorization authorization = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/authorizations");
@@ -4637,7 +4789,9 @@ public void TestTestHelpersIssuingAuthorizationsReversePost()
};
var service = new Stripe.TestHelpers.Issuing.AuthorizationService(
this.StripeClient);
- service.Reverse("example_authorization", options);
+ Stripe.Issuing.Authorization authorization = service.Reverse(
+ "example_authorization",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/authorizations/example_authorization/reverse");
@@ -4648,7 +4802,7 @@ public void TestTestHelpersIssuingCardsShippingDeliverPost()
{
var service = new Stripe.TestHelpers.Issuing.CardService(
this.StripeClient);
- service.DeliverCard("card_123");
+ Stripe.Issuing.Card card = service.DeliverCard("card_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/cards/card_123/shipping/deliver");
@@ -4659,7 +4813,7 @@ public void TestTestHelpersIssuingCardsShippingFailPost()
{
var service = new Stripe.TestHelpers.Issuing.CardService(
this.StripeClient);
- service.FailCard("card_123");
+ Stripe.Issuing.Card card = service.FailCard("card_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/cards/card_123/shipping/fail");
@@ -4670,7 +4824,7 @@ public void TestTestHelpersIssuingCardsShippingReturnPost()
{
var service = new Stripe.TestHelpers.Issuing.CardService(
this.StripeClient);
- service.ReturnCard("card_123");
+ Stripe.Issuing.Card card = service.ReturnCard("card_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/cards/card_123/shipping/return");
@@ -4681,7 +4835,7 @@ public void TestTestHelpersIssuingCardsShippingShipPost()
{
var service = new Stripe.TestHelpers.Issuing.CardService(
this.StripeClient);
- service.ShipCard("card_123");
+ Stripe.Issuing.Card card = service.ShipCard("card_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/cards/card_123/shipping/ship");
@@ -4692,7 +4846,8 @@ public void TestTestHelpersIssuingPersonalizationDesignsActivatePost()
{
var service = new Stripe.TestHelpers.Issuing.PersonalizationDesignService(
this.StripeClient);
- service.Activate("pd_xyz");
+ Stripe.Issuing.PersonalizationDesign personalizationDesign = service
+ .Activate("pd_xyz");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/personalization_designs/pd_xyz/activate");
@@ -4703,7 +4858,8 @@ public void TestTestHelpersIssuingPersonalizationDesignsDeactivatePost()
{
var service = new Stripe.TestHelpers.Issuing.PersonalizationDesignService(
this.StripeClient);
- service.Deactivate("pd_xyz");
+ Stripe.Issuing.PersonalizationDesign personalizationDesign = service
+ .Deactivate("pd_xyz");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/personalization_designs/pd_xyz/deactivate");
@@ -4721,7 +4877,8 @@ public void TestTestHelpersIssuingPersonalizationDesignsRejectPost()
};
var service = new Stripe.TestHelpers.Issuing.PersonalizationDesignService(
this.StripeClient);
- service.Reject("pd_xyz", options);
+ Stripe.Issuing.PersonalizationDesign personalizationDesign = service
+ .Reject("pd_xyz", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/personalization_designs/pd_xyz/reject");
@@ -4798,7 +4955,8 @@ public void TestTestHelpersIssuingTransactionsCreateForceCapturePost()
};
var service = new Stripe.TestHelpers.Issuing.TransactionService(
this.StripeClient);
- service.CreateForceCapture(options);
+ Stripe.Issuing.Transaction transaction = service.CreateForceCapture(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/transactions/create_force_capture");
@@ -4875,7 +5033,8 @@ public void TestTestHelpersIssuingTransactionsCreateUnlinkedRefundPost()
};
var service = new Stripe.TestHelpers.Issuing.TransactionService(
this.StripeClient);
- service.CreateUnlinkedRefund(options);
+ Stripe.Issuing.Transaction transaction = service
+ .CreateUnlinkedRefund(options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/transactions/create_unlinked_refund");
@@ -4890,7 +5049,9 @@ public void TestTestHelpersIssuingTransactionsRefundPost()
};
var service = new Stripe.TestHelpers.Issuing.TransactionService(
this.StripeClient);
- service.Refund("example_transaction", options);
+ Stripe.Issuing.Transaction transaction = service.Refund(
+ "example_transaction",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/issuing/transactions/example_transaction/refund");
@@ -4901,7 +5062,7 @@ public void TestTestHelpersRefundsExpirePost()
{
var service = new Stripe.TestHelpers.RefundService(
this.StripeClient);
- service.Expire("re_123");
+ Refund refund = service.Expire("re_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/refunds/re_123/expire");
@@ -4917,7 +5078,9 @@ public void TestTestHelpersTestClocksAdvancePost()
};
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Advance("clock_xyz", options);
+ Stripe.TestHelpers.TestClock testClock = service.Advance(
+ "clock_xyz",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/test_clocks/clock_xyz/advance");
@@ -4933,7 +5096,9 @@ public void TestTestHelpersTestClocksAdvancePost2()
};
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Advance("clock_xxxxxxxxxxxxx", options);
+ Stripe.TestHelpers.TestClock testClock = service.Advance(
+ "clock_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/test_clocks/clock_xxxxxxxxxxxxx/advance");
@@ -4944,7 +5109,7 @@ public void TestTestHelpersTestClocksDelete()
{
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Delete("clock_xyz");
+ Stripe.TestHelpers.TestClock deleted = service.Delete("clock_xyz");
this.AssertRequest(
HttpMethod.Delete,
"/v1/test_helpers/test_clocks/clock_xyz");
@@ -4955,7 +5120,8 @@ public void TestTestHelpersTestClocksDelete2()
{
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Delete("clock_xxxxxxxxxxxxx");
+ Stripe.TestHelpers.TestClock deleted = service.Delete(
+ "clock_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/test_helpers/test_clocks/clock_xxxxxxxxxxxxx");
@@ -4976,7 +5142,7 @@ public void TestTestHelpersTestClocksGet2()
{
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Get("clock_xyz");
+ Stripe.TestHelpers.TestClock testClock = service.Get("clock_xyz");
this.AssertRequest(
HttpMethod.Get,
"/v1/test_helpers/test_clocks/clock_xyz");
@@ -5004,7 +5170,8 @@ public void TestTestHelpersTestClocksGet4()
{
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Get("clock_xxxxxxxxxxxxx");
+ Stripe.TestHelpers.TestClock testClock = service.Get(
+ "clock_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/test_helpers/test_clocks/clock_xxxxxxxxxxxxx");
@@ -5021,7 +5188,7 @@ public void TestTestHelpersTestClocksPost()
};
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Create(options);
+ Stripe.TestHelpers.TestClock testClock = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/test_helpers/test_clocks");
}
@@ -5035,7 +5202,7 @@ public void TestTestHelpersTestClocksPost2()
};
var service = new Stripe.TestHelpers.TestClockService(
this.StripeClient);
- service.Create(options);
+ Stripe.TestHelpers.TestClock testClock = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/test_helpers/test_clocks");
}
@@ -5051,7 +5218,9 @@ public void TestTestHelpersTreasuryInboundTransfersFailPost()
};
var service = new Stripe.TestHelpers.Treasury.InboundTransferService(
this.StripeClient);
- service.Fail("ibt_123", options);
+ Stripe.Treasury.InboundTransfer inboundTransfer = service.Fail(
+ "ibt_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/inbound_transfers/ibt_123/fail");
@@ -5062,7 +5231,8 @@ public void TestTestHelpersTreasuryInboundTransfersReturnPost()
{
var service = new Stripe.TestHelpers.Treasury.InboundTransferService(
this.StripeClient);
- service.ReturnInboundTransfer("ibt_123");
+ Stripe.Treasury.InboundTransfer inboundTransfer = service
+ .ReturnInboundTransfer("ibt_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/inbound_transfers/ibt_123/return");
@@ -5073,7 +5243,8 @@ public void TestTestHelpersTreasuryInboundTransfersSucceedPost()
{
var service = new Stripe.TestHelpers.Treasury.InboundTransferService(
this.StripeClient);
- service.Succeed("ibt_123");
+ Stripe.Treasury.InboundTransfer inboundTransfer = service.Succeed(
+ "ibt_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/inbound_transfers/ibt_123/succeed");
@@ -5084,7 +5255,8 @@ public void TestTestHelpersTreasuryOutboundTransfersFailPost()
{
var service = new Stripe.TestHelpers.Treasury.OutboundTransferService(
this.StripeClient);
- service.Fail("obt_123");
+ Stripe.Treasury.OutboundTransfer outboundTransfer = service.Fail(
+ "obt_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/outbound_transfers/obt_123/fail");
@@ -5095,7 +5267,8 @@ public void TestTestHelpersTreasuryOutboundTransfersPostPost()
{
var service = new Stripe.TestHelpers.Treasury.OutboundTransferService(
this.StripeClient);
- service.Post("obt_123");
+ Stripe.Treasury.OutboundTransfer outboundTransfer = service.Post(
+ "obt_123");
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/outbound_transfers/obt_123/post");
@@ -5113,7 +5286,8 @@ public void TestTestHelpersTreasuryOutboundTransfersReturnPost()
};
var service = new Stripe.TestHelpers.Treasury.OutboundTransferService(
this.StripeClient);
- service.ReturnOutboundTransfer("obt_123", options);
+ Stripe.Treasury.OutboundTransfer outboundTransfer = service
+ .ReturnOutboundTransfer("obt_123", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/outbound_transfers/obt_123/return");
@@ -5131,7 +5305,8 @@ public void TestTestHelpersTreasuryReceivedCreditsPost()
};
var service = new Stripe.TestHelpers.Treasury.ReceivedCreditService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.ReceivedCredit receivedCredit = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/received_credits");
@@ -5149,7 +5324,8 @@ public void TestTestHelpersTreasuryReceivedDebitsPost()
};
var service = new Stripe.TestHelpers.Treasury.ReceivedDebitService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.ReceivedDebit receivedDebit = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/test_helpers/treasury/received_debits");
@@ -5159,7 +5335,7 @@ public void TestTestHelpersTreasuryReceivedDebitsPost()
public void TestTokensGet()
{
var service = new TokenService(this.StripeClient);
- service.Get("tok_xxxx");
+ Token token = service.Get("tok_xxxx");
this.AssertRequest(HttpMethod.Get, "/v1/tokens/tok_xxxx");
}
@@ -5177,7 +5353,7 @@ public void TestTokensPost()
},
};
var service = new TokenService(this.StripeClient);
- service.Create(options);
+ Token token = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tokens");
}
@@ -5197,7 +5373,7 @@ public void TestTokensPost2()
},
};
var service = new TokenService(this.StripeClient);
- service.Create(options);
+ Token token = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tokens");
}
@@ -5209,7 +5385,7 @@ public void TestTokensPost3()
Pii = new TokenPiiOptions { IdNumber = "000000000" },
};
var service = new TokenService(this.StripeClient);
- service.Create(options);
+ Token token = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tokens");
}
@@ -5229,7 +5405,7 @@ public void TestTokensPost4()
},
};
var service = new TokenService(this.StripeClient);
- service.Create(options);
+ Token token = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tokens");
}
@@ -5249,7 +5425,7 @@ public void TestTokensPost5()
},
};
var service = new TokenService(this.StripeClient);
- service.Create(options);
+ Token token = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tokens");
}
@@ -5261,7 +5437,7 @@ public void TestTokensPost6()
CvcUpdate = new TokenCvcUpdateOptions { Cvc = "123" },
};
var service = new TokenService(this.StripeClient);
- service.Create(options);
+ Token token = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/tokens");
}
@@ -5269,7 +5445,7 @@ public void TestTokensPost6()
public void TestTopupsCancelPost()
{
var service = new TopupService(this.StripeClient);
- service.Cancel("tu_xxxxxxxxxxxxx");
+ Topup topup = service.Cancel("tu_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/topups/tu_xxxxxxxxxxxxx/cancel");
@@ -5288,7 +5464,7 @@ public void TestTopupsGet()
public void TestTopupsGet2()
{
var service = new TopupService(this.StripeClient);
- service.Get("tu_xxxxxxxxxxxxx");
+ Topup topup = service.Get("tu_xxxxxxxxxxxxx");
this.AssertRequest(HttpMethod.Get, "/v1/topups/tu_xxxxxxxxxxxxx");
}
@@ -5303,7 +5479,7 @@ public void TestTopupsPost()
StatementDescriptor = "Top-up",
};
var service = new TopupService(this.StripeClient);
- service.Create(options);
+ Topup topup = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/topups");
}
@@ -5318,7 +5494,7 @@ public void TestTopupsPost2()
},
};
var service = new TopupService(this.StripeClient);
- service.Update("tu_xxxxxxxxxxxxx", options);
+ Topup topup = service.Update("tu_xxxxxxxxxxxxx", options);
this.AssertRequest(HttpMethod.Post, "/v1/topups/tu_xxxxxxxxxxxxx");
}
@@ -5335,7 +5511,7 @@ public void TestTransfersGet()
public void TestTransfersGet2()
{
var service = new TransferService(this.StripeClient);
- service.Get("tr_xxxxxxxxxxxxx");
+ Transfer transfer = service.Get("tr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/transfers/tr_xxxxxxxxxxxxx");
@@ -5352,7 +5528,7 @@ public void TestTransfersPost()
TransferGroup = "ORDER_95",
};
var service = new TransferService(this.StripeClient);
- service.Create(options);
+ Transfer transfer = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/transfers");
}
@@ -5367,7 +5543,7 @@ public void TestTransfersPost2()
},
};
var service = new TransferService(this.StripeClient);
- service.Update("tr_xxxxxxxxxxxxx", options);
+ Transfer transfer = service.Update("tr_xxxxxxxxxxxxx", options);
this.AssertRequest(
HttpMethod.Post,
"/v1/transfers/tr_xxxxxxxxxxxxx");
@@ -5391,7 +5567,9 @@ public void TestTransfersReversalsGet()
public void TestTransfersReversalsGet2()
{
var service = new TransferReversalService(this.StripeClient);
- service.Get("tr_xxxxxxxxxxxxx", "trr_xxxxxxxxxxxxx");
+ TransferReversal transferReversal = service.Get(
+ "tr_xxxxxxxxxxxxx",
+ "trr_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/transfers/tr_xxxxxxxxxxxxx/reversals/trr_xxxxxxxxxxxxx");
@@ -5402,7 +5580,9 @@ public void TestTransfersReversalsPost()
{
var options = new TransferReversalCreateOptions { Amount = 100 };
var service = new TransferReversalService(this.StripeClient);
- service.Create("tr_xxxxxxxxxxxxx", options);
+ TransferReversal transferReversal = service.Create(
+ "tr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/transfers/tr_xxxxxxxxxxxxx/reversals");
@@ -5419,7 +5599,10 @@ public void TestTransfersReversalsPost2()
},
};
var service = new TransferReversalService(this.StripeClient);
- service.Update("tr_xxxxxxxxxxxxx", "trr_xxxxxxxxxxxxx", options);
+ TransferReversal transferReversal = service.Update(
+ "tr_xxxxxxxxxxxxx",
+ "trr_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/transfers/tr_xxxxxxxxxxxxx/reversals/trr_xxxxxxxxxxxxx");
@@ -5448,7 +5631,8 @@ public void TestTreasuryCreditReversalsGet2()
{
var service = new Stripe.Treasury.CreditReversalService(
this.StripeClient);
- service.Get("credrev_xxxxxxxxxxxxx");
+ Stripe.Treasury.CreditReversal creditReversal = service.Get(
+ "credrev_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/credit_reversals/credrev_xxxxxxxxxxxxx");
@@ -5463,7 +5647,8 @@ public void TestTreasuryCreditReversalsPost()
};
var service = new Stripe.Treasury.CreditReversalService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.CreditReversal creditReversal = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/credit_reversals");
@@ -5492,7 +5677,8 @@ public void TestTreasuryDebitReversalsGet2()
{
var service = new Stripe.Treasury.DebitReversalService(
this.StripeClient);
- service.Get("debrev_xxxxxxxxxxxxx");
+ Stripe.Treasury.DebitReversal debitReversal = service.Get(
+ "debrev_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/debit_reversals/debrev_xxxxxxxxxxxxx");
@@ -5507,7 +5693,8 @@ public void TestTreasuryDebitReversalsPost()
};
var service = new Stripe.Treasury.DebitReversalService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.DebitReversal debitReversal = service.Create(
+ options);
this.AssertRequest(HttpMethod.Post, "/v1/treasury/debit_reversals");
}
@@ -5516,7 +5703,8 @@ public void TestTreasuryFinancialAccountsFeaturesGet()
{
var service = new Stripe.Treasury.FinancialAccountFeaturesService(
this.StripeClient);
- service.Get("fa_xxxxxxxxxxxxx");
+ Stripe.Treasury.FinancialAccountFeatures financialAccountFeatures = service
+ .Get("fa_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx/features");
@@ -5544,7 +5732,8 @@ public void TestTreasuryFinancialAccountsGet2()
{
var service = new Stripe.Treasury.FinancialAccountService(
this.StripeClient);
- service.Get("fa_xxxxxxxxxxxxx");
+ Stripe.Treasury.FinancialAccount financialAccount = service.Get(
+ "fa_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx");
@@ -5560,7 +5749,8 @@ public void TestTreasuryFinancialAccountsPost()
};
var service = new Stripe.Treasury.FinancialAccountService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.FinancialAccount financialAccount = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/financial_accounts");
@@ -5578,7 +5768,9 @@ public void TestTreasuryFinancialAccountsPost2()
};
var service = new Stripe.Treasury.FinancialAccountService(
this.StripeClient);
- service.Update("fa_xxxxxxxxxxxxx", options);
+ Stripe.Treasury.FinancialAccount financialAccount = service.Update(
+ "fa_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/financial_accounts/fa_xxxxxxxxxxxxx");
@@ -5589,7 +5781,8 @@ public void TestTreasuryInboundTransfersCancelPost()
{
var service = new Stripe.Treasury.InboundTransferService(
this.StripeClient);
- service.Cancel("ibt_xxxxxxxxxxxxx");
+ Stripe.Treasury.InboundTransfer inboundTransfer = service.Cancel(
+ "ibt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/inbound_transfers/ibt_xxxxxxxxxxxxx/cancel");
@@ -5618,7 +5811,8 @@ public void TestTreasuryInboundTransfersGet2()
{
var service = new Stripe.Treasury.InboundTransferService(
this.StripeClient);
- service.Get("ibt_xxxxxxxxxxxxx");
+ Stripe.Treasury.InboundTransfer inboundTransfer = service.Get(
+ "ibt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/inbound_transfers/ibt_xxxxxxxxxxxxx");
@@ -5637,7 +5831,8 @@ public void TestTreasuryInboundTransfersPost()
};
var service = new Stripe.Treasury.InboundTransferService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.InboundTransfer inboundTransfer = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/inbound_transfers");
@@ -5648,7 +5843,8 @@ public void TestTreasuryOutboundPaymentsCancelPost()
{
var service = new Stripe.Treasury.OutboundPaymentService(
this.StripeClient);
- service.Cancel("bot_xxxxxxxxxxxxx");
+ Stripe.Treasury.OutboundPayment outboundPayment = service.Cancel(
+ "bot_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/outbound_payments/bot_xxxxxxxxxxxxx/cancel");
@@ -5677,7 +5873,8 @@ public void TestTreasuryOutboundPaymentsGet2()
{
var service = new Stripe.Treasury.OutboundPaymentService(
this.StripeClient);
- service.Get("bot_xxxxxxxxxxxxx");
+ Stripe.Treasury.OutboundPayment outboundPayment = service.Get(
+ "bot_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/outbound_payments/bot_xxxxxxxxxxxxx");
@@ -5697,7 +5894,8 @@ public void TestTreasuryOutboundPaymentsPost()
};
var service = new Stripe.Treasury.OutboundPaymentService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.OutboundPayment outboundPayment = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/outbound_payments");
@@ -5708,7 +5906,8 @@ public void TestTreasuryOutboundTransfersCancelPost()
{
var service = new Stripe.Treasury.OutboundTransferService(
this.StripeClient);
- service.Cancel("obt_xxxxxxxxxxxxx");
+ Stripe.Treasury.OutboundTransfer outboundTransfer = service.Cancel(
+ "obt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/outbound_transfers/obt_xxxxxxxxxxxxx/cancel");
@@ -5737,7 +5936,8 @@ public void TestTreasuryOutboundTransfersGet2()
{
var service = new Stripe.Treasury.OutboundTransferService(
this.StripeClient);
- service.Get("obt_xxxxxxxxxxxxx");
+ Stripe.Treasury.OutboundTransfer outboundTransfer = service.Get(
+ "obt_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/outbound_transfers/obt_xxxxxxxxxxxxx");
@@ -5756,7 +5956,8 @@ public void TestTreasuryOutboundTransfersPost()
};
var service = new Stripe.Treasury.OutboundTransferService(
this.StripeClient);
- service.Create(options);
+ Stripe.Treasury.OutboundTransfer outboundTransfer = service.Create(
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/treasury/outbound_transfers");
@@ -5785,7 +5986,8 @@ public void TestTreasuryReceivedCreditsGet2()
{
var service = new Stripe.Treasury.ReceivedCreditService(
this.StripeClient);
- service.Get("rc_xxxxxxxxxxxxx");
+ Stripe.Treasury.ReceivedCredit receivedCredit = service.Get(
+ "rc_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/received_credits/rc_xxxxxxxxxxxxx");
@@ -5814,7 +6016,8 @@ public void TestTreasuryReceivedDebitsGet2()
{
var service = new Stripe.Treasury.ReceivedDebitService(
this.StripeClient);
- service.Get("rd_xxxxxxxxxxxxx");
+ Stripe.Treasury.ReceivedDebit receivedDebit = service.Get(
+ "rd_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/received_debits/rd_xxxxxxxxxxxxx");
@@ -5843,7 +6046,8 @@ public void TestTreasuryTransactionEntriesGet2()
{
var service = new Stripe.Treasury.TransactionEntryService(
this.StripeClient);
- service.Get("trxne_xxxxxxxxxxxxx");
+ Stripe.Treasury.TransactionEntry transactionEntry = service.Get(
+ "trxne_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/transaction_entries/trxne_xxxxxxxxxxxxx");
@@ -5872,7 +6076,8 @@ public void TestTreasuryTransactionsGet2()
{
var service = new Stripe.Treasury.TransactionService(
this.StripeClient);
- service.Get("trxn_xxxxxxxxxxxxx");
+ Stripe.Treasury.Transaction transaction = service.Get(
+ "trxn_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/treasury/transactions/trxn_xxxxxxxxxxxxx");
@@ -5882,7 +6087,7 @@ public void TestTreasuryTransactionsGet2()
public void TestWebhookEndpointsDelete()
{
var service = new WebhookEndpointService(this.StripeClient);
- service.Delete("we_xxxxxxxxxxxxx");
+ WebhookEndpoint deleted = service.Delete("we_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Delete,
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx");
@@ -5905,7 +6110,7 @@ public void TestWebhookEndpointsGet()
public void TestWebhookEndpointsGet2()
{
var service = new WebhookEndpointService(this.StripeClient);
- service.Get("we_xxxxxxxxxxxxx");
+ WebhookEndpoint webhookEndpoint = service.Get("we_xxxxxxxxxxxxx");
this.AssertRequest(
HttpMethod.Get,
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx");
@@ -5924,7 +6129,7 @@ public void TestWebhookEndpointsPost()
},
};
var service = new WebhookEndpointService(this.StripeClient);
- service.Create(options);
+ WebhookEndpoint webhookEndpoint = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v1/webhook_endpoints");
}
@@ -5936,7 +6141,9 @@ public void TestWebhookEndpointsPost2()
Url = "https://example.com/new_endpoint",
};
var service = new WebhookEndpointService(this.StripeClient);
- service.Update("we_xxxxxxxxxxxxx", options);
+ WebhookEndpoint webhookEndpoint = service.Update(
+ "we_xxxxxxxxxxxxx",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v1/webhook_endpoints/we_xxxxxxxxxxxxx");
@@ -5953,7 +6160,8 @@ public void TestV2BillingMeterEventSessionPost()
var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions();
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.MeterEventSession;
- service.Create(options);
+ Stripe.V2.Billing.MeterEventSession meterEventSession = service
+ .Create(options);
this.AssertRequest(
HttpMethod.Post,
"/v2/billing/meter_event_session");
@@ -5978,7 +6186,8 @@ public void TestV2BillingMeterEventAdjustmentPost()
};
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.MeterEventAdjustments;
- service.Create(options);
+ Stripe.V2.Billing.MeterEventAdjustment meterEventAdjustment = service
+ .Create(options);
this.AssertRequest(
HttpMethod.Post,
"/v2/billing/meter_event_adjustments");
@@ -6036,7 +6245,7 @@ public void TestV2BillingMeterEventPost()
};
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.MeterEvents;
- service.Create(options);
+ Stripe.V2.Billing.MeterEvent meterEvent = service.Create(options);
this.AssertRequest(HttpMethod.Post, "/v2/billing/meter_events");
}
@@ -6057,7 +6266,8 @@ public void TestV2CoreEventDestinationPost()
};
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Create(options);
+ Stripe.V2.EventDestination eventDestination = service.Create(
+ options);
this.AssertRequest(HttpMethod.Post, "/v2/core/event_destinations");
}
@@ -6071,7 +6281,7 @@ public void TestV2CoreEventDestinationDelete()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Delete("id_123");
+ Stripe.V2.EventDestination deleted = service.Delete("id_123");
this.AssertRequest(
HttpMethod.Delete,
"/v2/core/event_destinations/id_123");
@@ -6087,7 +6297,8 @@ public void TestV2CoreEventDestinationPost2()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Disable("id_123");
+ Stripe.V2.EventDestination eventDestination = service.Disable(
+ "id_123");
this.AssertRequest(
HttpMethod.Post,
"/v2/core/event_destinations/id_123/disable");
@@ -6103,7 +6314,8 @@ public void TestV2CoreEventDestinationPost3()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Enable("id_123");
+ Stripe.V2.EventDestination eventDestination = service.Enable(
+ "id_123");
this.AssertRequest(
HttpMethod.Post,
"/v2/core/event_destinations/id_123/enable");
@@ -6134,7 +6346,7 @@ public void TestV2CoreEventDestinationPost4()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Ping("id_123");
+ Stripe.V2.Event result = service.Ping("id_123");
this.AssertRequest(
HttpMethod.Post,
"/v2/core/event_destinations/id_123/ping");
@@ -6150,7 +6362,7 @@ public void TestV2CoreEventDestinationGet2()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Get("id_123");
+ Stripe.V2.EventDestination eventDestination = service.Get("id_123");
this.AssertRequest(
HttpMethod.Get,
"/v2/core/event_destinations/id_123");
@@ -6167,7 +6379,9 @@ public void TestV2CoreEventDestinationPost5()
var options = new Stripe.V2.Core.EventDestinationUpdateOptions();
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.EventDestinations;
- service.Update("id_123", options);
+ Stripe.V2.EventDestination eventDestination = service.Update(
+ "id_123",
+ options);
this.AssertRequest(
HttpMethod.Post,
"/v2/core/event_destinations/id_123");
@@ -6206,7 +6420,7 @@ public void TestV2CoreEventGet2()
"{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Core.Events;
- service.Get("id_123");
+ Stripe.V2.Event result = service.Get("id_123");
this.AssertRequest(HttpMethod.Get, "/v2/core/events/id_123");
}