diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION
index 47a9a28f9f..786a2c1dee 100644
--- a/CODEGEN_VERSION
+++ b/CODEGEN_VERSION
@@ -1 +1 @@
-25e6bd225852aa44d783e9fb3b9895af39479331
\ No newline at end of file
+b0095e1dae0437fa60f0933a38f0914e8bba44ff
\ No newline at end of file
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 19b4cc8851..1808fc9412 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v2206
\ No newline at end of file
+v2207
\ No newline at end of file
diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs
index 74491b249b..0a163d4726 100644
--- a/src/Stripe.net/Constants/ApiVersion.cs
+++ b/src/Stripe.net/Constants/ApiVersion.cs
@@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
- public const string Current = "2026-03-04.preview";
+ public const string Current = "2026-03-25.preview";
}
}
\ No newline at end of file
diff --git a/src/Stripe.net/Entities/AccountNotices/AccountNotice.cs b/src/Stripe.net/Entities/AccountNotices/AccountNotice.cs
index dd0cef19fc..ff81dec4dc 100644
--- a/src/Stripe.net/Entities/AccountNotices/AccountNotice.cs
+++ b/src/Stripe.net/Entities/AccountNotices/AccountNotice.cs
@@ -65,8 +65,8 @@ public class AccountNotice : StripeEntity, IHasId, IHasMetadata,
public AccountNoticeLinkedObjects LinkedObjects { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSession.cs b/src/Stripe.net/Entities/AccountSessions/AccountSession.cs
index ac6ce83531..db1409c520 100644
--- a/src/Stripe.net/Entities/AccountSessions/AccountSession.cs
+++ b/src/Stripe.net/Entities/AccountSessions/AccountSession.cs
@@ -66,8 +66,8 @@ public class AccountSession : StripeEntity, IHasObject
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs
index d009eb77e3..1164aa5109 100644
--- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs
+++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs
@@ -62,6 +62,15 @@ public class AccountSessionComponents : StripeEntity
[STJS.JsonPropertyName("financial_account")]
public AccountSessionComponentsFinancialAccount FinancialAccount { get; set; }
+ ///
+ /// Configuration for the financial
+ /// account rewards embedded component.
+ ///
+ [JsonProperty("financial_account_rewards")]
+ [STJS.JsonPropertyName("financial_account_rewards")]
+ public AccountSessionComponentsFinancialAccountRewards FinancialAccountRewards { get; set; }
+
[JsonProperty("financial_account_transactions")]
[STJS.JsonPropertyName("financial_account_transactions")]
public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; }
@@ -78,6 +87,15 @@ public class AccountSessionComponents : StripeEntity
[STJS.JsonPropertyName("issuing_cards_list")]
public AccountSessionComponentsIssuingCardsList IssuingCardsList { get; set; }
+ ///
+ /// Configuration for the Nestingdemo
+ /// embedded component.
+ ///
+ [JsonProperty("nesting_demo")]
+ [STJS.JsonPropertyName("nesting_demo")]
+ public AccountSessionComponentsNestingDemo NestingDemo { get; set; }
+
///
/// Configuration for the network
diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountRewards.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountRewards.cs
new file mode 100644
index 0000000000..5be901e6c8
--- /dev/null
+++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountRewards.cs
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountSessionComponentsFinancialAccountRewards : StripeEntity
+ {
+ ///
+ /// Whether the embedded component is enabled.
+ ///
+ [JsonProperty("enabled")]
+ [STJS.JsonPropertyName("enabled")]
+ public bool Enabled { get; set; }
+
+ [JsonProperty("features")]
+ [STJS.JsonPropertyName("features")]
+ public AccountSessionComponentsFinancialAccountRewardsFeatures Features { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountRewardsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountRewardsFeatures.cs
new file mode 100644
index 0000000000..42379a4126
--- /dev/null
+++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountRewardsFeatures.cs
@@ -0,0 +1,12 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountSessionComponentsFinancialAccountRewardsFeatures : StripeEntity
+ {
+ }
+}
diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNestingDemo.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNestingDemo.cs
new file mode 100644
index 0000000000..03c007a50d
--- /dev/null
+++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNestingDemo.cs
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountSessionComponentsNestingDemo : StripeEntity
+ {
+ ///
+ /// Whether the embedded component is enabled.
+ ///
+ [JsonProperty("enabled")]
+ [STJS.JsonPropertyName("enabled")]
+ public bool Enabled { get; set; }
+
+ [JsonProperty("features")]
+ [STJS.JsonPropertyName("features")]
+ public AccountSessionComponentsNestingDemoFeatures Features { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNestingDemoFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNestingDemoFeatures.cs
new file mode 100644
index 0000000000..1ce2431338
--- /dev/null
+++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNestingDemoFeatures.cs
@@ -0,0 +1,12 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountSessionComponentsNestingDemoFeatures : StripeEntity
+ {
+ }
+}
diff --git a/src/Stripe.net/Entities/AccountSignals/AccountSignals.cs b/src/Stripe.net/Entities/AccountSignals/AccountSignals.cs
index 45ca5360ca..2f9275bda8 100644
--- a/src/Stripe.net/Entities/AccountSignals/AccountSignals.cs
+++ b/src/Stripe.net/Entities/AccountSignals/AccountSignals.cs
@@ -33,6 +33,13 @@ public class AccountSignals : StripeEntity, IHasObject
[STJS.JsonPropertyName("delinquency")]
public AccountSignalsDelinquency Delinquency { get; set; }
+ ///
+ /// The fraud intent signal of the account.
+ ///
+ [JsonProperty("fraud_intent")]
+ [STJS.JsonPropertyName("fraud_intent")]
+ public AccountSignalsFraudIntent FraudIntent { get; set; }
+
///
/// Has the value true if the object exists in live mode or the value false if
/// the object exists in test mode.
diff --git a/src/Stripe.net/Entities/AccountSignals/AccountSignalsDelinquencyIndicator.cs b/src/Stripe.net/Entities/AccountSignals/AccountSignalsDelinquencyIndicator.cs
index 2601b2a446..a1a05b6e27 100644
--- a/src/Stripe.net/Entities/AccountSignals/AccountSignalsDelinquencyIndicator.cs
+++ b/src/Stripe.net/Entities/AccountSignals/AccountSignalsDelinquencyIndicator.cs
@@ -29,8 +29,8 @@ public class AccountSignalsDelinquencyIndicator : StripeEntityaccount_balance, aov, charge_concentration,
/// dispute_window, disputes, duplicates, exposure,
/// firmographic, lifetime_metrics, payment_processing,
- /// payment_volume, payouts, refunds, tenure, or
- /// transfers.
+ /// payment_volume, payouts, refunds, related_accounts,
+ /// tenure, or transfers.
///
[JsonProperty("indicator")]
[STJS.JsonPropertyName("indicator")]
diff --git a/src/Stripe.net/Entities/AccountSignals/AccountSignalsFraudIntent.cs b/src/Stripe.net/Entities/AccountSignals/AccountSignalsFraudIntent.cs
new file mode 100644
index 0000000000..7c31029379
--- /dev/null
+++ b/src/Stripe.net/Entities/AccountSignals/AccountSignalsFraudIntent.cs
@@ -0,0 +1,53 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountSignalsFraudIntent : StripeEntity
+ {
+ ///
+ /// Time at which the signal was evaluated, measured in seconds since the Unix epoch.
+ ///
+ [JsonProperty("evaluated_at")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("evaluated_at")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EvaluatedAt { get; set; }
+
+ ///
+ /// Array of objects representing individual factors that contributed to the calculated
+ /// probability of fraud intent.
+ ///
+ [JsonProperty("indicators")]
+ [STJS.JsonPropertyName("indicators")]
+ public List Indicators { get; set; }
+
+ ///
+ /// The probability of fraud intent. Can be between 0.00 and 100.00.
+ ///
+ [JsonProperty("probability")]
+ [STJS.JsonPropertyName("probability")]
+ public decimal? Probability { get; set; }
+
+ ///
+ /// Categorical assessment of the fraud intent risk based on probability.
+ /// One of: elevated, highest, low, normal, not_assessed,
+ /// or unknown.
+ ///
+ [JsonProperty("risk_level")]
+ [STJS.JsonPropertyName("risk_level")]
+ public string RiskLevel { get; set; }
+
+ ///
+ /// Unique identifier for the fraud intent signal.
+ ///
+ [JsonProperty("signal_id")]
+ [STJS.JsonPropertyName("signal_id")]
+ public string SignalId { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/AccountSignals/AccountSignalsFraudIntentIndicator.cs b/src/Stripe.net/Entities/AccountSignals/AccountSignalsFraudIntentIndicator.cs
new file mode 100644
index 0000000000..ff5740f33d
--- /dev/null
+++ b/src/Stripe.net/Entities/AccountSignals/AccountSignalsFraudIntentIndicator.cs
@@ -0,0 +1,38 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountSignalsFraudIntentIndicator : StripeEntity
+ {
+ ///
+ /// A brief explanation of how this indicator contributed to the delinquency probability.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// The effect this indicator had on the overall risk level.
+ /// One of: decrease, neutral, slight_increase, or
+ /// strong_increase.
+ ///
+ [JsonProperty("impact")]
+ [STJS.JsonPropertyName("impact")]
+ public string Impact { get; set; }
+
+ ///
+ /// The name of the specific indicator used in the risk assessment.
+ /// One of: bank_account, business_information_and_account_activity,
+ /// disputes, failures, geo_location, other,
+ /// other_related_accounts, other_transaction_activity, owner_email, or
+ /// web_presence.
+ ///
+ [JsonProperty("indicator")]
+ [STJS.JsonPropertyName("indicator")]
+ public string Indicator { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Accounts/Account.cs b/src/Stripe.net/Entities/Accounts/Account.cs
index ae9f4cf66e..ed464b347d 100644
--- a/src/Stripe.net/Entities/Accounts/Account.cs
+++ b/src/Stripe.net/Entities/Accounts/Account.cs
@@ -8,6 +8,10 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
///
+ /// For new integrations, we recommend using the Accounts v2 API, in place of
+ /// /v1/accounts and /v1/customers to represent a user.
+ ///
/// This is an object representing a Stripe account. You can retrieve it to see properties
/// on the account like its current requirements or if the account is enabled to make live
/// charges or receive payouts.
@@ -192,6 +196,13 @@ public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject,
[STJS.JsonPropertyName("risk_controls")]
public AccountRiskControls RiskControls { get; set; }
+ ///
+ /// A hash containing information about risk signal collection.
+ ///
+ [JsonProperty("risk_signals")]
+ [STJS.JsonPropertyName("risk_signals")]
+ public RiskSignals RiskSignals { get; set; }
+
///
/// Options for customizing how the account functions within Stripe.
///
diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
index 913eb3dfbf..23c4829a4d 100644
--- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
@@ -638,6 +638,15 @@ public class AccountCapabilities : StripeEntity
[STJS.JsonPropertyName("twint_payments")]
public string TwintPayments { get; set; }
+ ///
+ /// The status of the upi payments capability of the account, or whether the account can
+ /// directly process upi charges.
+ /// One of: active, inactive, or pending.
+ ///
+ [JsonProperty("upi_payments")]
+ [STJS.JsonPropertyName("upi_payments")]
+ public string UpiPayments { get; set; }
+
///
/// The status of the US bank account ACH payments capability of the account, or whether the
/// account can directly process US bank account charges.
diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsPaypayPayments.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsPaypayPayments.cs
index 3b2bb6b6db..2e808ecb73 100644
--- a/src/Stripe.net/Entities/Accounts/AccountSettingsPaypayPayments.cs
+++ b/src/Stripe.net/Entities/Accounts/AccountSettingsPaypayPayments.cs
@@ -17,7 +17,8 @@ public class AccountSettingsPaypayPayments : StripeEntity AdditionalFiles { get; set; }
///
- /// Whether your business sells digital content or not.
+ /// The type of goods your business sells. Use digital_content if you sell digital
+ /// content. Use other for all other types of goods or services.
/// One of: digital_content, or other.
///
[JsonProperty("goods_type")]
diff --git a/src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs b/src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs
index c2bb27cbd4..ab94271fd1 100644
--- a/src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs
+++ b/src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs
@@ -45,8 +45,8 @@ public class ApplePayDomain : StripeEntity, IHasId, IHasObject
public string DomainName { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs b/src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs
index afd0f1bd8e..c3a5deabd5 100644
--- a/src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs
+++ b/src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs
@@ -215,8 +215,8 @@ public Charge Charge
public ApplicationFeeFundingSource FundingSource { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Apps/Secrets/Secret.cs b/src/Stripe.net/Entities/Apps/Secrets/Secret.cs
index 58f6ef9db3..87f8a15429 100644
--- a/src/Stripe.net/Entities/Apps/Secrets/Secret.cs
+++ b/src/Stripe.net/Entities/Apps/Secrets/Secret.cs
@@ -68,8 +68,8 @@ public class Secret : StripeEntity, IHasId, IHasObject
public DateTime? ExpiresAt { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Balances/Balance.cs b/src/Stripe.net/Entities/Balances/Balance.cs
index b740288353..7b79418236 100644
--- a/src/Stripe.net/Entities/Balances/Balance.cs
+++ b/src/Stripe.net/Entities/Balances/Balance.cs
@@ -59,8 +59,8 @@ public class Balance : StripeEntity, IHasObject
public BalanceIssuing Issuing { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -78,6 +78,10 @@ public class Balance : StripeEntity, IHasObject
[STJS.JsonPropertyName("refund_and_dispute_prefunding")]
public BalanceRefundAndDisputePrefunding RefundAndDisputePrefunding { get; set; }
+ [JsonProperty("risk_reserved")]
+ [STJS.JsonPropertyName("risk_reserved")]
+ public BalanceRiskReserved RiskReserved { get; set; }
+
[JsonProperty("transit_balances_total")]
[STJS.JsonPropertyName("transit_balances_total")]
public BalanceTransitBalancesTotal TransitBalancesTotal { get; set; }
diff --git a/src/Stripe.net/Entities/Balances/BalanceRiskReserved.cs b/src/Stripe.net/Entities/Balances/BalanceRiskReserved.cs
new file mode 100644
index 0000000000..267282dbfe
--- /dev/null
+++ b/src/Stripe.net/Entities/Balances/BalanceRiskReserved.cs
@@ -0,0 +1,26 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class BalanceRiskReserved : StripeEntity
+ {
+ ///
+ /// Funds that are available for use.
+ ///
+ [JsonProperty("available")]
+ [STJS.JsonPropertyName("available")]
+ public List Available { get; set; }
+
+ ///
+ /// Funds that are pending.
+ ///
+ [JsonProperty("pending")]
+ [STJS.JsonPropertyName("pending")]
+ public List Pending { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Balances/BalanceRiskReservedAvailable.cs b/src/Stripe.net/Entities/Balances/BalanceRiskReservedAvailable.cs
new file mode 100644
index 0000000000..5ce08d6e7b
--- /dev/null
+++ b/src/Stripe.net/Entities/Balances/BalanceRiskReservedAvailable.cs
@@ -0,0 +1,31 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class BalanceRiskReservedAvailable : StripeEntity
+ {
+ ///
+ /// Balance amount.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long Amount { get; set; }
+
+ ///
+ /// Three-letter ISO currency
+ /// code, in lowercase. Must be a supported
+ /// currency.
+ ///
+ [JsonProperty("currency")]
+ [STJS.JsonPropertyName("currency")]
+ public string Currency { get; set; }
+
+ [JsonProperty("source_types")]
+ [STJS.JsonPropertyName("source_types")]
+ public BalanceRiskReservedAvailableSourceTypes SourceTypes { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Balances/BalanceRiskReservedAvailableSourceTypes.cs b/src/Stripe.net/Entities/Balances/BalanceRiskReservedAvailableSourceTypes.cs
new file mode 100644
index 0000000000..de9270b01c
--- /dev/null
+++ b/src/Stripe.net/Entities/Balances/BalanceRiskReservedAvailableSourceTypes.cs
@@ -0,0 +1,35 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class BalanceRiskReservedAvailableSourceTypes : StripeEntity
+ {
+ ///
+ /// Amount coming from legacy US ACH
+ /// payments.
+ ///
+ [JsonProperty("bank_account")]
+ [STJS.JsonPropertyName("bank_account")]
+ public long BankAccount { get; set; }
+
+ ///
+ /// Amount coming from most payment methods, including cards as well as non-legacy bank debits.
+ ///
+ [JsonProperty("card")]
+ [STJS.JsonPropertyName("card")]
+ public long Card { get; set; }
+
+ ///
+ /// Amount coming from FPX, a Malaysian
+ /// payment method.
+ ///
+ [JsonProperty("fpx")]
+ [STJS.JsonPropertyName("fpx")]
+ public long Fpx { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Balances/BalanceRiskReservedPending.cs b/src/Stripe.net/Entities/Balances/BalanceRiskReservedPending.cs
new file mode 100644
index 0000000000..f626a61278
--- /dev/null
+++ b/src/Stripe.net/Entities/Balances/BalanceRiskReservedPending.cs
@@ -0,0 +1,31 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class BalanceRiskReservedPending : StripeEntity
+ {
+ ///
+ /// Balance amount.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long Amount { get; set; }
+
+ ///
+ /// Three-letter ISO currency
+ /// code, in lowercase. Must be a supported
+ /// currency.
+ ///
+ [JsonProperty("currency")]
+ [STJS.JsonPropertyName("currency")]
+ public string Currency { get; set; }
+
+ [JsonProperty("source_types")]
+ [STJS.JsonPropertyName("source_types")]
+ public BalanceRiskReservedPendingSourceTypes SourceTypes { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Balances/BalanceRiskReservedPendingSourceTypes.cs b/src/Stripe.net/Entities/Balances/BalanceRiskReservedPendingSourceTypes.cs
new file mode 100644
index 0000000000..50c3d8643c
--- /dev/null
+++ b/src/Stripe.net/Entities/Balances/BalanceRiskReservedPendingSourceTypes.cs
@@ -0,0 +1,35 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class BalanceRiskReservedPendingSourceTypes : StripeEntity
+ {
+ ///
+ /// Amount coming from legacy US ACH
+ /// payments.
+ ///
+ [JsonProperty("bank_account")]
+ [STJS.JsonPropertyName("bank_account")]
+ public long BankAccount { get; set; }
+
+ ///
+ /// Amount coming from most payment methods, including cards as well as non-legacy bank debits.
+ ///
+ [JsonProperty("card")]
+ [STJS.JsonPropertyName("card")]
+ public long Card { get; set; }
+
+ ///
+ /// Amount coming from FPX, a Malaysian
+ /// payment method.
+ ///
+ [JsonProperty("fpx")]
+ [STJS.JsonPropertyName("fpx")]
+ public long Fpx { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Billing/AlertTriggereds/AlertTriggered.cs b/src/Stripe.net/Entities/Billing/AlertTriggereds/AlertTriggered.cs
index b97958dcfc..830a1ca955 100644
--- a/src/Stripe.net/Entities/Billing/AlertTriggereds/AlertTriggered.cs
+++ b/src/Stripe.net/Entities/Billing/AlertTriggereds/AlertTriggered.cs
@@ -78,8 +78,8 @@ public class AlertTriggered : StripeEntity, IHasObject
public AlertTriggeredGroupBy GroupBy { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/Alerts/Alert.cs b/src/Stripe.net/Entities/Billing/Alerts/Alert.cs
index 10d6836595..29c9137386 100644
--- a/src/Stripe.net/Entities/Billing/Alerts/Alert.cs
+++ b/src/Stripe.net/Entities/Billing/Alerts/Alert.cs
@@ -44,8 +44,8 @@ public class Alert : StripeEntity, IHasId, IHasObject
public AlertCreditBalanceThreshold CreditBalanceThreshold { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/Alerts/AlertSpendThresholdFilters.cs b/src/Stripe.net/Entities/Billing/Alerts/AlertSpendThresholdFilters.cs
index 94635b4f64..bcf0a6df29 100644
--- a/src/Stripe.net/Entities/Billing/Alerts/AlertSpendThresholdFilters.cs
+++ b/src/Stripe.net/Entities/Billing/Alerts/AlertSpendThresholdFilters.cs
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
- using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
@@ -9,13 +8,6 @@ namespace Stripe.Billing
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class AlertSpendThresholdFilters : StripeEntity
{
- ///
- /// Filter by billable item IDs.
- ///
- [JsonProperty("billable_items")]
- [STJS.JsonPropertyName("billable_items")]
- public List BillableItems { get; set; }
-
///
/// Filter by billing cadence ID.
///
diff --git a/src/Stripe.net/Entities/Billing/Analytics/MeterUsages/MeterUsage.cs b/src/Stripe.net/Entities/Billing/Analytics/MeterUsages/MeterUsage.cs
index 6b4f946af0..0578003e1f 100644
--- a/src/Stripe.net/Entities/Billing/Analytics/MeterUsages/MeterUsage.cs
+++ b/src/Stripe.net/Entities/Billing/Analytics/MeterUsages/MeterUsage.cs
@@ -21,8 +21,8 @@ public class MeterUsage : StripeEntity, IHasObject
public string Object { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs
index 6ab77615ac..d6170c66d2 100644
--- a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs
+++ b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummary.cs
@@ -70,8 +70,8 @@ public Customer Customer
public string CustomerAccount { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs
index 0d620a04c4..e03228c9bf 100644
--- a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs
+++ b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs
@@ -12,12 +12,12 @@ public class CreditBalanceSummaryBalance : StripeEntity
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs
index db9fc764e6..dda2c6eb99 100644
--- a/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs
+++ b/src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs
@@ -120,8 +120,8 @@ public Customer Customer
public DateTime? ExpiresAt { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/MeterEventAdjustments/MeterEventAdjustment.cs b/src/Stripe.net/Entities/Billing/MeterEventAdjustments/MeterEventAdjustment.cs
index b3a17f5508..fe2da7a72e 100644
--- a/src/Stripe.net/Entities/Billing/MeterEventAdjustments/MeterEventAdjustment.cs
+++ b/src/Stripe.net/Entities/Billing/MeterEventAdjustments/MeterEventAdjustment.cs
@@ -35,8 +35,8 @@ public class MeterEventAdjustment : StripeEntity, IHasObje
public string EventName { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/MeterEventSummaries/MeterEventSummary.cs b/src/Stripe.net/Entities/Billing/MeterEventSummaries/MeterEventSummary.cs
index a8767d72e3..5eb5533f5d 100644
--- a/src/Stripe.net/Entities/Billing/MeterEventSummaries/MeterEventSummary.cs
+++ b/src/Stripe.net/Entities/Billing/MeterEventSummaries/MeterEventSummary.cs
@@ -59,8 +59,8 @@ public class MeterEventSummary : StripeEntity, IHasId, IHasOb
public DateTime EndTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
index b332bb3dcb..0bc7ccf7e2 100644
--- a/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
+++ b/src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
@@ -47,8 +47,8 @@ public class MeterEvent : StripeEntity, IHasObject
public string Identifier { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Billing/Meters/Meter.cs b/src/Stripe.net/Entities/Billing/Meters/Meter.cs
index f3fce71d94..4ca676a2c3 100644
--- a/src/Stripe.net/Entities/Billing/Meters/Meter.cs
+++ b/src/Stripe.net/Entities/Billing/Meters/Meter.cs
@@ -80,8 +80,8 @@ public class Meter : StripeEntity, IHasId, IHasObject
public string EventTimeWindow { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs
index f1683b6537..b71f0c3259 100644
--- a/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs
+++ b/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs
@@ -109,8 +109,8 @@ public Application Application
public bool IsDefault { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs b/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs
index 32b87bc8ca..2c7918e78b 100644
--- a/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs
+++ b/src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs
@@ -106,8 +106,8 @@ public Configuration Configuration
public SessionFlow Flow { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Capital/FinancingOffers/FinancingOffer.cs b/src/Stripe.net/Entities/Capital/FinancingOffers/FinancingOffer.cs
index a4a556dba0..9854bc86b6 100644
--- a/src/Stripe.net/Entities/Capital/FinancingOffers/FinancingOffer.cs
+++ b/src/Stripe.net/Entities/Capital/FinancingOffers/FinancingOffer.cs
@@ -79,8 +79,8 @@ public class FinancingOffer : StripeEntity, IHasId, IHasMetadata
public string FinancingType { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Capital/FinancingTransactions/FinancingTransaction.cs b/src/Stripe.net/Entities/Capital/FinancingTransactions/FinancingTransaction.cs
index 03c7cb740d..e9816aea8d 100644
--- a/src/Stripe.net/Entities/Capital/FinancingTransactions/FinancingTransaction.cs
+++ b/src/Stripe.net/Entities/Capital/FinancingTransactions/FinancingTransaction.cs
@@ -67,8 +67,8 @@ public class FinancingTransaction : StripeEntity, IHasId,
public string LegacyBalanceTransactionSource { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/CashBalances/CashBalance.cs b/src/Stripe.net/Entities/CashBalances/CashBalance.cs
index 6cd0f233cf..8cf3a78bab 100644
--- a/src/Stripe.net/Entities/CashBalances/CashBalance.cs
+++ b/src/Stripe.net/Entities/CashBalances/CashBalance.cs
@@ -45,8 +45,8 @@ public class CashBalance : StripeEntity, IHasObject
public string CustomerAccount { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Charges/Charge.cs b/src/Stripe.net/Entities/Charges/Charge.cs
index b69f9ef601..b0bd98f6d4 100644
--- a/src/Stripe.net/Entities/Charges/Charge.cs
+++ b/src/Stripe.net/Entities/Charges/Charge.cs
@@ -347,8 +347,8 @@ public BalanceTransaction FailureBalanceTransaction
public ChargeLevel3 Level3 { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
index 4b2be608f6..d860135213 100644
--- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
+++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
@@ -256,6 +256,10 @@ public class ChargePaymentMethodDetails : StripeEntity
+ /// Whether the PaymentIntent can be reauthorized or not.
+ ///
+ [JsonProperty("reauthorization")]
+ [STJS.JsonPropertyName("reauthorization")]
+ public ChargePaymentMethodDetailsCardReauthorization Reauthorization { get; set; }
+
+ ///
+ /// The time at which the associated PaymentIntent will transition to a terminal state if it
+ /// is not reauthorized.
+ ///
+ [JsonProperty("reauthorize_before")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("reauthorize_before")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? ReauthorizeBefore { get; set; }
+
///
/// Status of a card based on the card issuer.
/// One of: regulated, or unregulated.
@@ -231,22 +248,5 @@ public class ChargePaymentMethodDetailsCard : StripeEntity
- /// Whether the PaymentIntent can be reauthorized or not.
- ///
- [JsonProperty("reauthorization")]
- [STJS.JsonPropertyName("reauthorization")]
- public ChargePaymentMethodDetailsCardReauthorization Reauthorization { get; set; }
-
- ///
- /// The time at which the associated PaymentIntent will transition to a terminal state if it
- /// is not reauthorized.
- ///
- [JsonProperty("reauthorize_before")]
- [JsonConverter(typeof(UnixDateTimeConverter))]
- [STJS.JsonPropertyName("reauthorize_before")]
- [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
- public DateTime? ReauthorizeBefore { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs
index 8519ccc01f..4a60766ff0 100644
--- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs
+++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs
@@ -223,18 +223,6 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity
- /// A collection of fields required to be displayed on receipts. Only required for EMV
- /// transactions.
- ///
- [JsonProperty("receipt")]
- [STJS.JsonPropertyName("receipt")]
- public ChargePaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
-
- [JsonProperty("wallet")]
- [STJS.JsonPropertyName("wallet")]
- public ChargePaymentMethodDetailsCardPresentWallet Wallet { get; set; }
-
///
/// Whether the PaymentIntent can be reauthorized or not.
///
@@ -251,5 +239,17 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity
+ /// A collection of fields required to be displayed on receipts. Only required for EMV
+ /// transactions.
+ ///
+ [JsonProperty("receipt")]
+ [STJS.JsonPropertyName("receipt")]
+ public ChargePaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
+
+ [JsonProperty("wallet")]
+ [STJS.JsonPropertyName("wallet")]
+ public ChargePaymentMethodDetailsCardPresentWallet Wallet { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs
index a2d383b68b..a4b1398b6e 100644
--- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs
+++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs
@@ -17,7 +17,7 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity
/// The blockchain network that the transaction was sent on.
- /// One of: base, ethereum, polygon, or solana.
+ /// One of: base, ethereum, polygon, solana, or tempo.
///
[JsonProperty("network")]
[STJS.JsonPropertyName("network")]
diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsStripeBalance.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsStripeBalance.cs
index 267be58ef5..76e93c9b88 100644
--- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsStripeBalance.cs
+++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsStripeBalance.cs
@@ -14,15 +14,5 @@ public class ChargePaymentMethodDetailsStripeBalance : StripeEntity
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUpi.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUpi.cs
new file mode 100644
index 0000000000..841153420e
--- /dev/null
+++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsUpi.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class ChargePaymentMethodDetailsUpi : StripeEntity
+ {
+ ///
+ /// Customer's unique Virtual Payment Address.
+ ///
+ [JsonProperty("vpa")]
+ [STJS.JsonPropertyName("vpa")]
+ public string Vpa { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs
index f00042da25..ffaca787c6 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs
@@ -313,6 +313,14 @@ public Customer Customer
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+ ///
+ /// The integration identifier for this Checkout Session. Multiple Checkout Sessions can
+ /// have the same integration identifier.
+ ///
+ [JsonProperty("integration_identifier")]
+ [STJS.JsonPropertyName("integration_identifier")]
+ public string IntegrationIdentifier { get; set; }
+
#region Expandable Invoice
///
@@ -363,8 +371,8 @@ public Invoice Invoice
public StripeList LineItems { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -744,8 +752,8 @@ public Subscription Subscription
public SessionTotalDetails TotalDetails { get; set; }
///
- /// The UI mode of the Session. Defaults to hosted.
- /// One of: custom, embedded, or hosted.
+ /// The UI mode of the Session. Defaults to hosted_page.
+ /// One of: elements, embedded_page, form, or hosted_page.
///
[JsonProperty("ui_mode")]
[STJS.JsonPropertyName("ui_mode")]
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTaxLiability.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTaxLiability.cs
index 6dee46564d..fcc88563d1 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs
index 1122cde215..dc95e5602f 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttempt.cs
@@ -31,7 +31,10 @@ public class SessionCurrentAttempt : StripeEntity, IHasId
public string Id { get; set; }
///
- /// Information about the payment method the customer is attempting to pay with.
+ /// Information about the payment method the customer is attempting to pay with. Relevant
+ /// payment method information is provided when available. Some payment details are only
+ /// available after the payment has completed and can't be returned in the manual approval
+ /// flow.
///
[JsonProperty("payment_method_details")]
[STJS.JsonPropertyName("payment_method_details")]
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs
index 47442db0d8..86080cffa8 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetails.cs
@@ -17,10 +17,30 @@ public class SessionCurrentAttemptPaymentMethodDetails : StripeEntity
/// The type of payment method the customer is attempting to pay with. An additional hash is
/// included in the payment method details with a name matching this value. It contains
@@ -29,5 +49,9 @@ public class SessionCurrentAttemptPaymentMethodDetails : StripeEntity
+ {
+ ///
+ /// Uniquely identifies this particular bank account. You can use this attribute to check
+ /// whether two bank accounts are the same.
+ ///
+ [JsonProperty("fingerprint")]
+ [STJS.JsonPropertyName("fingerprint")]
+ public string Fingerprint { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsBacsDebit.cs
new file mode 100644
index 0000000000..6a6bf653d6
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsBacsDebit.cs
@@ -0,0 +1,19 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionCurrentAttemptPaymentMethodDetailsBacsDebit : StripeEntity
+ {
+ ///
+ /// Uniquely identifies this particular bank account. You can use this attribute to check
+ /// whether two bank accounts are the same.
+ ///
+ [JsonProperty("fingerprint")]
+ [STJS.JsonPropertyName("fingerprint")]
+ public string Fingerprint { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsBoleto.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsBoleto.cs
new file mode 100644
index 0000000000..94a56ef222
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsBoleto.cs
@@ -0,0 +1,19 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionCurrentAttemptPaymentMethodDetailsBoleto : StripeEntity
+ {
+ ///
+ /// Uniquely identifies this particular boleto payment method. You can use this attribute to
+ /// check whether two boleto payment methods are the same.
+ ///
+ [JsonProperty("fingerprint")]
+ [STJS.JsonPropertyName("fingerprint")]
+ public string Fingerprint { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsLink.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsLink.cs
new file mode 100644
index 0000000000..cfa2cb9cbf
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsLink.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionCurrentAttemptPaymentMethodDetailsLink : StripeEntity
+ {
+ ///
+ /// Unique, encrypted bank account identifier.
+ ///
+ [JsonProperty("fingerprint")]
+ [STJS.JsonPropertyName("fingerprint")]
+ public string Fingerprint { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsSepaDebit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsSepaDebit.cs
new file mode 100644
index 0000000000..e780179628
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsSepaDebit.cs
@@ -0,0 +1,19 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionCurrentAttemptPaymentMethodDetailsSepaDebit : StripeEntity
+ {
+ ///
+ /// Uniquely identifies this particular bank account. You can use this attribute to check
+ /// whether two bank accounts are the same.
+ ///
+ [JsonProperty("fingerprint")]
+ [STJS.JsonPropertyName("fingerprint")]
+ public string Fingerprint { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsUsBankAccount.cs
new file mode 100644
index 0000000000..be0bbadf52
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsUsBankAccount.cs
@@ -0,0 +1,19 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionCurrentAttemptPaymentMethodDetailsUsBankAccount : StripeEntity
+ {
+ ///
+ /// Uniquely identifies this particular bank account. You can use this attribute to check
+ /// whether two bank accounts are the same.
+ ///
+ [JsonProperty("fingerprint")]
+ [STJS.JsonPropertyName("fingerprint")]
+ public string Fingerprint { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuer.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuer.cs
index 14eea0c75c..e9e6f2cd0b 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuer.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs
index 5e94b162a8..2415e54956 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs
@@ -172,6 +172,10 @@ public class SessionPaymentMethodOptions : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUpi.cs
new file mode 100644
index 0000000000..67e1bfd08e
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUpi.cs
@@ -0,0 +1,40 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionPaymentMethodOptionsUpi : StripeEntity
+ {
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SessionPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; }
+
+ ///
+ /// Indicates that you intend to make future payments with this PaymentIntent's payment
+ /// method.
+ ///
+ /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ /// the Customer after the PaymentIntent is confirmed and the customer completes any
+ /// required actions. If you don't provide a Customer, you can still attach the payment method to a
+ /// Customer after the transaction completes.
+ ///
+ /// If the payment method is card_present and isn't a digital wallet, Stripe creates
+ /// and attaches a generated_card
+ /// payment method representing the card to the Customer instead.
+ ///
+ /// When processing card payments, Stripe uses setup_future_usage to help you comply
+ /// with regional legislation and network rules, such as SCA.
+ /// One of: none, off_session, or on_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+ [STJS.JsonPropertyName("setup_future_usage")]
+ public string SetupFutureUsage { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUpiMandateOptions.cs
new file mode 100644
index 0000000000..fdbe114100
--- /dev/null
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUpiMandateOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SessionPaymentMethodOptionsUpiMandateOptions : StripeEntity
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUsBankAccount.cs
index 237f6699d2..2a4dc58eaa 100644
--- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUsBankAccount.cs
+++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsUsBankAccount.cs
@@ -47,7 +47,7 @@ public class SessionPaymentMethodOptionsUsBankAccount : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, or instant.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/Climate/Suppliers/Supplier.cs b/src/Stripe.net/Entities/Climate/Suppliers/Supplier.cs
index 667aaf4d67..b78b6414d2 100644
--- a/src/Stripe.net/Entities/Climate/Suppliers/Supplier.cs
+++ b/src/Stripe.net/Entities/Climate/Suppliers/Supplier.cs
@@ -57,8 +57,8 @@ public class Supplier : StripeEntity, IHasId, IHasObject
///
/// The scientific pathway used for carbon removal.
- /// One of: biomass_carbon_removal_and_storage, direct_air_capture, or
- /// enhanced_weathering.
+ /// One of: biomass_carbon_removal_and_storage, direct_air_capture,
+ /// enhanced_weathering, or marine_carbon_removal.
///
[JsonProperty("removal_pathway")]
[STJS.JsonPropertyName("removal_pathway")]
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs
index e5dd0c7e09..3ab3bb693e 100644
--- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationToken.cs
@@ -54,8 +54,8 @@ public class ConfirmationToken : StripeEntity, IHasId, IHasOb
public DateTime? ExpiresAt { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs
index 927aba8f51..bf2a68f85a 100644
--- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs
@@ -304,12 +304,16 @@ public Customer Customer
/// paynow, paypal, paypay, payto, pix, promptpay,
/// qris, rechnung, revolut_pay, samsung_pay, satispay,
/// sepa_debit, shopeepay, sofort, stripe_balance, swish,
- /// twint, us_bank_account, wechat_pay, or zip.
+ /// twint, upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public ConfirmationTokenPaymentMethodPreviewUpi Upi { get; set; }
+
[JsonProperty("us_bank_account")]
[STJS.JsonPropertyName("us_bank_account")]
public ConfirmationTokenPaymentMethodPreviewUsBankAccount UsBankAccount { get; set; }
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs
index b83f93c59e..0c122e4f52 100644
--- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs
@@ -223,18 +223,6 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod
[STJS.JsonPropertyName("reader")]
public string Reader { get; set; }
- ///
- /// A collection of fields required to be displayed on receipts. Only required for EMV
- /// transactions.
- ///
- [JsonProperty("receipt")]
- [STJS.JsonPropertyName("receipt")]
- public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
-
- [JsonProperty("wallet")]
- [STJS.JsonPropertyName("wallet")]
- public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
-
///
/// Whether the PaymentIntent can be reauthorized or not.
///
@@ -251,5 +239,17 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod
[STJS.JsonPropertyName("reauthorize_before")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? ReauthorizeBefore { get; set; }
+
+ ///
+ /// A collection of fields required to be displayed on receipts. Only required for EMV
+ /// transactions.
+ ///
+ [JsonProperty("receipt")]
+ [STJS.JsonPropertyName("receipt")]
+ public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
+
+ [JsonProperty("wallet")]
+ [STJS.JsonPropertyName("wallet")]
+ public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewStripeBalance.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewStripeBalance.cs
index 0dfc1f3692..8d9830dbea 100644
--- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewStripeBalance.cs
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewStripeBalance.cs
@@ -14,15 +14,5 @@ public class ConfirmationTokenPaymentMethodPreviewStripeBalance : StripeEntity
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewUpi.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewUpi.cs
new file mode 100644
index 0000000000..094e0da9f5
--- /dev/null
+++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewUpi.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class ConfirmationTokenPaymentMethodPreviewUpi : StripeEntity
+ {
+ ///
+ /// Customer's unique Virtual Payment Address.
+ ///
+ [JsonProperty("vpa")]
+ [STJS.JsonPropertyName("vpa")]
+ public string Vpa { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/ConnectCollectionTransfers/ConnectCollectionTransfer.cs b/src/Stripe.net/Entities/ConnectCollectionTransfers/ConnectCollectionTransfer.cs
index 73815cb011..339e3a8daf 100644
--- a/src/Stripe.net/Entities/ConnectCollectionTransfers/ConnectCollectionTransfer.cs
+++ b/src/Stripe.net/Entities/ConnectCollectionTransfers/ConnectCollectionTransfer.cs
@@ -74,8 +74,8 @@ public Account Destination
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Coupons/Coupon.cs b/src/Stripe.net/Entities/Coupons/Coupon.cs
index 1e1a636569..87ff2ea49a 100644
--- a/src/Stripe.net/Entities/Coupons/Coupon.cs
+++ b/src/Stripe.net/Entities/Coupons/Coupon.cs
@@ -14,7 +14,7 @@ namespace Stripe
/// href="https://api.stripe.com#invoices">invoices, checkout sessions, quotes, and more. Coupons do not work with
- /// conventional one-off charges or charges or payment intents.
///
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
@@ -99,8 +99,8 @@ public class Coupon : StripeEntity, IHasId, IHasMetadata, IHasObject
public long? DurationInMonths { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItem.cs b/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItem.cs
index f1dc50e3f6..c17ad58c5c 100644
--- a/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItem.cs
+++ b/src/Stripe.net/Entities/CreditNoteLineItems/CreditNoteLineItem.cs
@@ -10,7 +10,7 @@ namespace Stripe
/// The credit note line item object.
///
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
- public class CreditNoteLineItem : StripeEntity, IHasId, IHasObject
+ public class CreditNoteLineItem : StripeEntity, IHasId, IHasMetadata, IHasObject
{
///
/// Unique identifier for the object.
@@ -64,13 +64,22 @@ public class CreditNoteLineItem : StripeEntity, IHasId, IHas
public string InvoiceLineItem { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
public bool Livemode { get; set; }
+ ///
+ /// Set of key-value pairs that you can
+ /// attach to an object. This can be useful for storing additional information about the
+ /// object in a structured format.
+ ///
+ [JsonProperty("metadata")]
+ [STJS.JsonPropertyName("metadata")]
+ public Dictionary Metadata { get; set; }
+
///
/// The pretax credit amounts (ex: discount, credit grants, etc) for this line item.
///
diff --git a/src/Stripe.net/Entities/CreditNotes/CreditNote.cs b/src/Stripe.net/Entities/CreditNotes/CreditNote.cs
index 7b8effde6d..ad5fd2c283 100644
--- a/src/Stripe.net/Entities/CreditNotes/CreditNote.cs
+++ b/src/Stripe.net/Entities/CreditNotes/CreditNote.cs
@@ -209,8 +209,8 @@ public Invoice Invoice
public StripeList Lines { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs b/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs
index 1debb99411..53e96ca515 100644
--- a/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs
+++ b/src/Stripe.net/Entities/CustomerBalanceTransactions/CustomerBalanceTransaction.cs
@@ -226,8 +226,8 @@ public Invoice Invoice
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs
index a89456ff96..571649ee01 100644
--- a/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs
+++ b/src/Stripe.net/Entities/CustomerCashBalanceTransactions/CustomerCashBalanceTransaction.cs
@@ -113,8 +113,8 @@ public Customer Customer
public CustomerCashBalanceTransactionFunded Funded { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs
index 49ff91f938..85ba9c0bde 100644
--- a/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs
+++ b/src/Stripe.net/Entities/CustomerSessions/CustomerSession.cs
@@ -108,8 +108,8 @@ public Customer Customer
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Customers/Customer.cs b/src/Stripe.net/Entities/Customers/Customer.cs
index 6fcc37a2fb..a31235815f 100644
--- a/src/Stripe.net/Entities/Customers/Customer.cs
+++ b/src/Stripe.net/Entities/Customers/Customer.cs
@@ -215,8 +215,8 @@ public IPaymentSource DefaultSource
public CustomerInvoiceSettings InvoiceSettings { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetails.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetails.cs
index 662411beb9..4deedc3018 100644
--- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetails.cs
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetails.cs
@@ -45,10 +45,17 @@ public class RequestedSessionFulfillmentDetails : StripeEntity
- /// The fulfillment option.
+ /// The selected fulfillment option.
///
[JsonProperty("selected_fulfillment_option")]
[STJS.JsonPropertyName("selected_fulfillment_option")]
public RequestedSessionFulfillmentDetailsSelectedFulfillmentOption SelectedFulfillmentOption { get; set; }
+
+ ///
+ /// Per-item fulfillment option overrides.
+ ///
+ [JsonProperty("selected_fulfillment_option_overrides")]
+ [STJS.JsonPropertyName("selected_fulfillment_option_overrides")]
+ public List SelectedFulfillmentOptionOverrides { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs
index ec832fd1a6..512cd5abd7 100644
--- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs
@@ -8,6 +8,13 @@ namespace Stripe.DelegatedCheckout
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class RequestedSessionFulfillmentDetailsFulfillmentOption : StripeEntity
{
+ ///
+ /// The digital fulfillment option.
+ ///
+ [JsonProperty("digital")]
+ [STJS.JsonPropertyName("digital")]
+ public RequestedSessionFulfillmentDetailsFulfillmentOptionDigital Digital { get; set; }
+
///
/// The shipping option.
///
@@ -21,12 +28,5 @@ public class RequestedSessionFulfillmentDetailsFulfillmentOption : StripeEntity<
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
-
- ///
- /// The digital fulfillment option.
- ///
- [JsonProperty("digital")]
- [STJS.JsonPropertyName("digital")]
- public RequestedSessionFulfillmentDetailsFulfillmentOptionDigital Digital { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs
index 7a366c917b..cfba82acc6 100644
--- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
@@ -35,5 +36,12 @@ public class RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOp
[JsonProperty("key")]
[STJS.JsonPropertyName("key")]
public string Key { get; set; }
+
+ ///
+ /// The line item keys associated with this digital fulfillment option.
+ ///
+ [JsonProperty("line_item_keys")]
+ [STJS.JsonPropertyName("line_item_keys")]
+ public List LineItemKeys { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionShippingShippingOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionShippingShippingOption.cs
index ba446ff52a..656f96819a 100644
--- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionShippingShippingOption.cs
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionShippingShippingOption.cs
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.DelegatedCheckout
{
+ using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
@@ -43,6 +44,13 @@ public class RequestedSessionFulfillmentDetailsFulfillmentOptionShippingShipping
[STJS.JsonPropertyName("latest_delivery_time")]
public long? LatestDeliveryTime { get; set; }
+ ///
+ /// The line item keys associated with this shipping option.
+ ///
+ [JsonProperty("line_item_keys")]
+ [STJS.JsonPropertyName("line_item_keys")]
+ public List LineItemKeys { get; set; }
+
///
/// The shipping amount of the shipping option.
///
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs
index 61cf4847df..91d211f0d2 100644
--- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs
@@ -8,6 +8,13 @@ namespace Stripe.DelegatedCheckout
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOption : StripeEntity
{
+ ///
+ /// The digital fulfillment option.
+ ///
+ [JsonProperty("digital")]
+ [STJS.JsonPropertyName("digital")]
+ public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital Digital { get; set; }
+
///
/// The shipping option.
///
@@ -21,12 +28,5 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOption : Strip
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
-
- ///
- /// The digital fulfillment option.
- ///
- [JsonProperty("digital")]
- [STJS.JsonPropertyName("digital")]
- public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital Digital { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs
new file mode 100644
index 0000000000..a43f3feb3a
--- /dev/null
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride.cs
@@ -0,0 +1,40 @@
+// File generated from our OpenAPI spec
+namespace Stripe.DelegatedCheckout
+{
+ using System.Collections.Generic;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverride : StripeEntity
+ {
+ ///
+ /// The digital fulfillment option.
+ ///
+ [JsonProperty("digital")]
+ [STJS.JsonPropertyName("digital")]
+ public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigital Digital { get; set; }
+
+ ///
+ /// The line items this fulfillment option applies to.
+ ///
+ [JsonProperty("line_item_keys")]
+ [STJS.JsonPropertyName("line_item_keys")]
+ public List LineItemKeys { get; set; }
+
+ ///
+ /// The shipping option.
+ ///
+ [JsonProperty("shipping")]
+ [STJS.JsonPropertyName("shipping")]
+ public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShipping Shipping { get; set; }
+
+ ///
+ /// The type of the selected fulfillment option.
+ ///
+ [JsonProperty("type")]
+ [STJS.JsonPropertyName("type")]
+ public string Type { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigital.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigital.cs
new file mode 100644
index 0000000000..6c2ba030bd
--- /dev/null
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigital.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe.DelegatedCheckout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideDigital : StripeEntity
+ {
+ ///
+ /// The digital option.
+ ///
+ [JsonProperty("digital_option")]
+ [STJS.JsonPropertyName("digital_option")]
+ public string DigitalOption { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShipping.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShipping.cs
new file mode 100644
index 0000000000..61673b1ba7
--- /dev/null
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShipping.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe.DelegatedCheckout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOverrideShipping : StripeEntity
+ {
+ ///
+ /// The shipping option.
+ ///
+ [JsonProperty("shipping_option")]
+ [STJS.JsonPropertyName("shipping_option")]
+ public string ShippingOption { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs
index 4d4b7a3197..5d85e4eee5 100644
--- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs
+++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs
@@ -22,6 +22,13 @@ public class RequestedSessionLineItemDetail : StripeEntity
+ /// The fulfillment type of the line item.
+ ///
+ [JsonProperty("fulfillment_type")]
+ [STJS.JsonPropertyName("fulfillment_type")]
+ public string FulfillmentType { get; set; }
+
///
/// The key of the line item.
///
@@ -53,12 +60,5 @@ public class RequestedSessionLineItemDetail : StripeEntity
- /// The fulfillment type of the line item.
- ///
- [JsonProperty("fulfillment_type")]
- [STJS.JsonPropertyName("fulfillment_type")]
- public string FulfillmentType { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Disputes/Dispute.cs b/src/Stripe.net/Entities/Disputes/Dispute.cs
index 3a82dde068..bbc1f6802d 100644
--- a/src/Stripe.net/Entities/Disputes/Dispute.cs
+++ b/src/Stripe.net/Entities/Disputes/Dispute.cs
@@ -144,8 +144,8 @@ public Charge Charge
public bool IsChargeRefundable { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Entitlements/ActiveEntitlementSummaries/ActiveEntitlementSummary.cs b/src/Stripe.net/Entities/Entitlements/ActiveEntitlementSummaries/ActiveEntitlementSummary.cs
index ab086e406b..3b924b1a8f 100644
--- a/src/Stripe.net/Entities/Entitlements/ActiveEntitlementSummaries/ActiveEntitlementSummary.cs
+++ b/src/Stripe.net/Entities/Entitlements/ActiveEntitlementSummaries/ActiveEntitlementSummary.cs
@@ -33,8 +33,8 @@ public class ActiveEntitlementSummary : StripeEntity,
public StripeList Entitlements { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs b/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs
index 145114038f..a4de7cf385 100644
--- a/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs
+++ b/src/Stripe.net/Entities/Entitlements/ActiveEntitlements/ActiveEntitlement.cs
@@ -63,8 +63,8 @@ public Feature Feature
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Entitlements/Features/Feature.cs b/src/Stripe.net/Entities/Entitlements/Features/Feature.cs
index c8b3574b6d..82a8ac94e1 100644
--- a/src/Stripe.net/Entities/Entitlements/Features/Feature.cs
+++ b/src/Stripe.net/Entities/Entitlements/Features/Feature.cs
@@ -37,8 +37,8 @@ public class Feature : StripeEntity, IHasId, IHasMetadata, IHasObject
public bool Active { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/EphemeralKeys/EphemeralKey.cs b/src/Stripe.net/Entities/EphemeralKeys/EphemeralKey.cs
index 782e2730d5..a1475c7777 100644
--- a/src/Stripe.net/Entities/EphemeralKeys/EphemeralKey.cs
+++ b/src/Stripe.net/Entities/EphemeralKeys/EphemeralKey.cs
@@ -50,8 +50,8 @@ public class EphemeralKey : StripeEntity, IHasId, IHasObject
public DateTime Expires { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs
index 98fa3e76dd..5b8b793bdb 100644
--- a/src/Stripe.net/Entities/Events/Event.cs
+++ b/src/Stripe.net/Entities/Events/Event.cs
@@ -84,8 +84,8 @@ public class Event : StripeEntity, IHasId, IHasObject
public EventData Data { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FileLinks/FileLink.cs b/src/Stripe.net/Entities/FileLinks/FileLink.cs
index 14f19d4718..18044f5aec 100644
--- a/src/Stripe.net/Entities/FileLinks/FileLink.cs
+++ b/src/Stripe.net/Entities/FileLinks/FileLink.cs
@@ -90,8 +90,8 @@ public File File
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs b/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs
index 21775b9057..b7c94f6d41 100644
--- a/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs
+++ b/src/Stripe.net/Entities/FinancialConnections/Accounts/Account.cs
@@ -147,8 +147,8 @@ public Institution Institution
public string Last4 { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs b/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs
index 0a14cfc4d1..17eb273bd7 100644
--- a/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs
+++ b/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs
@@ -78,8 +78,8 @@ public Institution Institution
public string InstitutionName { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FinancialConnections/Institutions/Institution.cs b/src/Stripe.net/Entities/FinancialConnections/Institutions/Institution.cs
index 4b3e36a348..9ca43f693d 100644
--- a/src/Stripe.net/Entities/FinancialConnections/Institutions/Institution.cs
+++ b/src/Stripe.net/Entities/FinancialConnections/Institutions/Institution.cs
@@ -39,8 +39,8 @@ public class Institution : StripeEntity, IHasId, IHasObject
public InstitutionFeatures Features { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs
index f49b8152e0..9968e5e1a4 100644
--- a/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs
+++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs
@@ -64,8 +64,8 @@ public class Session : StripeEntity, IHasId, IHasObject
public SessionLimits Limits { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FinancialConnections/Transactions/Transaction.cs b/src/Stripe.net/Entities/FinancialConnections/Transactions/Transaction.cs
index 71b08fb488..1ab15dd2c4 100644
--- a/src/Stripe.net/Entities/FinancialConnections/Transactions/Transaction.cs
+++ b/src/Stripe.net/Entities/FinancialConnections/Transactions/Transaction.cs
@@ -58,8 +58,8 @@ public class Transaction : StripeEntity, IHasId, IHasObject
public string Description { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Forwarding/Requests/Request.cs b/src/Stripe.net/Entities/Forwarding/Requests/Request.cs
index 823e109d47..7b98e4728b 100644
--- a/src/Stripe.net/Entities/Forwarding/Requests/Request.cs
+++ b/src/Stripe.net/Entities/Forwarding/Requests/Request.cs
@@ -55,8 +55,8 @@ public class Request : StripeEntity, IHasId, IHasMetadata, IHasObject
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs
index 5184f291d9..0e5dd0ae3a 100644
--- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs
+++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructions.cs
@@ -45,8 +45,8 @@ public class FundingInstructions : StripeEntity, IHasObject
public string FundingType { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs
index ebc66a16cf..48fa915dcb 100644
--- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs
+++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs
@@ -80,8 +80,8 @@ public class VerificationReport : StripeEntity, IHasId, IHas
public VerificationReportIdNumber IdNumber { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs
index 8f0f46fa7b..5898765d74 100644
--- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs
+++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs
@@ -119,8 +119,8 @@ public VerificationReport LastVerificationReport
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs
index 1d198c7a24..9fcdc2d5fa 100644
--- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs
+++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs
@@ -215,8 +215,8 @@ public Invoice Invoice
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -305,13 +305,26 @@ public List Margins
public InvoiceItemProrationDetails ProrationDetails { get; set; }
///
- /// Quantity of units for the invoice item. If the invoice item is a proration, the quantity
- /// of the subscription that the proration was computed for.
+ /// Quantity of units for the invoice item in integer format, with any decimal precision
+ /// truncated. For the item's full-precision decimal quantity, use quantity_decimal.
+ /// This field will be deprecated in favor of quantity_decimal in a future version.
+ /// If the invoice item is a proration, the quantity of the subscription that the proration
+ /// was computed for.
///
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long Quantity { get; set; }
+ ///
+ /// Non-negative decimal with at most 12 decimal places. The quantity of units for the
+ /// invoice item.
+ ///
+ [JsonProperty("quantity_decimal")]
+ [JsonConverter(typeof(DecimalStringConverter))]
+ [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
+ [STJS.JsonPropertyName("quantity_decimal")]
+ public decimal QuantityDecimal { get; set; }
+
///
/// The tax rates which apply to the invoice item. When set, the default_tax_rates on
/// the invoice do not apply to this invoice item.
diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs
index 7d7c103d97..188ef2e361 100644
--- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs
+++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParent.cs
@@ -8,6 +8,13 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class InvoiceItemParent : StripeEntity
{
+ ///
+ /// Details about the pricing plan subscription that generated this invoice item.
+ ///
+ [JsonProperty("pricing_plan_subscription_details")]
+ [STJS.JsonPropertyName("pricing_plan_subscription_details")]
+ public InvoiceItemParentPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; }
+
///
/// Details about the rate card subscription that generated this invoice item.
///
@@ -37,12 +44,5 @@ public class InvoiceItemParent : StripeEntity
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
-
- ///
- /// Details about the pricing plan subscription that generated this invoice item.
- ///
- [JsonProperty("pricing_plan_subscription_details")]
- [STJS.JsonPropertyName("pricing_plan_subscription_details")]
- public InvoiceItemParentPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs
index d1ecb9b540..61fd562257 100644
--- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs
+++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItem.cs
@@ -113,8 +113,8 @@ public List Discounts
public string Invoice { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -203,12 +203,26 @@ public List Margins
public InvoiceLineItemPricing Pricing { get; set; }
///
- /// The quantity of the subscription, if the line item is a subscription or a proration.
+ /// Quantity of units for the invoice line item in integer format, with any decimal
+ /// precision truncated. For the line item's full-precision decimal quantity, use
+ /// quantity_decimal. This field will be deprecated in favor of
+ /// quantity_decimal in a future version. If the line item is a proration or
+ /// subscription, the quantity of the subscription that the proration was computed for.
///
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long? Quantity { get; set; }
+ ///
+ /// Non-negative decimal with at most 12 decimal places. The quantity of units for the line
+ /// item.
+ ///
+ [JsonProperty("quantity_decimal")]
+ [JsonConverter(typeof(DecimalStringConverter))]
+ [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
+ [STJS.JsonPropertyName("quantity_decimal")]
+ public decimal? QuantityDecimal { get; set; }
+
#region Expandable Subscription
[JsonIgnore]
diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs
index 3a6328a3b6..8c5291a5dc 100644
--- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs
+++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParent.cs
@@ -15,6 +15,13 @@ public class InvoiceLineItemParent : StripeEntity
[STJS.JsonPropertyName("invoice_item_details")]
public InvoiceLineItemParentInvoiceItemDetails InvoiceItemDetails { get; set; }
+ ///
+ /// Details about the pricing plan subscription that generated this line item.
+ ///
+ [JsonProperty("pricing_plan_subscription_details")]
+ [STJS.JsonPropertyName("pricing_plan_subscription_details")]
+ public InvoiceLineItemParentPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; }
+
///
/// Details about the rate card subscription that generated this line item.
///
@@ -45,12 +52,5 @@ public class InvoiceLineItemParent : StripeEntity
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
-
- ///
- /// Details about the pricing plan subscription that generated this line item.
- ///
- [JsonProperty("pricing_plan_subscription_details")]
- [STJS.JsonPropertyName("pricing_plan_subscription_details")]
- public InvoiceLineItemParentPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs b/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs
index 2eedfd4578..2c46d52fd7 100644
--- a/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs
+++ b/src/Stripe.net/Entities/InvoicePayments/InvoicePayment.cs
@@ -113,8 +113,8 @@ public Invoice Invoice
public bool IsDefault { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs b/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs
index 9ee99165af..473c369e49 100644
--- a/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs
+++ b/src/Stripe.net/Entities/InvoiceRenderingTemplates/InvoiceRenderingTemplate.cs
@@ -39,8 +39,8 @@ public class InvoiceRenderingTemplate : StripeEntity,
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs
index ab504e4ecd..e1c5b11b57 100644
--- a/src/Stripe.net/Entities/Invoices/Invoice.cs
+++ b/src/Stripe.net/Entities/Invoices/Invoice.cs
@@ -708,8 +708,8 @@ public Invoice LatestRevision
public StripeList Lines { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTaxLiability.cs b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTaxLiability.cs
index fb1719ee10..03bbdf8de1 100644
--- a/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoiceAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Invoices/InvoiceIssuer.cs b/src/Stripe.net/Entities/Invoices/InvoiceIssuer.cs
index d08f18255f..91a577037d 100644
--- a/src/Stripe.net/Entities/Invoices/InvoiceIssuer.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoiceIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetailsPauseCollection.cs b/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetailsPauseCollection.cs
index 244d9acd14..6e9a7705ec 100644
--- a/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetailsPauseCollection.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoiceParentSubscriptionDetailsPauseCollection.cs
@@ -10,8 +10,7 @@ namespace Stripe
public class InvoiceParentSubscriptionDetailsPauseCollection : StripeEntity
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs
index e3fdc61005..f455b2a6e9 100644
--- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs
@@ -13,7 +13,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsAcssDebit : StripeEntity<
public InvoicePaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions MandateOptions { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs
index 3dbd57a04e..5303236d90 100644
--- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPix.cs
@@ -15,5 +15,13 @@ public class InvoicePaymentSettingsPaymentMethodOptionsPix : StripeEntity
+ /// The number of seconds (between 10 and 1209600) after which Pix payment will expire.
+ /// Defaults to 86400 seconds.
+ ///
+ [JsonProperty("expires_after_seconds")]
+ [STJS.JsonPropertyName("expires_after_seconds")]
+ public long ExpiresAfterSeconds { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs
index 9d71b759c9..704b6c08aa 100644
--- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs
+++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs
@@ -13,7 +13,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount : StripeEnt
public InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections FinancialConnections { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs
index 7a5572ea57..9f185a921b 100644
--- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs
+++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs
@@ -163,8 +163,8 @@ public Cardholder Cardholder
public AuthorizationFuel Fuel { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs
index 142824ef83..323f00cc5a 100644
--- a/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs
+++ b/src/Stripe.net/Entities/Issuing/Cardholders/Cardholder.cs
@@ -67,8 +67,8 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb
public CardholderIndividual Individual { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -102,10 +102,12 @@ public class Cardholder : StripeEntity, IHasId, IHasMetadata, IHasOb
///
/// The cardholder’s preferred locales (languages), ordered by preference. Locales can be
- /// de, en, es, fr, or it. This changes the language of
- /// the 3D Secure flow and one-time
+ /// da, de, en, es, fr, it, pl, or
+ /// sv. This changes the language of the 3D Secure flow and one-time
/// password messages sent to the cardholder.
- /// One of: de, en, es, fr, or it.
+ /// One of: da, de, en, es, fr, it, pl, or
+ /// sv.
///
[JsonProperty("preferred_locales")]
[STJS.JsonPropertyName("preferred_locales")]
diff --git a/src/Stripe.net/Entities/Issuing/Cards/Card.cs b/src/Stripe.net/Entities/Issuing/Cards/Card.cs
index cea12f7b6f..4323924133 100644
--- a/src/Stripe.net/Entities/Issuing/Cards/Card.cs
+++ b/src/Stripe.net/Entities/Issuing/Cards/Card.cs
@@ -122,8 +122,17 @@ public class Card : StripeEntity, IHasId, IHasMetadata, IHasObject
public CardLatestFraudWarning LatestFraudWarning { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// Rules that control the lifecycle of this card, such as automatic cancellation. Refer to
+ /// our documentation
+ /// for more details.
+ ///
+ [JsonProperty("lifecycle_controls")]
+ [STJS.JsonPropertyName("lifecycle_controls")]
+ public CardLifecycleControls LifecycleControls { get; set; }
+
+ ///
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/Cards/CardLifecycleControls.cs b/src/Stripe.net/Entities/Issuing/Cards/CardLifecycleControls.cs
new file mode 100644
index 0000000000..6ddc191ab2
--- /dev/null
+++ b/src/Stripe.net/Entities/Issuing/Cards/CardLifecycleControls.cs
@@ -0,0 +1,15 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Issuing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class CardLifecycleControls : StripeEntity
+ {
+ [JsonProperty("cancel_after")]
+ [STJS.JsonPropertyName("cancel_after")]
+ public CardLifecycleControlsCancelAfter CancelAfter { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Issuing/Cards/CardLifecycleControlsCancelAfter.cs b/src/Stripe.net/Entities/Issuing/Cards/CardLifecycleControlsCancelAfter.cs
new file mode 100644
index 0000000000..463266769b
--- /dev/null
+++ b/src/Stripe.net/Entities/Issuing/Cards/CardLifecycleControlsCancelAfter.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Issuing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class CardLifecycleControlsCancelAfter : StripeEntity
+ {
+ ///
+ /// The card is automatically cancelled when it makes this number of non-zero payment
+ /// authorizations and transactions. The count includes penny authorizations, but doesn't
+ /// include non-payment actions, such as authorization advice.
+ ///
+ [JsonProperty("payment_count")]
+ [STJS.JsonPropertyName("payment_count")]
+ public long PaymentCount { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs b/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs
index 847e889e13..f00c69d037 100644
--- a/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs
+++ b/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs
@@ -89,8 +89,8 @@ public class CreditUnderwritingRecord : StripeEntity,
public DateTime? DecisionDeadline { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/DisputeSettlementDetails/DisputeSettlementDetail.cs b/src/Stripe.net/Entities/Issuing/DisputeSettlementDetails/DisputeSettlementDetail.cs
index 5a847ae17d..aff9ec27e0 100644
--- a/src/Stripe.net/Entities/Issuing/DisputeSettlementDetails/DisputeSettlementDetail.cs
+++ b/src/Stripe.net/Entities/Issuing/DisputeSettlementDetails/DisputeSettlementDetail.cs
@@ -79,8 +79,8 @@ public class DisputeSettlementDetail : StripeEntity, IH
public string EventType { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs b/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs
index fe0b789b12..ec9789db89 100644
--- a/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs
+++ b/src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs
@@ -70,8 +70,8 @@ public class Dispute : StripeEntity, IHasId, IHasMetadata, IHasObject,
public DisputeEvidence Evidence { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/FraudLiabilityDebits/FraudLiabilityDebit.cs b/src/Stripe.net/Entities/Issuing/FraudLiabilityDebits/FraudLiabilityDebit.cs
index a3fe628beb..572d8a034d 100644
--- a/src/Stripe.net/Entities/Issuing/FraudLiabilityDebits/FraudLiabilityDebit.cs
+++ b/src/Stripe.net/Entities/Issuing/FraudLiabilityDebits/FraudLiabilityDebit.cs
@@ -99,8 +99,8 @@ public BalanceTransaction BalanceTransaction
public string Dispute { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs b/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs
index 1bd757b675..70362424d1 100644
--- a/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs
+++ b/src/Stripe.net/Entities/Issuing/PersonalizationDesigns/PersonalizationDesign.cs
@@ -82,8 +82,8 @@ public File CardLogo
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/PhysicalBundles/PhysicalBundle.cs b/src/Stripe.net/Entities/Issuing/PhysicalBundles/PhysicalBundle.cs
index 459860afd9..226d824c84 100644
--- a/src/Stripe.net/Entities/Issuing/PhysicalBundles/PhysicalBundle.cs
+++ b/src/Stripe.net/Entities/Issuing/PhysicalBundles/PhysicalBundle.cs
@@ -31,8 +31,8 @@ public class PhysicalBundle : StripeEntity, IHasId, IHasObject
public PhysicalBundleFeatures Features { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/Settlements/Settlement.cs b/src/Stripe.net/Entities/Issuing/Settlements/Settlement.cs
index 7b7b61cf75..3ca4be7d3b 100644
--- a/src/Stripe.net/Entities/Issuing/Settlements/Settlement.cs
+++ b/src/Stripe.net/Entities/Issuing/Settlements/Settlement.cs
@@ -71,8 +71,8 @@ public class Settlement : StripeEntity, IHasId, IHasMetadata, IHasOb
public long InterchangeFeesAmount { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/Tokens/Token.cs b/src/Stripe.net/Entities/Issuing/Tokens/Token.cs
index f89d6db7ee..2ea64226fe 100644
--- a/src/Stripe.net/Entities/Issuing/Tokens/Token.cs
+++ b/src/Stripe.net/Entities/Issuing/Tokens/Token.cs
@@ -89,8 +89,8 @@ public Card Card
public string Last4 { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs b/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs
index 1018ab5383..486cc5dd09 100644
--- a/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs
+++ b/src/Stripe.net/Entities/Issuing/Transactions/Transaction.cs
@@ -246,8 +246,8 @@ public Dispute Dispute
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Mandates/Mandate.cs b/src/Stripe.net/Entities/Mandates/Mandate.cs
index 26fba65f70..342f6f3b99 100644
--- a/src/Stripe.net/Entities/Mandates/Mandate.cs
+++ b/src/Stripe.net/Entities/Mandates/Mandate.cs
@@ -31,8 +31,8 @@ public class Mandate : StripeEntity, IHasId, IHasObject
public MandateCustomerAcceptance CustomerAcceptance { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs
index ae7c8ad54b..69b6b9f27a 100644
--- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs
+++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs
@@ -85,6 +85,10 @@ public class MandatePaymentMethodDetails : StripeEntity
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Margins/Margin.cs b/src/Stripe.net/Entities/Margins/Margin.cs
index 6c063d1743..a07451cba4 100644
--- a/src/Stripe.net/Entities/Margins/Margin.cs
+++ b/src/Stripe.net/Entities/Margins/Margin.cs
@@ -47,8 +47,8 @@ public class Margin : StripeEntity, IHasId, IHasMetadata, IHasObject
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Orders/Order.cs b/src/Stripe.net/Entities/Orders/Order.cs
index 542e0ad30a..d9ba038e03 100644
--- a/src/Stripe.net/Entities/Orders/Order.cs
+++ b/src/Stripe.net/Entities/Orders/Order.cs
@@ -228,8 +228,8 @@ public List Discounts
public StripeList LineItems { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebit.cs b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebit.cs
index 3af69fe67b..1a3d549d72 100644
--- a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebit.cs
+++ b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebit.cs
@@ -47,7 +47,7 @@ public class OrderPaymentSettingsPaymentMethodOptionsAcssDebit : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs
index 71970e9fb0..2ad19deb0f 100644
--- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecord.cs
@@ -118,8 +118,8 @@ public class PaymentAttemptRecord : StripeEntity, IHasId,
public string Description { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs
index f2d58abdc0..735564de52 100644
--- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs
@@ -286,6 +286,10 @@ public class PaymentAttemptRecordPaymentMethodDetails : StripeEntity
[JsonProperty("exp_month")]
[STJS.JsonPropertyName("exp_month")]
- public long ExpMonth { get; set; }
+ public long? ExpMonth { get; set; }
///
/// Four-digit number representing the card's expiration year.
///
[JsonProperty("exp_year")]
[STJS.JsonPropertyName("exp_year")]
- public long ExpYear { get; set; }
+ public long? ExpYear { get; set; }
///
/// Uniquely identifies this particular card number. You can use this attribute to check
@@ -129,7 +129,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity
[JsonProperty("moto")]
[STJS.JsonPropertyName("moto")]
- public bool Moto { get; set; }
+ public bool? Moto { get; set; }
///
/// Identifies which network this charge was processed on. Can be amex,
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs
index ce242bf2f5..9dd8a657ee 100644
--- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs
@@ -223,18 +223,6 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity<
[STJS.JsonPropertyName("reader")]
public string Reader { get; set; }
- ///
- /// A collection of fields required to be displayed on receipts. Only required for EMV
- /// transactions.
- ///
- [JsonProperty("receipt")]
- [STJS.JsonPropertyName("receipt")]
- public PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
-
- [JsonProperty("wallet")]
- [STJS.JsonPropertyName("wallet")]
- public PaymentAttemptRecordPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
-
///
/// Whether the PaymentIntent can be reauthorized or not.
///
@@ -251,5 +239,17 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity<
[STJS.JsonPropertyName("reauthorize_before")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? ReauthorizeBefore { get; set; }
+
+ ///
+ /// A collection of fields required to be displayed on receipts. Only required for EMV
+ /// transactions.
+ ///
+ [JsonProperty("receipt")]
+ [STJS.JsonPropertyName("receipt")]
+ public PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
+
+ [JsonProperty("wallet")]
+ [STJS.JsonPropertyName("wallet")]
+ public PaymentAttemptRecordPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs
index c4d224680d..b0f7915443 100644
--- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs
@@ -17,6 +17,38 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn
[STJS.JsonPropertyName("authentication_flow")]
public string AuthenticationFlow { get; set; }
+ ///
+ /// The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
+ ///
+ [JsonProperty("cryptogram")]
+ [STJS.JsonPropertyName("cryptogram")]
+ public string Cryptogram { get; set; }
+
+ ///
+ /// The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree
+ /// of authentication was performed.
+ /// One of: 01, 02, 03, 04, 05, 06, or 07.
+ ///
+ [JsonProperty("electronic_commerce_indicator")]
+ [STJS.JsonPropertyName("electronic_commerce_indicator")]
+ public string ElectronicCommerceIndicator { get; set; }
+
+ ///
+ /// The exemption requested via 3DS and accepted by the issuer at authentication time.
+ /// One of: low_risk, or none.
+ ///
+ [JsonProperty("exemption_indicator")]
+ [STJS.JsonPropertyName("exemption_indicator")]
+ public string ExemptionIndicator { get; set; }
+
+ ///
+ /// Whether Stripe requested the value of exemption_indicator in the transaction.
+ /// This will depend on the outcome of Stripe's internal risk assessment.
+ ///
+ [JsonProperty("exemption_indicator_applied")]
+ [STJS.JsonPropertyName("exemption_indicator_applied")]
+ public bool? ExemptionIndicatorApplied { get; set; }
+
///
/// Indicates the outcome of 3D Secure authentication.
/// One of: attempt_acknowledged, authenticated, exempted,
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs
index 777a8eb96c..6d6bb8aa8e 100644
--- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs
@@ -17,7 +17,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsCrypto : StripeEntity
/// The blockchain network that the transaction was sent on.
- /// One of: base, ethereum, polygon, or solana.
+ /// One of: base, ethereum, polygon, solana, or tempo.
///
[JsonProperty("network")]
[STJS.JsonPropertyName("network")]
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsStripeBalance.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsStripeBalance.cs
index 680dd826f2..f84c04d127 100644
--- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsStripeBalance.cs
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsStripeBalance.cs
@@ -14,15 +14,5 @@ public class PaymentAttemptRecordPaymentMethodDetailsStripeBalance : StripeEntit
[JsonProperty("account")]
[STJS.JsonPropertyName("account")]
public string Account { get; set; }
-
- ///
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUpi.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUpi.cs
new file mode 100644
index 0000000000..1fbc699233
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUpi.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentAttemptRecordPaymentMethodDetailsUpi : StripeEntity
+ {
+ ///
+ /// Customer's unique Virtual Payment Address.
+ ///
+ [JsonProperty("vpa")]
+ [STJS.JsonPropertyName("vpa")]
+ public string Vpa { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
index 0afeb5bc71..a4807e3c3f 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
@@ -306,7 +306,7 @@ public Customer Customer
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
@@ -371,8 +371,8 @@ public Charge LatestCharge
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs
index 9bd444caa5..2f659b0130 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs
@@ -36,6 +36,10 @@ public class PaymentIntentAmountDetails : StripeEntity
+ {
+ ///
+ /// Portion of the amount that corresponds to a surcharge.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long Amount { get; set; }
+
+ ///
+ /// Indicate whether to enforce validations on the surcharge amount.
+ /// One of: automatic, disabled, or enabled.
+ ///
+ [JsonProperty("enforce_validation")]
+ [STJS.JsonPropertyName("enforce_validation")]
+ public string EnforceValidation { get; set; }
+
+ ///
+ /// The maximum amount allowed for the surcharge.
+ ///
+ [JsonProperty("maximum_amount")]
+ [STJS.JsonPropertyName("maximum_amount")]
+ public long MaximumAmount { get; set; }
+
+ ///
+ /// The status of the surcharge.
+ ///
+ [JsonProperty("status")]
+ [STJS.JsonPropertyName("status")]
+ public string Status { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs
index 13acb8bb20..c82422cf89 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextAction.cs
@@ -25,6 +25,10 @@ public class PaymentIntentNextAction : StripeEntity
[STJS.JsonPropertyName("cashapp_handle_redirect_or_display_qr_code")]
public PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode CashappHandleRedirectOrDisplayQrCode { get; set; }
+ [JsonProperty("crypto_display_details")]
+ [STJS.JsonPropertyName("crypto_display_details")]
+ public PaymentIntentNextActionCryptoDisplayDetails CryptoDisplayDetails { get; set; }
+
[JsonProperty("display_bank_transfer_instructions")]
[STJS.JsonPropertyName("display_bank_transfer_instructions")]
public PaymentIntentNextActionDisplayBankTransferInstructions DisplayBankTransferInstructions { get; set; }
@@ -71,6 +75,10 @@ public class PaymentIntentNextAction : StripeEntity
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ [JsonProperty("upi_handle_redirect_or_display_qr_code")]
+ [STJS.JsonPropertyName("upi_handle_redirect_or_display_qr_code")]
+ public PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCode UpiHandleRedirectOrDisplayQrCode { get; set; }
+
///
/// When confirming a PaymentIntent with Stripe.js, Stripe.js depends on the contents of
/// this dictionary to invoke authentication flows. The shape of the contents is subject to
@@ -95,9 +103,5 @@ public class PaymentIntentNextAction : StripeEntity
[JsonProperty("wechat_pay_redirect_to_ios_app")]
[STJS.JsonPropertyName("wechat_pay_redirect_to_ios_app")]
public PaymentIntentNextActionWechatPayRedirectToIosApp WechatPayRedirectToIosApp { get; set; }
-
- [JsonProperty("crypto_display_details")]
- [STJS.JsonPropertyName("crypto_display_details")]
- public PaymentIntentNextActionCryptoDisplayDetails CryptoDisplayDetails { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCode.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCode.cs
new file mode 100644
index 0000000000..f91b9cfa16
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCode.cs
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCode : StripeEntity
+ {
+ ///
+ /// The URL to the hosted UPI instructions page, which allows customers to view the QR code.
+ ///
+ [JsonProperty("hosted_instructions_url")]
+ [STJS.JsonPropertyName("hosted_instructions_url")]
+ public string HostedInstructionsUrl { get; set; }
+
+ [JsonProperty("qr_code")]
+ [STJS.JsonPropertyName("qr_code")]
+ public PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode QrCode { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode.cs
new file mode 100644
index 0000000000..44d43143ec
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode.cs
@@ -0,0 +1,35 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode : StripeEntity
+ {
+ ///
+ /// The date (unix timestamp) when the QR code expires.
+ ///
+ [JsonProperty("expires_at")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("expires_at")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+
+ ///
+ /// The image_url_png string used to render QR code.
+ ///
+ [JsonProperty("image_url_png")]
+ [STJS.JsonPropertyName("image_url_png")]
+ public string ImageUrlPng { get; set; }
+
+ ///
+ /// The image_url_svg string used to render QR code.
+ ///
+ [JsonProperty("image_url_svg")]
+ [STJS.JsonPropertyName("image_url_svg")]
+ public string ImageUrlSvg { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs
index bd37aa5fc7..e4b52af7d4 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs
@@ -47,10 +47,6 @@ public class PaymentIntentPaymentDetails : StripeEntitycard, including when automatic_payment_methods.enabled
- /// is set to true.
- ///
/// For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
/// before being sent to card networks. For Klarna, this field is truncated to 255
/// characters and is visible to customers when they view the order in the Klarna app.
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs
index 1f9500ea03..610a82f38e 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs
@@ -232,6 +232,10 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs
index 5303767adc..4e62e6ec85 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs
@@ -100,6 +100,16 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity
+ /// Request ability to reauthorize for this
+ /// PaymentIntent.
+ /// One of: if_available, or never.
+ ///
+ [JsonProperty("request_reauthorization")]
+ [STJS.JsonPropertyName("request_reauthorization")]
+ public string RequestReauthorization { get; set; }
+
///
/// We strongly recommend that you rely on our SCA Engine to automatically prompt your
/// customers for authentication based on risk level and
- /// Request ability to reauthorize for this
- /// PaymentIntent.
- /// One of: if_available, or never.
- ///
- [JsonProperty("request_reauthorization")]
- [STJS.JsonPropertyName("request_reauthorization")]
- public string RequestReauthorization { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptions.cs
index da15a98387..7f3a54fba7 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptions.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptions.cs
@@ -11,7 +11,7 @@ namespace Stripe
public class PaymentIntentPaymentMethodOptionsCardMandateOptions : StripeEntity
{
///
- /// Amount to be charged for future payments.
+ /// Amount to be charged for future payments, specified in the presentment currency.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs
index b8f845925e..decaff4019 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs
@@ -37,10 +37,6 @@ public class PaymentIntentPaymentMethodOptionsCardPresent : StripeEntity
/// Request ability to reauthorize for this
@@ -50,5 +46,9 @@ public class PaymentIntentPaymentMethodOptionsCardPresent : StripeEntity
{
+ [JsonProperty("deposit_options")]
+ [STJS.JsonPropertyName("deposit_options")]
+ public PaymentIntentPaymentMethodOptionsCryptoDepositOptions DepositOptions { get; set; }
+
+ ///
+ /// The mode of the crypto payment.
+ /// One of: default, or deposit.
+ ///
+ [JsonProperty("mode")]
+ [STJS.JsonPropertyName("mode")]
+ public string Mode { get; set; }
+
///
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
@@ -31,17 +43,5 @@ public class PaymentIntentPaymentMethodOptionsCrypto : StripeEntity
- /// The mode of the crypto payment.
- /// One of: default, or deposit.
- ///
- [JsonProperty("mode")]
- [STJS.JsonPropertyName("mode")]
- public string Mode { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalance.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalance.cs
index e85359cee1..3c9edc453e 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalance.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalance.cs
@@ -8,6 +8,10 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class PaymentIntentPaymentMethodOptionsStripeBalance : StripeEntity
{
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptions MandateOptions { get; set; }
+
///
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptions.cs
new file mode 100644
index 0000000000..88f6ce29d0
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptions : StripeEntity
+ {
+ ///
+ /// The ID of the Stripe Balance Debit Agreement used for this mandate.
+ ///
+ [JsonProperty("stripe_balance_debit_agreement")]
+ [STJS.JsonPropertyName("stripe_balance_debit_agreement")]
+ public string StripeBalanceDebitAgreement { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUpi.cs
new file mode 100644
index 0000000000..3d821cf523
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUpi.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentIntentPaymentMethodOptionsUpi : StripeEntity
+ {
+ ///
+ /// Indicates that you intend to make future payments with this PaymentIntent's payment
+ /// method.
+ ///
+ /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ /// the Customer after the PaymentIntent is confirmed and the customer completes any
+ /// required actions. If you don't provide a Customer, you can still attach the payment method to a
+ /// Customer after the transaction completes.
+ ///
+ /// If the payment method is card_present and isn't a digital wallet, Stripe creates
+ /// and attaches a generated_card
+ /// payment method representing the card to the Customer instead.
+ ///
+ /// When processing card payments, Stripe uses setup_future_usage to help you comply
+ /// with regional legislation and network rules, such as SCA.
+ /// One of: off_session, or on_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+ [STJS.JsonPropertyName("setup_future_usage")]
+ public string SetupFutureUsage { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs
index 1fe6d39913..8499517475 100644
--- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs
+++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs
@@ -59,7 +59,7 @@ public class PaymentIntentPaymentMethodOptionsUsBankAccount : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
index f12abb3c5f..d53f92083a 100644
--- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
+++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
@@ -176,13 +176,24 @@ public Application Application
public StripeList LineItems { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
public bool Livemode { get; set; }
+ ///
+ /// Settings for Managed Payments for this Payment Link and resulting CheckoutSessions, PaymentIntents, Invoices, and Subscriptions.
+ ///
+ [JsonProperty("managed_payments")]
+ [STJS.JsonPropertyName("managed_payments")]
+ public PaymentLinkManagedPayments ManagedPayments { get; set; }
+
///
/// Set of key-value pairs that you can
/// attach to an object. This can be useful for storing additional information about the
@@ -271,7 +282,7 @@ public Account OnBehalfOf
/// pay_by_bank, paynow, paypal, paypay, payto,
/// pix, promptpay, qris, rechnung, satispay,
/// sepa_debit, shopeepay, sofort, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticTaxLiability.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticTaxLiability.cs
index 6e369c6fc7..41da76a7c6 100644
--- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuer.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuer.cs
index 2a2afe5a54..a11683fb1b 100644
--- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuer.cs
+++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkManagedPayments.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkManagedPayments.cs
new file mode 100644
index 0000000000..95cfe790cf
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkManagedPayments.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentLinkManagedPayments : StripeEntity
+ {
+ ///
+ /// Set to true to enable Managed Payments, Stripe's
+ /// merchant of record solution, for this session.
+ ///
+ [JsonProperty("enabled")]
+ [STJS.JsonPropertyName("enabled")]
+ public bool Enabled { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuer.cs
index ad4b670d3c..9b6d0ca75a 100644
--- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs
index 0c4b24fbe0..69e700e0ac 100644
--- a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs
+++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfiguration.cs
@@ -203,8 +203,8 @@ public class PaymentMethodConfiguration : StripeEntity
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -320,6 +320,10 @@ public class PaymentMethodConfiguration : StripeEntity
+ {
+ ///
+ /// Whether this payment method may be offered at checkout. True if
+ /// display_preference is on and the payment method's capability is active.
+ ///
+ [JsonProperty("available")]
+ [STJS.JsonPropertyName("available")]
+ public bool Available { get; set; }
+
+ [JsonProperty("display_preference")]
+ [STJS.JsonPropertyName("display_preference")]
+ public PaymentMethodConfigurationUpiDisplayPreference DisplayPreference { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationUpiDisplayPreference.cs b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationUpiDisplayPreference.cs
new file mode 100644
index 0000000000..d3f7a2b5cc
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentMethodConfigurations/PaymentMethodConfigurationUpiDisplayPreference.cs
@@ -0,0 +1,35 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentMethodConfigurationUpiDisplayPreference : StripeEntity
+ {
+ ///
+ /// For child configs, whether or not the account's preference will be observed. If
+ /// false, the parent configuration's default is used.
+ ///
+ [JsonProperty("overridable")]
+ [STJS.JsonPropertyName("overridable")]
+ public bool? Overridable { get; set; }
+
+ ///
+ /// The account's display preference.
+ /// One of: none, off, or on.
+ ///
+ [JsonProperty("preference")]
+ [STJS.JsonPropertyName("preference")]
+ public string Preference { get; set; }
+
+ ///
+ /// The effective display preference value.
+ /// One of: off, or on.
+ ///
+ [JsonProperty("value")]
+ [STJS.JsonPropertyName("value")]
+ public string Value { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs
index 6667845b39..71ba651f13 100644
--- a/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs
+++ b/src/Stripe.net/Entities/PaymentMethodDomains/PaymentMethodDomain.cs
@@ -92,8 +92,8 @@ public class PaymentMethodDomain : StripeEntity, IHasId, IH
public PaymentMethodDomainLink Link { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
index e7aa8ea243..014a4a5131 100644
--- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
+++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
@@ -232,8 +232,8 @@ public Customer Customer
public PaymentMethodLink Link { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -377,12 +377,16 @@ public Customer Customer
/// paynow, paypal, paypay, payto, pix, promptpay,
/// qris, rechnung, revolut_pay, samsung_pay, satispay,
/// sepa_debit, shopeepay, sofort, stripe_balance, swish,
- /// twint, us_bank_account, wechat_pay, or zip.
+ /// twint, upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public PaymentMethodUpi Upi { get; set; }
+
[JsonProperty("us_bank_account")]
[STJS.JsonPropertyName("us_bank_account")]
public PaymentMethodUsBankAccount UsBankAccount { get; set; }
diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs
index 10f04d3d96..beda143329 100644
--- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs
+++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs
@@ -223,18 +223,6 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str
[STJS.JsonPropertyName("reader")]
public string Reader { get; set; }
- ///
- /// A collection of fields required to be displayed on receipts. Only required for EMV
- /// transactions.
- ///
- [JsonProperty("receipt")]
- [STJS.JsonPropertyName("receipt")]
- public PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
-
- [JsonProperty("wallet")]
- [STJS.JsonPropertyName("wallet")]
- public PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
-
///
/// Whether the PaymentIntent can be reauthorized or not.
///
@@ -251,5 +239,17 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str
[STJS.JsonPropertyName("reauthorize_before")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? ReauthorizeBefore { get; set; }
+
+ ///
+ /// A collection of fields required to be displayed on receipts. Only required for EMV
+ /// transactions.
+ ///
+ [JsonProperty("receipt")]
+ [STJS.JsonPropertyName("receipt")]
+ public PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
+
+ [JsonProperty("wallet")]
+ [STJS.JsonPropertyName("wallet")]
+ public PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodStripeBalance.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodStripeBalance.cs
index 2ef0d31603..4a3643158a 100644
--- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodStripeBalance.cs
+++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodStripeBalance.cs
@@ -14,15 +14,5 @@ public class PaymentMethodStripeBalance : StripeEntity
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodUpi.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodUpi.cs
new file mode 100644
index 0000000000..9ec9fa11f1
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodUpi.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentMethodUpi : StripeEntity
+ {
+ ///
+ /// Customer's unique Virtual Payment Address.
+ ///
+ [JsonProperty("vpa")]
+ [STJS.JsonPropertyName("vpa")]
+ public string Vpa { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs
index 23e2b3675c..81fcf0c0f7 100644
--- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecord.cs
@@ -126,8 +126,8 @@ public class PaymentRecord : StripeEntity, IHasId, IHasMetadata,
public string LatestPaymentAttemptRecord { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs
index a6587cfb10..c9d66772d9 100644
--- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs
@@ -286,6 +286,10 @@ public class PaymentRecordPaymentMethodDetails : StripeEntity
[JsonProperty("exp_month")]
[STJS.JsonPropertyName("exp_month")]
- public long ExpMonth { get; set; }
+ public long? ExpMonth { get; set; }
///
/// Four-digit number representing the card's expiration year.
///
[JsonProperty("exp_year")]
[STJS.JsonPropertyName("exp_year")]
- public long ExpYear { get; set; }
+ public long? ExpYear { get; set; }
///
/// Uniquely identifies this particular card number. You can use this attribute to check
@@ -129,7 +129,7 @@ public class PaymentRecordPaymentMethodDetailsCard : StripeEntity
[JsonProperty("moto")]
[STJS.JsonPropertyName("moto")]
- public bool Moto { get; set; }
+ public bool? Moto { get; set; }
///
/// Identifies which network this charge was processed on. Can be amex,
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs
index ebd617eb2b..bf1552257f 100644
--- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs
@@ -223,18 +223,6 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity
- /// A collection of fields required to be displayed on receipts. Only required for EMV
- /// transactions.
- ///
- [JsonProperty("receipt")]
- [STJS.JsonPropertyName("receipt")]
- public PaymentRecordPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
-
- [JsonProperty("wallet")]
- [STJS.JsonPropertyName("wallet")]
- public PaymentRecordPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
-
///
/// Whether the PaymentIntent can be reauthorized or not.
///
@@ -251,5 +239,17 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity
+ /// A collection of fields required to be displayed on receipts. Only required for EMV
+ /// transactions.
+ ///
+ [JsonProperty("receipt")]
+ [STJS.JsonPropertyName("receipt")]
+ public PaymentRecordPaymentMethodDetailsCardPresentReceipt Receipt { get; set; }
+
+ [JsonProperty("wallet")]
+ [STJS.JsonPropertyName("wallet")]
+ public PaymentRecordPaymentMethodDetailsCardPresentWallet Wallet { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs
index e7de0ceb20..ff6d7c611b 100644
--- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs
@@ -17,6 +17,38 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity
+ /// The 3D Secure cryptogram, also known as the "authentication value" (AAV, CAVV or AEVV).
+ ///
+ [JsonProperty("cryptogram")]
+ [STJS.JsonPropertyName("cryptogram")]
+ public string Cryptogram { get; set; }
+
+ ///
+ /// The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree
+ /// of authentication was performed.
+ /// One of: 01, 02, 03, 04, 05, 06, or 07.
+ ///
+ [JsonProperty("electronic_commerce_indicator")]
+ [STJS.JsonPropertyName("electronic_commerce_indicator")]
+ public string ElectronicCommerceIndicator { get; set; }
+
+ ///
+ /// The exemption requested via 3DS and accepted by the issuer at authentication time.
+ /// One of: low_risk, or none.
+ ///
+ [JsonProperty("exemption_indicator")]
+ [STJS.JsonPropertyName("exemption_indicator")]
+ public string ExemptionIndicator { get; set; }
+
+ ///
+ /// Whether Stripe requested the value of exemption_indicator in the transaction.
+ /// This will depend on the outcome of Stripe's internal risk assessment.
+ ///
+ [JsonProperty("exemption_indicator_applied")]
+ [STJS.JsonPropertyName("exemption_indicator_applied")]
+ public bool? ExemptionIndicatorApplied { get; set; }
+
///
/// Indicates the outcome of 3D Secure authentication.
/// One of: attempt_acknowledged, authenticated, exempted,
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs
index b12d486fde..885dc0f562 100644
--- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs
@@ -17,7 +17,7 @@ public class PaymentRecordPaymentMethodDetailsCrypto : StripeEntity
/// The blockchain network that the transaction was sent on.
- /// One of: base, ethereum, polygon, or solana.
+ /// One of: base, ethereum, polygon, solana, or tempo.
///
[JsonProperty("network")]
[STJS.JsonPropertyName("network")]
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsStripeBalance.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsStripeBalance.cs
index 18d44d4de9..f03a901751 100644
--- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsStripeBalance.cs
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsStripeBalance.cs
@@ -14,15 +14,5 @@ public class PaymentRecordPaymentMethodDetailsStripeBalance : StripeEntity
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUpi.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUpi.cs
new file mode 100644
index 0000000000..8532c46f19
--- /dev/null
+++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUpi.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentRecordPaymentMethodDetailsUpi : StripeEntity
+ {
+ ///
+ /// Customer's unique Virtual Payment Address.
+ ///
+ [JsonProperty("vpa")]
+ [STJS.JsonPropertyName("vpa")]
+ public string Vpa { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Payouts/Payout.cs b/src/Stripe.net/Entities/Payouts/Payout.cs
index 44e702f8e1..062ebf0147 100644
--- a/src/Stripe.net/Entities/Payouts/Payout.cs
+++ b/src/Stripe.net/Entities/Payouts/Payout.cs
@@ -262,8 +262,8 @@ public BalanceTransaction FailureBalanceTransaction
public string FailureMessage { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Plans/Plan.cs b/src/Stripe.net/Entities/Plans/Plan.cs
index f110bec8b7..700778fed4 100644
--- a/src/Stripe.net/Entities/Plans/Plan.cs
+++ b/src/Stripe.net/Entities/Plans/Plan.cs
@@ -135,8 +135,8 @@ public class Plan : StripeEntity, IHasId, IHasMetadata, IHasObject
public long IntervalCount { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Prices/Price.cs b/src/Stripe.net/Entities/Prices/Price.cs
index b39c168d48..4b81807630 100644
--- a/src/Stripe.net/Entities/Prices/Price.cs
+++ b/src/Stripe.net/Entities/Prices/Price.cs
@@ -115,8 +115,8 @@ public class Price : StripeEntity, IHasId, IHasMetadata, IHasObject
public string ExternalReference { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs b/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs
index b6dee31ed2..eb75159402 100644
--- a/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs
+++ b/src/Stripe.net/Entities/Privacy/RedactionJobs/RedactionJob.cs
@@ -38,8 +38,8 @@ public class RedactionJob : StripeEntity, IHasId, IHasObject
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/ProductFeatures/ProductFeature.cs b/src/Stripe.net/Entities/ProductFeatures/ProductFeature.cs
index f8efef874e..a82ff027b8 100644
--- a/src/Stripe.net/Entities/ProductFeatures/ProductFeature.cs
+++ b/src/Stripe.net/Entities/ProductFeatures/ProductFeature.cs
@@ -45,8 +45,8 @@ public class ProductFeature : StripeEntity, IHasId, IHasObject
public Entitlements.Feature EntitlementFeature { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Products/Product.cs b/src/Stripe.net/Entities/Products/Product.cs
index d2e1c04f9b..3562656f70 100644
--- a/src/Stripe.net/Entities/Products/Product.cs
+++ b/src/Stripe.net/Entities/Products/Product.cs
@@ -118,8 +118,8 @@ public Price DefaultPrice
public List Images { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs
index 6aa9eb07a0..8363ad3eeb 100644
--- a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs
+++ b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs
@@ -112,8 +112,8 @@ public Customer Customer
public DateTime? ExpiresAt { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollectionSet.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollectionSet.cs
index f2e4ab84ea..b7c0adc02a 100644
--- a/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollectionSet.cs
+++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineSetPauseCollectionSet.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class QuoteLineSetPauseCollectionSet : StripeEntity
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs
index ca6e6c5135..c9b164e8d7 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs
@@ -643,8 +643,8 @@ public Invoice LatestRevision
public StripeList Lines { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceAutomaticTaxLiability.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceAutomaticTaxLiability.cs
index 8849897744..27b15e4b3c 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceIssuer.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceIssuer.cs
index e786c847ed..1f48612ae6 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceIssuer.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceParentSubscriptionDetailsPauseCollection.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceParentSubscriptionDetailsPauseCollection.cs
index c05aa4bf8a..d74538eeab 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceParentSubscriptionDetailsPauseCollection.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceParentSubscriptionDetailsPauseCollection.cs
@@ -10,8 +10,7 @@ namespace Stripe
public class QuotePreviewInvoiceParentSubscriptionDetailsPauseCollection : StripeEntity
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs
index 0f9cf40ebb..c735827d38 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsAcssDebit.cs
@@ -13,7 +13,7 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsAcssDebit : S
public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions MandateOptions { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsPix.cs
index fb1c97b846..4462dd15e2 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsPix.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsPix.cs
@@ -15,5 +15,13 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsPix : StripeE
[JsonProperty("amount_includes_iof")]
[STJS.JsonPropertyName("amount_includes_iof")]
public string AmountIncludesIof { get; set; }
+
+ ///
+ /// The number of seconds (between 10 and 1209600) after which Pix payment will expire.
+ /// Defaults to 86400 seconds.
+ ///
+ [JsonProperty("expires_after_seconds")]
+ [STJS.JsonPropertyName("expires_after_seconds")]
+ public long ExpiresAfterSeconds { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs
index e33a3dd63c..c0ade6a147 100644
--- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs
+++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount.cs
@@ -13,7 +13,7 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount
public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections FinancialConnections { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs
index 8abe7f15e7..94ef9f04d2 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs
@@ -227,8 +227,8 @@ public Invoice LatestInvoice
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs
index b080a6503c..7e8baedbef 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs
index 718745b8c9..8551afb317 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTaxLiability.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTaxLiability.cs
index b097e138de..02c2d0c9e6 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseInvoiceSettingsIssuer.cs
index 970caa5231..57c7f6c402 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhasePauseCollection.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhasePauseCollection.cs
index 3b7d9d8e6a..b28da3116a 100644
--- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhasePauseCollection.cs
+++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhasePauseCollection.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class QuotePreviewSubscriptionSchedulePhasePauseCollection : StripeEntity
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Entities/Quotes/Quote.cs b/src/Stripe.net/Entities/Quotes/Quote.cs
index 3e5297a796..2e6da2d8ad 100644
--- a/src/Stripe.net/Entities/Quotes/Quote.cs
+++ b/src/Stripe.net/Entities/Quotes/Quote.cs
@@ -352,8 +352,8 @@ public Invoice Invoice
public List Lines { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Quotes/QuoteAutomaticTaxLiability.cs b/src/Stripe.net/Entities/Quotes/QuoteAutomaticTaxLiability.cs
index 3e52e7d068..aca86cfafb 100644
--- a/src/Stripe.net/Entities/Quotes/QuoteAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/Quotes/QuoteAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsIssuer.cs
index 1a614d6fcb..d4a3cb4b08 100644
--- a/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs b/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs
index 302bd2bc49..e233d64f74 100644
--- a/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs
+++ b/src/Stripe.net/Entities/Radar/EarlyFraudWarnings/EarlyFraudWarning.cs
@@ -95,8 +95,8 @@ public Charge Charge
public string FraudType { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs
index 9287c11a47..4e90134737 100644
--- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs
+++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluation.cs
@@ -63,15 +63,8 @@ public class PaymentEvaluation : StripeEntity, IHasId, IHasMe
public List Events { get; set; }
///
- /// Collection of scores and insights for this payment evaluation.
- ///
- [JsonProperty("insights")]
- [STJS.JsonPropertyName("insights")]
- public PaymentEvaluationInsights Insights { get; set; }
-
- ///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -99,5 +92,21 @@ public class PaymentEvaluation : StripeEntity, IHasId, IHasMe
[JsonProperty("payment_details")]
[STJS.JsonPropertyName("payment_details")]
public PaymentEvaluationPaymentDetails PaymentDetails { get; set; }
+
+ ///
+ /// Recommended action based on the score of the fraudulent_payment signal. Possible values
+ /// are block and continue.
+ /// One of: block, or continue.
+ ///
+ [JsonProperty("recommended_action")]
+ [STJS.JsonPropertyName("recommended_action")]
+ public string RecommendedAction { get; set; }
+
+ ///
+ /// Collection of signals for this payment evaluation.
+ ///
+ [JsonProperty("signals")]
+ [STJS.JsonPropertyName("signals")]
+ public PaymentEvaluationSignals Signals { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs
deleted file mode 100644
index 4b27fb754c..0000000000
--- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Radar
-{
- using System;
- using Newtonsoft.Json;
- using Stripe.Infrastructure;
- using STJS = System.Text.Json.Serialization;
-
- [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
- public class PaymentEvaluationInsights : StripeEntity
- {
- ///
- /// The timestamp when the evaluation was performed.
- ///
- [JsonProperty("evaluated_at")]
- [JsonConverter(typeof(UnixDateTimeConverter))]
- [STJS.JsonPropertyName("evaluated_at")]
- [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
- public DateTime EvaluatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
-
- ///
- /// Scores, insights and recommended action for one scorer for this PaymentEvaluation.
- ///
- [JsonProperty("fraudulent_dispute")]
- [STJS.JsonPropertyName("fraudulent_dispute")]
- public PaymentEvaluationInsightsFraudulentDispute FraudulentDispute { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsFraudulentDispute.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsFraudulentDispute.cs
deleted file mode 100644
index 8c48264693..0000000000
--- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsFraudulentDispute.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.Radar
-{
- using Newtonsoft.Json;
- using Stripe.Infrastructure;
- using STJS = System.Text.Json.Serialization;
-
- [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
- public class PaymentEvaluationInsightsFraudulentDispute : StripeEntity
- {
- ///
- /// Recommended action based on the risk score. Possible values are block and
- /// continue.
- /// One of: block, or continue.
- ///
- [JsonProperty("recommended_action")]
- [STJS.JsonPropertyName("recommended_action")]
- public string RecommendedAction { get; set; }
-
- ///
- /// Stripe Radar’s evaluation of the risk level of the payment. Possible values for
- /// evaluated payments are between 0 and 100, with higher scores indicating higher risk.
- ///
- [JsonProperty("risk_score")]
- [STJS.JsonPropertyName("risk_score")]
- public long RiskScore { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignals.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignals.cs
new file mode 100644
index 0000000000..ae176ebb44
--- /dev/null
+++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignals.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Radar
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentEvaluationSignals : StripeEntity
+ {
+ ///
+ /// A payment evaluation signal with evaluated_at, risk_level, and score fields.
+ ///
+ [JsonProperty("fraudulent_payment")]
+ [STJS.JsonPropertyName("fraudulent_payment")]
+ public PaymentEvaluationSignalsFraudulentPayment FraudulentPayment { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs
new file mode 100644
index 0000000000..afe505aa07
--- /dev/null
+++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationSignalsFraudulentPayment.cs
@@ -0,0 +1,39 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Radar
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class PaymentEvaluationSignalsFraudulentPayment : StripeEntity
+ {
+ ///
+ /// The time when this signal was evaluated.
+ ///
+ [JsonProperty("evaluated_at")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("evaluated_at")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime EvaluatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+
+ ///
+ /// Risk level of this signal, based on the score.
+ /// One of: elevated, highest, or normal.
+ ///
+ [JsonProperty("risk_level")]
+ [STJS.JsonPropertyName("risk_level")]
+ public string RiskLevel { get; set; }
+
+ ///
+ /// Score for this insight. Possible values for evaluated payments are -1 and any value
+ /// between 0 and 100. The value is returned with two decimal places. A score of -1
+ /// indicates a test integration and higher scores indicate a higher likelihood of the
+ /// signal being true.
+ ///
+ [JsonProperty("score")]
+ [STJS.JsonPropertyName("score")]
+ public decimal Score { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs b/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs
index ec4a09b7c1..4e5c029c35 100644
--- a/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs
+++ b/src/Stripe.net/Entities/Radar/ValueListItems/ValueListItem.cs
@@ -55,8 +55,8 @@ public class ValueListItem : StripeEntity, IHasId, IHasObject
public bool? Deleted { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs
index 1ef5668e4a..a339fedce5 100644
--- a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs
+++ b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs
@@ -63,12 +63,13 @@ public class ValueList : StripeEntity, IHasId, IHasMetadata, IHasObje
///
/// The type of items in the value list. One of card_fingerprint, card_bin,
- /// email, ip_address, country, string,
- /// case_sensitive_string, customer_id, sepa_debit_fingerprint, or
- /// us_bank_account_fingerprint.
+ /// crypto_fingerprint, email, ip_address, country,
+ /// string, case_sensitive_string, customer_id,
+ /// sepa_debit_fingerprint, or us_bank_account_fingerprint.
/// One of: card_bin, card_fingerprint, case_sensitive_string,
- /// country, customer_id, email, ip_address,
- /// sepa_debit_fingerprint, string, or us_bank_account_fingerprint.
+ /// country, crypto_fingerprint, customer_id, email,
+ /// ip_address, sepa_debit_fingerprint, string, or
+ /// us_bank_account_fingerprint.
///
[JsonProperty("item_type")]
[STJS.JsonPropertyName("item_type")]
@@ -82,8 +83,8 @@ public class ValueList : StripeEntity, IHasId, IHasMetadata, IHasObje
public StripeList ListItems { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs b/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs
index 2ebaf358c5..e7951341e1 100644
--- a/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs
+++ b/src/Stripe.net/Entities/Reporting/ReportTypes/ReportType.cs
@@ -66,8 +66,8 @@ public class ReportType : StripeEntity, IHasId, IHasObject
public List DefaultColumns { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Reserve/Holds/Hold.cs b/src/Stripe.net/Entities/Reserve/Holds/Hold.cs
index a8a198f221..fe58e86c74 100644
--- a/src/Stripe.net/Entities/Reserve/Holds/Hold.cs
+++ b/src/Stripe.net/Entities/Reserve/Holds/Hold.cs
@@ -78,8 +78,8 @@ public class Hold : StripeEntity, IHasId, IHasMetadata, IHasObject
public bool IsReleasable { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Reserve/Plans/Plan.cs b/src/Stripe.net/Entities/Reserve/Plans/Plan.cs
index 338e56b6cd..7558c78fa9 100644
--- a/src/Stripe.net/Entities/Reserve/Plans/Plan.cs
+++ b/src/Stripe.net/Entities/Reserve/Plans/Plan.cs
@@ -69,8 +69,8 @@ public class Plan : StripeEntity, IHasId, IHasMetadata, IHasObject
public PlanFixedRelease FixedRelease { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Reserve/Releases/Release.cs b/src/Stripe.net/Entities/Reserve/Releases/Release.cs
index 5041108522..fc347bd622 100644
--- a/src/Stripe.net/Entities/Reserve/Releases/Release.cs
+++ b/src/Stripe.net/Entities/Reserve/Releases/Release.cs
@@ -62,8 +62,8 @@ public class Release : StripeEntity, IHasId, IHasMetadata, IHasObject
public string Currency { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Reviews/Review.cs b/src/Stripe.net/Entities/Reviews/Review.cs
index 327f609eda..a391af5c12 100644
--- a/src/Stripe.net/Entities/Reviews/Review.cs
+++ b/src/Stripe.net/Entities/Reviews/Review.cs
@@ -109,8 +109,8 @@ public Charge Charge
public ReviewLocation IpAddressLocation { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/RiskSignals/RiskSignals.cs b/src/Stripe.net/Entities/RiskSignals/RiskSignals.cs
new file mode 100644
index 0000000000..36ab1720af
--- /dev/null
+++ b/src/Stripe.net/Entities/RiskSignals/RiskSignals.cs
@@ -0,0 +1,26 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class RiskSignals : StripeEntity, IHasObject
+ {
+ ///
+ /// String representing the object's type. Objects of the same type share the same value.
+ ///
+ [JsonProperty("object")]
+ [STJS.JsonPropertyName("object")]
+ public string Object { get; set; }
+
+ ///
+ /// Represents the status of risk signal session metadata collection. When false, the
+ /// account has payouts and payments disabled.
+ ///
+ [JsonProperty("session_metadata")]
+ [STJS.JsonPropertyName("session_metadata")]
+ public bool SessionMetadata { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs
index f467b2b1d4..fcc33c3ef1 100644
--- a/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs
+++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttempt.cs
@@ -153,8 +153,8 @@ public Customer Customer
public List FlowDirections { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs
index 535dfea4a1..a478e216fa 100644
--- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs
+++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetails.cs
@@ -113,6 +113,10 @@ public class SetupAttemptPaymentMethodDetails : StripeEntity
+ {
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs
index 0d24bd5f83..0740b606d9 100644
--- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs
@@ -217,7 +217,7 @@ public Customer Customer
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
@@ -280,8 +280,8 @@ public SetupAttempt LatestAttempt
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs
index a7e5b79aa4..f816c9c357 100644
--- a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextAction.cs
@@ -31,6 +31,10 @@ public class SetupIntentNextAction : StripeEntity
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ [JsonProperty("upi_handle_redirect_or_display_qr_code")]
+ [STJS.JsonPropertyName("upi_handle_redirect_or_display_qr_code")]
+ public SetupIntentNextActionUpiHandleRedirectOrDisplayQrCode UpiHandleRedirectOrDisplayQrCode { get; set; }
+
///
/// When confirming a SetupIntent with Stripe.js, Stripe.js depends on the contents of this
/// dictionary to invoke authentication flows. The shape of the contents is subject to
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionUpiHandleRedirectOrDisplayQrCode.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionUpiHandleRedirectOrDisplayQrCode.cs
new file mode 100644
index 0000000000..74b5036acc
--- /dev/null
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionUpiHandleRedirectOrDisplayQrCode.cs
@@ -0,0 +1,22 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SetupIntentNextActionUpiHandleRedirectOrDisplayQrCode : StripeEntity
+ {
+ ///
+ /// The URL to the hosted UPI instructions page, which allows customers to view the QR code.
+ ///
+ [JsonProperty("hosted_instructions_url")]
+ [STJS.JsonPropertyName("hosted_instructions_url")]
+ public string HostedInstructionsUrl { get; set; }
+
+ [JsonProperty("qr_code")]
+ [STJS.JsonPropertyName("qr_code")]
+ public SetupIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode QrCode { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode.cs
new file mode 100644
index 0000000000..c63fe17723
--- /dev/null
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode.cs
@@ -0,0 +1,35 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SetupIntentNextActionUpiHandleRedirectOrDisplayQrCodeQrCode : StripeEntity
+ {
+ ///
+ /// The date (unix timestamp) when the QR code expires.
+ ///
+ [JsonProperty("expires_at")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("expires_at")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+
+ ///
+ /// The image_url_png string used to render QR code.
+ ///
+ [JsonProperty("image_url_png")]
+ [STJS.JsonPropertyName("image_url_png")]
+ public string ImageUrlPng { get; set; }
+
+ ///
+ /// The image_url_svg string used to render QR code.
+ ///
+ [JsonProperty("image_url_svg")]
+ [STJS.JsonPropertyName("image_url_svg")]
+ public string ImageUrlSvg { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs
index 46dcf376f5..ff34523dfe 100644
--- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs
@@ -52,6 +52,14 @@ public class SetupIntentPaymentMethodOptions : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptions.cs
index 3858ab45a4..183aaa4a45 100644
--- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptions.cs
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptions.cs
@@ -11,7 +11,7 @@ namespace Stripe
public class SetupIntentPaymentMethodOptionsCardMandateOptions : StripeEntity
{
///
- /// Amount to be charged for future payments.
+ /// Amount to be charged for future payments, specified in the presentment currency.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalance.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalance.cs
new file mode 100644
index 0000000000..2efe1b661d
--- /dev/null
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalance.cs
@@ -0,0 +1,15 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SetupIntentPaymentMethodOptionsStripeBalance : StripeEntity
+ {
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SetupIntentPaymentMethodOptionsStripeBalanceMandateOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceMandateOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceMandateOptions.cs
new file mode 100644
index 0000000000..33947a1976
--- /dev/null
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceMandateOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SetupIntentPaymentMethodOptionsStripeBalanceMandateOptions : StripeEntity
+ {
+ ///
+ /// The ID of the Stripe Balance Debit Agreement used for this mandate.
+ ///
+ [JsonProperty("stripe_balance_debit_agreement")]
+ [STJS.JsonPropertyName("stripe_balance_debit_agreement")]
+ public string StripeBalanceDebitAgreement { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUpi.cs
new file mode 100644
index 0000000000..4e1ae76174
--- /dev/null
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUpi.cs
@@ -0,0 +1,15 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SetupIntentPaymentMethodOptionsUpi : StripeEntity
+ {
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SetupIntentPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUpiMandateOptions.cs
new file mode 100644
index 0000000000..03f9e1bf82
--- /dev/null
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUpiMandateOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SetupIntentPaymentMethodOptionsUpiMandateOptions : StripeEntity
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccount.cs
index 392017fa4a..71693cb1f4 100644
--- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccount.cs
+++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccount.cs
@@ -17,7 +17,7 @@ public class SetupIntentPaymentMethodOptionsUsBankAccount : StripeEntity
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs
index b8cf4a8f9b..14e00f102f 100644
--- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs
+++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs
@@ -51,7 +51,7 @@ public class GrantedToken : StripeEntity, IHasId, IHasObject
///
/// The reason why the SharedPaymentGrantedToken has been deactivated.
- /// One of: consumed, expired, or revoked.
+ /// One of: consumed, expired, resolved, or revoked.
///
[JsonProperty("deactivated_reason")]
[STJS.JsonPropertyName("deactivated_reason")]
diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenUsageLimits.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenUsageLimits.cs
index 89dbd635ce..a1b3fff909 100644
--- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenUsageLimits.cs
+++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenUsageLimits.cs
@@ -26,7 +26,7 @@ public class GrantedTokenUsageLimits : StripeEntity
[JsonConverter(typeof(UnixDateTimeConverter))]
[STJS.JsonPropertyName("expires_at")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
- public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+ public DateTime? ExpiresAt { get; set; }
///
/// Max amount that can be captured using this SharedPaymentToken.
@@ -34,5 +34,14 @@ public class GrantedTokenUsageLimits : StripeEntity
[JsonProperty("max_amount")]
[STJS.JsonPropertyName("max_amount")]
public long MaxAmount { get; set; }
+
+ ///
+ /// The recurring interval at which the shared payment token's amount usage restrictions
+ /// reset.
+ /// One of: month, week, or year.
+ ///
+ [JsonProperty("recurring_interval")]
+ [STJS.JsonPropertyName("recurring_interval")]
+ public string RecurringInterval { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs b/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs
index 8151a64ede..3e27711113 100644
--- a/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs
+++ b/src/Stripe.net/Entities/ShippingRates/ShippingRate.cs
@@ -67,8 +67,8 @@ public class ShippingRate : StripeEntity, IHasId, IHasMetadata, IH
public ShippingRateFixedAmount FixedAmount { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs b/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs
index eed1b9760b..8e2fe8acb4 100644
--- a/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs
+++ b/src/Stripe.net/Entities/Sigma/ScheduledQueryRuns/ScheduledQueryRun.cs
@@ -59,8 +59,8 @@ public class ScheduledQueryRun : StripeEntity, IHasId, IHasOb
public File File { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs b/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs
index 88501c2b19..2220083111 100644
--- a/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs
+++ b/src/Stripe.net/Entities/SourceMandateNotifications/SourceMandateNotification.cs
@@ -56,8 +56,8 @@ public class SourceMandateNotification : StripeEntity
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/SourceTransactions/SourceTransaction.cs b/src/Stripe.net/Entities/SourceTransactions/SourceTransaction.cs
index 8d6359d8b8..0e166a827e 100644
--- a/src/Stripe.net/Entities/SourceTransactions/SourceTransaction.cs
+++ b/src/Stripe.net/Entities/SourceTransactions/SourceTransaction.cs
@@ -68,8 +68,8 @@ public class SourceTransaction : StripeEntity, IHasId, IHasOb
public SourceTransactionGbpCreditTransfer GbpCreditTransfer { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Sources/Source.cs b/src/Stripe.net/Entities/Sources/Source.cs
index 8e9f2f0fde..704333b728 100644
--- a/src/Stripe.net/Entities/Sources/Source.cs
+++ b/src/Stripe.net/Entities/Sources/Source.cs
@@ -153,8 +153,8 @@ public class Source : StripeEntity, IHasId, IHasMetadata, IHasObject, IP
public SourceKlarna Klarna { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs
index a4efa62ce6..fc689cc547 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs
@@ -231,8 +231,8 @@ public Invoice LatestInvoice
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs
index bba20e518e..046061023c 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs
index 137fa12884..ec5a5c1b3a 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiability.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiability.cs
index 6ead63519f..6a06f956f5 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuer.cs
index ac2d5bbda0..708c0fe707 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollection.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollection.cs
index a977399363..1b7c27584c 100644
--- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollection.cs
+++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollection.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class SubscriptionSchedulePhasePauseCollection : StripeEntity
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs
index 2a68f73584..711ebd6905 100644
--- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs
+++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs
@@ -459,8 +459,8 @@ public Invoice LatestInvoice
#endregion
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
@@ -554,7 +554,7 @@ public Account OnBehalfOf
///
/// Specifies an interval for how often to bill for any pending invoice items. It is
- /// analogous to calling Create an
+ /// analogous to calling Create an
/// invoice for the given subscription at the specified interval.
///
[JsonProperty("pending_invoice_item_interval")]
@@ -622,6 +622,10 @@ public SetupIntent PendingSetupIntent
[STJS.JsonPropertyName("prebilling")]
public SubscriptionPrebilling Prebilling { get; set; }
+ [JsonProperty("presentment_details")]
+ [STJS.JsonPropertyName("presentment_details")]
+ public SubscriptionPresentmentDetails PresentmentDetails { get; set; }
+
#region Expandable Schedule
///
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTaxLiability.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTaxLiability.cs
index b87a303a36..8fa119f3b1 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTaxLiability.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionAutomaticTaxLiability.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionCancellationDetails.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionCancellationDetails.cs
index 5e3e8e87ab..3b20d689ee 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionCancellationDetails.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionCancellationDetails.cs
@@ -29,8 +29,8 @@ public class SubscriptionCancellationDetails : StripeEntity
/// Why this subscription was canceled.
- /// One of: cancellation_requested, payment_disputed, or
- /// payment_failed.
+ /// One of: canceled_by_retention_policy, cancellation_requested,
+ /// payment_disputed, or payment_failed.
///
[JsonProperty("reason")]
[STJS.JsonPropertyName("reason")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsIssuer.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsIssuer.cs
index 37c19f4d50..21f34e352c 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsIssuer.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionInvoiceSettingsIssuer.cs
@@ -45,7 +45,7 @@ public Account Account
///
/// Type of the account referenced.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPauseCollection.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPauseCollection.cs
index f80a46c88e..0d7b93118d 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPauseCollection.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPauseCollection.cs
@@ -10,8 +10,7 @@ namespace Stripe
public class SubscriptionPauseCollection : StripeEntity
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebit.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebit.cs
index 6be1d0aed2..9b905919e5 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebit.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebit.cs
@@ -13,7 +13,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebit : StripeEn
public SubscriptionPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions MandateOptions { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions.cs
index 5a6638bee7..5f968a1fa5 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions.cs
@@ -9,7 +9,7 @@ namespace Stripe
public class SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptions : StripeEntity
{
///
- /// Amount to be charged for future payments.
+ /// Amount to be charged for future payments, specified in the presentment currency.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs
index 55989e30a9..577cf47827 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPix.cs
@@ -8,6 +8,14 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SubscriptionPaymentSettingsPaymentMethodOptionsPix : StripeEntity
{
+ ///
+ /// The number of seconds (between 10 and 1209600) after which Pix payment will expire.
+ /// Defaults to 86400 seconds.
+ ///
+ [JsonProperty("expires_after_seconds")]
+ [STJS.JsonPropertyName("expires_after_seconds")]
+ public long ExpiresAfterSeconds { get; set; }
+
[JsonProperty("mandate_options")]
[STJS.JsonPropertyName("mandate_options")]
public SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptions MandateOptions { get; set; }
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccount.cs
index 3c0648f84a..528c6f4c45 100644
--- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccount.cs
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccount.cs
@@ -13,7 +13,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccount : Stri
public SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections FinancialConnections { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPresentmentDetails.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPresentmentDetails.cs
new file mode 100644
index 0000000000..1fd4e22095
--- /dev/null
+++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPresentmentDetails.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class SubscriptionPresentmentDetails : StripeEntity
+ {
+ ///
+ /// Currency used for customer payments.
+ ///
+ [JsonProperty("presentment_currency")]
+ [STJS.JsonPropertyName("presentment_currency")]
+ public string PresentmentCurrency { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs
index 06a32d874b..c80d042de4 100644
--- a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs
+++ b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItem.cs
@@ -25,7 +25,7 @@ public class CalculationLineItem : StripeEntity, IHasId, IH
///
/// The line item amount in the smallest currency unit. If
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit. If
/// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were
/// calculated on top of this amount.
///
@@ -35,15 +35,15 @@ public class CalculationLineItem : StripeEntity, IHasId, IH
///
/// The amount of tax calculated for this line item, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount_tax")]
[STJS.JsonPropertyName("amount_tax")]
public long AmountTax { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs
index bc76b2deb1..95bd963bc1 100644
--- a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs
+++ b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdown.cs
@@ -10,7 +10,7 @@ public class CalculationLineItemTaxBreakdown : StripeEntity
/// The amount of tax, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
@@ -52,7 +52,7 @@ public class CalculationLineItemTaxBreakdown : StripeEntity
/// The amount on which tax is calculated, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("taxable_amount")]
[STJS.JsonPropertyName("taxable_amount")]
diff --git a/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs b/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs
index d44541462e..ffb2b3a259 100644
--- a/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs
+++ b/src/Stripe.net/Entities/Tax/Calculations/Calculation.cs
@@ -32,7 +32,7 @@ public class Calculation : StripeEntity, IHasId, IHasObject
///
/// Total amount after taxes in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount_total")]
[STJS.JsonPropertyName("amount_total")]
@@ -76,8 +76,8 @@ public class Calculation : StripeEntity, IHasId, IHasObject
public StripeList LineItems { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs
index 842ab6ee94..b54e8eb2e8 100644
--- a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs
+++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCost.cs
@@ -11,7 +11,7 @@ public class CalculationShippingCost : StripeEntity
{
///
/// The shipping amount in the smallest currency unit. If
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit. If
/// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were
/// calculated on top of this amount.
///
@@ -21,7 +21,7 @@ public class CalculationShippingCost : StripeEntity
///
/// The amount of tax calculated for shipping, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount_tax")]
[STJS.JsonPropertyName("amount_tax")]
diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs
index b63c493f4f..89663fab83 100644
--- a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs
+++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdown.cs
@@ -10,7 +10,7 @@ public class CalculationShippingCostTaxBreakdown : StripeEntity
/// The amount of tax, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
@@ -52,7 +52,7 @@ public class CalculationShippingCostTaxBreakdown : StripeEntity
/// The amount on which tax is calculated, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("taxable_amount")]
[STJS.JsonPropertyName("taxable_amount")]
diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs
index 44557161ec..2deff671ba 100644
--- a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs
+++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdown.cs
@@ -10,7 +10,7 @@ public class CalculationTaxBreakdown : StripeEntity
{
///
/// The amount of tax, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
@@ -42,7 +42,7 @@ public class CalculationTaxBreakdown : StripeEntity
///
/// The amount on which tax is calculated, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("taxable_amount")]
[STJS.JsonPropertyName("taxable_amount")]
diff --git a/src/Stripe.net/Entities/Tax/Forms/Form.cs b/src/Stripe.net/Entities/Tax/Forms/Form.cs
index 6b638a687c..be986d06ec 100644
--- a/src/Stripe.net/Entities/Tax/Forms/Form.cs
+++ b/src/Stripe.net/Entities/Tax/Forms/Form.cs
@@ -100,8 +100,8 @@ public Form CorrectedBy
public FormGbMrdp GbMrdp { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/Registrations/Registration.cs b/src/Stripe.net/Entities/Tax/Registrations/Registration.cs
index 308518cf32..4a25f10235 100644
--- a/src/Stripe.net/Entities/Tax/Registrations/Registration.cs
+++ b/src/Stripe.net/Entities/Tax/Registrations/Registration.cs
@@ -76,8 +76,8 @@ public class Registration : StripeEntity, IHasId, IHasObject
public DateTime? ExpiresAt { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs
index 9c47dde27a..cf83c4d377 100644
--- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs
+++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs
@@ -24,6 +24,10 @@ public class RegistrationCountryOptionsUs : StripeEntity, IHasObject
public SettingsHeadOffice HeadOffice { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs
index 6fc61a6992..25127f6836 100644
--- a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs
+++ b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs
@@ -25,7 +25,7 @@ public class TransactionLineItem : StripeEntity, IHasId, IH
///
/// The line item amount in the smallest currency unit. If
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit. If
/// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were
/// calculated on top of this amount.
///
@@ -35,15 +35,15 @@ public class TransactionLineItem : StripeEntity, IHasId, IH
///
/// The amount of tax calculated for this line item, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount_tax")]
[STJS.JsonPropertyName("amount_tax")]
public long AmountTax { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs b/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs
index a0052cc7dd..5e93c5ec38 100644
--- a/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs
+++ b/src/Stripe.net/Entities/Tax/Transactions/Transaction.cs
@@ -68,8 +68,8 @@ public class Transaction : StripeEntity, IHasId, IHasMetadata, IHas
public StripeList LineItems { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs
index 7649c591ff..8de7c46403 100644
--- a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs
+++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCost.cs
@@ -11,7 +11,7 @@ public class TransactionShippingCost : StripeEntity
{
///
/// The shipping amount in the smallest currency unit. If
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit. If
/// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were
/// calculated on top of this amount.
///
@@ -21,7 +21,7 @@ public class TransactionShippingCost : StripeEntity
///
/// The amount of tax calculated for shipping, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount_tax")]
[STJS.JsonPropertyName("amount_tax")]
diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs
index c23fcff0f5..b61c7ef0ea 100644
--- a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs
+++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdown.cs
@@ -10,7 +10,7 @@ public class TransactionShippingCostTaxBreakdown : StripeEntity
/// The amount of tax, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
@@ -52,7 +52,7 @@ public class TransactionShippingCostTaxBreakdown : StripeEntity
/// The amount on which tax is calculated, in the smallest currency unit.
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit.
///
[JsonProperty("taxable_amount")]
[STJS.JsonPropertyName("taxable_amount")]
diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs
index 69d79fdf5c..d62fc8c21b 100644
--- a/src/Stripe.net/Entities/TaxIds/TaxId.cs
+++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs
@@ -99,8 +99,8 @@ public Customer Customer
public bool? Deleted { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/TaxRates/TaxRate.cs b/src/Stripe.net/Entities/TaxRates/TaxRate.cs
index 22eddd3d1a..07504570a2 100644
--- a/src/Stripe.net/Entities/TaxRates/TaxRate.cs
+++ b/src/Stripe.net/Entities/TaxRates/TaxRate.cs
@@ -121,8 +121,8 @@ public class TaxRate : StripeEntity, IHasId, IHasMetadata, IHasObject
public string JurisdictionLevel { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs
index 6f0541996b..5637e0e3fc 100644
--- a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs
+++ b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs
@@ -56,8 +56,8 @@ public class Configuration : StripeEntity, IHasId, IHasObject
public bool? IsAccountDefault { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Terminal/Locations/Location.cs b/src/Stripe.net/Entities/Terminal/Locations/Location.cs
index 5629799a45..6df9d3345b 100644
--- a/src/Stripe.net/Entities/Terminal/Locations/Location.cs
+++ b/src/Stripe.net/Entities/Terminal/Locations/Location.cs
@@ -78,8 +78,8 @@ public class Location : StripeEntity, IHasId, IHasMetadata, IHasObject
public string DisplayNameKanji { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Terminal/ReaderCollectedData/ReaderCollectedData.cs b/src/Stripe.net/Entities/Terminal/ReaderCollectedData/ReaderCollectedData.cs
index e124606250..b033d02dd0 100644
--- a/src/Stripe.net/Entities/Terminal/ReaderCollectedData/ReaderCollectedData.cs
+++ b/src/Stripe.net/Entities/Terminal/ReaderCollectedData/ReaderCollectedData.cs
@@ -36,8 +36,8 @@ public class ReaderCollectedData : StripeEntity, IHasId, IH
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs
index b5ff8f5bb0..cf28061c9a 100644
--- a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs
+++ b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs
@@ -90,8 +90,8 @@ public class Reader : StripeEntity, IHasId, IHasMetadata, IHasObject
public DateTime? LastSeenAt { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/TestHelpers/TestClocks/TestClock.cs b/src/Stripe.net/Entities/TestHelpers/TestClocks/TestClock.cs
index e349c0ea09..26b0711d69 100644
--- a/src/Stripe.net/Entities/TestHelpers/TestClocks/TestClock.cs
+++ b/src/Stripe.net/Entities/TestHelpers/TestClocks/TestClock.cs
@@ -67,8 +67,8 @@ public class TestClock : StripeEntity, IHasId, IHasObject
public DateTime FrozenTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Tokens/Token.cs b/src/Stripe.net/Entities/Tokens/Token.cs
index 2b3b136c10..358cbbb1ca 100644
--- a/src/Stripe.net/Entities/Tokens/Token.cs
+++ b/src/Stripe.net/Entities/Tokens/Token.cs
@@ -86,8 +86,8 @@ public class Token : StripeEntity, IHasId, IHasObject
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Topups/Topup.cs b/src/Stripe.net/Entities/Topups/Topup.cs
index c84791cc5e..61177a4643 100644
--- a/src/Stripe.net/Entities/Topups/Topup.cs
+++ b/src/Stripe.net/Entities/Topups/Topup.cs
@@ -113,7 +113,7 @@ public BalanceTransaction BalanceTransaction
///
/// Error code explaining reason for top-up failure if available (see the errors section for a list of codes).
+ /// href="https://stripe.com/api/errors">the errors section for a list of codes).
///
[JsonProperty("failure_code")]
[STJS.JsonPropertyName("failure_code")]
@@ -127,8 +127,8 @@ public BalanceTransaction BalanceTransaction
public string FailureMessage { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Transfers/Transfer.cs b/src/Stripe.net/Entities/Transfers/Transfer.cs
index 45005ca13d..ee7cd6b93b 100644
--- a/src/Stripe.net/Entities/Transfers/Transfer.cs
+++ b/src/Stripe.net/Entities/Transfers/Transfer.cs
@@ -222,8 +222,8 @@ public Charge DestinationPayment
public string FxQuote { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs b/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs
index bffa7c38e7..8f69cf6e80 100644
--- a/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs
+++ b/src/Stripe.net/Entities/Treasury/CreditReversals/CreditReversal.cs
@@ -72,8 +72,8 @@ public class CreditReversal : StripeEntity, IHasId, IHasMetadata
public string HostedRegulatoryReceiptUrl { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs b/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs
index 316ae7606d..06a13228a8 100644
--- a/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs
+++ b/src/Stripe.net/Entities/Treasury/DebitReversals/DebitReversal.cs
@@ -78,8 +78,8 @@ public class DebitReversal : StripeEntity, IHasId, IHasMetadata,
public DebitReversalLinkedFlows LinkedFlows { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs b/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs
index 6b35c6c3f4..e9bd69de73 100644
--- a/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs
+++ b/src/Stripe.net/Entities/Treasury/FinancialAccounts/FinancialAccount.cs
@@ -95,8 +95,8 @@ public class FinancialAccount : StripeEntity, IHasId, IHasMeta
public bool IsDefault { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs b/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs
index 3991f63cfa..e6c9730d13 100644
--- a/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs
+++ b/src/Stripe.net/Entities/Treasury/InboundTransfers/InboundTransfer.cs
@@ -102,8 +102,8 @@ public class InboundTransfer : StripeEntity, IHasId, IHasMetada
public InboundTransferLinkedFlows LinkedFlows { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs
index ec56a5e18d..3140b7c1c8 100644
--- a/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs
+++ b/src/Stripe.net/Entities/Treasury/OutboundPayments/OutboundPayment.cs
@@ -135,8 +135,8 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada
public string HostedRegulatoryReceiptUrl { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs
index 2674193477..3e16e74ba3 100644
--- a/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs
+++ b/src/Stripe.net/Entities/Treasury/OutboundTransfers/OutboundTransfer.cs
@@ -118,8 +118,8 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta
public string HostedRegulatoryReceiptUrl { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs
index 84c8d03d59..1c232fd219 100644
--- a/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs
+++ b/src/Stripe.net/Entities/Treasury/ReceivedCredits/ReceivedCredit.cs
@@ -95,8 +95,8 @@ public class ReceivedCredit : StripeEntity, IHasId, IHasObject
public ReceivedCreditLinkedFlows LinkedFlows { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs
index 7d9fdbde81..61388fe022 100644
--- a/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs
+++ b/src/Stripe.net/Entities/Treasury/ReceivedDebits/ReceivedDebit.cs
@@ -95,8 +95,8 @@ public class ReceivedDebit : StripeEntity, IHasId, IHasObject
public ReceivedDebitLinkedFlows LinkedFlows { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs b/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs
index 11cb0c0f97..fbee855ece 100644
--- a/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs
+++ b/src/Stripe.net/Entities/Treasury/TransactionEntries/TransactionEntry.cs
@@ -93,8 +93,8 @@ public class TransactionEntry : StripeEntity, IHasId, IHasObje
public string FlowType { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs b/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs
index ae067d5723..ce70cdc2eb 100644
--- a/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs
+++ b/src/Stripe.net/Entities/Treasury/Transactions/Transaction.cs
@@ -106,8 +106,8 @@ public class Transaction : StripeEntity, IHasId, IHasObject
public string FlowType { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs
index 9241548118..f59715c43e 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs
@@ -23,5 +23,13 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPer
[JsonProperty("license_fee")]
[STJS.JsonPropertyName("license_fee")]
public IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee LicenseFee { get; set; }
+
+ ///
+ /// Overrides the behavior for recurring credit grant components when the action takes
+ /// effect during the service period.
+ ///
+ [JsonProperty("recurring_credit_grant")]
+ [STJS.JsonPropertyName("recurring_credit_grant")]
+ public IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant RecurringCreditGrant { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant.cs
new file mode 100644
index 0000000000..cad001197a
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Billing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant : StripeEntity
+ {
+ ///
+ /// Controls credit grant creation behavior during partial periods. If not specified,
+ /// defaults to full_credits.
+ /// One of: full_credits, or none.
+ ///
+ [JsonProperty("create_behavior")]
+ [STJS.JsonPropertyName("create_behavior")]
+ public string CreateBehavior { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs
index 11247e2c22..cbb30a1c4f 100644
--- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs
@@ -23,5 +23,13 @@ public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartial
[JsonProperty("license_fee")]
[STJS.JsonPropertyName("license_fee")]
public IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee LicenseFee { get; set; }
+
+ ///
+ /// Overrides the behavior for recurring credit grant components when the action takes
+ /// effect during the service period.
+ ///
+ [JsonProperty("recurring_credit_grant")]
+ [STJS.JsonPropertyName("recurring_credit_grant")]
+ public IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant RecurringCreditGrant { get; set; }
}
}
diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant.cs
new file mode 100644
index 0000000000..e275a5916b
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Billing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant : StripeEntity
+ {
+ ///
+ /// Controls credit grant creation behavior during partial periods. If not specified,
+ /// defaults to full_credits.
+ /// One of: full_credits, or none.
+ ///
+ [JsonProperty("create_behavior")]
+ [STJS.JsonPropertyName("create_behavior")]
+ public string CreateBehavior { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs b/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs
index d485e8e0bc..868c52a067 100644
--- a/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs
+++ b/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs
@@ -65,14 +65,6 @@ public class Intent : StripeEntity, IHasId, IHasObject
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }
- ///
- /// Invoice resources associated with this Billing Intent. Populated when include parameters
- /// are specified.
- ///
- [JsonProperty("invoice_resources")]
- [STJS.JsonPropertyName("invoice_resources")]
- public IntentInvoiceResources InvoiceResources { get; set; }
-
///
/// Has the value true if the object exists in live mode or the value false if
/// the object exists in test mode.
diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentAmountDetails.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentAmountDetails.cs
index 1d69849474..2cd3a33faf 100644
--- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentAmountDetails.cs
+++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentAmountDetails.cs
@@ -8,13 +8,6 @@ namespace Stripe.V2.Billing
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class IntentAmountDetails : StripeEntity
{
- ///
- /// The outstanding amount after discount, tax, and customer balance application.
- ///
- [JsonProperty("amount_due")]
- [STJS.JsonPropertyName("amount_due")]
- public string AmountDue { get; set; }
-
///
/// Three-letter ISO currency code, in lowercase. Must be a supported currency.
///
@@ -22,13 +15,6 @@ public class IntentAmountDetails : StripeEntity
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }
- ///
- /// The customer's account balance applied to the amount.
- ///
- [JsonProperty("customer_balance_applied")]
- [STJS.JsonPropertyName("customer_balance_applied")]
- public string CustomerBalanceApplied { get; set; }
-
///
/// Amount of discount applied.
///
diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentInvoiceResources.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentInvoiceResources.cs
deleted file mode 100644
index fbf23b88b1..0000000000
--- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentInvoiceResources.cs
+++ /dev/null
@@ -1,20 +0,0 @@
-// File generated from our OpenAPI spec
-namespace Stripe.V2.Billing
-{
- using Newtonsoft.Json;
- using Stripe.Infrastructure;
- using STJS = System.Text.Json.Serialization;
-
- [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
- public class IntentInvoiceResources : StripeEntity
- {
- ///
- /// ID of a preview invoice showing the breakdown of line items. Null if the billing intent
- /// will not create an invoice. Only present when "invoice_resources.preview_invoice" is
- /// included.
- ///
- [JsonProperty("preview_invoice")]
- [STJS.JsonPropertyName("preview_invoice")]
- public string PreviewInvoice { get; set; }
- }
-}
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs
index d236d5ed33..4c1607af3a 100644
--- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs
@@ -24,6 +24,21 @@ public class AccountIdentityAttestationsTermsOfService : StripeEntity
+ /// Details on the Account's acceptance of Consumer-privacy-disclosures-specific terms of
+ /// service.
+ ///
+ [JsonProperty("consumer_privacy_disclosures")]
+ [STJS.JsonPropertyName("consumer_privacy_disclosures")]
+ public AccountIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosures ConsumerPrivacyDisclosures { get; set; }
+
+ ///
+ /// Details on the Account's acceptance of Consumer-storer-specific terms of service.
+ ///
+ [JsonProperty("consumer_storer")]
+ [STJS.JsonPropertyName("consumer_storer")]
+ public AccountIdentityAttestationsTermsOfServiceConsumerStorer ConsumerStorer { get; set; }
+
///
/// Details on the Account's acceptance of Crypto-storer-specific terms of service.
///
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosures.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosures.cs
new file mode 100644
index 0000000000..f089e80343
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosures.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosures : StripeEntity
+ {
+ ///
+ /// The time when the Account's representative accepted the terms of service. Represented as
+ /// a RFC 3339 date & time UTC value in millisecond precision, for example:
+ /// 2022-09-18T13:22:18.123Z.
+ ///
+ [JsonProperty("date")]
+ [STJS.JsonPropertyName("date")]
+ public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+
+ ///
+ /// The IP address from which the Account's representative accepted the terms of service.
+ ///
+ [JsonProperty("ip")]
+ [STJS.JsonPropertyName("ip")]
+ public string Ip { get; set; }
+
+ ///
+ /// The user agent of the browser from which the Account's representative accepted the terms
+ /// of service.
+ ///
+ [JsonProperty("user_agent")]
+ [STJS.JsonPropertyName("user_agent")]
+ public string UserAgent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerStorer.cs
new file mode 100644
index 0000000000..77073fecc5
--- /dev/null
+++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerStorer.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeEntityConverter))]
+ public class AccountIdentityAttestationsTermsOfServiceConsumerStorer : StripeEntity
+ {
+ ///
+ /// The time when the Account's representative accepted the terms of service. Represented as
+ /// a RFC 3339 date & time UTC value in millisecond precision, for example:
+ /// 2022-09-18T13:22:18.123Z.
+ ///
+ [JsonProperty("date")]
+ [STJS.JsonPropertyName("date")]
+ public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
+
+ ///
+ /// The IP address from which the Account's representative accepted the terms of service.
+ ///
+ [JsonProperty("ip")]
+ [STJS.JsonPropertyName("ip")]
+ public string Ip { get; set; }
+
+ ///
+ /// The user agent of the browser from which the Account's representative accepted the terms
+ /// of service.
+ ///
+ [JsonProperty("user_agent")]
+ [STJS.JsonPropertyName("user_agent")]
+ public string UserAgent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs b/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs
index e8c963adad..f2113e123a 100644
--- a/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs
+++ b/src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs
@@ -83,8 +83,8 @@ public class WebhookEndpoint : StripeEntity, IHasId, IHasMetada
public List EnabledEvents { get; set; }
///
- /// Has the value true if the object exists in live mode or the value false if
- /// the object exists in test mode.
+ /// If the object exists in live mode, the value is true. If the object exists in
+ /// test mode, the value is false.
///
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
index 58496b3623..aa56fa03a0 100644
--- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
+++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs
@@ -195,6 +195,7 @@ public static class StripeTypeRegistry
{ "reserve.release", typeof(Reserve.Release) },
{ "reserve_transaction", typeof(ReserveTransaction) },
{ "review", typeof(Review) },
+ { "risk_signals", typeof(RiskSignals) },
{ "scheduled_query_run", typeof(Sigma.ScheduledQueryRun) },
{ "setup_attempt", typeof(SetupAttempt) },
{ "setup_intent", typeof(SetupIntent) },
diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
index 8dadb17c1e..92a30631a2 100644
--- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
+++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs
@@ -505,6 +505,13 @@ public class AccountCapabilitiesOptions : INestedOptions
[STJS.JsonPropertyName("twint_payments")]
public AccountCapabilitiesTwintPaymentsOptions TwintPayments { get; set; }
+ ///
+ /// The upi_payments capability.
+ ///
+ [JsonProperty("upi_payments")]
+ [STJS.JsonPropertyName("upi_payments")]
+ public AccountCapabilitiesUpiPaymentsOptions UpiPayments { get; set; }
+
///
/// The us_bank_account_ach_payments capability.
///
diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesUpiPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesUpiPaymentsOptions.cs
new file mode 100644
index 0000000000..8b7553f2aa
--- /dev/null
+++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesUpiPaymentsOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class AccountCapabilitiesUpiPaymentsOptions : INestedOptions
+ {
+ ///
+ /// Passing true requests the capability for the account, if it is not already requested. A
+ /// requested capability may not immediately become active. Any requirements to activate the
+ /// capability are returned in the requirements arrays.
+ ///
+ [JsonProperty("requested")]
+ [STJS.JsonPropertyName("requested")]
+ public bool? Requested { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsPaypayPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsPaypayPaymentsOptions.cs
index 8f1640208d..b1c3a75355 100644
--- a/src/Stripe.net/Services/Accounts/AccountSettingsPaypayPaymentsOptions.cs
+++ b/src/Stripe.net/Services/Accounts/AccountSettingsPaypayPaymentsOptions.cs
@@ -17,7 +17,8 @@ public class AccountSettingsPaypayPaymentsOptions : INestedOptions
public List AdditionalFiles { get; set; }
///
- /// Whether your business sells digital content or not.
+ /// The type of goods your business sells. Use digital_content if you sell digital
+ /// content. Use other for all other types of goods or services.
/// One of: digital_content, or other.
///
[JsonProperty("goods_type")]
diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs
index 6279d688a8..34d38ab8bf 100644
--- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs
+++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs
@@ -114,10 +114,6 @@ public List LodgingData
/// A unique value assigned by the business to identify the transaction. Required for L2 and
/// L3 rates.
///
- /// Required when the Payment Method Types array contains card, including when automatic_payment_methods.enabled
- /// is set to true.
- ///
/// For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
/// before being sent to card networks. For Klarna, this field is truncated to 255
/// characters and is visible to customers when they view the order in the Klarna app.
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxLiabilityOptions.cs
index ee9ef0a97b..10c96bd248 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class SessionAutomaticTaxLiabilityOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs
index 95d8cda892..75efa74d01 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs
@@ -222,8 +222,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
/// pay_by_bank, payco, paynow, paypal, paypay,
/// payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
- /// shopeepay, sofort, swish, twint, us_bank_account,
- /// wechat_pay, or zip.
+ /// shopeepay, sofort, swish, twint, upi,
+ /// us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
@@ -240,6 +240,14 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime? ExpiresAt { get; set; }
+ ///
+ /// The integration identifier for this Checkout Session. Multiple Checkout Sessions can
+ /// have the same integration identifier.
+ ///
+ [JsonProperty("integration_identifier")]
+ [STJS.JsonPropertyName("integration_identifier")]
+ public string IntegrationIdentifier { get; set; }
+
///
/// Generate a post-purchase Invoice for one-time payments.
///
@@ -427,8 +435,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
/// oxxo, p24, pay_by_bank, payco, paynow, paypal,
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
- /// shopeepay, sofort, swish, twint, us_bank_account,
- /// wechat_pay, or zip.
+ /// shopeepay, sofort, swish, twint, upi,
+ /// us_bank_account, wechat_pay, or zip.
///
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
@@ -549,7 +557,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
///
/// The UI mode of the Session. Defaults to hosted.
- /// One of: custom, embedded, or hosted.
+ /// One of: elements, embedded_page, form, or hosted_page.
///
[JsonProperty("ui_mode")]
[STJS.JsonPropertyName("ui_mode")]
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuerOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuerOptions.cs
index c4946dcf2d..74c9da37fe 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuerOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataIssuerOptions.cs
@@ -17,7 +17,7 @@ public class SessionInvoiceCreationInvoiceDataIssuerOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs
index 05bb101214..173d9968cc 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemPriceDataProductDataTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe.Checkout
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class SessionLineItemPriceDataProductDataTaxDetailsOptions : INestedOptions
+ public class SessionLineItemPriceDataProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class SessionLineItemPriceDataProductDataTaxDetailsOptions : INestedOptio
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCryptoOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCryptoOptions.cs
new file mode 100644
index 0000000000..c1f8971b1c
--- /dev/null
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCryptoOptions.cs
@@ -0,0 +1,35 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SessionPaymentMethodOptionsCryptoOptions : INestedOptions
+ {
+ ///
+ /// Indicates that you intend to make future payments with this PaymentIntent's payment
+ /// method.
+ ///
+ /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to
+ /// the Customer after the PaymentIntent is confirmed and the customer completes any
+ /// required actions. If you don't provide a Customer, you can still attach the payment method to a
+ /// Customer after the transaction completes.
+ ///
+ /// If the payment method is card_present and isn't a digital wallet, Stripe creates
+ /// and attaches a generated_card
+ /// payment method representing the card to the Customer instead.
+ ///
+ /// When processing card payments, Stripe uses setup_future_usage to help you comply
+ /// with regional legislation and network rules, such as SCA.
+ ///
+ [JsonProperty("setup_future_usage")]
+ [STJS.JsonPropertyName("setup_future_usage")]
+ public string SetupFutureUsage { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs
index aca4ddd0b1..bbc65ec806 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs
@@ -100,6 +100,13 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions
[STJS.JsonPropertyName("cashapp")]
public SessionPaymentMethodOptionsCashappOptions Cashapp { get; set; }
+ ///
+ /// contains details about the Crypto payment method options.
+ ///
+ [JsonProperty("crypto")]
+ [STJS.JsonPropertyName("crypto")]
+ public SessionPaymentMethodOptionsCryptoOptions Crypto { get; set; }
+
///
/// contains details about the Customer Balance payment method options.
///
@@ -310,6 +317,13 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions
[STJS.JsonPropertyName("twint")]
public SessionPaymentMethodOptionsTwintOptions Twint { get; set; }
+ ///
+ /// contains details about the UPI payment method options.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public SessionPaymentMethodOptionsUpiOptions Upi { get; set; }
+
///
/// contains details about the Us Bank Account payment method options.
///
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs
index 9bffd40827..af9f62c411 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixMandateOptionsOptions.cs
@@ -50,7 +50,7 @@ public class SessionPaymentMethodOptionsPixMandateOptionsOptions : INestedOption
public string EndDate { get; set; }
///
- /// Schedule at which the future payments will be charged. Defaults to weekly.
+ /// Schedule at which the future payments will be charged. Defaults to monthly.
/// One of: halfyearly, monthly, quarterly, weekly, or
/// yearly.
///
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..d12f160619
--- /dev/null
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SessionPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsUpiOptions.cs
new file mode 100644
index 0000000000..177c73eb23
--- /dev/null
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsUpiOptions.cs
@@ -0,0 +1,44 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SessionPaymentMethodOptionsUpiOptions : INestedOptions, IHasSetTracking
+ {
+ private string setupFutureUsage;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
+ ///
+ /// Additional fields for Mandate creation.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SessionPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; }
+
+ ///
+ /// One of: none, off_session, or on_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+ [STJS.JsonPropertyName("setup_future_usage")]
+ public string SetupFutureUsage
+ {
+ get => this.setupFutureUsage;
+ set
+ {
+ this.setupFutureUsage = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
+ }
+}
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataInvoiceSettingsIssuerOptions.cs
index 2bf9f4cf2f..9d9f3daf79 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class SessionSubscriptionDataInvoiceSettingsIssuerOptions : INestedOption
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs
index 0a4b643c6b..2b1513a67f 100644
--- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs
@@ -10,6 +10,7 @@ namespace Stripe.Checkout
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata, IHasSetTracking
{
+ private SessionSubscriptionDataPendingInvoiceItemIntervalOptions pendingInvoiceItemInterval;
private long? trialPeriodDays;
[JsonIgnore]
@@ -87,6 +88,23 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata, IHas
[STJS.JsonPropertyName("on_behalf_of")]
public string OnBehalfOf { get; set; }
+ ///
+ /// Specifies an interval for how often to bill for any pending invoice items. It is
+ /// analogous to calling Create an
+ /// invoice for the given subscription at the specified interval.
+ ///
+ [JsonProperty("pending_invoice_item_interval")]
+ [STJS.JsonPropertyName("pending_invoice_item_interval")]
+ public SessionSubscriptionDataPendingInvoiceItemIntervalOptions PendingInvoiceItemInterval
+ {
+ get => this.pendingInvoiceItemInterval;
+ set
+ {
+ this.pendingInvoiceItemInterval = value;
+ this.SetTracker.Track();
+ }
+ }
+
///
/// Determines how to handle prorations resulting from the billing_cycle_anchor. If
/// no value is passed, the default is create_prorations.
diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataPendingInvoiceItemIntervalOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataPendingInvoiceItemIntervalOptions.cs
new file mode 100644
index 0000000000..10520dfd98
--- /dev/null
+++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataPendingInvoiceItemIntervalOptions.cs
@@ -0,0 +1,29 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Checkout
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SessionSubscriptionDataPendingInvoiceItemIntervalOptions : INestedOptions
+ {
+ ///
+ /// Specifies invoicing frequency. Either day, week, month or
+ /// year.
+ /// One of: day, month, week, or year.
+ ///
+ [JsonProperty("interval")]
+ [STJS.JsonPropertyName("interval")]
+ public string Interval { get; set; }
+
+ ///
+ /// The number of intervals between invoices. For example, interval=month and
+ /// interval_count=3 bills every 3 months. Maximum of one year interval allowed (1
+ /// year, 12 months, or 52 weeks).
+ ///
+ [JsonProperty("interval_count")]
+ [STJS.JsonPropertyName("interval_count")]
+ public long? IntervalCount { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs
index 27033ff50a..70ed5266d4 100644
--- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs
+++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs
@@ -7,7 +7,7 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class CreditNotePreviewLinesLineOptions : INestedOptions, IHasSetTracking
+ public class CreditNotePreviewLinesLineOptions : INestedOptions, IHasMetadata, IHasSetTracking
{
private List taxAmounts;
private List taxRates;
@@ -41,6 +41,16 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions, IHasSetTracking
[STJS.JsonPropertyName("invoice_line_item")]
public string InvoiceLineItem { get; set; }
+ ///
+ /// Set of key-value pairs that you can
+ /// attach to an object. This can be useful for storing additional information about the
+ /// object in a structured format. Individual keys can be unset by posting an empty value to
+ /// them. All keys can be unset by posting an empty value to metadata.
+ ///
+ [JsonProperty("metadata")]
+ [STJS.JsonPropertyName("metadata")]
+ public Dictionary Metadata { get; set; }
+
///
/// The line item quantity to credit.
///
diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs
index a38cfa2a4f..95f48f7fb5 100644
--- a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs
+++ b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs
@@ -7,7 +7,7 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class CreditNoteLineOptions : INestedOptions, IHasSetTracking
+ public class CreditNoteLineOptions : INestedOptions, IHasMetadata, IHasSetTracking
{
private List taxAmounts;
private List taxRates;
@@ -41,6 +41,16 @@ public class CreditNoteLineOptions : INestedOptions, IHasSetTracking
[STJS.JsonPropertyName("invoice_line_item")]
public string InvoiceLineItem { get; set; }
+ ///
+ /// Set of key-value pairs that you can
+ /// attach to an object. This can be useful for storing additional information about the
+ /// object in a structured format. Individual keys can be unset by posting an empty value to
+ /// them. All keys can be unset by posting an empty value to metadata.
+ ///
+ [JsonProperty("metadata")]
+ [STJS.JsonPropertyName("metadata")]
+ public Dictionary Metadata { get; set; }
+
///
/// The line item quantity to credit.
///
diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs
index b96afd2ea3..127098bea0 100644
--- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs
+++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs
@@ -34,7 +34,7 @@ public class CustomerPaymentMethodListOptions : ListOptions
/// paynow, paypal, paypay, payto, pix, promptpay,
/// qris, rechnung, revolut_pay, samsung_pay, satispay,
/// sepa_debit, shopeepay, sofort, stripe_balance, swish,
- /// twint, us_bank_account, wechat_pay, or zip.
+ /// twint, upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceService.cs b/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceService.cs
index 494c55863e..a7a8e58697 100644
--- a/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceService.cs
+++ b/src/Stripe.net/Services/CustomerPaymentSources/CustomerPaymentSourceService.cs
@@ -35,7 +35,7 @@ public CustomerPaymentSourceService(IStripeClient client)
///
///
If the card’s owner has no default card, then the new card will become the default.
/// However, if the owner already has a default, then it will not change. To change the
- /// default, you should update the
+ /// default, you should update the
/// customer to have a new default_source.
If the card’s owner has no default card, then the new card will become the default.
/// However, if the owner already has a default, then it will not change. To change the
- /// default, you should update the
+ /// default, you should update the
/// customer to have a new default_source.
.
///
public virtual Task CreateAsync(string parentId, CustomerPaymentSourceCreateOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs
index 4baffc4661..c24cab248b 100644
--- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs
+++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs
@@ -8,6 +8,13 @@ namespace Stripe.DelegatedCheckout
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions : INestedOptions
{
+ ///
+ /// The digital fulfillment option.
+ ///
+ [JsonProperty("digital")]
+ [STJS.JsonPropertyName("digital")]
+ public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions Digital { get; set; }
+
///
/// The shipping fulfillment option.
///
@@ -21,12 +28,5 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
-
- ///
- /// The digital fulfillment option.
- ///
- [JsonProperty("digital")]
- [STJS.JsonPropertyName("digital")]
- public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions Digital { get; set; }
}
}
diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs
index ad317e5317..5b6ea28057 100644
--- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs
+++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs
@@ -143,12 +143,24 @@ public Dictionary Metadata
public InvoiceItemPricingOptions Pricing { get; set; }
///
- /// Non-negative integer. The quantity of units for the invoice item.
+ /// Non-negative integer. The quantity of units for the invoice item. Use
+ /// quantity_decimal instead to provide decimal precision. This field will be
+ /// deprecated in favor of quantity_decimal in a future version.
///
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long? Quantity { get; set; }
+ ///
+ /// Non-negative decimal with at most 12 decimal places. The quantity of units for the
+ /// invoice item.
+ ///
+ [JsonProperty("quantity_decimal")]
+ [JsonConverter(typeof(DecimalStringConverter))]
+ [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
+ [STJS.JsonPropertyName("quantity_decimal")]
+ public decimal? QuantityDecimal { get; set; }
+
///
/// The ID of a subscription to add this invoice item to. When left blank, the invoice item
/// is added to the next upcoming scheduled invoice. When set, scheduled invoices for
diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs
index 16aeabbcf0..33e5a3872f 100644
--- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs
+++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemUpdateOptions.cs
@@ -120,12 +120,24 @@ public Dictionary Metadata
public InvoiceItemPricingOptions Pricing { get; set; }
///
- /// Non-negative integer. The quantity of units for the invoice item.
+ /// Non-negative integer. The quantity of units for the invoice item. Use
+ /// quantity_decimal instead to provide decimal precision. This field will be
+ /// deprecated in favor of quantity_decimal in a future version.
///
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long? Quantity { get; set; }
+ ///
+ /// Non-negative decimal with at most 12 decimal places. The quantity of units for the line
+ /// item.
+ ///
+ [JsonProperty("quantity_decimal")]
+ [JsonConverter(typeof(DecimalStringConverter))]
+ [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
+ [STJS.JsonPropertyName("quantity_decimal")]
+ public decimal? QuantityDecimal { get; set; }
+
///
/// Only required if a default
diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs
index c38040604e..f1da284afc 100644
--- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemPriceDataProductDataTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class InvoiceLineItemPriceDataProductDataTaxDetailsOptions : INestedOptions
+ public class InvoiceLineItemPriceDataProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class InvoiceLineItemPriceDataProductDataTaxDetailsOptions : INestedOptio
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs
index 0500e183f8..c5f1709d6c 100644
--- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs
+++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemUpdateOptions.cs
@@ -79,11 +79,11 @@ public List Margins
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format. Individual keys can be unset by posting an empty value to
/// them. All keys can be unset by posting an empty value to metadata. For type=subscription
- /// line items, the incoming metadata specified on the request is directly used to set this
- /// value, in contrast to type=invoiceitem line
- /// items, where any existing metadata on the invoice line is merged with the incoming data.
+ /// href="https://stripe.com/api/invoices/line_item">type=subscription line items, the
+ /// incoming metadata specified on the request is directly used to set this value, in
+ /// contrast to type=invoiceitem
+ /// line items, where any existing metadata on the invoice line is merged with the incoming
+ /// data.
///
[JsonProperty("metadata")]
[STJS.JsonPropertyName("metadata")]
@@ -125,12 +125,24 @@ public Dictionary Metadata
public InvoiceLineItemPricingOptions Pricing { get; set; }
///
- /// Non-negative integer. The quantity of units for the line item.
+ /// Non-negative integer. The quantity of units for the line item. Use
+ /// quantity_decimal instead to provide decimal precision. This field will be
+ /// deprecated in favor of quantity_decimal in a future version.
///
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long? Quantity { get; set; }
+ ///
+ /// Non-negative decimal with at most 12 decimal places. The quantity of units for the line
+ /// item.
+ ///
+ [JsonProperty("quantity_decimal")]
+ [JsonConverter(typeof(DecimalStringConverter))]
+ [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
+ [STJS.JsonPropertyName("quantity_decimal")]
+ public decimal? QuantityDecimal { get; set; }
+
///
/// A list of up to 10 tax amounts for this line item. This can be useful if you calculate
/// taxes on your own or use a third-party to calculate them. You cannot set tax amounts if
diff --git a/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxLiabilityOptions.cs
index 8132a70f22..d77278dfd9 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class InvoiceAutomaticTaxLiabilityOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Invoices/InvoiceIssuerOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceIssuerOptions.cs
index 00c831a0ee..5575c47a18 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceIssuerOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceIssuerOptions.cs
@@ -17,7 +17,7 @@ public class InvoiceIssuerOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs
index b7d51a2376..baf41b3787 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceLineOptions.cs
@@ -153,12 +153,24 @@ public Dictionary Metadata
public InvoiceLinePricingOptions Pricing { get; set; }
///
- /// Non-negative integer. The quantity of units for the line item.
+ /// Non-negative integer. The quantity of units for the line item. Use
+ /// quantity_decimal instead to provide decimal precision. This field will be
+ /// deprecated in favor of quantity_decimal in a future version.
///
[JsonProperty("quantity")]
[STJS.JsonPropertyName("quantity")]
public long? Quantity { get; set; }
+ ///
+ /// Non-negative decimal with at most 12 decimal places. The quantity of units for the line
+ /// item.
+ ///
+ [JsonProperty("quantity_decimal")]
+ [JsonConverter(typeof(DecimalStringConverter))]
+ [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)]
+ [STJS.JsonPropertyName("quantity_decimal")]
+ public decimal? QuantityDecimal { get; set; }
+
///
/// A list of up to 10 tax amounts for this line item. This can be useful if you calculate
/// taxes on your own or use a third-party to calculate them. You cannot set tax amounts if
diff --git a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs
index 41135f933e..946954b00c 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceLinePriceDataProductDataTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class InvoiceLinePriceDataProductDataTaxDetailsOptions : INestedOptions
+ public class InvoiceLinePriceDataProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class InvoiceLinePriceDataProductDataTaxDetailsOptions : INestedOptions
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs
index 3f311a0db8..8bb2d31b9f 100644
--- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsPixOptions.cs
@@ -15,5 +15,13 @@ public class InvoicePaymentSettingsPaymentMethodOptionsPixOptions : INestedOptio
[JsonProperty("amount_includes_iof")]
[STJS.JsonPropertyName("amount_includes_iof")]
public string AmountIncludesIof { get; set; }
+
+ ///
+ /// The number of seconds (between 10 and 1209600) after which Pix payment will expire.
+ /// Defaults to 86400 seconds.
+ ///
+ [JsonProperty("expires_after_seconds")]
+ [STJS.JsonPropertyName("expires_after_seconds")]
+ public long? ExpiresAfterSeconds { get; set; }
}
}
diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs
index 97788dae8b..be4fbcef62 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class InvoiceScheduleDetailsAmendmentSetPauseCollectionSetOptions : INestedOptions
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs
index a9cb520de2..1c7b706ff6 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class InvoiceScheduleDetailsPhaseAutomaticTaxLiabilityOptions : INestedOp
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs
index 13d4efb06e..4471c186ee 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class InvoiceScheduleDetailsPhaseInvoiceSettingsIssuerOptions : INestedOp
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhasePauseCollectionOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhasePauseCollectionOptions.cs
index 567bdf5fe5..905cd0ae7c 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhasePauseCollectionOptions.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhasePauseCollectionOptions.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class InvoiceScheduleDetailsPhasePauseCollectionOptions : INestedOptions
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Services/Invoices/InvoiceService.cs b/src/Stripe.net/Services/Invoices/InvoiceService.cs
index c3a85f7c80..c78ff4ed05 100644
--- a/src/Stripe.net/Services/Invoices/InvoiceService.cs
+++ b/src/Stripe.net/Services/Invoices/InvoiceService.cs
@@ -94,7 +94,7 @@ public virtual Task AttachPaymentAsync(string id, InvoiceAttachPaymentO
///
///
This endpoint creates a draft invoice for a given customer. The invoice remains a
- /// draft until you finalize the
+ /// draft until you finalize the
/// invoice, which allows you to pay or send the invoice to your customers.
This endpoint creates a draft invoice for a given customer. The invoice remains a
- /// draft until you finalize the
+ /// draft until you finalize the
/// invoice, which allows you to pay or send the invoice to your customers.
Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to
/// delete invoices that are no longer in a draft state will fail; once an invoice has been
/// finalized or if an invoice is for a subscription, it must be voided.
Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to
/// delete invoices that are no longer in a draft state will fail; once an invoice has been
/// finalized or if an invoice is for a subscription, it must be voided.
Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
- /// similar to deletion, however it
+ /// similar to deletion, however it
/// only applies to finalized invoices and maintains a papertrail where the invoice can
/// still be found.
.
///
///
Consult with local regulations to determine whether and how an invoice might be
/// amended, canceled, or voided in the jurisdiction you’re doing business in. You might
- /// need to issue another invoice
- /// or credit note instead.
- /// Stripe recommends that you consult with your legal counsel for advice specific to your
+ /// need to issue another invoice or credit note instead. Stripe
+ /// recommends that you consult with your legal counsel for advice specific to your
/// business.
Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is
- /// similar to deletion, however it
+ /// similar to deletion, however it
/// only applies to finalized invoices and maintains a papertrail where the invoice can
/// still be found.
.
///
///
Consult with local regulations to determine whether and how an invoice might be
/// amended, canceled, or voided in the jurisdiction you’re doing business in. You might
- /// need to issue another invoice
- /// or credit note instead.
- /// Stripe recommends that you consult with your legal counsel for advice specific to your
+ /// need to issue another invoice or credit note instead. Stripe
+ /// recommends that you consult with your legal counsel for advice specific to your
/// business.
.
///
public virtual Task VoidInvoiceAsync(string id, InvoiceVoidOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs
index 0f22801ce4..44067394a6 100644
--- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs
+++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderCreateOptions.cs
@@ -71,10 +71,12 @@ public class CardholderCreateOptions : BaseOptions, IHasMetadata
///
/// The cardholder’s preferred locales (languages), ordered by preference. Locales can be
- /// de, en, es, fr, or it. This changes the language of
- /// the 3D Secure flow and one-time
+ /// da, de, en, es, fr, it, pl, or
+ /// sv. This changes the language of the 3D Secure flow and one-time
/// password messages sent to the cardholder.
- /// One of: de, en, es, fr, or it.
+ /// One of: da, de, en, es, fr, it, pl, or
+ /// sv.
///
[JsonProperty("preferred_locales")]
[STJS.JsonPropertyName("preferred_locales")]
diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualCardIssuingUserTermsAcceptanceOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualCardIssuingUserTermsAcceptanceOptions.cs
index f000eec340..bb09a2bfdc 100644
--- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualCardIssuingUserTermsAcceptanceOptions.cs
+++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderIndividualCardIssuingUserTermsAcceptanceOptions.cs
@@ -17,7 +17,6 @@ public class CardholderIndividualCardIssuingUserTermsAcceptanceOptions : INested
///
/// The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
- /// Required for Celtic Spend Card users.
///
[JsonProperty("date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
@@ -26,8 +25,7 @@ public class CardholderIndividualCardIssuingUserTermsAcceptanceOptions : INested
public DateTime? Date { get; set; }
///
- /// The IP address from which the cardholder accepted the Authorized User Terms. Required
- /// for Celtic Spend Card users.
+ /// The IP address from which the cardholder accepted the Authorized User Terms.
///
[JsonProperty("ip")]
[STJS.JsonPropertyName("ip")]
diff --git a/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs b/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs
index 93bb9dbcfe..a60282163b 100644
--- a/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs
+++ b/src/Stripe.net/Services/Issuing/Cardholders/CardholderUpdateOptions.cs
@@ -58,10 +58,12 @@ public class CardholderUpdateOptions : BaseOptions, IHasMetadata
///
/// The cardholder’s preferred locales (languages), ordered by preference. Locales can be
- /// de, en, es, fr, or it. This changes the language of
- /// the 3D Secure flow and one-time
+ /// da, de, en, es, fr, it, pl, or
+ /// sv. This changes the language of the 3D Secure flow and one-time
/// password messages sent to the cardholder.
- /// One of: de, en, es, fr, or it.
+ /// One of: da, de, en, es, fr, it, pl, or
+ /// sv.
///
[JsonProperty("preferred_locales")]
[STJS.JsonPropertyName("preferred_locales")]
diff --git a/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs
index 0810922671..86cc2c4419 100644
--- a/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs
+++ b/src/Stripe.net/Services/Issuing/Cards/CardCreateOptions.cs
@@ -52,6 +52,15 @@ public class CardCreateOptions : BaseOptions, IHasMetadata
[STJS.JsonPropertyName("financial_account")]
public string FinancialAccount { get; set; }
+ ///
+ /// Rules that control the lifecycle of this card, such as automatic cancellation. Refer to
+ /// our documentation
+ /// for more details.
+ ///
+ [JsonProperty("lifecycle_controls")]
+ [STJS.JsonPropertyName("lifecycle_controls")]
+ public CardLifecycleControlsOptions LifecycleControls { get; set; }
+
///
/// Set of key-value pairs that you can
/// attach to an object. This can be useful for storing additional information about the
diff --git a/src/Stripe.net/Services/Issuing/Cards/CardLifecycleControlsCancelAfterOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardLifecycleControlsCancelAfterOptions.cs
new file mode 100644
index 0000000000..97e540ee67
--- /dev/null
+++ b/src/Stripe.net/Services/Issuing/Cards/CardLifecycleControlsCancelAfterOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Issuing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class CardLifecycleControlsCancelAfterOptions : INestedOptions
+ {
+ ///
+ /// The card is automatically cancelled when it makes this number of non-zero payment
+ /// authorizations and transactions. The count includes penny authorizations, but doesn't
+ /// include non-payment actions, such as authorization advice.
+ ///
+ [JsonProperty("payment_count")]
+ [STJS.JsonPropertyName("payment_count")]
+ public long? PaymentCount { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Issuing/Cards/CardLifecycleControlsOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardLifecycleControlsOptions.cs
new file mode 100644
index 0000000000..63246c7dee
--- /dev/null
+++ b/src/Stripe.net/Services/Issuing/Cards/CardLifecycleControlsOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe.Issuing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class CardLifecycleControlsOptions : INestedOptions
+ {
+ ///
+ /// Cancels the card after the specified conditions are met.
+ ///
+ [JsonProperty("cancel_after")]
+ [STJS.JsonPropertyName("cancel_after")]
+ public CardLifecycleControlsCancelAfterOptions CancelAfter { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs
index 8c98b0a7c8..949c725073 100644
--- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs
+++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions.cs
@@ -68,7 +68,7 @@ public string SetupFutureUsage
public string TargetDate { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs
index a34f812e33..8b91928b09 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs
@@ -12,6 +12,7 @@ public class PaymentIntentAmountDetailsOptions : INestedOptions, IHasSetTracking
private long? discountAmount;
private List lineItems;
private PaymentIntentAmountDetailsShippingOptions shipping;
+ private PaymentIntentAmountDetailsSurchargeOptions surcharge;
private PaymentIntentAmountDetailsTaxOptions tax;
[JsonIgnore]
@@ -85,6 +86,21 @@ public PaymentIntentAmountDetailsShippingOptions Shipping
}
}
+ ///
+ /// Contains information about the surcharge portion of the amount.
+ ///
+ [JsonProperty("surcharge")]
+ [STJS.JsonPropertyName("surcharge")]
+ public PaymentIntentAmountDetailsSurchargeOptions Surcharge
+ {
+ get => this.surcharge;
+ set
+ {
+ this.surcharge = value;
+ this.SetTracker.Track();
+ }
+ }
+
///
/// Contains information about the tax portion of the amount.
///
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs
new file mode 100644
index 0000000000..1acc7fc73b
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsSurchargeOptions.cs
@@ -0,0 +1,54 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentIntentAmountDetailsSurchargeOptions : INestedOptions, IHasSetTracking
+ {
+ private long? amount;
+ private string enforceValidation;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
+ ///
+ /// Portion of the amount that corresponds to a surcharge.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount
+ {
+ get => this.amount;
+ set
+ {
+ this.amount = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ ///
+ /// Indicate whether to enforce validations on the surcharge amount.
+ /// One of: automatic, disabled, or enabled.
+ ///
+ [JsonProperty("enforce_validation")]
+ [STJS.JsonPropertyName("enforce_validation")]
+ public string EnforceValidation
+ {
+ get => this.enforceValidation;
+ set
+ {
+ this.enforceValidation = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs
index 3fc86e280f..73f933254a 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs
@@ -107,7 +107,7 @@ public long? ApplicationFeeAmount
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs
index cbab8e4af6..17664f99c9 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs
@@ -178,7 +178,7 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentDecrementAuthorizationOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentDecrementAuthorizationOptions.cs
index 28d2e216c6..0839a093ca 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentDecrementAuthorizationOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentDecrementAuthorizationOptions.cs
@@ -18,6 +18,13 @@ public class PaymentIntentDecrementAuthorizationOptions : BaseOptions, IHasMetad
[STJS.JsonPropertyName("amount")]
public long? Amount { get; set; }
+ ///
+ /// Provides industry-specific information about the amount.
+ ///
+ [JsonProperty("amount_details")]
+ [STJS.JsonPropertyName("amount_details")]
+ public PaymentIntentAmountDetailsOptions AmountDetails { get; set; }
+
///
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
@@ -54,6 +61,13 @@ public class PaymentIntentDecrementAuthorizationOptions : BaseOptions, IHasMetad
[STJS.JsonPropertyName("metadata")]
public Dictionary Metadata { get; set; }
+ ///
+ /// Provides industry-specific information about the charge.
+ ///
+ [JsonProperty("payment_details")]
+ [STJS.JsonPropertyName("payment_details")]
+ public PaymentIntentPaymentDetailsOptions PaymentDetails { get; set; }
+
///
/// The parameters used to automatically create a transfer after the payment is captured.
/// Learn more about the use
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs
index eb428ce627..7418b1d35c 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs
@@ -121,10 +121,6 @@ public List LodgingData
/// A unique value assigned by the business to identify the transaction. Required for L2 and
/// L3 rates.
///
- /// Required when the Payment Method Types array contains card, including when automatic_payment_methods.enabled
- /// is set to true.
- ///
/// For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces,
/// before being sent to card networks. For Klarna, this field is truncated to 255
/// characters and is visible to customers when they view the order in the Klarna app.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
index 4fc4265102..a3a1af7367 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs
@@ -493,12 +493,20 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ ///
+ /// If this is a upi PaymentMethod, this hash contains details about the UPI payment
+ /// method.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public PaymentIntentPaymentMethodDataUpiOptions Upi { get; set; }
+
///
/// If this is an us_bank_account PaymentMethod, this hash contains details about the
/// US bank account payment method.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataStripeBalanceOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataStripeBalanceOptions.cs
index a123846f52..948b1bb146 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataStripeBalanceOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataStripeBalanceOptions.cs
@@ -14,15 +14,5 @@ public class PaymentIntentPaymentMethodDataStripeBalanceOptions : INestedOptions
[JsonProperty("account")]
[STJS.JsonPropertyName("account")]
public string Account { get; set; }
-
- ///
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..28b6958c58
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentIntentPaymentMethodDataUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataUpiOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataUpiOptions.cs
new file mode 100644
index 0000000000..d5fa8e26fb
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataUpiOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentIntentPaymentMethodDataUpiOptions : INestedOptions
+ {
+ ///
+ /// Configuration options for setting up an eMandate.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public PaymentIntentPaymentMethodDataUpiMandateOptionsOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsAcssDebitOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsAcssDebitOptions.cs
index 83712e1c79..4f800d4108 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsAcssDebitOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsAcssDebitOptions.cs
@@ -68,7 +68,7 @@ public string SetupFutureUsage
public string TargetDate { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptionsOptions.cs
index 410e63e2b7..9b7ee1cd2a 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardMandateOptionsOptions.cs
@@ -11,7 +11,7 @@ namespace Stripe
public class PaymentIntentPaymentMethodOptionsCardMandateOptionsOptions : INestedOptions
{
///
- /// Amount to be charged for future payments.
+ /// Amount to be charged for future payments, specified in the presentment currency.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
index b3b4237785..4efdf6c31a 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs
@@ -63,6 +63,7 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions, IHasSetT
private PaymentIntentPaymentMethodOptionsStripeBalanceOptions stripeBalance;
private PaymentIntentPaymentMethodOptionsSwishOptions swish;
private PaymentIntentPaymentMethodOptionsTwintOptions twint;
+ private PaymentIntentPaymentMethodOptionsUpiOptions upi;
private PaymentIntentPaymentMethodOptionsUsBankAccountOptions usBankAccount;
private PaymentIntentPaymentMethodOptionsWechatPayOptions wechatPay;
private PaymentIntentPaymentMethodOptionsZipOptions zip;
@@ -958,6 +959,22 @@ public PaymentIntentPaymentMethodOptionsTwintOptions Twint
}
}
+ ///
+ /// If this is a upi PaymentIntent, this sub-hash contains details about the UPI
+ /// payment method options.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public PaymentIntentPaymentMethodOptionsUpiOptions Upi
+ {
+ get => this.upi;
+ set
+ {
+ this.upi = value;
+ this.SetTracker.Track();
+ }
+ }
+
///
/// If this is a us_bank_account PaymentMethod, this sub-hash contains details about
/// the US bank account payment method options.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs
index a2931a0862..f68c70376e 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions.cs
@@ -50,7 +50,7 @@ public class PaymentIntentPaymentMethodOptionsPixMandateOptionsOptions : INested
public string EndDate { get; set; }
///
- /// Schedule at which the future payments will be charged. Defaults to weekly.
+ /// Schedule at which the future payments will be charged. Defaults to monthly.
/// One of: halfyearly, monthly, quarterly, weekly, or
/// yearly.
///
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions.cs
new file mode 100644
index 0000000000..b801a81397
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// The ID of the Stripe Balance Debit Agreement used for this mandate.
+ ///
+ [JsonProperty("stripe_balance_debit_agreement")]
+ [STJS.JsonPropertyName("stripe_balance_debit_agreement")]
+ public string StripeBalanceDebitAgreement { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs
index f0be94c0ac..5dae931ead 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsStripeBalanceOptions.cs
@@ -14,6 +14,13 @@ public class PaymentIntentPaymentMethodOptionsStripeBalanceOptions : INestedOpti
[STJS.JsonIgnore]
internal SetTracker SetTracker { get; } = new SetTracker();
+ ///
+ /// Additional fields for mandate creation.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public PaymentIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions MandateOptions { get; set; }
+
///
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..dd0cb92a5c
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentIntentPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUpiOptions.cs
new file mode 100644
index 0000000000..494935b725
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUpiOptions.cs
@@ -0,0 +1,44 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentIntentPaymentMethodOptionsUpiOptions : INestedOptions, IHasSetTracking
+ {
+ private string setupFutureUsage;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
+ ///
+ /// Configuration options for setting up an eMandate.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public PaymentIntentPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; }
+
+ ///
+ /// One of: none, off_session, or on_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+ [STJS.JsonPropertyName("setup_future_usage")]
+ public string SetupFutureUsage
+ {
+ get => this.setupFutureUsage;
+ set
+ {
+ this.setupFutureUsage = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs
index 2ce8e020f4..fcd00f5d8f 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs
@@ -99,7 +99,7 @@ public string TransactionPurpose
}
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs
index 088906d785..eeefd32fd7 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs
@@ -63,9 +63,10 @@ public virtual Task ApplyCustomerBalanceAsync(string id, PaymentI
/// status of requires_capture, the remaining amount_capturable is
/// automatically refunded. .
///
- ///
You can directly cancel the PaymentIntent for a Checkout Session only when the
+ /// PaymentIntent has a status of requires_capture. Otherwise, you must expire the Checkout
+ /// Session.
.
///
public virtual PaymentIntent Cancel(string id, PaymentIntentCancelOptions options = null, RequestOptions requestOptions = null)
{
@@ -83,9 +84,10 @@ public virtual PaymentIntent Cancel(string id, PaymentIntentCancelOptions option
/// status of requires_capture, the remaining amount_capturable is
/// automatically refunded. .
///
- ///
You can directly cancel the PaymentIntent for a Checkout Session only when the
+ /// PaymentIntent has a status of requires_capture. Otherwise, you must expire the Checkout
+ /// Session.
.
///
public virtual Task CancelAsync(string id, PaymentIntentCancelOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
{
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs
index 6f5803e825..c9f4afc6dd 100644
--- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs
+++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs
@@ -148,7 +148,7 @@ public long? ApplicationFeeAmount
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxLiabilityOptions.cs
index a3a483410f..cdc8935e8f 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class PaymentLinkAutomaticTaxLiabilityOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
index f8aace5968..e80225ae39 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs
@@ -122,6 +122,17 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
[STJS.JsonPropertyName("line_items")]
public List LineItems { get; set; }
+ ///
+ /// Settings for Managed Payments for this Payment Link and resulting CheckoutSessions, PaymentIntents, Invoices, and Subscriptions.
+ ///
+ [JsonProperty("managed_payments")]
+ [STJS.JsonPropertyName("managed_payments")]
+ public PaymentLinkManagedPaymentsOptions ManagedPayments { get; set; }
+
///
/// Set of key-value pairs that you can
/// attach to an object. This can be useful for storing additional information about the
@@ -200,7 +211,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
/// pay_by_bank, paynow, paypal, paypay, payto,
/// pix, promptpay, qris, rechnung, satispay,
/// sepa_debit, shopeepay, sofort, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuerOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuerOptions.cs
index 89bd8531a1..8263c63420 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuerOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataIssuerOptions.cs
@@ -17,7 +17,7 @@ public class PaymentLinkInvoiceCreationInvoiceDataIssuerOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs
index cc38c64349..25a8882c4e 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions : INestedOptions
+ public class PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class PaymentLinkLineItemPriceDataProductDataTaxDetailsOptions : INestedO
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkManagedPaymentsOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkManagedPaymentsOptions.cs
new file mode 100644
index 0000000000..2bd443fa29
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkManagedPaymentsOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentLinkManagedPaymentsOptions : INestedOptions
+ {
+ ///
+ /// Set to true to enable Managed Payments, Stripe's
+ /// merchant of record solution, for this session.
+ ///
+ [JsonProperty("enabled")]
+ [STJS.JsonPropertyName("enabled")]
+ public bool? Enabled { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuerOptions.cs
index c3dec40aa9..6e1a0a9d39 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkSubscriptionDataInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class PaymentLinkSubscriptionDataInvoiceSettingsIssuerOptions : INestedOp
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
index 12bd8858d7..d4019ab4fa 100644
--- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
+++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs
@@ -205,7 +205,7 @@ public List OptionalItems
/// pay_by_bank, paynow, paypal, paypay, payto,
/// pix, promptpay, qris, rechnung, satispay,
/// sepa_debit, shopeepay, sofort, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("payment_method_types")]
[STJS.JsonPropertyName("payment_method_types")]
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs
index 0c70e93caa..4fbb0c6cb4 100644
--- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationCreateOptions.cs
@@ -594,6 +594,14 @@ public class PaymentMethodConfigurationCreateOptions : BaseOptions
[STJS.JsonPropertyName("twint")]
public PaymentMethodConfigurationTwintOptions Twint { get; set; }
+ ///
+ /// Unified Payment Interface (UPI) is India's leading payment method with exponential
+ /// growth since it launched in 2016.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public PaymentMethodConfigurationUpiOptions Upi { get; set; }
+
///
/// Stripe users in the United States can accept ACH direct debit payments from customers
/// with a US bank account using the Automated Clearing House (ACH) payments system operated
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs
index b2d35ba24e..884fada1f6 100644
--- a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpdateOptions.cs
@@ -594,6 +594,14 @@ public class PaymentMethodConfigurationUpdateOptions : BaseOptions
[STJS.JsonPropertyName("twint")]
public PaymentMethodConfigurationTwintOptions Twint { get; set; }
+ ///
+ /// Unified Payment Interface (UPI) is India's leading payment method with exponential
+ /// growth since it launched in 2016.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public PaymentMethodConfigurationUpiOptions Upi { get; set; }
+
///
/// Stripe users in the United States can accept ACH direct debit payments from customers
/// with a US bank account using the Automated Clearing House (ACH) payments system operated
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpiDisplayPreferenceOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpiDisplayPreferenceOptions.cs
new file mode 100644
index 0000000000..dfb13e513a
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpiDisplayPreferenceOptions.cs
@@ -0,0 +1,19 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentMethodConfigurationUpiDisplayPreferenceOptions : INestedOptions
+ {
+ ///
+ /// The account's preference for whether or not to display this payment method.
+ /// One of: none, off, or on.
+ ///
+ [JsonProperty("preference")]
+ [STJS.JsonPropertyName("preference")]
+ public string Preference { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpiOptions.cs b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpiOptions.cs
new file mode 100644
index 0000000000..ee095ce889
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentMethodConfigurations/PaymentMethodConfigurationUpiOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentMethodConfigurationUpiOptions : INestedOptions
+ {
+ ///
+ /// Whether or not the payment method should be displayed.
+ ///
+ [JsonProperty("display_preference")]
+ [STJS.JsonPropertyName("display_preference")]
+ public PaymentMethodConfigurationUpiDisplayPreferenceOptions DisplayPreference { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs
index 9aa97f5711..bac112a834 100644
--- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs
@@ -528,12 +528,20 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
/// paynow, paypal, paypay, payto, pix, promptpay,
/// qris, rechnung, revolut_pay, samsung_pay, satispay,
/// sepa_debit, shopeepay, sofort, stripe_balance, swish,
- /// twint, us_bank_account, wechat_pay, or zip.
+ /// twint, upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ ///
+ /// If this is a upi PaymentMethod, this hash contains details about the UPI payment
+ /// method.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public PaymentMethodUpiOptions Upi { get; set; }
+
///
/// If this is an us_bank_account PaymentMethod, this hash contains details about the
/// US bank account payment method.
diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs
index d0d7388f1b..4bd84904cd 100644
--- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs
@@ -48,7 +48,7 @@ public class PaymentMethodListOptions : ListOptions
/// paynow, paypal, paypay, payto, pix, promptpay,
/// qris, rechnung, revolut_pay, samsung_pay, satispay,
/// sepa_debit, shopeepay, sofort, stripe_balance, swish,
- /// twint, us_bank_account, wechat_pay, or zip.
+ /// twint, upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodStripeBalanceOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodStripeBalanceOptions.cs
index 8df15ca231..43669578ed 100644
--- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodStripeBalanceOptions.cs
+++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodStripeBalanceOptions.cs
@@ -14,15 +14,5 @@ public class PaymentMethodStripeBalanceOptions : INestedOptions
[JsonProperty("account")]
[STJS.JsonPropertyName("account")]
public string Account { get; set; }
-
- ///
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..11fb323682
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentMethodUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpiOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpiOptions.cs
new file mode 100644
index 0000000000..81b7d46006
--- /dev/null
+++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodUpiOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class PaymentMethodUpiOptions : INestedOptions
+ {
+ ///
+ /// Configuration options for setting up an eMandate.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public PaymentMethodUpiMandateOptionsOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/Payouts/PayoutService.cs b/src/Stripe.net/Services/Payouts/PayoutService.cs
index 9b75d58ca6..9a7a029351 100644
--- a/src/Stripe.net/Services/Payouts/PayoutService.cs
+++ b/src/Stripe.net/Services/Payouts/PayoutService.cs
@@ -58,8 +58,8 @@ public virtual Task CancelAsync(string id, PayoutCancelOptions options =
///
///
If you create a manual payout on a Stripe account that uses multiple payment source
/// types, you need to specify the source type balance that the payout draws from. The balance object details available
- /// and pending amounts by source type.
.
+ /// href="https://stripe.com/api/balances/object">balance object details available and
+ /// pending amounts by source type..
///
public virtual Payout Create(PayoutCreateOptions options, RequestOptions requestOptions = null)
{
@@ -76,8 +76,8 @@ public virtual Payout Create(PayoutCreateOptions options, RequestOptions request
///
///
If you create a manual payout on a Stripe account that uses multiple payment source
/// types, you need to specify the source type balance that the payout draws from. The balance object details available
- /// and pending amounts by source type.
.
+ /// href="https://stripe.com/api/balances/object">balance object details available and
+ /// pending amounts by source type..
///
public virtual Task CreateAsync(PayoutCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
{
diff --git a/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs b/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs
index 40897e04f1..a7eb0d522d 100644
--- a/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/Plans/PlanProductTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class PlanProductTaxDetailsOptions : INestedOptions
+ public class PlanProductTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class PlanProductTaxDetailsOptions : INestedOptions
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs
index ac1d9a0e70..5d2b37ecb5 100644
--- a/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/Prices/PriceProductDataTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class PriceProductDataTaxDetailsOptions : INestedOptions
+ public class PriceProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class PriceProductDataTaxDetailsOptions : INestedOptions
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/Privacy/RedactionJobs/RedactionJobListOptions.cs b/src/Stripe.net/Services/Privacy/RedactionJobs/RedactionJobListOptions.cs
index e269284e2b..5e77a2f066 100644
--- a/src/Stripe.net/Services/Privacy/RedactionJobs/RedactionJobListOptions.cs
+++ b/src/Stripe.net/Services/Privacy/RedactionJobs/RedactionJobListOptions.cs
@@ -9,6 +9,7 @@ namespace Stripe.Privacy
public class RedactionJobListOptions : ListOptions
{
///
+ /// If provided, only RedactionJob objects with the given status will be returned.
/// One of: canceled, canceling, created, failed, ready,
/// redacting, succeeded, or validating.
///
diff --git a/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs b/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs
index 02c115019f..6a4beb12c2 100644
--- a/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs
+++ b/src/Stripe.net/Services/Products/ProductTaxDetailsOptions.cs
@@ -6,8 +6,14 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
- public class ProductTaxDetailsOptions : INestedOptions
+ public class ProductTaxDetailsOptions : INestedOptions, IHasSetTracking
{
+ private string taxCode;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
///
/// A tax location ID. Depending on the tax
@@ -22,6 +28,19 @@ public class ProductTaxDetailsOptions : INestedOptions
///
[JsonProperty("tax_code")]
[STJS.JsonPropertyName("tax_code")]
- public string TaxCode { get; set; }
+ public string TaxCode
+ {
+ get => this.taxCode;
+ set
+ {
+ this.taxCode = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
}
}
diff --git a/src/Stripe.net/Services/Quotes/QuoteAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/Quotes/QuoteAutomaticTaxLiabilityOptions.cs
index ad2757ee24..2ccd1b4070 100644
--- a/src/Stripe.net/Services/Quotes/QuoteAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/Quotes/QuoteAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class QuoteAutomaticTaxLiabilityOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsIssuerOptions.cs
index 7f8f9ec41d..f2939e04d8 100644
--- a/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class QuoteInvoiceSettingsIssuerOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Quotes/QuoteLineSetPauseCollectionSetOptions.cs b/src/Stripe.net/Services/Quotes/QuoteLineSetPauseCollectionSetOptions.cs
index 74b64e91a9..ef087008fc 100644
--- a/src/Stripe.net/Services/Quotes/QuoteLineSetPauseCollectionSetOptions.cs
+++ b/src/Stripe.net/Services/Quotes/QuoteLineSetPauseCollectionSetOptions.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class QuoteLineSetPauseCollectionSetOptions : INestedOptions
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs
index a2d5d4f241..e1e1e7bf89 100644
--- a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs
+++ b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs
@@ -18,13 +18,14 @@ public class ValueListCreateOptions : BaseOptions, IHasMetadata
///
/// Type of the items in the value list. One of card_fingerprint, card_bin,
- /// email, ip_address, country, string,
- /// case_sensitive_string, customer_id, sepa_debit_fingerprint, or
- /// us_bank_account_fingerprint. Use string if the item type is unknown or
- /// mixed.
+ /// crypto_fingerprint, email, ip_address, country,
+ /// string, case_sensitive_string, customer_id,
+ /// sepa_debit_fingerprint, or us_bank_account_fingerprint. Use string
+ /// if the item type is unknown or mixed.
/// One of: card_bin, card_fingerprint, case_sensitive_string,
- /// country, customer_id, email, ip_address,
- /// sepa_debit_fingerprint, string, or us_bank_account_fingerprint.
+ /// country, crypto_fingerprint, customer_id, email,
+ /// ip_address, sepa_debit_fingerprint, string, or
+ /// us_bank_account_fingerprint.
///
[JsonProperty("item_type")]
[STJS.JsonPropertyName("item_type")]
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs
index 73f6bb1d41..970b08bc2c 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs
@@ -94,7 +94,7 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs
index e817aa074d..3ea3872e8a 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs
@@ -493,12 +493,20 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ ///
+ /// If this is a upi PaymentMethod, this hash contains details about the UPI payment
+ /// method.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public SetupIntentPaymentMethodDataUpiOptions Upi { get; set; }
+
///
/// If this is an us_bank_account PaymentMethod, this hash contains details about the
/// US bank account payment method.
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataStripeBalanceOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataStripeBalanceOptions.cs
index ef71b8718b..f788f5579f 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataStripeBalanceOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataStripeBalanceOptions.cs
@@ -14,15 +14,5 @@ public class SetupIntentPaymentMethodDataStripeBalanceOptions : INestedOptions
[JsonProperty("account")]
[STJS.JsonPropertyName("account")]
public string Account { get; set; }
-
- ///
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..09b710e31c
--- /dev/null
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SetupIntentPaymentMethodDataUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataUpiOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataUpiOptions.cs
new file mode 100644
index 0000000000..82c1ac6163
--- /dev/null
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataUpiOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SetupIntentPaymentMethodDataUpiOptions : INestedOptions
+ {
+ ///
+ /// Configuration options for setting up an eMandate.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SetupIntentPaymentMethodDataUpiMandateOptionsOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsAcssDebitOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsAcssDebitOptions.cs
index 0c77c9673b..b028704894 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsAcssDebitOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsAcssDebitOptions.cs
@@ -26,7 +26,7 @@ public class SetupIntentPaymentMethodOptionsAcssDebitOptions : INestedOptions
public SetupIntentPaymentMethodOptionsAcssDebitMandateOptionsOptions MandateOptions { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptionsOptions.cs
index 63ed9452f4..e4b29c2afa 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsCardMandateOptionsOptions.cs
@@ -11,7 +11,7 @@ namespace Stripe
public class SetupIntentPaymentMethodOptionsCardMandateOptionsOptions : INestedOptions
{
///
- /// Amount to be charged for future payments.
+ /// Amount to be charged for future payments, specified in the presentment currency.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs
index 3a421fb03d..f01906b42c 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs
@@ -95,6 +95,22 @@ public class SetupIntentPaymentMethodOptionsOptions : INestedOptions
[STJS.JsonPropertyName("sepa_debit")]
public SetupIntentPaymentMethodOptionsSepaDebitOptions SepaDebit { get; set; }
+ ///
+ /// If this is a stripe_balance PaymentMethod, this sub-hash contains details about
+ /// the Stripe Balance payment method options.
+ ///
+ [JsonProperty("stripe_balance")]
+ [STJS.JsonPropertyName("stripe_balance")]
+ public SetupIntentPaymentMethodOptionsStripeBalanceOptions StripeBalance { get; set; }
+
+ ///
+ /// If this is a upi SetupIntent, this sub-hash contains details about the UPI
+ /// payment method options.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public SetupIntentPaymentMethodOptionsUpiOptions Upi { get; set; }
+
///
/// If this is a us_bank_account SetupIntent, this sub-hash contains details about
/// the US bank account payment method options.
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs
index 88045a1b59..564d59cfb2 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsPixMandateOptionsOptions.cs
@@ -50,7 +50,7 @@ public class SetupIntentPaymentMethodOptionsPixMandateOptionsOptions : INestedOp
public string EndDate { get; set; }
///
- /// Schedule at which the future payments will be charged. Defaults to weekly.
+ /// Schedule at which the future payments will be charged. Defaults to monthly.
/// One of: halfyearly, monthly, quarterly, weekly, or
/// yearly.
///
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions.cs
new file mode 100644
index 0000000000..ff59ad2ace
--- /dev/null
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SetupIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// The ID of the Stripe Balance Debit Agreement used for this mandate.
+ ///
+ [JsonProperty("stripe_balance_debit_agreement")]
+ [STJS.JsonPropertyName("stripe_balance_debit_agreement")]
+ public string StripeBalanceDebitAgreement { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceOptions.cs
new file mode 100644
index 0000000000..28da409b65
--- /dev/null
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsStripeBalanceOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SetupIntentPaymentMethodOptionsStripeBalanceOptions : INestedOptions
+ {
+ ///
+ /// Additional fields for mandate creation.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SetupIntentPaymentMethodOptionsStripeBalanceMandateOptionsOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..18834187d1
--- /dev/null
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SetupIntentPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUpiOptions.cs
new file mode 100644
index 0000000000..e11860e49a
--- /dev/null
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUpiOptions.cs
@@ -0,0 +1,44 @@
+// File generated from our OpenAPI spec
+namespace Stripe
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class SetupIntentPaymentMethodOptionsUpiOptions : INestedOptions, IHasSetTracking
+ {
+ private string setupFutureUsage;
+
+ [JsonIgnore]
+ [STJS.JsonIgnore]
+ internal SetTracker SetTracker { get; } = new SetTracker();
+
+ ///
+ /// Configuration options for setting up an eMandate.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public SetupIntentPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; }
+
+ ///
+ /// One of: none, off_session, or on_session.
+ ///
+ [JsonProperty("setup_future_usage")]
+ [STJS.JsonPropertyName("setup_future_usage")]
+ public string SetupFutureUsage
+ {
+ get => this.setupFutureUsage;
+ set
+ {
+ this.setupFutureUsage = value;
+ this.SetTracker.Track();
+ }
+ }
+
+ bool IHasSetTracking.IsPropertySet(string propertyName)
+ {
+ return this.SetTracker.IsSet(propertyName);
+ }
+ }
+}
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccountOptions.cs
index 65c2cffa83..8edeb2b003 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccountOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsUsBankAccountOptions.cs
@@ -30,7 +30,7 @@ public class SetupIntentPaymentMethodOptionsUsBankAccountOptions : INestedOption
public SetupIntentPaymentMethodOptionsUsBankAccountNetworksOptions Networks { get; set; }
///
- /// Bank account verification method.
+ /// Bank account verification method. The default value is automatic.
/// One of: automatic, instant, or microdeposits.
///
[JsonProperty("verification_method")]
diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs
index 8d059535bd..772e7d3c56 100644
--- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs
+++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs
@@ -67,7 +67,7 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("excluded_payment_method_types")]
[STJS.JsonPropertyName("excluded_payment_method_types")]
diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs
index 4a379f5825..9011fb4516 100644
--- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs
@@ -134,7 +134,7 @@ public List Discounts
///
/// If set, the proration will be calculated as though the subscription was updated at the
/// given time. This can be used to apply the same proration that was previewed with the upcoming invoice endpoint.
+ /// href="https://stripe.com/api/invoices/create_preview">upcoming invoice endpoint.
///
[JsonProperty("proration_date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs
index 396c569840..1692e3d393 100644
--- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs
@@ -67,7 +67,7 @@ public class SubscriptionItemDeleteOptions : BaseOptions
///
/// If set, the proration will be calculated as though the subscription was updated at the
/// given time. This can be used to apply the same proration that was previewed with the upcoming invoice endpoint.
+ /// href="https://stripe.com/api/invoices/create_preview">upcoming invoice endpoint.
///
[JsonProperty("proration_date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs
index 0e26221a79..5098a4d2a1 100644
--- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs
@@ -153,7 +153,7 @@ public Dictionary Metadata
///
/// If set, the proration will be calculated as though the subscription was updated at the
/// given time. This can be used to apply the same proration that was previewed with the upcoming invoice endpoint.
+ /// href="https://stripe.com/api/invoices/create_preview">upcoming invoice endpoint.
///
[JsonProperty("proration_date")]
[JsonConverter(typeof(UnixDateTimeConverter))]
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentSetPauseCollectionSetOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentSetPauseCollectionSetOptions.cs
index e94a6be6ea..0adb8b0bc4 100644
--- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentSetPauseCollectionSetOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentSetPauseCollectionSetOptions.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class SubscriptionScheduleAmendmentSetPauseCollectionSetOptions : INestedOptions
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityOptions.cs
index 8f9ea2cd4f..e0891f31f3 100644
--- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class SubscriptionScheduleDefaultSettingsAutomaticTaxLiabilityOptions : I
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerOptions.cs
index fd5835efcb..2b291a628c 100644
--- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuerOptions : I
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiabilityOptions.cs
index 21cadb059a..7caf501bba 100644
--- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class SubscriptionSchedulePhaseAutomaticTaxLiabilityOptions : INestedOpti
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuerOptions.cs
index 7dccb20d2e..c4d333fc65 100644
--- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class SubscriptionSchedulePhaseInvoiceSettingsIssuerOptions : INestedOpti
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollectionOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollectionOptions.cs
index 29e9b50e13..7052eaac3c 100644
--- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollectionOptions.cs
+++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhasePauseCollectionOptions.cs
@@ -9,8 +9,7 @@ namespace Stripe
public class SubscriptionSchedulePhasePauseCollectionOptions : INestedOptions
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionAutomaticTaxLiabilityOptions.cs
index ea62b858e0..c7f57b6272 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionAutomaticTaxLiabilityOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionAutomaticTaxLiabilityOptions.cs
@@ -17,7 +17,7 @@ public class SubscriptionAutomaticTaxLiabilityOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs
index a76af2f428..c03f6b91a1 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs
@@ -362,7 +362,7 @@ public string OnBehalfOf
///
/// Specifies an interval for how often to bill for any pending invoice items. It is
- /// analogous to calling Create an
+ /// analogous to calling Create an
/// invoice for the given subscription at the specified interval.
///
[JsonProperty("pending_invoice_item_interval")]
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsIssuerOptions.cs
index 83a7b4cf46..c9fb097c7a 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsIssuerOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionInvoiceSettingsIssuerOptions.cs
@@ -17,7 +17,7 @@ public class SubscriptionInvoiceSettingsIssuerOptions : INestedOptions
///
/// Type of the account referenced in the request.
- /// One of: account, or self.
+ /// One of: account, application, or self.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPauseCollectionOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPauseCollectionOptions.cs
index 4a02779eb8..ba36a5b60a 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionPauseCollectionOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPauseCollectionOptions.cs
@@ -10,8 +10,7 @@ namespace Stripe
public class SubscriptionPauseCollectionOptions : INestedOptions
{
///
- /// The payment collection behavior for this subscription while paused. One of
- /// keep_as_draft, mark_uncollectible, or void.
+ /// The payment collection behavior for this subscription while paused.
/// One of: keep_as_draft, mark_uncollectible, or void.
///
[JsonProperty("behavior")]
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsOptions.cs
index c0033eaf1e..c36f46a8d1 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsOptions.cs
@@ -9,7 +9,7 @@ namespace Stripe
public class SubscriptionPaymentSettingsPaymentMethodOptionsCardMandateOptionsOptions : INestedOptions
{
///
- /// Amount to be charged for future payments.
+ /// Amount to be charged for future payments, specified in the presentment currency.
///
[JsonProperty("amount")]
[STJS.JsonPropertyName("amount")]
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs
index d4017dc242..98070582fe 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOptions.cs
@@ -32,7 +32,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsPixMandateOptionsOpt
public string EndDate { get; set; }
///
- /// Schedule at which the future payments will be charged. Defaults to weekly.
+ /// Schedule at which the future payments will be charged. Defaults to monthly.
/// One of: halfyearly, monthly, quarterly, weekly, or
/// yearly.
///
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs
index c42fabb082..a8eed118e7 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions.cs
@@ -8,6 +8,14 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
public class SubscriptionPaymentSettingsPaymentMethodOptionsPixOptions : INestedOptions
{
+ ///
+ /// The number of seconds (between 10 and 1209600) after which Pix payment will expire.
+ /// Defaults to 86400 seconds.
+ ///
+ [JsonProperty("expires_after_seconds")]
+ [STJS.JsonPropertyName("expires_after_seconds")]
+ public long? ExpiresAfterSeconds { get; set; }
+
///
/// Configuration options for setting up a mandate.
///
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs
index 4fbb575a1e..050db7d3bb 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs
@@ -57,7 +57,7 @@ public virtual Task AttachCadenceAsync(string id, SubscriptionAtta
///
///
Any pending invoice items that you’ve created are still charged at the end of the
/// period, unless manually deleted. If you’ve set the
+ /// href="https://stripe.com/api/invoiceitems/delete">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 if invoice_now and prorate are
@@ -82,7 +82,7 @@ public virtual Subscription Cancel(string id, SubscriptionCancelOptions options
///
///
Any pending invoice items that you’ve created are still charged at the end of the
/// period, unless manually deleted. If you’ve set the
+ /// href="https://stripe.com/api/invoiceitems/delete">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 if invoice_now and prorate are
diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
index 7e490e7658..bfdfedbd2b 100644
--- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
+++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs
@@ -370,7 +370,7 @@ public SubscriptionPauseCollectionOptions PauseCollection
///
/// Specifies an interval for how often to bill for any pending invoice items. It is
- /// analogous to calling Create an
+ /// analogous to calling Create an
/// invoice for the given subscription at the specified interval.
///
[JsonProperty("pending_invoice_item_interval")]
diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs
index f5ca4b9493..b8f337f53a 100644
--- a/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs
+++ b/src/Stripe.net/Services/Tax/Calculations/CalculationLineItemOptions.cs
@@ -11,7 +11,7 @@ public class CalculationLineItemOptions : INestedOptions, IHasMetadata
{
///
/// A positive integer representing the line item's total price in the smallest currency unit. If
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit. If
/// tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes are
/// calculated on top of this amount.
///
diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs
index e1f68d1e7a..ceeccab752 100644
--- a/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs
+++ b/src/Stripe.net/Services/Tax/Calculations/CalculationShippingCostOptions.cs
@@ -10,7 +10,7 @@ public class CalculationShippingCostOptions : INestedOptions
{
///
/// A positive integer in the smallest currency unit
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit
/// representing the shipping charge. If tax_behavior=inclusive, then this amount
/// includes taxes. Otherwise, taxes are calculated on top of this amount.
///
diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs
index 331010b796..9f06f1afdd 100644
--- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs
+++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs
@@ -8,6 +8,13 @@ namespace Stripe.Tax
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
public class RegistrationCountryOptionsUsOptions : INestedOptions
{
+ ///
+ /// Options for the home rule tax registration.
+ ///
+ [JsonProperty("home_rule_tax")]
+ [STJS.JsonPropertyName("home_rule_tax")]
+ public RegistrationCountryOptionsUsHomeRuleTaxOptions HomeRuleTax { get; set; }
+
///
/// Options for the local amusement tax registration.
///
@@ -48,12 +55,5 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
-
- ///
- /// Options for the home rule tax registration.
- ///
- [JsonProperty("home_rule_tax")]
- [STJS.JsonPropertyName("home_rule_tax")]
- public RegistrationCountryOptionsUsHomeRuleTaxOptions HomeRuleTax { get; set; }
}
}
diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs
index c9352d2011..4a19c23504 100644
--- a/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs
+++ b/src/Stripe.net/Services/Tax/Transactions/TransactionCreateReversalOptions.cs
@@ -11,7 +11,7 @@ public class TransactionCreateReversalOptions : BaseOptions, IHasMetadata
{
///
/// A flat amount to reverse across the entire transaction, in the smallest currency unit in
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit in
/// negative. This value represents the total amount to refund from the transaction,
/// including taxes.
///
diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs
index b0a8406bf1..ace10c2dbb 100644
--- a/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs
+++ b/src/Stripe.net/Services/Tax/Transactions/TransactionLineItemOptions.cs
@@ -11,7 +11,7 @@ public class TransactionLineItemOptions : INestedOptions, IHasMetadata
{
///
/// The amount to reverse, in the smallest currency unit in
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit in
/// negative.
///
[JsonProperty("amount")]
@@ -20,7 +20,7 @@ public class TransactionLineItemOptions : INestedOptions, IHasMetadata
///
/// The amount of tax to reverse, in the smallest currency unit in
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit in
/// negative.
///
[JsonProperty("amount_tax")]
diff --git a/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs b/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs
index 2b737aa431..a0390b8f85 100644
--- a/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs
+++ b/src/Stripe.net/Services/Tax/Transactions/TransactionShippingCostOptions.cs
@@ -10,7 +10,7 @@ public class TransactionShippingCostOptions : INestedOptions
{
///
/// The amount to reverse, in the smallest currency unit in
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit in
/// negative.
///
[JsonProperty("amount")]
@@ -19,7 +19,7 @@ public class TransactionShippingCostOptions : INestedOptions
///
/// The amount of tax to reverse, in the smallest currency unit in
+ /// href="https://docs.stripe.com/currencies#minor-units">smallest currency unit in
/// negative.
///
[JsonProperty("amount_tax")]
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
index c52b303511..35cc9ae010 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs
@@ -493,12 +493,20 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet
/// paypay, payto, pix, promptpay, qris, rechnung,
/// revolut_pay, samsung_pay, satispay, sepa_debit,
/// shopeepay, sofort, stripe_balance, swish, twint,
- /// us_bank_account, wechat_pay, or zip.
+ /// upi, us_bank_account, wechat_pay, or zip.
///
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
+ ///
+ /// If this is a upi PaymentMethod, this hash contains details about the UPI payment
+ /// method.
+ ///
+ [JsonProperty("upi")]
+ [STJS.JsonPropertyName("upi")]
+ public ConfirmationTokenPaymentMethodDataUpiOptions Upi { get; set; }
+
///
/// If this is an us_bank_account PaymentMethod, this hash contains details about the
/// US bank account payment method.
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataStripeBalanceOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataStripeBalanceOptions.cs
index 42accef388..78985cba2e 100644
--- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataStripeBalanceOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataStripeBalanceOptions.cs
@@ -14,15 +14,5 @@ public class ConfirmationTokenPaymentMethodDataStripeBalanceOptions : INestedOpt
[JsonProperty("account")]
[STJS.JsonPropertyName("account")]
public string Account { get; set; }
-
- ///
- /// The source_type
- /// of the balance.
- /// One of: bank_account, card, or fpx.
- ///
- [JsonProperty("source_type")]
- [STJS.JsonPropertyName("source_type")]
- public string SourceType { get; set; }
}
}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataUpiMandateOptionsOptions.cs
new file mode 100644
index 0000000000..7b210a8700
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataUpiMandateOptionsOptions.cs
@@ -0,0 +1,46 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class ConfirmationTokenPaymentMethodDataUpiMandateOptionsOptions : INestedOptions
+ {
+ ///
+ /// Amount to be charged for future payments.
+ ///
+ [JsonProperty("amount")]
+ [STJS.JsonPropertyName("amount")]
+ public long? Amount { get; set; }
+
+ ///
+ /// One of fixed or maximum. If fixed, the amount param refers
+ /// to the exact amount to be charged in future payments. If maximum, the amount
+ /// charged can be up to the value passed for the amount param.
+ /// One of: fixed, or maximum.
+ ///
+ [JsonProperty("amount_type")]
+ [STJS.JsonPropertyName("amount_type")]
+ public string AmountType { get; set; }
+
+ ///
+ /// A description of the mandate or subscription that is meant to be displayed to the
+ /// customer.
+ ///
+ [JsonProperty("description")]
+ [STJS.JsonPropertyName("description")]
+ public string Description { get; set; }
+
+ ///
+ /// End date of the mandate or subscription.
+ ///
+ [JsonProperty("end_date")]
+ [JsonConverter(typeof(UnixDateTimeConverter))]
+ [STJS.JsonPropertyName("end_date")]
+ [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
+ public DateTime? EndDate { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataUpiOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataUpiOptions.cs
new file mode 100644
index 0000000000..399e0448fd
--- /dev/null
+++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataUpiOptions.cs
@@ -0,0 +1,18 @@
+// File generated from our OpenAPI spec
+namespace Stripe.TestHelpers
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class ConfirmationTokenPaymentMethodDataUpiOptions : INestedOptions
+ {
+ ///
+ /// Configuration options for setting up an eMandate.
+ ///
+ [JsonProperty("mandate_options")]
+ [STJS.JsonPropertyName("mandate_options")]
+ public ConfirmationTokenPaymentMethodDataUpiMandateOptionsOptions MandateOptions { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentCardTestingRiskOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentCardTestingRiskOptions.cs
index 12593170ba..e9a6f1ae65 100644
--- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentCardTestingRiskOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentCardTestingRiskOptions.cs
@@ -34,8 +34,8 @@ public class AuthorizationRiskAssessmentCardTestingRiskOptions : INestedOptions
/// One of: elevated, highest, low, normal, not_assessed,
/// or unknown.
///
- [JsonProperty("risk_level")]
- [STJS.JsonPropertyName("risk_level")]
- public string RiskLevel { get; set; }
+ [JsonProperty("level")]
+ [STJS.JsonPropertyName("level")]
+ public string Level { get; set; }
}
}
diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentMerchantDisputeRiskOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentMerchantDisputeRiskOptions.cs
index 0dc9f97140..831ad2c9b0 100644
--- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentMerchantDisputeRiskOptions.cs
+++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationRiskAssessmentMerchantDisputeRiskOptions.cs
@@ -24,8 +24,8 @@ public class AuthorizationRiskAssessmentMerchantDisputeRiskOptions : INestedOpti
/// One of: elevated, highest, low, normal, not_assessed,
/// or unknown.
///
- [JsonProperty("risk_level")]
- [STJS.JsonPropertyName("risk_level")]
- public string RiskLevel { get; set; }
+ [JsonProperty("level")]
+ [STJS.JsonPropertyName("level")]
+ public string Level { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs
index 5dbf821195..d97b440a5e 100644
--- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs
@@ -23,5 +23,13 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPart
[JsonProperty("license_fee")]
[STJS.JsonPropertyName("license_fee")]
public IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions LicenseFee { get; set; }
+
+ ///
+ /// Overrides the behavior for recurring credit grant components when the action takes
+ /// effect during the service period.
+ ///
+ [JsonProperty("recurring_credit_grant")]
+ [STJS.JsonPropertyName("recurring_credit_grant")]
+ public IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions RecurringCreditGrant { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions.cs
new file mode 100644
index 0000000000..3de00d9cf8
--- /dev/null
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Billing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions : INestedOptions
+ {
+ ///
+ /// Controls credit grant creation behavior during partial periods. If not specified,
+ /// defaults to full_credits.
+ /// One of: full_credits, or none.
+ ///
+ [JsonProperty("create_behavior")]
+ [STJS.JsonPropertyName("create_behavior")]
+ public string CreateBehavior { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs
index cc8b3b30ce..8a3723cf5c 100644
--- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs
@@ -23,5 +23,13 @@ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesP
[JsonProperty("license_fee")]
[STJS.JsonPropertyName("license_fee")]
public IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions LicenseFee { get; set; }
+
+ ///
+ /// Overrides the behavior for recurring credit grant components when the action takes
+ /// effect during the service period.
+ ///
+ [JsonProperty("recurring_credit_grant")]
+ [STJS.JsonPropertyName("recurring_credit_grant")]
+ public IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions RecurringCreditGrant { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions.cs
new file mode 100644
index 0000000000..5eb93ba24a
--- /dev/null
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions.cs
@@ -0,0 +1,20 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Billing
+{
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions : INestedOptions
+ {
+ ///
+ /// Controls credit grant creation behavior during partial periods. If not specified,
+ /// defaults to full_credits.
+ /// One of: full_credits, or none.
+ ///
+ [JsonProperty("create_behavior")]
+ [STJS.JsonPropertyName("create_behavior")]
+ public string CreateBehavior { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateOptions.cs
index cb7f9d5d3f..a9db4050d3 100644
--- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateOptions.cs
@@ -36,12 +36,5 @@ public class IntentCreateOptions : BaseOptions
[JsonProperty("currency")]
[STJS.JsonPropertyName("currency")]
public string Currency { get; set; }
-
- ///
- /// Select additional fields to include in the response.
- ///
- [JsonProperty("include")]
- [STJS.JsonPropertyName("include")]
- public List Include { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentReserveOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentReserveOptions.cs
index 4b1a87976c..7263d1a6a1 100644
--- a/src/Stripe.net/Services/V2/Billing/Intents/IntentReserveOptions.cs
+++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentReserveOptions.cs
@@ -1,7 +1,6 @@
// File generated from our OpenAPI spec
namespace Stripe.V2.Billing
{
- using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;
@@ -9,11 +8,5 @@ namespace Stripe.V2.Billing
[STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
public class IntentReserveOptions : BaseOptions
{
- ///
- /// Select additional fields to include in the response.
- ///
- [JsonProperty("include")]
- [STJS.JsonPropertyName("include")]
- public List Include { get; set; }
}
}
diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions.cs
new file mode 100644
index 0000000000..de2b6aeb96
--- /dev/null
+++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class AccountCreateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions : INestedOptions
+ {
+ ///
+ /// The time when the Account's representative accepted the terms of service. Represented as
+ /// a RFC 3339 date & time UTC value in millisecond precision, for example:
+ /// 2022-09-18T13:22:18.123Z.
+ ///
+ [JsonProperty("date")]
+ [STJS.JsonPropertyName("date")]
+ public DateTime? Date { get; set; }
+
+ ///
+ /// The IP address from which the Account's representative accepted the terms of service.
+ ///
+ [JsonProperty("ip")]
+ [STJS.JsonPropertyName("ip")]
+ public string Ip { get; set; }
+
+ ///
+ /// The user agent of the browser from which the Account's representative accepted the terms
+ /// of service.
+ ///
+ [JsonProperty("user_agent")]
+ [STJS.JsonPropertyName("user_agent")]
+ public string UserAgent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs
new file mode 100644
index 0000000000..a9fa930325
--- /dev/null
+++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions : INestedOptions
+ {
+ ///
+ /// The time when the Account's representative accepted the terms of service. Represented as
+ /// a RFC 3339 date & time UTC value in millisecond precision, for example:
+ /// 2022-09-18T13:22:18.123Z.
+ ///
+ [JsonProperty("date")]
+ [STJS.JsonPropertyName("date")]
+ public DateTime? Date { get; set; }
+
+ ///
+ /// The IP address from which the Account's representative accepted the terms of service.
+ ///
+ [JsonProperty("ip")]
+ [STJS.JsonPropertyName("ip")]
+ public string Ip { get; set; }
+
+ ///
+ /// The user agent of the browser from which the Account's representative accepted the terms
+ /// of service.
+ ///
+ [JsonProperty("user_agent")]
+ [STJS.JsonPropertyName("user_agent")]
+ public string UserAgent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs
index ebb67098f9..dc95218346 100644
--- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs
+++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs
@@ -24,6 +24,21 @@ public class AccountCreateIdentityAttestationsTermsOfServiceOptions : INestedOpt
[STJS.JsonPropertyName("card_creator")]
public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorOptions CardCreator { get; set; }
+ ///
+ /// Details on the Account's acceptance of Consumer-privacy-disclosures-specific terms of
+ /// service.
+ ///
+ [JsonProperty("consumer_privacy_disclosures")]
+ [STJS.JsonPropertyName("consumer_privacy_disclosures")]
+ public AccountCreateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions ConsumerPrivacyDisclosures { get; set; }
+
+ ///
+ /// Details on the Account's acceptance of Consumer-storer-specific terms of service.
+ ///
+ [JsonProperty("consumer_storer")]
+ [STJS.JsonPropertyName("consumer_storer")]
+ public AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions ConsumerStorer { get; set; }
+
///
/// Details on the Account's acceptance of Crypto-storer-specific terms of service.
///
diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions.cs
new file mode 100644
index 0000000000..59bc8453f4
--- /dev/null
+++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class AccountUpdateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions : INestedOptions
+ {
+ ///
+ /// The time when the Account's representative accepted the terms of service. Represented as
+ /// a RFC 3339 date & time UTC value in millisecond precision, for example:
+ /// 2022-09-18T13:22:18.123Z.
+ ///
+ [JsonProperty("date")]
+ [STJS.JsonPropertyName("date")]
+ public DateTime? Date { get; set; }
+
+ ///
+ /// The IP address from which the Account's representative accepted the terms of service.
+ ///
+ [JsonProperty("ip")]
+ [STJS.JsonPropertyName("ip")]
+ public string Ip { get; set; }
+
+ ///
+ /// The user agent of the browser from which the Account's representative accepted the terms
+ /// of service.
+ ///
+ [JsonProperty("user_agent")]
+ [STJS.JsonPropertyName("user_agent")]
+ public string UserAgent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs
new file mode 100644
index 0000000000..6efb06b48d
--- /dev/null
+++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs
@@ -0,0 +1,36 @@
+// File generated from our OpenAPI spec
+namespace Stripe.V2.Core
+{
+ using System;
+ using Newtonsoft.Json;
+ using Stripe.Infrastructure;
+ using STJS = System.Text.Json.Serialization;
+
+ [STJS.JsonConverter(typeof(STJStripeOptionsConverter))]
+ public class AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions : INestedOptions
+ {
+ ///
+ /// The time when the Account's representative accepted the terms of service. Represented as
+ /// a RFC 3339 date & time UTC value in millisecond precision, for example:
+ /// 2022-09-18T13:22:18.123Z.
+ ///
+ [JsonProperty("date")]
+ [STJS.JsonPropertyName("date")]
+ public DateTime? Date { get; set; }
+
+ ///
+ /// The IP address from which the Account's representative accepted the terms of service.
+ ///
+ [JsonProperty("ip")]
+ [STJS.JsonPropertyName("ip")]
+ public string Ip { get; set; }
+
+ ///
+ /// The user agent of the browser from which the Account's representative accepted the terms
+ /// of service.
+ ///
+ [JsonProperty("user_agent")]
+ [STJS.JsonPropertyName("user_agent")]
+ public string UserAgent { get; set; }
+ }
+}
diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs
index 5ea25e6164..2b0bb15b28 100644
--- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs
+++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs
@@ -24,6 +24,21 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOpt
[STJS.JsonPropertyName("card_creator")]
public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorOptions CardCreator { get; set; }
+ ///
+ /// Details on the Account's acceptance of Consumer-privacy-disclosures-specific terms of
+ /// service.
+ ///
+ [JsonProperty("consumer_privacy_disclosures")]
+ [STJS.JsonPropertyName("consumer_privacy_disclosures")]
+ public AccountUpdateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions ConsumerPrivacyDisclosures { get; set; }
+
+ ///
+ /// Details on the Account's acceptance of Consumer-storer-specific terms of service.
+ ///
+ [JsonProperty("consumer_storer")]
+ [STJS.JsonPropertyName("consumer_storer")]
+ public AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions ConsumerStorer { get; set; }
+
///
/// Details on the Account's acceptance of Crypto-storer-specific terms of service.
///
diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
index ec00af6966..5addfbf026 100644
--- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
+++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs
@@ -46,7 +46,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata
/// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil,
/// 2025-06-30.basil, 2025-07-30.basil, 2025-08-27.basil,
/// 2025-09-30.clover, 2025-10-29.clover, 2025-11-17.clover,
- /// 2025-12-15.clover, 2026-01-28.clover, or 2026-02-25.clover.
+ /// 2025-12-15.clover, 2026-01-28.clover, 2026-02-25.clover, or
+ /// 2026-03-25.dahlia.
///
[JsonProperty("api_version")]
[STJS.JsonPropertyName("api_version")]
diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs
index 9ea435500a..4c8e271539 100644
--- a/src/StripeTests/Services/GeneratedExamplesTest.cs
+++ b/src/StripeTests/Services/GeneratedExamplesTest.cs
@@ -6601,7 +6601,7 @@ public void TestV2BillingIntentGet()
HttpMethod.Get,
"/v2/billing/intents",
(HttpStatusCode)200,
- "{\"data\":[{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
+ "{\"data\":[{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.Intents;
Stripe.V2.StripeList intents = service
@@ -6616,7 +6616,7 @@ public void TestV2BillingIntentPost()
HttpMethod.Post,
"/v2/billing/intents",
(HttpStatusCode)200,
- "{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
var options = new Stripe.V2.Billing.IntentCreateOptions
{
Actions = new List
@@ -6744,6 +6744,10 @@ public void TestV2BillingIntentPost()
CreditProrationBehavior = "prorated",
DebitProrationBehavior = "none",
},
+ RecurringCreditGrant = new Stripe.V2.Billing.IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions
+ {
+ CreateBehavior = "none",
+ },
},
},
},
@@ -6798,6 +6802,10 @@ public void TestV2BillingIntentPost()
{
DebitProrationBehavior = "none",
},
+ RecurringCreditGrant = new Stripe.V2.Billing.IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions
+ {
+ CreateBehavior = "none",
+ },
},
},
},
@@ -6842,7 +6850,7 @@ public void TestV2BillingIntentGet2()
HttpMethod.Get,
"/v2/billing/intents/id_123",
(HttpStatusCode)200,
- "{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.Intents;
Stripe.V2.Billing.Intent intent = service.Get("id_123");
@@ -6856,7 +6864,7 @@ public void TestV2BillingIntentPost2()
HttpMethod.Post,
"/v2/billing/intents/id_123/cancel",
(HttpStatusCode)200,
- "{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.Intents;
Stripe.V2.Billing.Intent intent = service.Cancel("id_123");
@@ -6872,7 +6880,7 @@ public void TestV2BillingIntentPost3()
HttpMethod.Post,
"/v2/billing/intents/id_123/commit",
(HttpStatusCode)200,
- "{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.Intents;
Stripe.V2.Billing.Intent intent = service.Commit("id_123");
@@ -6888,7 +6896,7 @@ public void TestV2BillingIntentPost4()
HttpMethod.Post,
"/v2/billing/intents/id_123/release_reservation",
(HttpStatusCode)200,
- "{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.Intents;
Stripe.V2.Billing.Intent intent = service.ReleaseReservation(
@@ -6905,7 +6913,7 @@ public void TestV2BillingIntentPost5()
HttpMethod.Post,
"/v2/billing/intents/id_123/reserve",
(HttpStatusCode)200,
- "{\"amount_details\":{\"amount_due\":\"amount_due\",\"currency\":\"usd\",\"customer_balance_applied\":\"customer_balance_applied\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
+ "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}");
var client = new StripeClient(this.Requestor);
var service = client.V2.Billing.Intents;
Stripe.V2.Billing.Intent intent = service.Reserve("id_123");