diff --git a/API_VERSION b/API_VERSION index 8cbec87ebf..4f3a17ddd6 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -b7d9dec4da43fdbe727b3b4d8007a7099aa61beb \ No newline at end of file +5a9ac40aabbc00a67ae2a186633fc8dd64b25c56 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8a7edbe682..e9d12ffff2 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2100 \ No newline at end of file +v2103 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index fbce66e0e0..962168f785 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2025-09-30.preview"; + public const string Current = "2025-10-29.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs index c5317d2a8a..222f718e8e 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs @@ -27,7 +27,11 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity - /// The amount an item was discounted for. Positive integer. + /// The discount applied on this line item represented in the smallest currency unit. An + /// integer greater than 0. + /// + /// This field is mutually exclusive with the amount_details[discount_amount] field. /// [JsonProperty("discount_amount")] #if NET6_0_OR_GREATER @@ -45,7 +49,8 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity - /// Unique identifier of the product. At most 12 characters long. + /// The product code of the line item, such as an SKU. Required for L3 rates. At most 12 + /// characters long. /// [JsonProperty("product_code")] #if NET6_0_OR_GREATER @@ -54,7 +59,10 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity - /// Name of the product. At most 100 characters long. + /// The product name of the line item. Required for L3 rates. At most 1024 characters long. + /// + /// For Cards, this field is truncated to 26 alphanumeric characters before being sent to + /// the card networks. For Paypal, this field is truncated to 127 characters. /// [JsonProperty("product_name")] #if NET6_0_OR_GREATER @@ -63,7 +71,7 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity - /// Number of items of the product. Positive integer. + /// The quantity of items. Required for L3 rates. An integer greater than 0. /// [JsonProperty("quantity")] #if NET6_0_OR_GREATER @@ -81,7 +89,9 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity - /// Cost of the product. Non-negative integer. + /// The unit cost of the line item represented in the smallest currency unit. + /// Required for L3 rates. An integer greater than or equal to 0. /// [JsonProperty("unit_cost")] #if NET6_0_OR_GREATER @@ -90,7 +100,8 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity - /// A unit of measure for the line item, such as gallons, feet, meters, etc. + /// A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 + /// rates. At most 12 alphanumeric characters long. /// [JsonProperty("unit_of_measure")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs index 85e738bb82..7068d49e07 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItemTax.cs @@ -9,7 +9,12 @@ namespace Stripe public class PaymentIntentAmountDetailsLineItemTax : StripeEntity { /// - /// Total portion of the amount that is for tax. + /// The total amount of tax on the transaction represented in the smallest currency unit. + /// Required for L2 rates. An integer greater than or equal to 0. + /// + /// This field is mutually exclusive with the + /// amount_details[line_items][#][tax][total_tax_amount] field. /// [JsonProperty("total_tax_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs index 7823738c9d..2a195d64fa 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetails.cs @@ -9,7 +9,12 @@ namespace Stripe public class PaymentIntentAmountDetails : StripeEntity { /// - /// The total discount applied on the transaction. + /// The total discount applied on the transaction represented in the smallest currency unit. An + /// integer greater than 0. + /// + /// This field is mutually exclusive with the + /// amount_details[line_items][#][discount_amount] field. /// [JsonProperty("discount_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs index 8986103afe..e4e90a21b2 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsShipping.cs @@ -9,7 +9,9 @@ namespace Stripe public class PaymentIntentAmountDetailsShipping : StripeEntity { /// - /// Portion of the amount that is for shipping. + /// If a physical good is being shipped, the cost of shipping represented in the smallest currency unit. An + /// integer greater than or equal to 0. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -18,7 +20,8 @@ public class PaymentIntentAmountDetailsShipping : StripeEntity - /// The postal code that represents the shipping source. + /// If a physical good is being shipped, the postal code of where it is being shipped from. + /// At most 10 alphanumeric characters long, hyphens are allowed. /// [JsonProperty("from_postal_code")] #if NET6_0_OR_GREATER @@ -27,7 +30,8 @@ public class PaymentIntentAmountDetailsShipping : StripeEntity - /// The postal code that represents the shipping destination. + /// If a physical good is being shipped, the postal code of where it is being shipped to. At + /// most 10 alphanumeric characters long, hyphens are allowed. /// [JsonProperty("to_postal_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs index 4f3e2af519..87c26c9913 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentAmountDetailsTax.cs @@ -9,7 +9,12 @@ namespace Stripe public class PaymentIntentAmountDetailsTax : StripeEntity { /// - /// Total portion of the amount that is for tax. + /// The total amount of tax on the transaction represented in the smallest currency unit. + /// Required for L2 rates. An integer greater than or equal to 0. + /// + /// This field is mutually exclusive with the + /// amount_details[line_items][#][tax][total_tax_amount] field. /// [JsonProperty("total_tax_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs index ba75a3e9dd..e71f9e71f8 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs @@ -15,8 +15,10 @@ public class PaymentIntentPaymentDetails : StripeEntity - /// Some customers might be required by their company or organization to provide this - /// information. If so, provide this value. Otherwise you can ignore this field. + /// A unique value to identify the customer. This field is available only for card payments. + /// + /// This field is truncated to 25 alphanumeric characters, excluding spaces, before being + /// sent to card networks. /// [JsonProperty("customer_reference")] #if NET6_0_OR_GREATER @@ -31,7 +33,16 @@ public class PaymentIntentPaymentDetails : StripeEntity - /// A unique value assigned by the business to identify the transaction. + /// 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. /// [JsonProperty("order_reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs index 08f52421db..83d822065b 100644 --- a/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs +++ b/src/Stripe.net/Services/Charges/ChargePaymentDetailsOptions.cs @@ -18,8 +18,10 @@ public class ChargePaymentDetailsOptions : INestedOptions public ChargePaymentDetailsCarRentalOptions CarRental { get; set; } /// - /// Some customers might be required by their company or organization to provide this - /// information. If so, provide this value. Otherwise you can ignore this field. + /// A unique value to identify the customer. This field is available only for card payments. + /// + /// This field is truncated to 25 alphanumeric characters, excluding spaces, before being + /// sent to card networks. /// [JsonProperty("customer_reference")] #if NET6_0_OR_GREATER @@ -55,7 +57,16 @@ public class ChargePaymentDetailsOptions : INestedOptions public ChargePaymentDetailsLodgingOptions Lodging { get; set; } /// - /// A unique value assigned by the business to identify the transaction. + /// 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. /// [JsonProperty("order_reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs index 89857f091f..1612a3f8f4 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs @@ -9,7 +9,11 @@ namespace Stripe public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions { /// - /// The amount an item was discounted for. Positive integer. + /// The discount applied on this line item represented in the smallest currency unit. An + /// integer greater than 0. + /// + /// This field is mutually exclusive with the amount_details[discount_amount] field. /// [JsonProperty("discount_amount")] #if NET6_0_OR_GREATER @@ -27,7 +31,8 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions PaymentMethodOptions { get; set; } /// - /// Unique identifier of the product. At most 12 characters long. + /// The product code of the line item, such as an SKU. Required for L3 rates. At most 12 + /// characters long. /// [JsonProperty("product_code")] #if NET6_0_OR_GREATER @@ -36,7 +41,10 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions public string ProductCode { get; set; } /// - /// Name of the product. At most 100 characters long. + /// The product name of the line item. Required for L3 rates. At most 1024 characters long. + /// + /// For Cards, this field is truncated to 26 alphanumeric characters before being sent to + /// the card networks. For Paypal, this field is truncated to 127 characters. /// [JsonProperty("product_name")] #if NET6_0_OR_GREATER @@ -45,7 +53,7 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions public string ProductName { get; set; } /// - /// Number of items of the product. Positive integer. + /// The quantity of items. Required for L3 rates. An integer greater than 0. /// [JsonProperty("quantity")] #if NET6_0_OR_GREATER @@ -63,7 +71,9 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions public PaymentIntentAmountDetailsLineItemTaxOptions Tax { get; set; } /// - /// Cost of the product. Non-negative integer. + /// The unit cost of the line item represented in the smallest currency unit. + /// Required for L3 rates. An integer greater than or equal to 0. /// [JsonProperty("unit_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs index f90e2fa0a6..90a83a67ed 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs @@ -9,7 +9,12 @@ namespace Stripe public class PaymentIntentAmountDetailsLineItemTaxOptions : INestedOptions { /// - /// The total tax on an item. Non-negative integer. + /// The total amount of tax on a single line item represented in the smallest currency unit. + /// Required for L3 rates. An integer greater than or equal to 0. + /// + /// This field is mutually exclusive with the amount_details[tax][total_tax_amount] + /// field. /// [JsonProperty("total_tax_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs index 1a8f49ed81..60abaf463f 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -10,7 +10,12 @@ namespace Stripe public class PaymentIntentAmountDetailsOptions : INestedOptions { /// - /// The total discount applied on the transaction. + /// The total discount applied on the transaction represented in the smallest currency unit. An + /// integer greater than 0. + /// + /// This field is mutually exclusive with the + /// amount_details[line_items][#][discount_amount] field. /// [JsonProperty("discount_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs index 17a2e7ca20..b64e732b13 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs @@ -9,7 +9,9 @@ namespace Stripe public class PaymentIntentAmountDetailsShippingOptions : INestedOptions { /// - /// Portion of the amount that is for shipping. + /// If a physical good is being shipped, the cost of shipping represented in the smallest currency unit. An + /// integer greater than or equal to 0. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -18,7 +20,8 @@ public class PaymentIntentAmountDetailsShippingOptions : INestedOptions public long? Amount { get; set; } /// - /// The postal code that represents the shipping source. + /// If a physical good is being shipped, the postal code of where it is being shipped from. + /// At most 10 alphanumeric characters long, hyphens are allowed. /// [JsonProperty("from_postal_code")] #if NET6_0_OR_GREATER @@ -27,7 +30,8 @@ public class PaymentIntentAmountDetailsShippingOptions : INestedOptions public string FromPostalCode { get; set; } /// - /// The postal code that represents the shipping destination. + /// If a physical good is being shipped, the postal code of where it is being shipped to. At + /// most 10 alphanumeric characters long, hyphens are allowed. /// [JsonProperty("to_postal_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs index 079c5fa582..267eb32b0c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs @@ -9,7 +9,12 @@ namespace Stripe public class PaymentIntentAmountDetailsTaxOptions : INestedOptions { /// - /// Total portion of the amount that is for tax. + /// The total amount of tax on the transaction represented in the smallest currency unit. + /// Required for L2 rates. An integer greater than or equal to 0. + /// + /// This field is mutually exclusive with the + /// amount_details[line_items][#][tax][total_tax_amount] field. /// [JsonProperty("total_tax_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs index cc9b98c22e..8776c0bf6c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentDetailsOptions.cs @@ -18,8 +18,10 @@ public class PaymentIntentPaymentDetailsOptions : INestedOptions public PaymentIntentPaymentDetailsCarRentalOptions CarRental { get; set; } /// - /// Some customers might be required by their company or organization to provide this - /// information. If so, provide this value. Otherwise you can ignore this field. + /// A unique value to identify the customer. This field is available only for card payments. + /// + /// This field is truncated to 25 alphanumeric characters, excluding spaces, before being + /// sent to card networks. /// [JsonProperty("customer_reference")] #if NET6_0_OR_GREATER @@ -55,7 +57,16 @@ public class PaymentIntentPaymentDetailsOptions : INestedOptions public PaymentIntentPaymentDetailsLodgingOptions Lodging { get; set; } /// - /// A unique value assigned by the business to identify the transaction. + /// 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. /// [JsonProperty("order_reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs new file mode 100644 index 0000000000..5396236ef4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions : 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ip")] +#endif + 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("user_agent")] +#endif + 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 4305dc1a89..fa243764b5 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs @@ -19,6 +19,15 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOpt #endif public AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } + /// + /// Details on the Account's acceptance of Crypto-storer-specific terms of service. + /// + [JsonProperty("crypto_storer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto_storer")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions CryptoStorer { get; set; } + /// /// Details on the Account's acceptance of Treasury-specific terms of service. ///