SearchAutoPagingAsync(Subscription
/// In these cases, we apply a credit for the unused time on the previous price,
/// immediately charge the customer using the new price, and reset the billing date. Learn
/// about how Stripe
+ /// href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe
/// immediately attempts payment for subscription changes.
.
///
/// If you want to charge for an upgrade immediately, pass proration_behavior as
@@ -342,7 +342,7 @@ public virtual Subscription Update(string id, SubscriptionUpdateOptions options,
///
In these cases, we apply a credit for the unused time on the previous price,
/// immediately charge the customer using the new price, and reset the billing date. Learn
/// about how Stripe
+ /// href="https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment">Stripe
/// immediately attempts payment for subscription changes.
.
///
/// If you want to charge for an upgrade immediately, pass proration_behavior as
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
index 68b12b09da..36e7843c88 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
@@ -183,7 +183,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata
///
/// If specified, payment collection for this subscription will be paused. Note that the
/// subscription status will be unchanged and will not be updated to paused. Learn
- /// more about pausing
+ /// more about pausing
/// collection.
///
[JsonProperty("pause_collection")]
diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs
index 6fc929c277..c54a0da019 100644
--- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs
+++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs
@@ -15,13 +15,13 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions
/// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin,
/// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn,
/// jp_trn, ke_pin, kr_brn, kz_bin, li_uid,
- /// ma_vat, md_vat, mx_rfc, my_frp, my_itn,
- /// my_sst, ng_tin, no_vat, no_voec, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sv_nit, th_vat, tr_tin, tw_vat,
- /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin,
- /// uz_vat, ve_rif, vn_tin, or za_vat.
+ /// li_vat, ma_vat, md_vat, mx_rfc, my_frp,
+ /// my_itn, my_sst, ng_tin, no_vat, no_voec,
+ /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin,
+ /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst,
+ /// sg_uen, si_tin, sv_nit, th_vat, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc,
+ /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat.
/// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn,
/// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
/// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb,
@@ -31,13 +31,13 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions
/// gb_vat, ge_vat, hk_br, hr_oib, hu_tin,
/// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn,
/// jp_trn, ke_pin, kr_brn, kz_bin, li_uid,
- /// ma_vat, md_vat, mx_rfc, my_frp, my_itn,
- /// my_sst, ng_tin, no_vat, no_voec, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sv_nit, th_vat, tr_tin, tw_vat,
- /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin,
- /// uz_vat, ve_rif, vn_tin, or za_vat.
+ /// li_vat, ma_vat, md_vat, mx_rfc, my_frp,
+ /// my_itn, my_sst, ng_tin, no_vat, no_voec,
+ /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin,
+ /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst,
+ /// sg_uen, si_tin, sv_nit, th_vat, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc,
+ /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat.
///
[JsonProperty("type")]
public string Type { get; set; }
diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs
index a6b52c3fdf..3c1cacb726 100644
--- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs
+++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs
@@ -21,13 +21,13 @@ public class TaxIdCreateOptions : BaseOptions
/// eu_vat, gb_vat, ge_vat, hk_br, hr_oib, hu_tin,
/// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn,
/// jp_trn, ke_pin, kr_brn, kz_bin, li_uid,
- /// ma_vat, md_vat, mx_rfc, my_frp, my_itn,
- /// my_sst, ng_tin, no_vat, no_voec, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sv_nit, th_vat, tr_tin, tw_vat,
- /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin,
- /// uz_vat, ve_rif, vn_tin, or za_vat.
+ /// li_vat, ma_vat, md_vat, mx_rfc, my_frp,
+ /// my_itn, my_sst, ng_tin, no_vat, no_voec,
+ /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin,
+ /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst,
+ /// sg_uen, si_tin, sv_nit, th_vat, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc,
+ /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat.
/// One of: ad_nrt, ae_trn, ar_cuit, au_abn, au_arn,
/// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf,
/// by_tin, ca_bn, ca_gst_hst, ca_pst_bc, ca_pst_mb,
@@ -37,13 +37,13 @@ public class TaxIdCreateOptions : BaseOptions
/// gb_vat, ge_vat, hk_br, hr_oib, hu_tin,
/// id_npwp, il_vat, in_gst, is_vat, jp_cn, jp_rn,
/// jp_trn, ke_pin, kr_brn, kz_bin, li_uid,
- /// ma_vat, md_vat, mx_rfc, my_frp, my_itn,
- /// my_sst, ng_tin, no_vat, no_voec, nz_gst,
- /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib,
- /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen,
- /// si_tin, sv_nit, th_vat, tr_tin, tw_vat,
- /// tz_vat, ua_vat, us_ein, uy_ruc, uz_tin,
- /// uz_vat, ve_rif, vn_tin, or za_vat.
+ /// li_vat, ma_vat, md_vat, mx_rfc, my_frp,
+ /// my_itn, my_sst, ng_tin, no_vat, no_voec,
+ /// nz_gst, om_vat, pe_ruc, ph_tin, ro_tin,
+ /// rs_pib, ru_inn, ru_kpp, sa_vat, sg_gst,
+ /// sg_uen, si_tin, sv_nit, th_vat, tr_tin,
+ /// tw_vat, tz_vat, ua_vat, us_ein, uy_ruc,
+ /// uz_tin, uz_vat, ve_rif, vn_tin, or za_vat.
///
[JsonProperty("type")]
public string Type { get; set; }
diff --git a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs
index fc06b72e2b..6fd19f5800 100644
--- a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs
+++ b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs
@@ -73,7 +73,8 @@ public class TaxRateCreateOptions : BaseOptions, IHasMetadata
/// The high-level tax type, such as vat or sales_tax.
/// One of: amusement_tax, communications_tax, gst, hst,
/// igst, jct, lease_tax, pst, qst,
- /// retail_delivery_fee, rst, sales_tax, or vat.
+ /// retail_delivery_fee, rst, sales_tax, service_tax, or
+ /// vat.
///
[JsonProperty("tax_type")]
public string TaxType { get; set; }
diff --git a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs
index e379de84f5..8629cb70d0 100644
--- a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs
+++ b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs
@@ -61,7 +61,8 @@ public class TaxRateUpdateOptions : BaseOptions, IHasMetadata
/// The high-level tax type, such as vat or sales_tax.
/// One of: amusement_tax, communications_tax, gst, hst,
/// igst, jct, lease_tax, pst, qst,
- /// retail_delivery_fee, rst, sales_tax, or vat.
+ /// retail_delivery_fee, rst, sales_tax, service_tax, or
+ /// vat.
///
[JsonProperty("tax_type")]
public string TaxType { get; set; }
diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs
index fd6ca1d978..595664a532 100644
--- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCreateOptions.cs
@@ -64,6 +64,23 @@ public class AuthorizationCreateOptions : BaseOptions
[JsonProperty("is_amount_controllable")]
public bool? IsAmountControllable { get; set; }
+ ///
+ /// The total amount to attempt to authorize. This amount is in the provided merchant
+ /// currency, and in the smallest
+ /// currency unit.
+ ///
+ [JsonProperty("merchant_amount")]
+ public long? MerchantAmount { get; set; }
+
+ ///
+ /// The currency of the authorization. If not provided, defaults to the currency of the
+ /// card. Three-letter ISO
+ /// currency code, in lowercase. Must be a supported currency.
+ ///
+ [JsonProperty("merchant_currency")]
+ public string MerchantCurrency { get; set; }
+
///
/// Details about the seller (grocery store, e-commerce website, etc.) where the card
/// authorization happened.
diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs
new file mode 100644
index 0000000000..119b66af64
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRespondOptions.cs
@@ -0,0 +1,15 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers.Issuing
+{
+ using Newtonsoft.Json;
+
+ public class AuthorizationRespondOptions : BaseOptions
+ {
+ ///
+ /// Whether to simulate the user confirming that the transaction was legitimate (true) or
+ /// telling Stripe that it was fraudulent (false).
+ ///
+ [JsonProperty("confirmed")]
+ public bool? Confirmed { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs
index cfbf80a276..b7cca46474 100644
--- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs
+++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationService.cs
@@ -106,6 +106,24 @@ public virtual Stripe.Issuing.Authorization Increment(string id, AuthorizationIn
return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/increment", options, requestOptions, cancellationToken);
}
+ ///
+ /// Respond to a fraud challenge on a testmode Issuing authorization, simulating either a
+ /// confirmation of fraud or a correction of legitimacy.
.
+ ///
+ public virtual Stripe.Issuing.Authorization Respond(string id, AuthorizationRespondOptions options = null, RequestOptions requestOptions = null)
+ {
+ return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/fraud_challenges/respond", options, requestOptions);
+ }
+
+ ///
+ /// Respond to a fraud challenge on a testmode Issuing authorization, simulating either a
+ /// confirmation of fraud or a correction of legitimacy.
.
+ ///
+ public virtual Task RespondAsync(string id, AuthorizationRespondOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
+ {
+ return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/authorizations/{WebUtility.UrlEncode(id)}/fraud_challenges/respond", options, requestOptions, cancellationToken);
+ }
+
///
/// Reverse a test-mode Authorization.
.
///
From 8c98cab77074b7f2f9902b0f0e271ebf1e2513cc Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Wed, 13 Nov 2024 18:18:07 +0000
Subject: [PATCH 4/4] Update generated code for v1347
---
OPENAPI_VERSION | 2 +-
src/Stripe.net/Constants/ApiVersion.cs | 2 +-
src/Stripe.net/Entities/Persons/PersonRelationship.cs | 6 ++++++
.../AccountPersons/AccountPersonRelationshipOptions.cs | 7 +++++++
.../Services/Tokens/TokenPersonRelationshipOptions.cs | 6 ++++++
.../WebhookEndpoints/WebhookEndpointCreateOptions.cs | 4 ++--
6 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 071c8a00b1..7ab08411da 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v1341
\ No newline at end of file
+v1347
\ No newline at end of file
diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs
index d49d4d714d..090fbcce39 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 = "2024-10-28.acacia";
+ public const string Current = "2024-11-20.acacia";
}
}
\ No newline at end of file
diff --git a/src/Stripe.net/Entities/Persons/PersonRelationship.cs b/src/Stripe.net/Entities/Persons/PersonRelationship.cs
index 9c88b24f3e..b968af1452 100644
--- a/src/Stripe.net/Entities/Persons/PersonRelationship.cs
+++ b/src/Stripe.net/Entities/Persons/PersonRelationship.cs
@@ -5,6 +5,12 @@ namespace Stripe
public class PersonRelationship : StripeEntity
{
+ ///
+ /// Whether the person is the authorizer of the account's representative.
+ ///
+ [JsonProperty("authorizer")]
+ public bool? Authorizer { get; set; }
+
///
/// Whether the person is a director of the account's legal entity. Directors are typically
/// members of the governing board of the company, or responsible for ensuring the company
diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs
index bb8f67fdd5..16b0d77960 100644
--- a/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs
+++ b/src/Stripe.net/Services/AccountPersons/AccountPersonRelationshipOptions.cs
@@ -5,6 +5,13 @@ namespace Stripe
public class AccountPersonRelationshipOptions : INestedOptions
{
+ ///
+ /// A filter on the list of people returned based on whether these people are authorizers of
+ /// the account's representative.
+ ///
+ [JsonProperty("authorizer")]
+ public bool? Authorizer { get; set; }
+
///
/// Whether the person is a director of the account's legal entity. Directors are typically
/// members of the governing board of the company, or responsible for ensuring the company
diff --git a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs
index 2bd40a1339..bae8e53255 100644
--- a/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs
+++ b/src/Stripe.net/Services/Tokens/TokenPersonRelationshipOptions.cs
@@ -5,6 +5,12 @@ namespace Stripe
public class TokenPersonRelationshipOptions : INestedOptions
{
+ ///
+ /// Whether the person is the authorizer of the account's representative.
+ ///
+ [JsonProperty("authorizer")]
+ public bool? Authorizer { get; set; }
+
///
/// Whether the person is a director of the account's legal entity. Directors are typically
/// members of the governing board of the company, or responsible for ensuring the company
diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
index 7bf45ab99c..8be80d5990 100644
--- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
+++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
@@ -34,8 +34,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata
/// 2019-08-14, 2019-09-09, 2019-10-08, 2019-10-17,
/// 2019-11-05, 2019-12-03, 2020-03-02, 2020-08-27,
/// 2022-08-01, 2022-11-15, 2023-08-16, 2023-10-16,
- /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, or
- /// 2024-10-28.acacia.
+ /// 2024-04-10, 2024-06-20, 2024-09-30.acacia,
+ /// 2024-10-28.acacia, or 2024-11-20.acacia.
///
[JsonProperty("api_version")]
public string ApiVersion { get; set; }