diff --git a/API_VERSION b/API_VERSION index bee325efa6..9cd6767435 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2025-06-30.preview +2025-07-30.preview \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d8931ef8a6..7b0334ddc0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1819 \ No newline at end of file +v1868 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index c35ead0806..6a8bb95cc1 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-06-30.preview"; + public const string Current = "2025-07-30.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs index 52a25cab7b..a874ff0766 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -68,6 +68,12 @@ public class AccountSessionComponents : StripeEntity #endif public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; } + [JsonProperty("instant_payouts_promotion")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("instant_payouts_promotion")] +#endif + public AccountSessionComponentsInstantPayoutsPromotion InstantPayoutsPromotion { get; set; } + [JsonProperty("issuing_card")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("issuing_card")] diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsInstantPayoutsPromotion.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsInstantPayoutsPromotion.cs new file mode 100644 index 0000000000..c0d3f657f5 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsInstantPayoutsPromotion.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSessionComponentsInstantPayoutsPromotion : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + + [JsonProperty("features")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("features")] +#endif + public AccountSessionComponentsInstantPayoutsPromotionFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionFeatures.cs new file mode 100644 index 0000000000..77dd3a96f0 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionFeatures.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSessionComponentsInstantPayoutsPromotionFeatures : StripeEntity + { + /// + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. + /// + [JsonProperty("disable_stripe_user_authentication")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("disable_stripe_user_authentication")] +#endif + public bool DisableStripeUserAuthentication { get; set; } + + /// + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. + /// + [JsonProperty("external_account_collection")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("external_account_collection")] +#endif + public bool ExternalAccountCollection { get; set; } + + /// + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. + /// + [JsonProperty("instant_payouts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("instant_payouts")] +#endif + public bool InstantPayouts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs b/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs index c7f913081d..ad1ed3e43e 100644 --- a/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs +++ b/src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs @@ -40,7 +40,7 @@ public class AccountBusinessProfile : StripeEntity public string Mcc { get; set; } /// - /// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. + /// Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. /// One of: lgbtqi_owned_business, minority_owned_business, /// none_of_these_apply, prefer_not_to_answer, or women_owned_business. /// diff --git a/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayoutsSchedule.cs b/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayoutsSchedule.cs index 1bd0c012a1..98fb6c86a9 100644 --- a/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayoutsSchedule.cs +++ b/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayoutsSchedule.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -24,22 +25,22 @@ public class BalanceSettingsPayoutsSchedule : StripeEntity - [JsonProperty("monthly_anchor")] + [JsonProperty("monthly_payout_days")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("monthly_anchor")] + [STJS.JsonPropertyName("monthly_payout_days")] #endif - public long MonthlyAnchor { get; set; } + public List MonthlyPayoutDays { get; set; } /// - /// The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only - /// shown if interval is weekly. - /// One of: friday, monday, thursday, tuesday, or - /// wednesday. + /// The days of the week when available funds are paid out, specified as an array, for + /// example, [monday, tuesday]. Only shown if interval is weekly. + /// One of: friday, monday, saturday, sunday, thursday, + /// tuesday, or wednesday. /// - [JsonProperty("weekly_anchor")] + [JsonProperty("weekly_payout_days")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("weekly_anchor")] + [STJS.JsonPropertyName("weekly_payout_days")] #endif - public string WeeklyAnchor { get; set; } + public List WeeklyPayoutDays { get; set; } } } diff --git a/src/Stripe.net/Entities/Billing/MeterUsageRows/MeterUsageRow.cs b/src/Stripe.net/Entities/Billing/MeterUsageRows/MeterUsageRow.cs new file mode 100644 index 0000000000..30cb937b1e --- /dev/null +++ b/src/Stripe.net/Entities/Billing/MeterUsageRows/MeterUsageRow.cs @@ -0,0 +1,81 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class MeterUsageRow : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the object. + /// + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch. + /// + [JsonProperty("bucket_end_time")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bucket_end_time")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime BucketEndTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch. + /// + [JsonProperty("bucket_start_time")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bucket_start_time")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime BucketStartTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The aggregated meter usage value for the specified bucket. + /// + [JsonProperty("bucket_value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bucket_value")] +#endif + public decimal BucketValue { get; set; } + + /// + /// A set of key-value pairs representing the dimensions of the meter usage. + /// + [JsonProperty("dimensions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dimensions")] +#endif + public Dictionary Dimensions { get; set; } + + /// + /// The unique identifier for the meter. + /// + [JsonProperty("meter_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("meter_id")] +#endif + public string MeterId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Billing/MeterUsages/MeterUsage.cs b/src/Stripe.net/Entities/Billing/MeterUsages/MeterUsage.cs new file mode 100644 index 0000000000..ce7a987dcf --- /dev/null +++ b/src/Stripe.net/Entities/Billing/MeterUsages/MeterUsage.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// A billing meter usage event represents an aggregated view of a customer’s billing meter + /// events within a specified timeframe. + /// + public class MeterUsage : StripeEntity, IHasObject + { + /// + /// String representing the object's type. Objects of the same type share the same value. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// The aggregated meter usage data for the specified customer and time range. + /// + [JsonProperty("data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("data")] +#endif + public List Data { get; set; } + + /// + /// Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch. + /// + [JsonProperty("data_refreshed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("data_refreshed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime DataRefreshedAt { 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. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + } +} diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProduct.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProduct.cs index 9c35a9f62d..307e41b55c 100644 --- a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProduct.cs +++ b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProduct.cs @@ -9,6 +9,12 @@ namespace Stripe.BillingPortal public class ConfigurationFeaturesSubscriptionUpdateProduct : StripeEntity { + [JsonProperty("adjustable_quantity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("adjustable_quantity")] +#endif + public ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity AdjustableQuantity { get; set; } + /// /// The list of price IDs which, when subscribed to, a subscription can be updated. /// diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity.cs new file mode 100644 index 0000000000..d5e42b393a --- /dev/null +++ b/src/Stripe.net/Entities/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.BillingPortal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantity : StripeEntity + { + /// + /// If true, the quantity can be adjusted to any non-negative integer. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + + /// + /// The maximum quantity that can be set for the product. + /// + [JsonProperty("maximum")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum")] +#endif + public long? Maximum { get; set; } + + /// + /// The minimum quantity that can be set for the product. + /// + [JsonProperty("minimum")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum")] +#endif + public long Minimum { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Capabilities/Capability.cs b/src/Stripe.net/Entities/Capabilities/Capability.cs index 3e726450fc..7753c69558 100644 --- a/src/Stripe.net/Entities/Capabilities/Capability.cs +++ b/src/Stripe.net/Entities/Capabilities/Capability.cs @@ -112,8 +112,7 @@ public Account Account /// /// The status of the capability. - /// One of: active, disabled, inactive, pending, or - /// unrequested. + /// One of: active, inactive, pending, or unrequested. /// [JsonProperty("status")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs index 20f1befcff..3fd44d8cea 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index fc96a32731..915865ee9a 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -38,9 +38,9 @@ public class ChargePaymentMethodDetailsCard : StripeEntity - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index 04d4450194..d6af1e1fba 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -21,9 +21,9 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCashapp.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCashapp.cs index 9a8ee9fa28..deb130eb5d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCashapp.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCashapp.cs @@ -25,5 +25,14 @@ public class ChargePaymentMethodDetailsCashapp : StripeEntity + /// A unique and immutable identifier of payments assigned by Cash App. + /// + [JsonProperty("transaction_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_id")] +#endif + public string TransactionId { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs index adf566a9e8..7eab95db21 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class ChargePaymentMethodDetailsRevolutPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePresentmentDetails.cs b/src/Stripe.net/Entities/Charges/ChargePresentmentDetails.cs index c8d2822b73..a7a1c7b156 100644 --- a/src/Stripe.net/Entities/Charges/ChargePresentmentDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePresentmentDetails.cs @@ -9,7 +9,8 @@ namespace Stripe public class ChargePresentmentDetails : StripeEntity { /// - /// Amount intended to be collected by this payment, denominated in presentment_currency. + /// Amount intended to be collected by this payment, denominated in + /// presentment_currency. /// [JsonProperty("presentment_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index 24b96f6721..65ea68548e 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -450,6 +450,17 @@ public Invoice Invoice #endif public List OptionalItems { get; set; } + /// + /// Where the user is coming from. This informs the optimizations that are applied to the + /// session. + /// One of: mobile_app, or web. + /// + [JsonProperty("origin_context")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("origin_context")] +#endif + public string OriginContext { get; set; } + #region Expandable PaymentIntent /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptions.cs index 8c00f9bf83..877058a210 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptions.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptions.cs @@ -16,5 +16,14 @@ public class SessionInvoiceCreationInvoiceDataRenderingOptions : StripeEntity + /// ID of the invoice rendering template to be used for the generated invoice. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } } } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs index 1b40d4f683..2e3c8610bc 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPix.cs @@ -16,5 +16,31 @@ public class SessionPaymentMethodOptionsPix : 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. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPresentmentDetails.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPresentmentDetails.cs index 26870a5383..394cdddfc3 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPresentmentDetails.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPresentmentDetails.cs @@ -9,7 +9,8 @@ namespace Stripe.Checkout public class SessionPresentmentDetails : StripeEntity { /// - /// Amount intended to be collected by this payment, denominated in presentment_currency. + /// Amount intended to be collected by this payment, denominated in + /// presentment_currency. /// [JsonProperty("presentment_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs index 237e9232e2..a7de4ef213 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class ConfirmationTokenPaymentMethodPreviewCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index 2eb152fe30..c81121d3ae 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -21,9 +21,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public long? AmountAuthorized { get; set; } /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs index c1fda1243a..a36476f8b1 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs @@ -10,9 +10,9 @@ namespace Stripe public class ConfirmationTokenPaymentMethodPreviewCardPresent : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Customers/Customer.cs b/src/Stripe.net/Entities/Customers/Customer.cs index 30e2e4c43a..b3d1e40c54 100644 --- a/src/Stripe.net/Entities/Customers/Customer.cs +++ b/src/Stripe.net/Entities/Customers/Customer.cs @@ -48,11 +48,13 @@ public class Customer : StripeEntity, IHasId, IHasMetadata, IHasObject public Address Address { get; set; } /// - /// The current balance, if any, that's stored on the customer. If negative, the customer - /// has credit to apply to their next invoice. If positive, the customer has an amount owed - /// that's added to their next invoice. The balance only considers amounts that Stripe - /// hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This - /// balance is only taken into account after invoices finalize. + /// The current balance, if any, that's stored on the customer in their default currency. If + /// negative, the customer has credit to apply to their next invoice. If positive, the + /// customer has an amount owed that's added to their next invoice. The balance only + /// considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't + /// reflect unpaid invoices. This balance is only taken into account after invoices + /// finalize. For multi-currency balances, see invoice_credit_balance. /// [JsonProperty("balance")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/Dispute.cs b/src/Stripe.net/Entities/Disputes/Dispute.cs index e5cc784335..1b72ab8245 100644 --- a/src/Stripe.net/Entities/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Disputes/Dispute.cs @@ -247,6 +247,12 @@ public PaymentIntent PaymentIntent #endif public string Reason { get; set; } + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public DisputeSmartDisputes SmartDisputes { get; set; } + /// /// Current status of dispute. Possible values are warning_needs_response, /// warning_under_review, warning_closed, needs_response, diff --git a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs index 8ebb20eb21..819aaffacf 100644 --- a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class DisputePaymentMethodDetailsCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/DisputeSmartDisputes.cs b/src/Stripe.net/Entities/Disputes/DisputeSmartDisputes.cs new file mode 100644 index 0000000000..6d7fe36444 --- /dev/null +++ b/src/Stripe.net/Entities/Disputes/DisputeSmartDisputes.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class DisputeSmartDisputes : StripeEntity + { + /// + /// Evidence that could be provided to improve the SmartDisputes packet. + /// + [JsonProperty("recommended_evidence")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recommended_evidence")] +#endif + public List RecommendedEvidence { get; set; } + + /// + /// Smart Disputes auto representment packet availability status. + /// One of: available, processing, requires_evidence, or + /// unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 35197f55c2..6a1c538936 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -9,34 +9,26 @@ namespace Stripe #endif /// - /// Events are our way of letting you know when something interesting happens in your - /// account. When an interesting event occurs, we create a new Event object. For - /// example, when a charge succeeds, we create a charge.succeeded event, and when an - /// invoice payment attempt fails, we create an invoice.payment_failed event. Certain - /// API requests might create multiple events. For example, if you create a new subscription - /// for a customer, you receive both a customer.subscription.created event and a - /// charge.succeeded event. + /// Snapshot events allow you to track and react to activity in your Stripe integration. + /// When the state of another API resource changes, Stripe creates an Event object + /// that contains all the relevant information associated with that action, including the + /// affected API resource. For example, a successful payment triggers a + /// charge.succeeded event, which contains the Charge in the event's data + /// property. Some actions trigger multiple events. For example, if you create a new + /// subscription for a customer, it triggers both a customer.subscription.created + /// event and a charge.succeeded event. /// - /// Events occur when the state of another API resource changes. The event's data field - /// embeds the resource's state at the time of the change. For example, a - /// charge.succeeded event contains a charge, and an invoice.payment_failed - /// event contains an invoice. + /// Configure an event destination in your account to listen for events that represent + /// actions your integration needs to respond to. Additionally, you can retrieve an + /// individual event or a list of events from the API. /// - /// As with other API resources, you can use endpoints to retrieve an individual event or a list of events from the API. We also - /// have a separate webhooks system for - /// sending the Event objects directly to an endpoint on your server. You can manage - /// webhooks in your account - /// settings. Learn how to listen for - /// events so that your integration can automatically trigger reactions. + /// Connect platforms can also receive event + /// notifications that occur in their connected accounts. These events include an account + /// attribute that identifies the relevant connected account. /// - /// When using Connect, you can also receive - /// event notifications that occur in connected accounts. For these events, there's an - /// additional account attribute in the received Event object. - /// - /// We only guarantee access to events through the Retrieve Event API for 30 days. + /// You can access events through the Retrieve Event API for 30 + /// days. /// [JsonConverter(typeof(EventConverter))] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/FxQuotes/FxQuote.cs b/src/Stripe.net/Entities/FxQuotes/FxQuote.cs index d70d23206a..f5d7a30917 100644 --- a/src/Stripe.net/Entities/FxQuotes/FxQuote.cs +++ b/src/Stripe.net/Entities/FxQuotes/FxQuote.cs @@ -10,12 +10,14 @@ namespace Stripe #endif /// - /// The FX Quotes API provides three key functions: - View current exchange rates: The - /// object shows Stripe's current exchange rate for any given currency pair. - Extended - /// quotes: The API provides rate quotes valid for a 1-hour period or a 24-hour period, - /// eliminating uncertainty from FX fluctuations. - View FX fees: The API provides - /// information on the FX fees Stripe will charge on your FX transaction, allowing you to - /// anticipate specific settlement amounts before payment costs. + /// The FX Quotes API provides three functions: - View Stripe's current exchange rate for + /// any given currency pair. - Extend quoted rates for a 1-hour period or a 24-hour period, + /// minimizing uncertainty from FX fluctuations. - Preview the FX fees Stripe will charge on + /// your FX transaction, allowing you to anticipate specific settlement amounts before + /// payment costs. + /// + /// View the + /// docs. /// public class FxQuote : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index 77e5b0e92f..bb5d234c4a 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -44,7 +44,7 @@ public class InvoicePaymentSettings : StripeEntity /// klarna, konbini, kr_card, link, multibanco, /// naver_pay, nz_bank_account, p24, payco, paynow, /// paypal, promptpay, revolut_pay, sepa_credit_transfer, - /// sepa_debit, sofort, stripe_balance, swish, + /// sepa_debit, sofort, stripe_balance, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs index 3f7a71aeed..85cfa37785 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs @@ -78,6 +78,16 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by upi, this sub-hash contains details about the UPI payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("upi")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("upi")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsUpi Upi { get; set; } + /// /// If paying by us_bank_account, this sub-hash contains details about the ACH direct /// debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpi.cs new file mode 100644 index 0000000000..91f5a54033 --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpi.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsUpi : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs new file mode 100644 index 0000000000..f7bd1af814 --- /dev/null +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. If not provided, the mandate will be active + /// until canceled. If provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs index acaee8a144..677e0f31d0 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs index 112c3ab49e..e9897ecd69 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCard.cs @@ -11,9 +11,9 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// One of: amex, cartes_bancaires, diners, discover, /// eftpos_au, interac, jcb, link, mastercard, /// unionpay, unknown, or visa. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs index f905b65248..4ab40f7813 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs @@ -21,9 +21,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< public long? AmountAuthorized { get; set; } /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCashapp.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCashapp.cs index 509c2f639e..32f122f929 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCashapp.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCashapp.cs @@ -25,5 +25,14 @@ public class PaymentAttemptRecordPaymentMethodDetailsCashapp : StripeEntity + /// A unique and immutable identifier of payments assigned by Cash App. + /// + [JsonProperty("transaction_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_id")] +#endif + public string TransactionId { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsRevolutPayFundingCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsRevolutPayFundingCard.cs index 5244636391..c8befe501d 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsRevolutPayFundingCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsRevolutPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsRevolutPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPresentmentDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPresentmentDetails.cs index dc461cb5cb..bb3a68cef5 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPresentmentDetails.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPresentmentDetails.cs @@ -9,7 +9,8 @@ namespace Stripe public class PaymentIntentPresentmentDetails : StripeEntity { /// - /// Amount intended to be collected by this payment, denominated in presentment_currency. + /// Amount intended to be collected by this payment, denominated in + /// presentment_currency. /// [JsonProperty("presentment_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptions.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptions.cs index 3a1fa06a35..02850f783a 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptions.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptions.cs @@ -16,5 +16,14 @@ public class PaymentLinkInvoiceCreationInvoiceDataRenderingOptions : StripeEntit [STJS.JsonPropertyName("amount_tax_display")] #endif public string AmountTaxDisplay { get; set; } + + /// + /// ID of the invoice rendering template to be used for the generated invoice. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs index a55c108150..a1c8cf8491 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentMethodCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index c83a691902..9ec6e7372c 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -21,9 +21,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str public long? AmountAuthorized { get; set; } /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs index 1e0d1571b6..0f8af9f3c9 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs @@ -10,9 +10,9 @@ namespace Stripe public class PaymentMethodCardPresent : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs index 2f5810d437..a819ec3e9a 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsAmazonPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs index 8174517c14..1bbaf2ca8c 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCard.cs @@ -11,9 +11,9 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// One of: amex, cartes_bancaires, diners, discover, /// eftpos_au, interac, jcb, link, mastercard, /// unionpay, unknown, or visa. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs index 53afecbc01..4b8181c73c 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs @@ -21,9 +21,9 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCashapp.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCashapp.cs index 1f4bb1ae81..ac41e7ea49 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCashapp.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCashapp.cs @@ -25,5 +25,14 @@ public class PaymentRecordPaymentMethodDetailsCashapp : StripeEntity + /// A unique and immutable identifier of payments assigned by Cash App. + /// + [JsonProperty("transaction_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_id")] +#endif + public string TransactionId { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsRevolutPayFundingCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsRevolutPayFundingCard.cs index 6db8bb86e5..3350c954c3 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsRevolutPayFundingCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsRevolutPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsRevolutPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index 08372f3996..7fab68ebc5 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -44,7 +44,7 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntityklarna, konbini, kr_card, link, multibanco, /// naver_pay, nz_bank_account, p24, payco, paynow, /// paypal, promptpay, revolut_pay, sepa_credit_transfer, - /// sepa_debit, sofort, stripe_balance, swish, + /// sepa_debit, sofort, stripe_balance, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs index 44a449b255..c24a3564fe 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs @@ -78,6 +78,16 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti #endif public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsSepaDebit SepaDebit { get; set; } + /// + /// If paying by upi, this sub-hash contains details about the UPI payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("upi")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("upi")] +#endif + public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpi Upi { get; set; } + /// /// If paying by us_bank_account, this sub-hash contains details about the ACH direct /// debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpi.cs new file mode 100644 index 0000000000..4ef7e4467f --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpi.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpi : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs new file mode 100644 index 0000000000..420a44209a --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. If not provided, the mandate will be active + /// until canceled. If provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs index c1a988c485..c2ef4f335c 100644 --- a/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs +++ b/src/Stripe.net/Entities/Radar/ValueLists/ValueList.cs @@ -75,10 +75,10 @@ public class ValueList : StripeEntity, IHasId, IHasMetadata, IHasObje public bool? Deleted { get; set; } /// - /// The type of items in the value list. One of card_fingerprint, - /// us_bank_account_fingerprint, sepa_debit_fingerprint, card_bin, + /// The type of items in the value list. One of card_fingerprint, card_bin, /// email, ip_address, country, string, - /// case_sensitive_string, or customer_id. + /// 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. diff --git a/src/Stripe.net/Entities/Refunds/RefundPresentmentDetails.cs b/src/Stripe.net/Entities/Refunds/RefundPresentmentDetails.cs index 02cfa96671..e0bdacb08a 100644 --- a/src/Stripe.net/Entities/Refunds/RefundPresentmentDetails.cs +++ b/src/Stripe.net/Entities/Refunds/RefundPresentmentDetails.cs @@ -9,7 +9,8 @@ namespace Stripe public class RefundPresentmentDetails : StripeEntity { /// - /// Amount intended to be collected by this payment, denominated in presentment_currency. + /// Amount intended to be collected by this payment, denominated in + /// presentment_currency. /// [JsonProperty("presentment_amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Reviews/Review.cs b/src/Stripe.net/Entities/Reviews/Review.cs index 7eec9e2a4b..08622ff446 100644 --- a/src/Stripe.net/Entities/Reviews/Review.cs +++ b/src/Stripe.net/Entities/Reviews/Review.cs @@ -90,7 +90,7 @@ public Charge Charge /// /// The reason the review was closed, or null if it has not yet been closed. One of /// approved, refunded, refunded_as_fraud, disputed, - /// redacted, or canceled. + /// redacted, canceled, payment_never_settled, or acknowledged. /// One of: approved, canceled, disputed, redacted, /// refunded, or refunded_as_fraud. /// @@ -204,7 +204,7 @@ public PaymentIntent PaymentIntent /// /// The reason the review is currently open or closed. One of rule, manual, /// approved, refunded, refunded_as_fraud, disputed, - /// redacted, or canceled. + /// redacted, canceled, payment_never_settled, or acknowledged. /// [JsonProperty("reason")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs index 15c2cd61d8..64456364b9 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class SetupAttemptPaymentMethodDetailsCard : StripeEntity { /// - /// Card brand. Can be amex, diners, discover, eftpos_au, - /// jcb, link, mastercard, unionpay, visa, or - /// unknown. + /// Card brand. Can be amex, cartes_bancaires, diners, discover, + /// eftpos_au, jcb, link, mastercard, unionpay, + /// visa or unknown. /// [JsonProperty("brand")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 83b6f5eb1a..1823b65350 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -34,7 +34,7 @@ public class SubscriptionPaymentSettings : StripeEntityklarna, konbini, kr_card, link, multibanco, /// naver_pay, nz_bank_account, p24, payco, paynow, /// paypal, promptpay, revolut_pay, sepa_credit_transfer, - /// sepa_debit, sofort, stripe_balance, swish, + /// sepa_debit, sofort, stripe_balance, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs index 96669d80d2..577f0180dd 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs @@ -78,6 +78,16 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the UPI payment method options to pass to invoices + /// created by the subscription. + /// + [JsonProperty("upi")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("upi")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsUpi Upi { get; set; } + /// /// This sub-hash contains details about the ACH direct debit payment method options to pass /// to invoices created by the subscription. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpi.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpi.cs new file mode 100644 index 0000000000..199971a6c3 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpi.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpi : StripeEntity + { + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs new file mode 100644 index 0000000000..87a1b0884c --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions : StripeEntity + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. If not provided, the mandate will be active + /// until canceled. If provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAe.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAe.cs index 5d053a73d9..64393d0d26 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAe.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAe.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAe : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAeStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAeStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAeStandard.cs new file mode 100644 index 0000000000..71d3c0428f --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAeStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAeStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAtStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAtStandard.cs index 924351661d..daa06ad12b 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAtStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAtStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsAtStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAu.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAu.cs index f8b3692dc9..4584e57178 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAu.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAu.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAu : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAuStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAuStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAuStandard.cs new file mode 100644 index 0000000000..5173830cbe --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsAuStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAuStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBeStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBeStandard.cs index fb8225cd1a..4a38728677 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBeStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBeStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsBeStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBgStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBgStandard.cs index 33bf643bae..17b8749fad 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBgStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsBgStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsBgStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCh.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCh.cs index 4d21b47678..5f73164470 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCh.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCh.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsCh : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsChStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsChStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsChStandard.cs new file mode 100644 index 0000000000..faefdf9b6b --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsChStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsChStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCyStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCyStandard.cs index b93c0b21d6..8bd9cc703c 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCyStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCyStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsCyStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCzStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCzStandard.cs index 8007a5329c..999c93417c 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCzStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsCzStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsCzStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDeStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDeStandard.cs index eda1c62405..9244323560 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDeStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDeStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsDeStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDkStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDkStandard.cs index fa1472d9a5..e213065742 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDkStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsDkStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsDkStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEeStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEeStandard.cs index 8a5daee3d9..d7bd757271 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEeStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEeStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsEeStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEsStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEsStandard.cs index b216ee7ac6..e18a115632 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEsStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsEsStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsEsStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFiStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFiStandard.cs index 5f34b88f92..4adfed750a 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFiStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFiStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsFiStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFrStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFrStandard.cs index dbca781bca..748ebcf5c6 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFrStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsFrStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsFrStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGb.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGb.cs index bb40dfe512..7bb5cd6c35 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGb.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGb.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsGb : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsGbStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGbStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGbStandard.cs new file mode 100644 index 0000000000..a5d9dd562c --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGbStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsGbStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGrStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGrStandard.cs index 66cc72d529..d2ee1a82c9 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGrStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsGrStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsGrStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHrStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHrStandard.cs index 50ac14626e..91e005063d 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHrStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHrStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsHrStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHuStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHuStandard.cs index e381787bd3..1f3613d83b 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHuStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsHuStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsHuStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIeStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIeStandard.cs index 3476e8d3f6..1b3965ea37 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIeStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsIeStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsIeStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsItStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsItStandard.cs index 54ddb4753e..98201c5e70 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsItStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsItStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsItStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJp.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJp.cs index 8a200aa53c..f4183b43b2 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJp.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJp.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsJp : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsJpStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJpStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJpStandard.cs new file mode 100644 index 0000000000..fa372a2253 --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsJpStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsJpStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLtStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLtStandard.cs index ccfbee2f12..965496a488 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLtStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLtStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsLtStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLuStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLuStandard.cs index 6481729f62..83f4cb8ce8 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLuStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLuStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsLuStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLvStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLvStandard.cs index 2d8a9c7743..efbc5c5d84 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLvStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsLvStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsLvStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsMtStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsMtStandard.cs index 1e9eab61cd..3bb293e613 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsMtStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsMtStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsMtStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNlStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNlStandard.cs index 78077815ad..d1c7b2ffd1 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNlStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNlStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsNlStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNo.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNo.cs index 7de9cba054..fdf6e3a91d 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNo.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNo.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsNo : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsNoStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNoStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNoStandard.cs new file mode 100644 index 0000000000..5a5c576807 --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNoStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsNoStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNz.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNz.cs index ef1b355001..98398723bc 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNz.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNz.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsNz : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsNzStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNzStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNzStandard.cs new file mode 100644 index 0000000000..87bcc21a68 --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsNzStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsNzStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPlStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPlStandard.cs index f5663f42db..558769cc73 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPlStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPlStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsPlStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPtStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPtStandard.cs index 352e0bdc25..65cb609fba 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPtStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsPtStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsPtStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsRoStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsRoStandard.cs index 4b686892ab..aee3e3d29c 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsRoStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsRoStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsRoStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSeStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSeStandard.cs index 545f990578..7c60178707 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSeStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSeStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsSeStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSg.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSg.cs index 05238bb9cc..4c7e82aa72 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSg.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSg.cs @@ -8,6 +8,12 @@ namespace Stripe.Tax public class RegistrationCountryOptionsSg : StripeEntity { + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsSgStandard Standard { get; set; } + /// /// Type of registration in country. /// diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSgStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSgStandard.cs new file mode 100644 index 0000000000..df58576106 --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSgStandard.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsSgStandard : StripeEntity + { + /// + /// Place of supply scheme used in an Default standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSiStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSiStandard.cs index c2d95a007b..4081a514ef 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSiStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSiStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsSiStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSkStandard.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSkStandard.cs index dada1311f9..0087990c1f 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSkStandard.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsSkStandard.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsSkStandard : StripeEntity /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs index 48de1d68ad..9384a1509e 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTipping.cs @@ -8,12 +8,24 @@ namespace Stripe.Terminal public class ConfigurationTipping : StripeEntity { + [JsonProperty("aed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("aed")] +#endif + public ConfigurationTippingAed Aed { get; set; } + [JsonProperty("aud")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("aud")] #endif public ConfigurationTippingAud Aud { get; set; } + [JsonProperty("bgn")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bgn")] +#endif + public ConfigurationTippingBgn Bgn { get; set; } + [JsonProperty("cad")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("cad")] @@ -56,6 +68,12 @@ public class ConfigurationTipping : StripeEntity #endif public ConfigurationTippingHkd Hkd { get; set; } + [JsonProperty("huf")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("huf")] +#endif + public ConfigurationTippingHuf Huf { get; set; } + [JsonProperty("jpy")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("jpy")] @@ -86,6 +104,12 @@ public class ConfigurationTipping : StripeEntity #endif public ConfigurationTippingPln Pln { get; set; } + [JsonProperty("ron")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ron")] +#endif + public ConfigurationTippingRon Ron { get; set; } + [JsonProperty("sek")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("sek")] diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingAed.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingAed.cs new file mode 100644 index 0000000000..6e7300339a --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingAed.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingAed : StripeEntity + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingBgn.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingBgn.cs new file mode 100644 index 0000000000..0c59e81e90 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingBgn.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingBgn : StripeEntity + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingHuf.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingHuf.cs new file mode 100644 index 0000000000..f504b6ef1d --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingHuf.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingHuf : StripeEntity + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingRon.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingRon.cs new file mode 100644 index 0000000000..77b6394327 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationTippingRon.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingRon : StripeEntity + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLink.cs b/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLink.cs new file mode 100644 index 0000000000..33fbd45dca --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLink.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Returns redirect links used for onboarding onto Tap to Pay on iPhone. + /// + public class OnboardingLink : StripeEntity, IHasObject + { + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// Link type options associated with the current onboarding link object. + /// + [JsonProperty("link_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_options")] +#endif + public OnboardingLinkLinkOptions LinkOptions { get; set; } + + /// + /// The type of link being generated. + /// + [JsonProperty("link_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_type")] +#endif + public string LinkType { get; set; } + + /// + /// Stripe account ID to generate the link for. + /// + [JsonProperty("on_behalf_of")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_behalf_of")] +#endif + public string OnBehalfOf { get; set; } + + /// + /// The link passed back to the user for their onboarding. + /// + [JsonProperty("redirect_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("redirect_url")] +#endif + public string RedirectUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLinkLinkOptions.cs b/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLinkLinkOptions.cs new file mode 100644 index 0000000000..24bcc24a03 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLinkLinkOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OnboardingLinkLinkOptions : StripeEntity + { + /// + /// The options associated with the Apple Terms and Conditions link type. + /// + [JsonProperty("apple_terms_and_conditions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("apple_terms_and_conditions")] +#endif + public OnboardingLinkLinkOptionsAppleTermsAndConditions AppleTermsAndConditions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsAppleTermsAndConditions.cs b/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsAppleTermsAndConditions.cs new file mode 100644 index 0000000000..8b971ab7af --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsAppleTermsAndConditions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OnboardingLinkLinkOptionsAppleTermsAndConditions : StripeEntity + { + /// + /// Whether the link should also support users relinking their Apple account. + /// + [JsonProperty("allow_relinking")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("allow_relinking")] +#endif + public bool? AllowRelinking { get; set; } + + /// + /// The business name of the merchant accepting Apple's Terms and Conditions. + /// + [JsonProperty("merchant_display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("merchant_display_name")] +#endif + public string MerchantDisplayName { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs index 91b5d120ea..8dc80761a6 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLink.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Core /// /// AccountLinks are the means by which a Merchant grants an Account permission to access /// Stripe-hosted applications, such as Recipient Onboarding. This API is only available for - /// users enrolled in the public preview for Global Payouts. + /// users enrolled in the public preview for Accounts v2. /// public class AccountLink : StripeEntity, IHasObject { diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs index aa366f2221..d243c8731e 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs @@ -10,9 +10,20 @@ namespace Stripe.V2.Core public class AccountLinkUseCaseAccountOnboarding : StripeEntity { /// - /// Open Enum. A v2/account can be configured to enable certain functionality. The - /// configuration param targets the v2/account_link to collect information for the specified - /// v2/account configuration/s. + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkUseCaseAccountOnboardingCollectionOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/core/account can be configured to enable certain functionality. The + /// configuration param targets the v2/core/account_link to collect information for the + /// specified v2/core/account configuration/s. + /// One of: customer, merchant, recipient, or storer. /// [JsonProperty("configurations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs new file mode 100644 index 0000000000..efce1ce739 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboardingCollectionOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseAccountOnboardingCollectionOptions : StripeEntity + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don’t specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs index 7432ccd214..7fe1c94d5f 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs @@ -9,10 +9,21 @@ namespace Stripe.V2.Core public class AccountLinkUseCaseAccountUpdate : StripeEntity { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkUseCaseAccountUpdateCollectionOptions CollectionOptions { get; set; } + /// /// Open Enum. A v2/account can be configured to enable certain functionality. The /// configuration param targets the v2/account_link to collect information for the specified /// v2/account configuration/s. + /// One of: customer, merchant, recipient, or storer. /// [JsonProperty("configurations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs new file mode 100644 index 0000000000..c04cd19381 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdateCollectionOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseAccountUpdateCollectionOptions : StripeEntity + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don’t specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { 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 7424189279..89aeae54d5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs @@ -18,5 +18,14 @@ public class AccountIdentityAttestationsTermsOfService : StripeEntity + /// Details on the Account's acceptance of Treasury-specific terms of service. + /// + [JsonProperty("storer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("storer")] +#endif + public AccountIdentityAttestationsTermsOfServiceStorer Storer { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs new file mode 100644 index 0000000000..b6d4772b64 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.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 AccountIdentityAttestationsTermsOfServiceStorer : 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")] +#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/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs index 800ead9669..72e8c96229 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs @@ -21,6 +21,16 @@ public class PayoutMethodBankAccount : StripeEntity #endif public bool Archived { get; set; } + /// + /// The type of bank account (checking or savings). + /// One of: checking, or savings. + /// + [JsonProperty("bank_account_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bank_account_type")] +#endif + public string BankAccountType { get; set; } + /// /// The name of the bank this bank account is in. This field is populated automatically by /// Stripe. diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs index ea7352bf91..24ea60c33b 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs @@ -9,12 +9,12 @@ namespace Stripe.V2.Payments #endif /// - /// Off-session payment resource. + /// OffSessionPayment resource. /// public class OffSessionPayment : StripeEntity, IHasId, IHasMetadata, IHasObject { /// - /// ID of the OSP. + /// Unique identifier for the object.. /// [JsonProperty("id")] #if NET6_0_OR_GREATER @@ -33,7 +33,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string Object { get; set; } /// - /// The amount you requested to be collected on the OSP upon creation. + /// The “presentment amount” to be collected from the customer. /// [JsonProperty("amount_requested")] #if NET6_0_OR_GREATER @@ -42,7 +42,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public V2.Amount AmountRequested { get; set; } /// - /// The frequency of the underlying payment that this OSP represents. + /// The frequency of the underlying payment. /// One of: recurring, or unscheduled. /// [JsonProperty("cadence")] @@ -52,7 +52,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string Cadence { get; set; } /// - /// ID of owning compartment. + /// ID of the owning compartment. /// [JsonProperty("compartment_id")] #if NET6_0_OR_GREATER @@ -61,7 +61,8 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string CompartmentId { get; set; } /// - /// Timestamp of creation. + /// Creation time of the OffSessionPayment. Represented as a RFC 3339 date & time UTC + /// value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. /// [JsonProperty("created")] #if NET6_0_OR_GREATER @@ -70,7 +71,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; /// - /// Customer owning the supplied payment method. + /// ID of the Customer to which this OffSessionPayment belongs. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -79,7 +80,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string Customer { get; set; } /// - /// Reason why the OSP failed. + /// The reason why the OffSessionPayment failed. /// One of: rejected_by_partner, or retries_exhausted. /// [JsonProperty("failure_reason")] @@ -89,7 +90,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string FailureReason { get; set; } /// - /// Last error returned by the financial partner for a failed authorization. + /// The payment error encountered in the previous attempt to authorize the payment. /// [JsonProperty("last_authorization_attempt_error")] #if NET6_0_OR_GREATER @@ -107,7 +108,8 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string LatestPaymentAttemptRecord { get; set; } /// - /// True if the txn is livemode, false otherwise. + /// Has the value true if the object exists in live mode or the value false if the object + /// exists in test mode. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER @@ -116,7 +118,11 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public bool Livemode { get; set; } /// - /// Metadata you provided. + /// 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. Learn more about storing + /// information in metadata. /// [JsonProperty("metadata")] #if NET6_0_OR_GREATER @@ -125,7 +131,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public Dictionary Metadata { get; set; } /// - /// OBO, same as on the PI. + /// The account (if any) for which the funds of the OffSessionPayment are intended. /// [JsonProperty("on_behalf_of")] #if NET6_0_OR_GREATER @@ -134,7 +140,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string OnBehalfOf { get; set; } /// - /// ID of payment method. + /// ID of the payment method used in this OffSessionPayment. /// [JsonProperty("payment_method")] #if NET6_0_OR_GREATER @@ -143,7 +149,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string PaymentMethod { get; set; } /// - /// Payment record associated with the OSP. consistent across attempts. + /// Payment record associated with the OffSessionPayment. /// [JsonProperty("payment_record")] #if NET6_0_OR_GREATER @@ -152,7 +158,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string PaymentRecord { get; set; } /// - /// Details about the OSP retries. + /// Details about the OffSessionPayment retries. /// [JsonProperty("retry_details")] #if NET6_0_OR_GREATER @@ -161,7 +167,11 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public OffSessionPaymentRetryDetails RetryDetails { get; set; } /// - /// Statement descriptor you provided. + /// Text that appears on the customer’s statement as the statement descriptor for a non-card + /// charge. This value overrides the account’s default statement descriptor. For information + /// about requirements, including the 22-character limit, see the Statement + /// Descriptor docs. /// [JsonProperty("statement_descriptor")] #if NET6_0_OR_GREATER @@ -170,7 +180,10 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string StatementDescriptor { get; set; } /// - /// Statement descriptor suffix you provided, similar to that on the PI. + /// Provides information about a card charge. Concatenated to the account’s statement + /// descriptor prefix to form the complete statement descriptor that appears on the + /// customer’s statement. /// [JsonProperty("statement_descriptor_suffix")] #if NET6_0_OR_GREATER @@ -179,7 +192,9 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string StatementDescriptorSuffix { get; set; } /// - /// Status of the OSP. + /// Status of this OffSessionPayment, one of pending, pending_retry, + /// processing, failed, canceled, requires_capture, or + /// succeeded. /// One of: canceled, failed, pending, pending_retry, /// processing, requires_capture, or succeeded. /// @@ -190,7 +205,7 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string Status { get; set; } /// - /// Test clock to be used to advance the retry attempts. + /// Test clock that can be used to advance the retry attempts in a sandbox. /// [JsonProperty("test_clock")] #if NET6_0_OR_GREATER @@ -199,7 +214,9 @@ public class OffSessionPayment : StripeEntity, IHasId, IHasMe public string TestClock { get; set; } /// - /// Instructions for the transfer to be made with this OSP after successful money movement. + /// The data that automatically creates a Transfer after the payment finalizes. Learn more + /// about the use case for connected accounts. /// [JsonProperty("transfer_data")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentRetryDetails.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentRetryDetails.cs index 9c3a124ca8..881de53031 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentRetryDetails.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentRetryDetails.cs @@ -18,7 +18,7 @@ public class OffSessionPaymentRetryDetails : StripeEntity - /// How you want Stripe to retry the payment. + /// Indicates the strategy for how you want Stripe to retry the payment. /// One of: none, or smart. /// [JsonProperty("retry_strategy")] diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentTransferData.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentTransferData.cs index f7ca7431cd..5760c00ce5 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentTransferData.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPaymentTransferData.cs @@ -9,7 +9,13 @@ namespace Stripe.V2.Payments public class OffSessionPaymentTransferData : StripeEntity { /// - /// Amount in minor units that you want to transfer. + /// The amount transferred to the destination account. This transfer will occur + /// automatically after the payment succeeds. If no amount is specified, by default the + /// entire payment amount is transferred to the destination account. The amount must be less + /// than or equal to the amount_requested, + /// and must be a positive integer representing how much to transfer in the smallest + /// currency unit (e.g., 100 cents to charge $1.00). /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -18,7 +24,8 @@ public class OffSessionPaymentTransferData : StripeEntity - /// ID of the connected account where you want money to go. + /// The account (if any) that the payment is attributed to for tax reporting, and where + /// funds from the payment are transferred to after payment success. /// [JsonProperty("destination")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Events/V2CoreAccountLinkCompletedEvent.cs b/src/Stripe.net/Events/V2CoreAccountLinkReturnedEvent.cs similarity index 70% rename from src/Stripe.net/Events/V2CoreAccountLinkCompletedEvent.cs rename to src/Stripe.net/Events/V2CoreAccountLinkReturnedEvent.cs index c206d04410..63959ed7cb 100644 --- a/src/Stripe.net/Events/V2CoreAccountLinkCompletedEvent.cs +++ b/src/Stripe.net/Events/V2CoreAccountLinkReturnedEvent.cs @@ -10,16 +10,16 @@ namespace Stripe.Events /// /// Occurs when the generated AccountLink is completed. /// - public class V2CoreAccountLinkCompletedEvent : V2.Event + public class V2CoreAccountLinkReturnedEvent : V2.Event { /// - /// Data for the v2.core.account_link.completed event. + /// Data for the v2.core.account_link.returned event. /// [JsonProperty("data")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("data")] #endif - public V2CoreAccountLinkCompletedEventData Data { get; set; } + public V2CoreAccountLinkReturnedEventData Data { get; set; } } } diff --git a/src/Stripe.net/Events/V2CoreAccountLinkCompletedEventData.cs b/src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs similarity index 85% rename from src/Stripe.net/Events/V2CoreAccountLinkCompletedEventData.cs rename to src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs index 7e19246c22..9780d6e84a 100644 --- a/src/Stripe.net/Events/V2CoreAccountLinkCompletedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs @@ -8,7 +8,7 @@ namespace Stripe.Events using STJS = System.Text.Json.Serialization; #endif - public class V2CoreAccountLinkCompletedEventData : StripeEntity + public class V2CoreAccountLinkReturnedEventData : StripeEntity { /// /// The ID of the v2 account. @@ -21,6 +21,7 @@ public class V2CoreAccountLinkCompletedEventData : StripeEntity /// Configurations on the Account that was onboarded via the account link. + /// One of: customer, merchant, recipient, or storer. /// [JsonProperty("configurations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Events/V2OffSessionPaymentRequiresCaptureEvent.cs b/src/Stripe.net/Events/V2MoneyManagementPayoutMethodUpdatedEvent.cs similarity index 65% rename from src/Stripe.net/Events/V2OffSessionPaymentRequiresCaptureEvent.cs rename to src/Stripe.net/Events/V2MoneyManagementPayoutMethodUpdatedEvent.cs index 88b01b936d..978d5087f9 100644 --- a/src/Stripe.net/Events/V2OffSessionPaymentRequiresCaptureEvent.cs +++ b/src/Stripe.net/Events/V2MoneyManagementPayoutMethodUpdatedEvent.cs @@ -8,9 +8,9 @@ namespace Stripe.Events #endif /// - /// Off session payment requires capture event definition. + /// Occurs when a PayoutMethod is updated. /// - public class V2OffSessionPaymentRequiresCaptureEvent : V2.Event + public class V2MoneyManagementPayoutMethodUpdatedEvent : V2.Event { /// /// Object containing the reference to API resource relevant to the event. @@ -26,17 +26,17 @@ public class V2OffSessionPaymentRequiresCaptureEvent : V2.Event /// Asynchronously retrieves the related object from the API. Make an API request on every /// call. /// - public Task FetchRelatedObjectAsync() + public Task FetchRelatedObjectAsync() { - return this.FetchRelatedObjectAsync(this.RelatedObject); + return this.FetchRelatedObjectAsync(this.RelatedObject); } /// /// Retrieves the related object from the API. Make an API request on every call. /// - public V2.Payments.OffSessionPayment FetchRelatedObject() + public V2.MoneyManagement.PayoutMethod FetchRelatedObject() { - return this.FetchRelatedObject(this.RelatedObject); + return this.FetchRelatedObject(this.RelatedObject); } } } diff --git a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.cs b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.cs index 2b75ff7477..7e1b0b860e 100644 --- a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.cs +++ b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.cs @@ -8,7 +8,8 @@ namespace Stripe.Events #endif /// - /// Off session payment authorization attempt failed event definition. + /// Sent after a failed authorization if there are still retries available on the + /// OffSessionPayment. /// public class V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent : V2.Event { diff --git a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.cs b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.cs index 0b3a5c4441..d2cb64f2b8 100644 --- a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.cs +++ b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.cs @@ -8,7 +8,8 @@ namespace Stripe.Events #endif /// - /// Off session payment authorization attempt started event definition. + /// Sent when our internal scheduling system kicks off an attempt at authorization, whether + /// it's a retry or an initial authorization. /// public class V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent : V2.Event { diff --git a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCanceledEvent.cs b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCanceledEvent.cs index 4513d0c686..7bbf82857b 100644 --- a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCanceledEvent.cs +++ b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCanceledEvent.cs @@ -8,7 +8,7 @@ namespace Stripe.Events #endif /// - /// Off session payment canceled event definition. + /// Sent immediately following a user's call to the Off-Session Payments cancel endpoint. /// public class V2PaymentsOffSessionPaymentCanceledEvent : V2.Event { diff --git a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCreatedEvent.cs b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCreatedEvent.cs index 73c730a909..d1a1db2e16 100644 --- a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCreatedEvent.cs +++ b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentCreatedEvent.cs @@ -8,7 +8,7 @@ namespace Stripe.Events #endif /// - /// Off session payment created event definition. + /// Sent immediately following a user's call to the Off-Session Payments create endpoint. /// public class V2PaymentsOffSessionPaymentCreatedEvent : V2.Event { diff --git a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentFailedEvent.cs b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentFailedEvent.cs index 34ffc2da12..31c11f7d1f 100644 --- a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentFailedEvent.cs +++ b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentFailedEvent.cs @@ -8,7 +8,8 @@ namespace Stripe.Events #endif /// - /// Off session payment failed event definition. + /// Sent after a failed authorization if there are no retries remaining, or if the failure + /// is unretryable. /// public class V2PaymentsOffSessionPaymentFailedEvent : V2.Event { diff --git a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentSucceededEvent.cs b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentSucceededEvent.cs index 1f48f968d5..5a82123304 100644 --- a/src/Stripe.net/Events/V2PaymentsOffSessionPaymentSucceededEvent.cs +++ b/src/Stripe.net/Events/V2PaymentsOffSessionPaymentSucceededEvent.cs @@ -8,7 +8,7 @@ namespace Stripe.Events #endif /// - /// Off session payment succeeded event definition. + /// Sent immediately after a successful authorization. /// public class V2PaymentsOffSessionPaymentSucceededEvent : V2.Event { diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 37bfa31326..4740208b84 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -39,6 +39,8 @@ public static class StripeTypeRegistry { "billing.meter_event", typeof(Billing.MeterEvent) }, { "billing.meter_event_adjustment", typeof(Billing.MeterEventAdjustment) }, { "billing.meter_event_summary", typeof(Billing.MeterEventSummary) }, + { "billing.meter_usage", typeof(Billing.MeterUsage) }, + { "billing.meter_usage_row", typeof(Billing.MeterUsageRow) }, { "billing_portal.configuration", typeof(BillingPortal.Configuration) }, { "billing_portal.session", typeof(BillingPortal.Session) }, { "capability", typeof(Capability) }, @@ -190,6 +192,7 @@ public static class StripeTypeRegistry { "terminal.configuration", typeof(Terminal.Configuration) }, { "terminal.connection_token", typeof(Terminal.ConnectionToken) }, { "terminal.location", typeof(Terminal.Location) }, + { "terminal.onboarding_link", typeof(Terminal.OnboardingLink) }, { "terminal.reader", typeof(Terminal.Reader) }, { "terminal.reader_collected_data", typeof(Terminal.ReaderCollectedData) }, { "test_helpers.test_clock", typeof(TestHelpers.TestClock) }, @@ -299,8 +302,8 @@ public static class StripeTypeRegistry Events.V2CoreAccountIncludingRequirementsUpdatedEvent) }, { - "v2.core.account_link.completed", typeof( - Events.V2CoreAccountLinkCompletedEvent) + "v2.core.account_link.returned", typeof( + Events.V2CoreAccountLinkReturnedEvent) }, { "v2.core.account.closed", typeof(Events.V2CoreAccountClosedEvent) }, { "v2.core.account.created", typeof(Events.V2CoreAccountCreatedEvent) }, @@ -413,10 +416,6 @@ public static class StripeTypeRegistry "v2.core.event_destination.ping", typeof( Events.V2CoreEventDestinationPingEvent) }, - { - "v2.off_session_payment.requires_capture", typeof( - Events.V2OffSessionPaymentRequiresCaptureEvent) - }, { "v2.payments.off_session_payment.authorization_attempt_failed", typeof( Events.V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent) @@ -489,6 +488,10 @@ public static class StripeTypeRegistry "v2.money_management.outbound_transfer.updated", typeof( Events.V2MoneyManagementOutboundTransferUpdatedEvent) }, + { + "v2.money_management.payout_method.updated", typeof( + Events.V2MoneyManagementPayoutMethodUpdatedEvent) + }, { "v2.money_management.received_credit.available", typeof( Events.V2MoneyManagementReceivedCreditAvailableEvent) diff --git a/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs b/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs index c0f6ab3296..33fd42f1f2 100644 --- a/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs +++ b/src/Stripe.net/Services/AccountLinks/AccountLinkCreateOptions.cs @@ -61,8 +61,16 @@ public class AccountLinkCreateOptions : BaseOptions public string ReturnUrl { get; set; } /// - /// The type of account link the user is requesting. Possible values are - /// account_onboarding or account_update. + /// The type of account link the user is requesting. + /// + /// You can create Account Links of type account_update only for connected accounts + /// where your platform is responsible for collecting requirements, including Custom + /// accounts. You can't create them for accounts that have access to a Stripe-hosted + /// Dashboard. If you use Connect + /// embedded components, you can include components that allow your connected accounts + /// to update their own information. For an account without Stripe-hosted Dashboard access + /// where Stripe is liable for negative balances, you must use embedded components. /// One of: account_onboarding, account_update, /// capital_financing_offer, or capital_financing_reporting. /// diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionFeaturesOptions.cs new file mode 100644 index 0000000000..672f691960 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionFeaturesOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSessionComponentsInstantPayoutsPromotionFeaturesOptions : INestedOptions + { + /// + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. + /// + [JsonProperty("disable_stripe_user_authentication")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("disable_stripe_user_authentication")] +#endif + public bool? DisableStripeUserAuthentication { get; set; } + + /// + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. + /// + [JsonProperty("external_account_collection")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("external_account_collection")] +#endif + public bool? ExternalAccountCollection { get; set; } + + /// + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. + /// + [JsonProperty("instant_payouts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("instant_payouts")] +#endif + public bool? InstantPayouts { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionOptions.cs new file mode 100644 index 0000000000..1654355568 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsInstantPayoutsPromotionOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSessionComponentsInstantPayoutsPromotionOptions : INestedOptions + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool? Enabled { get; set; } + + /// + /// The list of features enabled in the embedded component. + /// + [JsonProperty("features")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("features")] +#endif + public AccountSessionComponentsInstantPayoutsPromotionFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index dfc8905d87..192b518adc 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -162,6 +162,17 @@ public class AccountSessionComponentsOptions : INestedOptions #endif public AccountSessionComponentsFinancialAccountTransactionsOptions FinancialAccountTransactions { get; set; } + /// + /// Configuration for the instant + /// payouts promotion embedded component. + /// + [JsonProperty("instant_payouts_promotion")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("instant_payouts_promotion")] +#endif + public AccountSessionComponentsInstantPayoutsPromotionOptions InstantPayoutsPromotion { get; set; } + /// /// Configuration for the issuing diff --git a/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs b/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs index 5fa0c207f7..b555b9529d 100644 --- a/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountBusinessProfileOptions.cs @@ -40,7 +40,7 @@ public class AccountBusinessProfileOptions : INestedOptions public string Mcc { get; set; } /// - /// Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business. + /// Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business. /// One of: lgbtqi_owned_business, minority_owned_business, /// none_of_these_apply, prefer_not_to_answer, or women_owned_business. /// diff --git a/src/Stripe.net/Services/Accounts/AccountService.cs b/src/Stripe.net/Services/Accounts/AccountService.cs index 0a21214e4d..ddd34e4f5f 100644 --- a/src/Stripe.net/Services/Accounts/AccountService.cs +++ b/src/Stripe.net/Services/Accounts/AccountService.cs @@ -86,11 +86,10 @@ public virtual Task CreateAsync(AccountCreateOptions options, RequestOp /// ///

Test-mode accounts can be deleted at any time.

. /// - ///

Live-mode accounts where Stripe is responsible for negative account balances cannot - /// be deleted, which includes Standard accounts. Live-mode accounts where your platform is - /// liable for negative account balances, which includes Custom and Express accounts, can be - /// deleted when all balances - /// are zero.

. + ///

Live-mode accounts that have access to the standard dashboard and Stripe is + /// responsible for negative account balances cannot be deleted, which includes Standard + /// accounts. All other Live-mode accounts, can be deleted when all balances are zero.

. /// ///

If you want to delete your own account, use the account information tab in your @@ -107,11 +106,10 @@ public virtual Account Delete(string id, AccountDeleteOptions options = null, Re /// ///

Test-mode accounts can be deleted at any time.

. /// - ///

Live-mode accounts where Stripe is responsible for negative account balances cannot - /// be deleted, which includes Standard accounts. Live-mode accounts where your platform is - /// liable for negative account balances, which includes Custom and Express accounts, can be - /// deleted when all balances - /// are zero.

. + ///

Live-mode accounts that have access to the standard dashboard and Stripe is + /// responsible for negative account balances cannot be deleted, which includes Standard + /// accounts. All other Live-mode accounts, can be deleted when all balances are zero.

. /// ///

If you want to delete your own account, use the account information tab in your diff --git a/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPayoutsScheduleOptions.cs b/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPayoutsScheduleOptions.cs index 69e4cd0703..1742219c40 100644 --- a/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPayoutsScheduleOptions.cs +++ b/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPayoutsScheduleOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -20,27 +21,28 @@ public class BalanceSettingsPayoutsScheduleOptions : INestedOptions public string Interval { get; set; } ///

- /// The day of the month when available funds are paid out, specified as a number between - /// 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead - /// sent on the last day of a shorter month. Required and applicable only if interval - /// is monthly. + /// The days of the month when available funds are paid out, specified as an array of + /// numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the + /// month are instead sent on the last day of a shorter month. Required and applicable only + /// if interval is monthly. /// - [JsonProperty("monthly_anchor")] + [JsonProperty("monthly_payout_days")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("monthly_anchor")] + [STJS.JsonPropertyName("monthly_payout_days")] #endif - public long? MonthlyAnchor { get; set; } + public List MonthlyPayoutDays { get; set; } /// - /// The day of the week when available funds are paid out (required and applicable only if - /// interval is weekly.). - /// One of: friday, monday, thursday, tuesday, or - /// wednesday. + /// The days of the week when available funds are paid out, specified as an array, e.g., + /// [monday, tuesday]. (required and applicable only if interval is + /// weekly.). + /// One of: friday, monday, saturday, sunday, thursday, + /// tuesday, or wednesday. /// - [JsonProperty("weekly_anchor")] + [JsonProperty("weekly_payout_days")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("weekly_anchor")] + [STJS.JsonPropertyName("weekly_payout_days")] #endif - public string WeeklyAnchor { get; set; } + public List WeeklyPayoutDays { get; set; } } } diff --git a/src/Stripe.net/Services/BalanceSettings/BalanceSettingsSettlementTimingOptions.cs b/src/Stripe.net/Services/BalanceSettings/BalanceSettingsSettlementTimingOptions.cs index 6683ae2872..3661b4b239 100644 --- a/src/Stripe.net/Services/BalanceSettings/BalanceSettingsSettlementTimingOptions.cs +++ b/src/Stripe.net/Services/BalanceSettings/BalanceSettingsSettlementTimingOptions.cs @@ -16,10 +16,10 @@ public class BalanceSettingsSettlementTimingOptions : INestedOptions /// href="https://stripe.com/connect/manage-payout-schedule">Learn more about controlling /// payout delay days. ///
- [JsonProperty("delay_days")] + [JsonProperty("delay_days_override")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("delay_days")] + [STJS.JsonPropertyName("delay_days_override")] #endif - public long? DelayDays { get; set; } + public long? DelayDaysOverride { get; set; } } } diff --git a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantAmountOptions.cs b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantAmountOptions.cs index a62e0603cd..b5db0c52fa 100644 --- a/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantAmountOptions.cs +++ b/src/Stripe.net/Services/Billing/CreditGrants/CreditGrantAmountOptions.cs @@ -18,8 +18,7 @@ public class CreditGrantAmountOptions : INestedOptions public CreditGrantAmountMonetaryOptions Monetary { get; set; } /// - /// Specify the type of this amount. We currently only support monetary billing - /// credits. + /// The type of this amount. We currently only support monetary billing credits. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageGetOptions.cs b/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageGetOptions.cs new file mode 100644 index 0000000000..5e129951ca --- /dev/null +++ b/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageGetOptions.cs @@ -0,0 +1,260 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class MeterUsageGetOptions : BaseOptions + { + /// + /// The customer id to fetch meter usage data for. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public string Customer { get; set; } + + /// + /// The timestamp from when to stop aggregating meter events (exclusive). Must be aligned + /// with minute boundaries. + /// + [JsonProperty("end_time")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_time")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? EndTime { get; set; } + + /// + /// An array of meter parameters to specify which meters to include in the usage data. If + /// not specified, usage across all meters for the customer is included. + /// + [JsonProperty("meters")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("meters")] +#endif + public List Meters { get; set; } + + /// + /// The timestamp from when to start aggregating meter events (inclusive). Must be aligned + /// with minute boundaries. + /// + [JsonProperty("start_time")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_time")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? StartTime { get; set; } + + /// + /// The timezone to use for the start and end times. Defaults to UTC if not specified. + /// One of: Africa/Abidjan, Africa/Accra, Africa/Addis_Ababa, + /// Africa/Algiers, Africa/Asmara, Africa/Asmera, Africa/Bamako, + /// Africa/Bangui, Africa/Banjul, Africa/Bissau, + /// Africa/Blantyre, Africa/Brazzaville, Africa/Bujumbura, + /// Africa/Cairo, Africa/Casablanca, Africa/Ceuta, + /// Africa/Conakry, Africa/Dakar, Africa/Dar_es_Salaam, + /// Africa/Djibouti, Africa/Douala, Africa/El_Aaiun, + /// Africa/Freetown, Africa/Gaborone, Africa/Harare, + /// Africa/Johannesburg, Africa/Juba, Africa/Kampala, + /// Africa/Khartoum, Africa/Kigali, Africa/Kinshasa, + /// Africa/Lagos, Africa/Libreville, Africa/Lome, Africa/Luanda, + /// Africa/Lubumbashi, Africa/Lusaka, Africa/Malabo, + /// Africa/Maputo, Africa/Maseru, Africa/Mbabane, + /// Africa/Mogadishu, Africa/Monrovia, Africa/Nairobi, + /// Africa/Ndjamena, Africa/Niamey, Africa/Nouakchott, + /// Africa/Ouagadougou, Africa/Porto-Novo, Africa/Sao_Tome, + /// Africa/Timbuktu, Africa/Tripoli, Africa/Tunis, + /// Africa/Windhoek, America/Adak, America/Anchorage, + /// America/Anguilla, America/Antigua, America/Araguaina, + /// America/Argentina/Buenos_Aires, America/Argentina/Catamarca, + /// America/Argentina/ComodRivadavia, America/Argentina/Cordoba, + /// America/Argentina/Jujuy, America/Argentina/La_Rioja, + /// America/Argentina/Mendoza, America/Argentina/Rio_Gallegos, + /// America/Argentina/Salta, America/Argentina/San_Juan, + /// America/Argentina/San_Luis, America/Argentina/Tucuman, + /// America/Argentina/Ushuaia, America/Aruba, America/Asuncion, + /// America/Atikokan, America/Atka, America/Bahia, + /// America/Bahia_Banderas, America/Barbados, America/Belem, + /// America/Belize, America/Blanc-Sablon, America/Boa_Vista, + /// America/Bogota, America/Boise, America/Buenos_Aires, + /// America/Cambridge_Bay, America/Campo_Grande, America/Cancun, + /// America/Caracas, America/Catamarca, America/Cayenne, + /// America/Cayman, America/Chicago, America/Chihuahua, + /// America/Ciudad_Juarez, America/Coral_Harbour, America/Cordoba, + /// America/Costa_Rica, America/Coyhaique, America/Creston, + /// America/Cuiaba, America/Curacao, America/Danmarkshavn, + /// America/Dawson, America/Dawson_Creek, America/Denver, + /// America/Detroit, America/Dominica, America/Edmonton, + /// America/Eirunepe, America/El_Salvador, America/Ensenada, + /// America/Fort_Nelson, America/Fort_Wayne, America/Fortaleza, + /// America/Glace_Bay, America/Godthab, America/Goose_Bay, + /// America/Grand_Turk, America/Grenada, America/Guadeloupe, + /// America/Guatemala, America/Guayaquil, America/Guyana, + /// America/Halifax, America/Havana, America/Hermosillo, + /// America/Indiana/Indianapolis, America/Indiana/Knox, + /// America/Indiana/Marengo, America/Indiana/Petersburg, + /// America/Indiana/Tell_City, America/Indiana/Vevay, + /// America/Indiana/Vincennes, America/Indiana/Winamac, + /// America/Indianapolis, America/Inuvik, America/Iqaluit, + /// America/Jamaica, America/Jujuy, America/Juneau, + /// America/Kentucky/Louisville, America/Kentucky/Monticello, + /// America/Knox_IN, America/Kralendijk, America/La_Paz, + /// America/Lima, America/Los_Angeles, America/Louisville, + /// America/Lower_Princes, America/Maceio, America/Managua, + /// America/Manaus, America/Marigot, America/Martinique, + /// America/Matamoros, America/Mazatlan, America/Mendoza, + /// America/Menominee, America/Merida, America/Metlakatla, + /// America/Mexico_City, America/Miquelon, America/Moncton, + /// America/Monterrey, America/Montevideo, America/Montreal, + /// America/Montserrat, America/Nassau, America/New_York, + /// America/Nipigon, America/Nome, America/Noronha, + /// America/North_Dakota/Beulah, America/North_Dakota/Center, + /// America/North_Dakota/New_Salem, America/Nuuk, America/Ojinaga, + /// America/Panama, America/Pangnirtung, America/Paramaribo, + /// America/Phoenix, America/Port-au-Prince, America/Port_of_Spain, + /// America/Porto_Acre, America/Porto_Velho, America/Puerto_Rico, + /// America/Punta_Arenas, America/Rainy_River, America/Rankin_Inlet, + /// America/Recife, America/Regina, America/Resolute, + /// America/Rio_Branco, America/Rosario, America/Santa_Isabel, + /// America/Santarem, America/Santiago, America/Santo_Domingo, + /// America/Sao_Paulo, America/Scoresbysund, America/Shiprock, + /// America/Sitka, America/St_Barthelemy, America/St_Johns, + /// America/St_Kitts, America/St_Lucia, America/St_Thomas, + /// America/St_Vincent, America/Swift_Current, America/Tegucigalpa, + /// America/Thule, America/Thunder_Bay, America/Tijuana, + /// America/Toronto, America/Tortola, America/Vancouver, + /// America/Virgin, America/Whitehorse, America/Winnipeg, + /// America/Yakutat, America/Yellowknife, Antarctica/Casey, + /// Antarctica/Davis, Antarctica/DumontDUrville, Antarctica/Macquarie, + /// Antarctica/Mawson, Antarctica/McMurdo, Antarctica/Palmer, + /// Antarctica/Rothera, Antarctica/South_Pole, Antarctica/Syowa, + /// Antarctica/Troll, Antarctica/Vostok, Arctic/Longyearbyen, + /// Asia/Aden, Asia/Almaty, Asia/Amman, Asia/Anadyr, + /// Asia/Aqtau, Asia/Aqtobe, Asia/Ashgabat, Asia/Ashkhabad, + /// Asia/Atyrau, Asia/Baghdad, Asia/Bahrain, Asia/Baku, + /// Asia/Bangkok, Asia/Barnaul, Asia/Beirut, Asia/Bishkek, + /// Asia/Brunei, Asia/Calcutta, Asia/Chita, Asia/Choibalsan, + /// Asia/Chongqing, Asia/Chungking, Asia/Colombo, Asia/Dacca, + /// Asia/Damascus, Asia/Dhaka, Asia/Dili, Asia/Dubai, + /// Asia/Dushanbe, Asia/Famagusta, Asia/Gaza, Asia/Harbin, + /// Asia/Hebron, Asia/Ho_Chi_Minh, Asia/Hong_Kong, Asia/Hovd, + /// Asia/Irkutsk, Asia/Istanbul, Asia/Jakarta, Asia/Jayapura, + /// Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, + /// Asia/Kashgar, Asia/Kathmandu, Asia/Katmandu, Asia/Khandyga, + /// Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, + /// Asia/Kuching, Asia/Kuwait, Asia/Macao, Asia/Macau, + /// Asia/Magadan, Asia/Makassar, Asia/Manila, Asia/Muscat, + /// Asia/Nicosia, Asia/Novokuznetsk, Asia/Novosibirsk, + /// Asia/Omsk, Asia/Oral, Asia/Phnom_Penh, Asia/Pontianak, + /// Asia/Pyongyang, Asia/Qatar, Asia/Qostanay, Asia/Qyzylorda, + /// Asia/Rangoon, Asia/Riyadh, Asia/Saigon, Asia/Sakhalin, + /// Asia/Samarkand, Asia/Seoul, Asia/Shanghai, Asia/Singapore, + /// Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, + /// Asia/Tbilisi, Asia/Tehran, Asia/Tel_Aviv, Asia/Thimbu, + /// Asia/Thimphu, Asia/Tokyo, Asia/Tomsk, Asia/Ujung_Pandang, + /// Asia/Ulaanbaatar, Asia/Ulan_Bator, Asia/Urumqi, + /// Asia/Ust-Nera, Asia/Vientiane, Asia/Vladivostok, + /// Asia/Yakutsk, Asia/Yangon, Asia/Yekaterinburg, Asia/Yerevan, + /// Atlantic/Azores, Atlantic/Bermuda, Atlantic/Canary, + /// Atlantic/Cape_Verde, Atlantic/Faeroe, Atlantic/Faroe, + /// Atlantic/Jan_Mayen, Atlantic/Madeira, Atlantic/Reykjavik, + /// Atlantic/South_Georgia, Atlantic/St_Helena, Atlantic/Stanley, + /// Australia/ACT, Australia/Adelaide, Australia/Brisbane, + /// Australia/Broken_Hill, Australia/Canberra, Australia/Currie, + /// Australia/Darwin, Australia/Eucla, Australia/Hobart, + /// Australia/LHI, Australia/Lindeman, Australia/Lord_Howe, + /// Australia/Melbourne, Australia/NSW, Australia/North, + /// Australia/Perth, Australia/Queensland, Australia/South, + /// Australia/Sydney, Australia/Tasmania, Australia/Victoria, + /// Australia/West, Australia/Yancowinna, Brazil/Acre, + /// Brazil/DeNoronha, Brazil/East, Brazil/West, CET, + /// CST6CDT, Canada/Atlantic, Canada/Central, Canada/Eastern, + /// Canada/Mountain, Canada/Newfoundland, Canada/Pacific, + /// Canada/Saskatchewan, Canada/Yukon, Chile/Continental, + /// Chile/EasterIsland, Cuba, EET, EST, EST5EDT, + /// Egypt, Eire, Etc/GMT, Etc/GMT+0, Etc/GMT+1, + /// Etc/GMT+10, Etc/GMT+11, Etc/GMT+12, Etc/GMT+2, + /// Etc/GMT+3, Etc/GMT+4, Etc/GMT+5, Etc/GMT+6, + /// Etc/GMT+7, Etc/GMT+8, Etc/GMT+9, Etc/GMT-0, + /// Etc/GMT-1, Etc/GMT-10, Etc/GMT-11, Etc/GMT-12, + /// Etc/GMT-13, Etc/GMT-14, Etc/GMT-2, Etc/GMT-3, + /// Etc/GMT-4, Etc/GMT-5, Etc/GMT-6, Etc/GMT-7, + /// Etc/GMT-8, Etc/GMT-9, Etc/GMT0, Etc/Greenwich, + /// Etc/UCT, Etc/UTC, Etc/Universal, Etc/Zulu, + /// Europe/Amsterdam, Europe/Andorra, Europe/Astrakhan, + /// Europe/Athens, Europe/Belfast, Europe/Belgrade, + /// Europe/Berlin, Europe/Bratislava, Europe/Brussels, + /// Europe/Bucharest, Europe/Budapest, Europe/Busingen, + /// Europe/Chisinau, Europe/Copenhagen, Europe/Dublin, + /// Europe/Gibraltar, Europe/Guernsey, Europe/Helsinki, + /// Europe/Isle_of_Man, Europe/Istanbul, Europe/Jersey, + /// Europe/Kaliningrad, Europe/Kiev, Europe/Kirov, Europe/Kyiv, + /// Europe/Lisbon, Europe/Ljubljana, Europe/London, + /// Europe/Luxembourg, Europe/Madrid, Europe/Malta, + /// Europe/Mariehamn, Europe/Minsk, Europe/Monaco, + /// Europe/Moscow, Europe/Nicosia, Europe/Oslo, Europe/Paris, + /// Europe/Podgorica, Europe/Prague, Europe/Riga, Europe/Rome, + /// Europe/Samara, Europe/San_Marino, Europe/Sarajevo, + /// Europe/Saratov, Europe/Simferopol, Europe/Skopje, + /// Europe/Sofia, Europe/Stockholm, Europe/Tallinn, + /// Europe/Tirane, Europe/Tiraspol, Europe/Ulyanovsk, + /// Europe/Uzhgorod, Europe/Vaduz, Europe/Vatican, + /// Europe/Vienna, Europe/Vilnius, Europe/Volgograd, + /// Europe/Warsaw, Europe/Zagreb, Europe/Zaporozhye, + /// Europe/Zurich, Factory, GB, GB-Eire, GMT, + /// GMT+0, GMT-0, GMT0, Greenwich, HST, Hongkong, + /// Iceland, Indian/Antananarivo, Indian/Chagos, + /// Indian/Christmas, Indian/Cocos, Indian/Comoro, + /// Indian/Kerguelen, Indian/Mahe, Indian/Maldives, + /// Indian/Mauritius, Indian/Mayotte, Indian/Reunion, Iran, + /// Israel, Jamaica, Japan, Kwajalein, Libya, MET, + /// MST, MST7MDT, Mexico/BajaNorte, Mexico/BajaSur, + /// Mexico/General, NZ, NZ-CHAT, Navajo, PRC, + /// PST8PDT, Pacific/Apia, Pacific/Auckland, + /// Pacific/Bougainville, Pacific/Chatham, Pacific/Chuuk, + /// Pacific/Easter, Pacific/Efate, Pacific/Enderbury, + /// Pacific/Fakaofo, Pacific/Fiji, Pacific/Funafuti, + /// Pacific/Galapagos, Pacific/Gambier, Pacific/Guadalcanal, + /// Pacific/Guam, Pacific/Honolulu, Pacific/Johnston, + /// Pacific/Kanton, Pacific/Kiritimati, Pacific/Kosrae, + /// Pacific/Kwajalein, Pacific/Majuro, Pacific/Marquesas, + /// Pacific/Midway, Pacific/Nauru, Pacific/Niue, + /// Pacific/Norfolk, Pacific/Noumea, Pacific/Pago_Pago, + /// Pacific/Palau, Pacific/Pitcairn, Pacific/Pohnpei, + /// Pacific/Ponape, Pacific/Port_Moresby, Pacific/Rarotonga, + /// Pacific/Saipan, Pacific/Samoa, Pacific/Tahiti, + /// Pacific/Tarawa, Pacific/Tongatapu, Pacific/Truk, + /// Pacific/Wake, Pacific/Wallis, Pacific/Yap, Poland, + /// Portugal, ROC, ROK, Singapore, Turkey, UCT, + /// US/Alaska, US/Aleutian, US/Arizona, US/Central, + /// US/East-Indiana, US/Eastern, US/Hawaii, US/Indiana-Starke, + /// US/Michigan, US/Mountain, US/Pacific, US/Pacific-New, + /// US/Samoa, UTC, Universal, W-SU, WET, or Zulu. + /// + [JsonProperty("timezone")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("timezone")] +#endif + public string Timezone { get; set; } + + /// + /// Specifies what granularity to use when aggregating meter usage events. If not specified, + /// a single event would be returned for the specified time range. + /// One of: day, hour, month, or week. + /// + [JsonProperty("value_grouping_window")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value_grouping_window")] +#endif + public string ValueGroupingWindow { get; set; } + } +} diff --git a/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageMeterOptions.cs b/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageMeterOptions.cs new file mode 100644 index 0000000000..9002748ddc --- /dev/null +++ b/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageMeterOptions.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class MeterUsageMeterOptions : INestedOptions + { + /// + /// Key-value pairs used to filter usage events by meter dimension values. If specified, + /// usage will be filtered for matching usage events. + /// + [JsonProperty("dimension_filters")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dimension_filters")] +#endif + public Dictionary DimensionFilters { get; set; } + + /// + /// List of meter dimension keys to group by. If specified, usage events will be grouped by + /// the given meter dimension key's values. + /// + [JsonProperty("dimension_group_by_keys")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dimension_group_by_keys")] +#endif + public List DimensionGroupByKeys { get; set; } + + /// + /// Meter id to query usage for. + /// + [JsonProperty("meter_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("meter_id")] +#endif + public string MeterId { get; set; } + + /// + /// Key-value pairs used to filter usage events by high cardinality tenant dimension values. + /// If specified, usage will be filtered for matching usage events. + /// + [JsonProperty("tenant_filters")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tenant_filters")] +#endif + public Dictionary TenantFilters { get; set; } + } +} diff --git a/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageService.cs b/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageService.cs new file mode 100644 index 0000000000..675236a30b --- /dev/null +++ b/src/Stripe.net/Services/Billing/MeterUsages/MeterUsageService.cs @@ -0,0 +1,65 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class MeterUsageService : Service, ISingletonRetrievable + { + public MeterUsageService() + { + } + + internal MeterUsageService(ApiRequestor requestor) + : base(requestor) + { + } + + public MeterUsageService(IStripeClient client) + : base(client) + { + } + + /// + ///

Returns aggregated meter usage data for a customer within a specified time interval. + /// The data can be grouped by various dimensions and can include multiple meters if + /// specified.

. + ///
+ public virtual MeterUsage Get(RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v1/billing/analytics/meter_usage", null, requestOptions); + } + + /// + ///

Returns aggregated meter usage data for a customer within a specified time interval. + /// The data can be grouped by various dimensions and can include multiple meters if + /// specified.

. + ///
+ public virtual Task GetAsync(RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/billing/analytics/meter_usage", null, requestOptions, cancellationToken); + } + + /// + ///

Returns aggregated meter usage data for a customer within a specified time interval. + /// The data can be grouped by various dimensions and can include multiple meters if + /// specified.

. + ///
+ public virtual MeterUsage Get(MeterUsageGetOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v1/billing/analytics/meter_usage", options, requestOptions); + } + + /// + ///

Returns aggregated meter usage data for a customer within a specified time interval. + /// The data can be grouped by various dimensions and can include multiple meters if + /// specified.

. + ///
+ public virtual Task GetAsync(MeterUsageGetOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/billing/analytics/meter_usage", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantityOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantityOptions.cs new file mode 100644 index 0000000000..78aa21dcfa --- /dev/null +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantityOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.BillingPortal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantityOptions : INestedOptions + { + /// + /// Set to true if the quantity can be adjusted to any non-negative integer. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool? Enabled { get; set; } + + /// + /// The maximum quantity that can be set for the product. + /// + [JsonProperty("maximum")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum")] +#endif + public long? Maximum { get; set; } + + /// + /// The minimum quantity that can be set for the product. + /// + [JsonProperty("minimum")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum")] +#endif + public long? Minimum { get; set; } + } +} diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductOptions.cs index 32db8197c9..ff645a7e61 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationFeaturesSubscriptionUpdateProductOptions.cs @@ -9,6 +9,15 @@ namespace Stripe.BillingPortal public class ConfigurationFeaturesSubscriptionUpdateProductOptions : INestedOptions { + /// + /// Control whether the quantity of the product can be adjusted. + /// + [JsonProperty("adjustable_quantity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("adjustable_quantity")] +#endif + public ConfigurationFeaturesSubscriptionUpdateProductAdjustableQuantityOptions AdjustableQuantity { get; set; } + /// /// The list of price IDs for the product that a subscription can be updated to. /// diff --git a/src/Stripe.net/Services/BillingService.cs b/src/Stripe.net/Services/BillingService.cs index 46d17c6221..b3767826c8 100644 --- a/src/Stripe.net/Services/BillingService.cs +++ b/src/Stripe.net/Services/BillingService.cs @@ -14,6 +14,7 @@ public class BillingService : Service private Billing.MeterService meters; private Billing.MeterEventService meterEvents; private Billing.MeterEventAdjustmentService meterEventAdjustments; + private Billing.MeterUsageService meterUsage; internal BillingService(ApiRequestor requestor) : base(requestor) @@ -45,5 +46,8 @@ internal BillingService(IStripeClient client) public virtual Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new Billing.MeterEventAdjustmentService( this.Requestor); + + public virtual Billing.MeterUsageService MeterUsage => this.meterUsage ??= new Billing.MeterUsageService( + this.Requestor); } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 2504b9337f..fd03474c3a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -315,6 +315,19 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata #endif public List OptionalItems { get; set; } + /// + /// Where the user is coming from. This informs the optimizations that are applied to the + /// session. For example, a session originating from a mobile app may behave more like a + /// native app, depending on the platform. This parameter is currently not allowed if + /// ui_mode is custom. + /// One of: mobile_app, or web. + /// + [JsonProperty("origin_context")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("origin_context")] +#endif + public string OriginContext { get; set; } + /// /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in /// payment mode. @@ -396,11 +409,12 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// cashapp, crypto, customer_balance, eps, fpx, /// giropay, gopay, grabpay, ideal, kakao_pay, /// klarna, konbini, kr_card, link, mb_way, - /// mobilepay, multibanco, naver_pay, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, payto, - /// pix, promptpay, qris, rechnung, revolut_pay, - /// samsung_pay, satispay, sepa_debit, shopeepay, sofort, - /// swish, twint, us_bank_account, wechat_pay, or zip. + /// mobilepay, multibanco, naver_pay, nz_bank_account, + /// oxxo, p24, pay_by_bank, payco, paynow, paypal, + /// payto, pix, promptpay, qris, rechnung, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// shopeepay, sofort, swish, twint, us_bank_account, + /// wechat_pay, or zip. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs new file mode 100644 index 0000000000..7fab3235f5 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountCouponDataOptions.cs @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionDiscountCouponDataOptions : INestedOptions, IHasMetadata + { + /// + /// A positive integer representing the amount to subtract from an invoice total (required + /// if percent_off is not passed). + /// + [JsonProperty("amount_off")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_off")] +#endif + public long? AmountOff { get; set; } + + /// + /// Three-letter ISO code for the currency + /// of the amount_off parameter (required if amount_off is passed). + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// Specifies how long the discount will be in effect if used on a subscription. Defaults to + /// once. + /// One of: forever, once, or repeating. + /// + [JsonProperty("duration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("duration")] +#endif + public string Duration { 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// Name of the coupon displayed to customers on, for instance invoices, or receipts. By + /// default the id is shown if name is not set. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// A positive float larger than 0, and smaller or equal to 100, that represents the + /// discount the coupon will apply (required if amount_off is not passed). + /// + [JsonProperty("percent_off")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percent_off")] +#endif + public decimal? PercentOff { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountOptions.cs index 94c8b8b9e5..edbe8c94c7 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionDiscountOptions.cs @@ -9,7 +9,8 @@ namespace Stripe.Checkout public class SessionDiscountOptions : INestedOptions { /// - /// The ID of the coupon to apply to this Session. + /// The ID of the Coupon to apply to this + /// Session. One of coupon or coupon_data is required when updating discounts. /// [JsonProperty("coupon")] #if NET6_0_OR_GREATER @@ -17,6 +18,17 @@ public class SessionDiscountOptions : INestedOptions #endif public string Coupon { get; set; } + /// + /// Data used to generate a new Coupon + /// object inline. One of coupon or coupon_data is required when updating + /// discounts. + /// + [JsonProperty("coupon_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("coupon_data")] +#endif + public SessionDiscountCouponDataOptions CouponData { get; set; } + /// /// The ID of a promotion code to apply to this Session. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptionsOptions.cs index fb921655aa..41810776ab 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionInvoiceCreationInvoiceDataRenderingOptionsOptions.cs @@ -21,5 +21,14 @@ public class SessionInvoiceCreationInvoiceDataRenderingOptionsOptions : INestedO [STJS.JsonPropertyName("amount_tax_display")] #endif public string AmountTaxDisplay { get; set; } + + /// + /// ID of the invoice rendering template to use for this invoice. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs index cd27203643..57463a126b 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPixOptions.cs @@ -17,5 +17,31 @@ public class SessionPaymentMethodOptionsPixOptions : INestedOptions [STJS.JsonPropertyName("expires_after_seconds")] #endif public long? ExpiresAfterSeconds { 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. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsOptions.cs index 6c039a04b1..44167d7daf 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPermissionsOptions.cs @@ -17,6 +17,20 @@ public class SessionPermissionsOptions : INestedOptions #endif public SessionPermissionsUpdateOptions Update { get; set; } + /// + /// Determines which entity is allowed to update the discounts (coupons or promotion codes) + /// that apply to this session. + /// + /// Default is client_only. Stripe Checkout client will automatically handle discount + /// updates. If set to server_only, only your server is allowed to update discounts. + /// One of: client_only, or server_only. + /// + [JsonProperty("update_discounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("update_discounts")] +#endif + public string UpdateDiscounts { get; set; } + /// /// Determines which entity is allowed to update the line items. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs index 156cb202cd..cd6d4498e1 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs @@ -9,6 +9,7 @@ namespace Stripe.Checkout public class SessionSubscriptionDataBillingModeOptions : INestedOptions { /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. /// One of: classic, or flexible. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs index 2ca6f01a3c..bedf688246 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionUpdateOptions.cs @@ -19,6 +19,15 @@ public class SessionUpdateOptions : BaseOptions, IHasMetadata #endif public SessionCollectedInformationOptions CollectedInformation { get; set; } + /// + /// List of coupons and promotion codes attached to the Checkout Session. + /// + [JsonProperty("discounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("discounts")] +#endif + public List Discounts { get; set; } + /// /// A list of items the customer is purchasing. /// @@ -62,5 +71,15 @@ public class SessionUpdateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("shipping_options")] #endif public List ShippingOptions { get; set; } + + /// + /// A subset of parameters to be passed to subscription creation for Checkout Sessions in + /// subscription mode. + /// + [JsonProperty("subscription_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscription_data")] +#endif + public SessionSubscriptionDataOptions SubscriptionData { get; set; } } } diff --git a/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs b/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs index c5304749c5..811eb4576a 100644 --- a/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs +++ b/src/Stripe.net/Services/InvoiceItems/InvoiceItemCreateOptions.cs @@ -80,10 +80,12 @@ public class InvoiceItemCreateOptions : BaseOptions, IHasMetadata public List Discounts { get; set; } /// - /// The ID of an existing invoice to add this invoice item to. When left blank, the invoice - /// item will be added to the next upcoming scheduled invoice. This is useful when adding - /// invoice items in response to an invoice.created webhook. You can only add invoice items - /// to draft invoices and there is a maximum of 250 items per invoice. + /// The ID of an existing invoice to add this invoice item to. For subscription invoices, + /// when left blank, the invoice item will be added to the next upcoming scheduled invoice. + /// For standalone invoices, the invoice item won't be automatically added unless you pass + /// pending_invoice_item_behavior: 'include' when creating the invoice. This is + /// useful when adding invoice items in response to an invoice.created webhook. You can only + /// add invoice items to draft invoices and there is a maximum of 250 items per invoice. /// [JsonProperty("invoice")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs index 6ad34d4efc..d815efe8d7 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCreateOptions.cs @@ -48,7 +48,7 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata /// Controls whether Stripe performs automatic /// collection of the invoice. If false, the invoice's state doesn't - /// automatically advance without an explicit action. + /// automatically advance without an explicit action. Defaults to false. /// [JsonProperty("auto_advance")] #if NET6_0_OR_GREATER @@ -66,8 +66,8 @@ public class InvoiceCreateOptions : BaseOptions, IHasMetadata public InvoiceAutomaticTaxOptions AutomaticTax { get; set; } /// - /// The time when this invoice should be scheduled to finalize. The invoice will be - /// finalized at this time if it is still in draft state. + /// The time when this invoice should be scheduled to finalize (up to 5 years in the + /// future). The invoice is finalized at this time if it's still in draft state. /// [JsonProperty("automatically_finalizes_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index e254be6325..b9f926b862 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -44,7 +44,7 @@ public class InvoicePaymentSettingsOptions : INestedOptions /// klarna, konbini, kr_card, link, multibanco, /// naver_pay, nz_bank_account, p24, payco, paynow, /// paypal, promptpay, revolut_pay, sepa_credit_transfer, - /// sepa_debit, sofort, stripe_balance, swish, + /// sepa_debit, sofort, stripe_balance, swish, upi, /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs index 19261c6610..e02c086715 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class InvoicePaymentSettingsPaymentMethodOptionsCardOptions : INestedOptions { /// - /// Installment configuration for payments attempted on this invoice (Mexico Only). + /// Installment configuration for payments attempted on this invoice. /// /// For more information, see the installments integration guide. diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs index 8ba9a3ac03..b865448ad0 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsOptions.cs @@ -78,6 +78,16 @@ public class InvoicePaymentSettingsPaymentMethodOptionsOptions : INestedOptions #endif public InvoicePaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit { get; set; } + /// + /// If paying by upi, this sub-hash contains details about the UPI payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("upi")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("upi")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsUpiOptions Upi { get; set; } + /// /// If paying by us_bank_account, this sub-hash contains details about the ACH direct /// debit payment method options to pass to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs new file mode 100644 index 0000000000..2f8e40eb96 --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. If not provided, the mandate will be active + /// until canceled. If provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiOptions.cs new file mode 100644 index 0000000000..f3e42c51fd --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoicePaymentSettingsPaymentMethodOptionsUpiOptions : INestedOptions + { + /// + /// Configuration options for setting up an eMandate. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs index ecfef7f8fe..753b558da5 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class InvoiceScheduleDetailsBillingModeOptions : INestedOptions { /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. /// One of: classic, or flexible. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseDurationOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseDurationOptions.cs new file mode 100644 index 0000000000..36f7e31d3e --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseDurationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoiceScheduleDetailsPhaseDurationOptions : INestedOptions + { + /// + /// Specifies phase duration. Either day, week, month or year. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The multiplier applied to the interval. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs index 424a706045..40d428996c 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs @@ -140,6 +140,15 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata #endif public List Discounts { get; set; } + /// + /// The number of intervals the phase should last. If set, end_date must not be set. + /// + [JsonProperty("duration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("duration")] +#endif + public InvoiceScheduleDetailsPhaseDurationOptions Duration { get; set; } + /// /// The date at which this phase of the subscription schedule ends. If set, /// iterations must not be set. @@ -175,7 +184,8 @@ public class InvoiceScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata /// Integer representing the multiplier applied to the price interval. For example, /// iterations=2 applied to a price with interval=month and /// interval_count=3 results in a phase of duration 2 * 3 months = 6 months. - /// If set, end_date must not be set. + /// If set, end_date must not be set. This parameter is deprecated and will be + /// removed in a future version. Use duration instead. /// [JsonProperty("iterations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs index 2f425a7e97..10a5e8386d 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class InvoiceSubscriptionDetailsBillingModeOptions : INestedOptions { /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. /// One of: classic, or flexible. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs index 0154b29eb8..e688aab13f 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceUpdateOptions.cs @@ -65,9 +65,9 @@ public class InvoiceUpdateOptions : BaseOptions, IHasMetadata public InvoiceAutomaticTaxOptions AutomaticTax { get; set; } /// - /// The time when this invoice should be scheduled to finalize. The invoice will be - /// finalized at this time if it is still in draft state. To turn off automatic - /// finalization, set auto_advance to false. + /// The time when this invoice should be scheduled to finalize (up to 5 years in the + /// future). The invoice is finalized at this time if it's still in draft state. To turn off + /// automatic finalization, set auto_advance to false. /// [JsonProperty("automatically_finalizes_at")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs new file mode 100644 index 0000000000..89857f091f --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs @@ -0,0 +1,83 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions + { + /// + /// The amount an item was discounted for. Positive integer. + /// + [JsonProperty("discount_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("discount_amount")] +#endif + public long? DiscountAmount { get; set; } + + /// + /// Payment method-specific information for line items. + /// + [JsonProperty("payment_method_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_method_options")] +#endif + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions PaymentMethodOptions { get; set; } + + /// + /// Unique identifier of the product. At most 12 characters long. + /// + [JsonProperty("product_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_code")] +#endif + public string ProductCode { get; set; } + + /// + /// Name of the product. At most 100 characters long. + /// + [JsonProperty("product_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_name")] +#endif + public string ProductName { get; set; } + + /// + /// Number of items of the product. Positive integer. + /// + [JsonProperty("quantity")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("quantity")] +#endif + public long? Quantity { get; set; } + + /// + /// Contains information about the tax on the item. + /// + [JsonProperty("tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tax")] +#endif + public PaymentIntentAmountDetailsLineItemTaxOptions Tax { get; set; } + + /// + /// Cost of the product. Non-negative integer. + /// + [JsonProperty("unit_cost")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("unit_cost")] +#endif + public long? UnitCost { get; set; } + + /// + /// A unit of measure for the line item, such as gallons, feet, meters, etc. + /// + [JsonProperty("unit_of_measure")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("unit_of_measure")] +#endif + public string UnitOfMeasure { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs new file mode 100644 index 0000000000..b95fe37b51 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions : INestedOptions + { + /// + /// Identifier that categorizes the items being purchased using a standardized commodity + /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + /// + [JsonProperty("commodity_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("commodity_code")] +#endif + public string CommodityCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs new file mode 100644 index 0000000000..55ca30ab59 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions : INestedOptions + { + /// + /// Identifier that categorizes the items being purchased using a standardized commodity + /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + /// + [JsonProperty("commodity_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("commodity_code")] +#endif + public string CommodityCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions.cs new file mode 100644 index 0000000000..9ce7dfc3c8 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions : INestedOptions + { + /// + /// URL to an image for the product. Max length, 4096 characters. + /// + [JsonProperty("image_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("image_url")] +#endif + public string ImageUrl { get; set; } + + /// + /// URL to the product page. Max length, 4096 characters. + /// + [JsonProperty("product_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_url")] +#endif + public string ProductUrl { get; set; } + + /// + /// Reference for the subscription this line item is for. + /// + [JsonProperty("subscription_reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscription_reference")] +#endif + public string SubscriptionReference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs new file mode 100644 index 0000000000..7db3ef8dc5 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INestedOptions + { + /// + /// This sub-hash contains line item details that are specific to card payment + /// method.". + /// + [JsonProperty("card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card")] +#endif + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions Card { get; set; } + + /// + /// This sub-hash contains line item details that are specific to card_present + /// payment method.". + /// + [JsonProperty("card_present")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("card_present")] +#endif + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions CardPresent { get; set; } + + /// + /// This sub-hash contains line item details that are specific to klarna payment + /// method.". + /// + [JsonProperty("klarna")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("klarna")] +#endif + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions Klarna { get; set; } + + /// + /// This sub-hash contains line item details that are specific to paypal payment + /// method.". + /// + [JsonProperty("paypal")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("paypal")] +#endif + public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsPaypalOptions Paypal { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsPaypalOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsPaypalOptions.cs new file mode 100644 index 0000000000..c9889fc743 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsPaypalOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsPaypalOptions : INestedOptions + { + /// + /// Type of the line item. + /// One of: digital_goods, donation, or physical_goods. + /// + [JsonProperty("category")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("category")] +#endif + public string Category { get; set; } + + /// + /// Description of the line item. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// The Stripe account ID of the connected account that sells the item. + /// + [JsonProperty("sold_by")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sold_by")] +#endif + public string SoldBy { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs new file mode 100644 index 0000000000..f90e2fa0a6 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsLineItemTaxOptions : INestedOptions + { + /// + /// The total tax on an item. Non-negative integer. + /// + [JsonProperty("total_tax_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("total_tax_amount")] +#endif + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs new file mode 100644 index 0000000000..18f9ccdea8 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsOptions : INestedOptions + { + /// + /// The amount an item was discounted for. + /// + [JsonProperty("discount_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("discount_amount")] +#endif + public long? DiscountAmount { get; set; } + + /// + /// A list of line items, each containing information about a product in the PaymentIntent. + /// There is a maximum of 100 line items. + /// + [JsonProperty("line_items")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("line_items")] +#endif + public List LineItems { get; set; } + + /// + /// Contains information about the shipping portion of the amount. + /// + [JsonProperty("shipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shipping")] +#endif + public PaymentIntentAmountDetailsShippingOptions Shipping { get; set; } + + /// + /// Contains information about the tax portion of the amount. + /// + [JsonProperty("tax")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tax")] +#endif + public PaymentIntentAmountDetailsTaxOptions Tax { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs new file mode 100644 index 0000000000..17a2e7ca20 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsShippingOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsShippingOptions : INestedOptions + { + /// + /// Portion of the amount that is for shipping. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The postal code that represents the shipping source. + /// + [JsonProperty("from_postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("from_postal_code")] +#endif + public string FromPostalCode { get; set; } + + /// + /// The postal code that represents the shipping destination. + /// + [JsonProperty("to_postal_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("to_postal_code")] +#endif + public string ToPostalCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs new file mode 100644 index 0000000000..079c5fa582 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentAmountDetailsTaxOptions : INestedOptions + { + /// + /// Total portion of the amount that is for tax. + /// + [JsonProperty("total_tax_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("total_tax_amount")] +#endif + public long? TotalTaxAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs index ef0918dfa1..7aa958add7 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCaptureOptions.cs @@ -9,6 +9,15 @@ namespace Stripe public class PaymentIntentCaptureOptions : BaseOptions, IHasMetadata { + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_details")] +#endif + public PaymentIntentAmountDetailsOptions AmountDetails { get; set; } + /// /// The amount to capture from the PaymentIntent, which must be less than or equal to the /// original amount. Defaults to the full amount_capturable if it's not provided. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index ffd98a163c..63afd8fc97 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -9,6 +9,15 @@ namespace Stripe public class PaymentIntentConfirmOptions : BaseOptions { + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_details")] +#endif + 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 diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index df371b5586..71cb06edcc 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -25,6 +25,15 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata #endif public long? Amount { get; set; } + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_details")] +#endif + 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 diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs index 358d0f1205..9e6772abc9 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentIncrementAuthorizationOptions.cs @@ -19,6 +19,15 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad #endif public long? Amount { get; set; } + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_details")] +#endif + 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 @@ -63,6 +72,15 @@ public class PaymentIntentIncrementAuthorizationOptions : BaseOptions, IHasMetad #endif public Dictionary Metadata { get; set; } + /// + /// Provides industry-specific information about the charge. + /// + [JsonProperty("payment_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_details")] +#endif + public PaymentIntentPaymentDetailsOptions PaymentDetails { get; set; } + /// /// Payment method-specific configuration for this PaymentIntent. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs index cefe22f140..a311544877 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs @@ -36,7 +36,7 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions public string CvcToken { get; set; } /// - /// Installment configuration for payments attempted on this PaymentIntent (Mexico Only). + /// Installment configuration for payments attempted on this PaymentIntent. /// /// For more information, see the installments integration guide. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs index 6c41af3a39..f5e04f578e 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs @@ -124,27 +124,35 @@ public virtual Task CaptureAsync(string id, PaymentIntentCaptureO /// ///

Confirm that your customer intends to pay with current or provided payment method. - /// Upon confirmation, the PaymentIntent will attempt to initiate a payment. If the selected - /// payment method requires additional authentication steps, the PaymentIntent will - /// transition to the requires_action status and suggest additional actions via - /// next_action. If payment fails, the PaymentIntent transitions to the - /// requires_payment_method status or the canceled status if the confirmation - /// limit is reached. If payment succeeds, the PaymentIntent will transition to the - /// succeeded status (or requires_capture, if capture_method is set to - /// manual). If the confirmation_method is automatic, payment may be - /// attempted using our . + /// + ///

If the selected payment method requires additional authentication steps, the + /// PaymentIntent will transition to the requires_action status and suggest + /// additional actions via next_action. If payment fails, the PaymentIntent + /// transitions to the requires_payment_method status or the canceled status + /// if the confirmation limit is reached. If payment succeeds, the PaymentIntent will + /// transition to the succeeded status (or requires_capture, if + /// capture_method is set to manual).

. + /// + ///

If the confirmation_method is automatic, payment may be attempted using + /// our client /// SDKs and the PaymentIntent’s client_secret. /// After next_actions are handled by the client, no additional confirmation is - /// required to complete the payment. If the confirmation_method is manual, - /// all payment attempts must be initiated using a secret key. If any actions are required - /// for the payment, the PaymentIntent will return to the requires_confirmation state - /// after those actions are completed. Your server needs to then explicitly re-confirm the - /// PaymentIntent to initiate the next payment attempt. There is a variable upper limit on - /// how many times a PaymentIntent can be confirmed. After this limit is reached, any - /// further calls to this endpoint will transition the PaymentIntent to the canceled - /// state.

. + /// required to complete the payment.

. + /// + ///

If the confirmation_method is manual, all payment attempts must be + /// initiated using a secret key.

. + /// + ///

If any actions are required for the payment, the PaymentIntent will return to the + /// requires_confirmation state after those actions are completed. Your server needs + /// to then explicitly re-confirm the PaymentIntent to initiate the next payment + /// attempt.

. + /// + ///

There is a variable upper limit on how many times a PaymentIntent can be confirmed. + /// After this limit is reached, any further calls to this endpoint will transition the + /// PaymentIntent to the canceled state.

. ///
public virtual PaymentIntent Confirm(string id, PaymentIntentConfirmOptions options = null, RequestOptions requestOptions = null) { @@ -153,27 +161,35 @@ public virtual PaymentIntent Confirm(string id, PaymentIntentConfirmOptions opti /// ///

Confirm that your customer intends to pay with current or provided payment method. - /// Upon confirmation, the PaymentIntent will attempt to initiate a payment. If the selected - /// payment method requires additional authentication steps, the PaymentIntent will - /// transition to the requires_action status and suggest additional actions via - /// next_action. If payment fails, the PaymentIntent transitions to the - /// requires_payment_method status or the canceled status if the confirmation - /// limit is reached. If payment succeeds, the PaymentIntent will transition to the - /// succeeded status (or requires_capture, if capture_method is set to - /// manual). If the confirmation_method is automatic, payment may be - /// attempted using our . + /// + ///

If the selected payment method requires additional authentication steps, the + /// PaymentIntent will transition to the requires_action status and suggest + /// additional actions via next_action. If payment fails, the PaymentIntent + /// transitions to the requires_payment_method status or the canceled status + /// if the confirmation limit is reached. If payment succeeds, the PaymentIntent will + /// transition to the succeeded status (or requires_capture, if + /// capture_method is set to manual).

. + /// + ///

If the confirmation_method is automatic, payment may be attempted using + /// our client /// SDKs and the PaymentIntent’s client_secret. /// After next_actions are handled by the client, no additional confirmation is - /// required to complete the payment. If the confirmation_method is manual, - /// all payment attempts must be initiated using a secret key. If any actions are required - /// for the payment, the PaymentIntent will return to the requires_confirmation state - /// after those actions are completed. Your server needs to then explicitly re-confirm the - /// PaymentIntent to initiate the next payment attempt. There is a variable upper limit on - /// how many times a PaymentIntent can be confirmed. After this limit is reached, any - /// further calls to this endpoint will transition the PaymentIntent to the canceled - /// state.

. + /// required to complete the payment.

. + /// + ///

If the confirmation_method is manual, all payment attempts must be + /// initiated using a secret key.

. + /// + ///

If any actions are required for the payment, the PaymentIntent will return to the + /// requires_confirmation state after those actions are completed. Your server needs + /// to then explicitly re-confirm the PaymentIntent to initiate the next payment + /// attempt.

. + /// + ///

There is a variable upper limit on how many times a PaymentIntent can be confirmed. + /// After this limit is reached, any further calls to this endpoint will transition the + /// PaymentIntent to the canceled state.

. ///
public virtual Task ConfirmAsync(string id, PaymentIntentConfirmOptions 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 a255dc114b..a8eb0a270d 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -25,6 +25,15 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata #endif public long? Amount { get; set; } + /// + /// Provides industry-specific information about the amount. + /// + [JsonProperty("amount_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_details")] +#endif + 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 diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptionsOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptionsOptions.cs index f5fda0884f..165939b545 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkInvoiceCreationInvoiceDataRenderingOptionsOptions.cs @@ -21,5 +21,14 @@ public class PaymentLinkInvoiceCreationInvoiceDataRenderingOptionsOptions : INes [STJS.JsonPropertyName("amount_tax_display")] #endif public string AmountTaxDisplay { get; set; } + + /// + /// ID of the invoice rendering template to use for this invoice. + /// + [JsonProperty("template")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("template")] +#endif + public string Template { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemAdjustableQuantityOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemAdjustableQuantityOptions.cs index b3d17c4200..942634bc77 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemAdjustableQuantityOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemAdjustableQuantityOptions.cs @@ -19,7 +19,7 @@ public class PaymentLinkLineItemAdjustableQuantityOptions : INestedOptions /// /// The maximum quantity the customer can purchase. By default this value is 99. You can - /// specify a value up to 999. + /// specify a value up to 999999. /// [JsonProperty("maximum")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs index eb658e1791..36418788d0 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemOptions.cs @@ -37,6 +37,16 @@ public class PaymentLinkLineItemOptions : INestedOptions, IHasId #endif public string Price { get; set; } + /// + /// Data used to generate a new Price + /// object inline. One of price or price_data is required. + /// + [JsonProperty("price_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("price_data")] +#endif + public PaymentLinkLineItemPriceDataOptions PriceData { get; set; } + /// /// The quantity of the line item being purchased. /// diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs new file mode 100644 index 0000000000..7b30933c1c --- /dev/null +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataOptions.cs @@ -0,0 +1,88 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentLinkLineItemPriceDataOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// The ID of the Product that this Price will belong to. One of + /// product or product_data is required. + /// + [JsonProperty("product")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product")] +#endif + public string Product { get; set; } + + /// + /// Data used to generate a new Product + /// object inline. One of product or product_data is required. + /// + [JsonProperty("product_data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("product_data")] +#endif + public PaymentLinkLineItemPriceDataProductDataOptions ProductData { get; set; } + + /// + /// The recurring components of a price such as interval and interval_count. + /// + [JsonProperty("recurring")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recurring")] +#endif + public PaymentLinkLineItemPriceDataRecurringOptions Recurring { get; set; } + + /// + /// Only required if a default + /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the + /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, + /// exclusive, or unspecified. Once specified as either inclusive or + /// exclusive, it cannot be changed. + /// One of: exclusive, inclusive, or unspecified. + /// + [JsonProperty("tax_behavior")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tax_behavior")] +#endif + public string TaxBehavior { get; set; } + + /// + /// A non-negative integer in cents (or local equivalent) representing how much to charge. + /// One of unit_amount or unit_amount_decimal is required. + /// + [JsonProperty("unit_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("unit_amount")] +#endif + public long? UnitAmount { get; set; } + + /// + /// Same as unit_amount, but accepts a decimal value in cents (or local equivalent) + /// with at most 12 decimal places. Only one of unit_amount and + /// unit_amount_decimal can be set. + /// + [JsonProperty("unit_amount_decimal")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("unit_amount_decimal")] +#endif + public decimal? UnitAmountDecimal { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs new file mode 100644 index 0000000000..e5297c21a5 --- /dev/null +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataProductDataOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentLinkLineItemPriceDataProductDataOptions : INestedOptions, IHasMetadata + { + /// + /// The product's description, meant to be displayable to the customer. Use this field to + /// optionally store a long form explanation of the product being sold for your own + /// rendering purposes. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// A list of up to 8 URLs of images for this product, meant to be displayable to the + /// customer. + /// + [JsonProperty("images")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("images")] +#endif + public List Images { 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + + /// + /// The product's name, meant to be displayable to the customer. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// A tax code ID. + /// + [JsonProperty("tax_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tax_code")] +#endif + public string TaxCode { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataRecurringOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataRecurringOptions.cs new file mode 100644 index 0000000000..8160fd50e4 --- /dev/null +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkLineItemPriceDataRecurringOptions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentLinkLineItemPriceDataRecurringOptions : INestedOptions + { + /// + /// Specifies billing frequency. Either day, week, month or + /// year. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals between subscription billings. For example, + /// interval=month and interval_count=3 bills every 3 months. Maximum of three + /// years interval allowed (3 years, 36 months, or 156 weeks). + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs index acd6193e96..954de19c99 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs @@ -193,7 +193,7 @@ public virtual IAsyncEnumerable ListAutoPagingAsync(PaymentMethod } /// - ///

Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be + ///

Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be /// updated.

. ///
public virtual PaymentMethod Update(string id, PaymentMethodUpdateOptions options, RequestOptions requestOptions = null) @@ -202,7 +202,7 @@ public virtual PaymentMethod Update(string id, PaymentMethodUpdateOptions option } /// - ///

Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be + ///

Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be /// updated.

. ///
public virtual Task UpdateAsync(string id, PaymentMethodUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs index 7cdba81dbd..6f62013992 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class QuoteSubscriptionDataBillingModeOptions : INestedOptions { /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. /// One of: classic, or flexible. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs index 843aa7fdce..b485a3c7c3 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs @@ -66,8 +66,11 @@ public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata /// /// When creating a new subscription, the date of which the subscription schedule will start - /// after the quote is accepted. The effective_date is ignored if it is in the past - /// when the quote is accepted. + /// after the quote is accepted. When updating a subscription, the date of which the + /// subscription will be updated using a subscription schedule. The special value + /// current_period_end can be provided to update a subscription at the end of its + /// current period. The effective_date is ignored if it is in the past when the quote + /// is accepted. /// [JsonProperty("effective_date")] [JsonConverter(typeof(AnyOfConverter))] diff --git a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs index 016082f5fa..97bf4debe2 100644 --- a/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs +++ b/src/Stripe.net/Services/Radar/ValueLists/ValueListCreateOptions.cs @@ -19,11 +19,11 @@ public class ValueListCreateOptions : BaseOptions, IHasMetadata public string Alias { get; set; } /// - /// Type of the items in the value list. One of card_fingerprint, - /// us_bank_account_fingerprint, sepa_debit_fingerprint, card_bin, + /// Type of the items in the value list. One of card_fingerprint, card_bin, /// email, ip_address, country, string, - /// case_sensitive_string, or customer_id. Use string if the item type - /// is unknown or mixed. + /// 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. diff --git a/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunParametersOptions.cs b/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunParametersOptions.cs index f7a1707d0c..aa2fe025d0 100644 --- a/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunParametersOptions.cs +++ b/src/Stripe.net/Services/Reporting/ReportRuns/ReportRunParametersOptions.cs @@ -132,94 +132,94 @@ public class ReportRunParametersOptions : INestedOptions /// America/Caracas, America/Catamarca, America/Cayenne, /// America/Cayman, America/Chicago, America/Chihuahua, /// America/Ciudad_Juarez, America/Coral_Harbour, America/Cordoba, - /// America/Costa_Rica, America/Creston, America/Cuiaba, - /// America/Curacao, America/Danmarkshavn, America/Dawson, - /// America/Dawson_Creek, America/Denver, America/Detroit, - /// America/Dominica, America/Edmonton, America/Eirunepe, - /// America/El_Salvador, America/Ensenada, America/Fort_Nelson, - /// America/Fort_Wayne, America/Fortaleza, America/Glace_Bay, - /// America/Godthab, America/Goose_Bay, America/Grand_Turk, - /// America/Grenada, America/Guadeloupe, America/Guatemala, - /// America/Guayaquil, America/Guyana, America/Halifax, - /// America/Havana, America/Hermosillo, America/Indiana/Indianapolis, - /// America/Indiana/Knox, America/Indiana/Marengo, - /// America/Indiana/Petersburg, America/Indiana/Tell_City, - /// America/Indiana/Vevay, America/Indiana/Vincennes, - /// America/Indiana/Winamac, America/Indianapolis, America/Inuvik, - /// America/Iqaluit, America/Jamaica, America/Jujuy, - /// America/Juneau, America/Kentucky/Louisville, - /// America/Kentucky/Monticello, America/Knox_IN, America/Kralendijk, - /// America/La_Paz, America/Lima, America/Los_Angeles, - /// America/Louisville, America/Lower_Princes, America/Maceio, - /// America/Managua, America/Manaus, America/Marigot, - /// America/Martinique, America/Matamoros, America/Mazatlan, - /// America/Mendoza, America/Menominee, America/Merida, - /// America/Metlakatla, America/Mexico_City, America/Miquelon, - /// America/Moncton, America/Monterrey, America/Montevideo, - /// America/Montreal, America/Montserrat, America/Nassau, - /// America/New_York, America/Nipigon, America/Nome, - /// America/Noronha, America/North_Dakota/Beulah, - /// America/North_Dakota/Center, America/North_Dakota/New_Salem, - /// America/Nuuk, America/Ojinaga, America/Panama, - /// America/Pangnirtung, America/Paramaribo, America/Phoenix, - /// America/Port-au-Prince, America/Port_of_Spain, America/Porto_Acre, - /// America/Porto_Velho, America/Puerto_Rico, America/Punta_Arenas, - /// America/Rainy_River, America/Rankin_Inlet, America/Recife, - /// America/Regina, America/Resolute, America/Rio_Branco, - /// America/Rosario, America/Santa_Isabel, America/Santarem, - /// America/Santiago, America/Santo_Domingo, America/Sao_Paulo, - /// America/Scoresbysund, America/Shiprock, America/Sitka, - /// America/St_Barthelemy, America/St_Johns, America/St_Kitts, - /// America/St_Lucia, America/St_Thomas, America/St_Vincent, - /// America/Swift_Current, America/Tegucigalpa, America/Thule, - /// America/Thunder_Bay, America/Tijuana, America/Toronto, - /// America/Tortola, America/Vancouver, America/Virgin, - /// America/Whitehorse, America/Winnipeg, America/Yakutat, - /// America/Yellowknife, Antarctica/Casey, Antarctica/Davis, - /// Antarctica/DumontDUrville, Antarctica/Macquarie, Antarctica/Mawson, - /// Antarctica/McMurdo, Antarctica/Palmer, Antarctica/Rothera, - /// Antarctica/South_Pole, Antarctica/Syowa, Antarctica/Troll, - /// Antarctica/Vostok, Arctic/Longyearbyen, Asia/Aden, - /// Asia/Almaty, Asia/Amman, Asia/Anadyr, Asia/Aqtau, - /// Asia/Aqtobe, Asia/Ashgabat, Asia/Ashkhabad, Asia/Atyrau, - /// Asia/Baghdad, Asia/Bahrain, Asia/Baku, Asia/Bangkok, - /// Asia/Barnaul, Asia/Beirut, Asia/Bishkek, Asia/Brunei, - /// Asia/Calcutta, Asia/Chita, Asia/Choibalsan, Asia/Chongqing, - /// Asia/Chungking, Asia/Colombo, Asia/Dacca, Asia/Damascus, - /// Asia/Dhaka, Asia/Dili, Asia/Dubai, Asia/Dushanbe, - /// Asia/Famagusta, Asia/Gaza, Asia/Harbin, Asia/Hebron, - /// Asia/Ho_Chi_Minh, Asia/Hong_Kong, Asia/Hovd, Asia/Irkutsk, - /// Asia/Istanbul, Asia/Jakarta, Asia/Jayapura, Asia/Jerusalem, - /// Asia/Kabul, Asia/Kamchatka, Asia/Karachi, Asia/Kashgar, - /// Asia/Kathmandu, Asia/Katmandu, Asia/Khandyga, Asia/Kolkata, - /// Asia/Krasnoyarsk, Asia/Kuala_Lumpur, Asia/Kuching, - /// Asia/Kuwait, Asia/Macao, Asia/Macau, Asia/Magadan, - /// Asia/Makassar, Asia/Manila, Asia/Muscat, Asia/Nicosia, - /// Asia/Novokuznetsk, Asia/Novosibirsk, Asia/Omsk, Asia/Oral, - /// Asia/Phnom_Penh, Asia/Pontianak, Asia/Pyongyang, Asia/Qatar, - /// Asia/Qostanay, Asia/Qyzylorda, Asia/Rangoon, Asia/Riyadh, - /// Asia/Saigon, Asia/Sakhalin, Asia/Samarkand, Asia/Seoul, - /// Asia/Shanghai, Asia/Singapore, Asia/Srednekolymsk, - /// Asia/Taipei, Asia/Tashkent, Asia/Tbilisi, Asia/Tehran, - /// Asia/Tel_Aviv, Asia/Thimbu, Asia/Thimphu, Asia/Tokyo, - /// Asia/Tomsk, Asia/Ujung_Pandang, Asia/Ulaanbaatar, - /// Asia/Ulan_Bator, Asia/Urumqi, Asia/Ust-Nera, Asia/Vientiane, - /// Asia/Vladivostok, Asia/Yakutsk, Asia/Yangon, - /// Asia/Yekaterinburg, Asia/Yerevan, Atlantic/Azores, - /// Atlantic/Bermuda, Atlantic/Canary, Atlantic/Cape_Verde, - /// Atlantic/Faeroe, Atlantic/Faroe, Atlantic/Jan_Mayen, - /// Atlantic/Madeira, Atlantic/Reykjavik, Atlantic/South_Georgia, - /// Atlantic/St_Helena, Atlantic/Stanley, Australia/ACT, - /// Australia/Adelaide, Australia/Brisbane, Australia/Broken_Hill, - /// Australia/Canberra, Australia/Currie, Australia/Darwin, - /// Australia/Eucla, Australia/Hobart, Australia/LHI, - /// Australia/Lindeman, Australia/Lord_Howe, Australia/Melbourne, - /// Australia/NSW, Australia/North, Australia/Perth, - /// Australia/Queensland, Australia/South, Australia/Sydney, - /// Australia/Tasmania, Australia/Victoria, Australia/West, - /// Australia/Yancowinna, Brazil/Acre, Brazil/DeNoronha, - /// Brazil/East, Brazil/West, CET, CST6CDT, - /// Canada/Atlantic, Canada/Central, Canada/Eastern, + /// America/Costa_Rica, America/Coyhaique, America/Creston, + /// America/Cuiaba, America/Curacao, America/Danmarkshavn, + /// America/Dawson, America/Dawson_Creek, America/Denver, + /// America/Detroit, America/Dominica, America/Edmonton, + /// America/Eirunepe, America/El_Salvador, America/Ensenada, + /// America/Fort_Nelson, America/Fort_Wayne, America/Fortaleza, + /// America/Glace_Bay, America/Godthab, America/Goose_Bay, + /// America/Grand_Turk, America/Grenada, America/Guadeloupe, + /// America/Guatemala, America/Guayaquil, America/Guyana, + /// America/Halifax, America/Havana, America/Hermosillo, + /// America/Indiana/Indianapolis, America/Indiana/Knox, + /// America/Indiana/Marengo, America/Indiana/Petersburg, + /// America/Indiana/Tell_City, America/Indiana/Vevay, + /// America/Indiana/Vincennes, America/Indiana/Winamac, + /// America/Indianapolis, America/Inuvik, America/Iqaluit, + /// America/Jamaica, America/Jujuy, America/Juneau, + /// America/Kentucky/Louisville, America/Kentucky/Monticello, + /// America/Knox_IN, America/Kralendijk, America/La_Paz, + /// America/Lima, America/Los_Angeles, America/Louisville, + /// America/Lower_Princes, America/Maceio, America/Managua, + /// America/Manaus, America/Marigot, America/Martinique, + /// America/Matamoros, America/Mazatlan, America/Mendoza, + /// America/Menominee, America/Merida, America/Metlakatla, + /// America/Mexico_City, America/Miquelon, America/Moncton, + /// America/Monterrey, America/Montevideo, America/Montreal, + /// America/Montserrat, America/Nassau, America/New_York, + /// America/Nipigon, America/Nome, America/Noronha, + /// America/North_Dakota/Beulah, America/North_Dakota/Center, + /// America/North_Dakota/New_Salem, America/Nuuk, America/Ojinaga, + /// America/Panama, America/Pangnirtung, America/Paramaribo, + /// America/Phoenix, America/Port-au-Prince, America/Port_of_Spain, + /// America/Porto_Acre, America/Porto_Velho, America/Puerto_Rico, + /// America/Punta_Arenas, America/Rainy_River, America/Rankin_Inlet, + /// America/Recife, America/Regina, America/Resolute, + /// America/Rio_Branco, America/Rosario, America/Santa_Isabel, + /// America/Santarem, America/Santiago, America/Santo_Domingo, + /// America/Sao_Paulo, America/Scoresbysund, America/Shiprock, + /// America/Sitka, America/St_Barthelemy, America/St_Johns, + /// America/St_Kitts, America/St_Lucia, America/St_Thomas, + /// America/St_Vincent, America/Swift_Current, America/Tegucigalpa, + /// America/Thule, America/Thunder_Bay, America/Tijuana, + /// America/Toronto, America/Tortola, America/Vancouver, + /// America/Virgin, America/Whitehorse, America/Winnipeg, + /// America/Yakutat, America/Yellowknife, Antarctica/Casey, + /// Antarctica/Davis, Antarctica/DumontDUrville, Antarctica/Macquarie, + /// Antarctica/Mawson, Antarctica/McMurdo, Antarctica/Palmer, + /// Antarctica/Rothera, Antarctica/South_Pole, Antarctica/Syowa, + /// Antarctica/Troll, Antarctica/Vostok, Arctic/Longyearbyen, + /// Asia/Aden, Asia/Almaty, Asia/Amman, Asia/Anadyr, + /// Asia/Aqtau, Asia/Aqtobe, Asia/Ashgabat, Asia/Ashkhabad, + /// Asia/Atyrau, Asia/Baghdad, Asia/Bahrain, Asia/Baku, + /// Asia/Bangkok, Asia/Barnaul, Asia/Beirut, Asia/Bishkek, + /// Asia/Brunei, Asia/Calcutta, Asia/Chita, Asia/Choibalsan, + /// Asia/Chongqing, Asia/Chungking, Asia/Colombo, Asia/Dacca, + /// Asia/Damascus, Asia/Dhaka, Asia/Dili, Asia/Dubai, + /// Asia/Dushanbe, Asia/Famagusta, Asia/Gaza, Asia/Harbin, + /// Asia/Hebron, Asia/Ho_Chi_Minh, Asia/Hong_Kong, Asia/Hovd, + /// Asia/Irkutsk, Asia/Istanbul, Asia/Jakarta, Asia/Jayapura, + /// Asia/Jerusalem, Asia/Kabul, Asia/Kamchatka, Asia/Karachi, + /// Asia/Kashgar, Asia/Kathmandu, Asia/Katmandu, Asia/Khandyga, + /// Asia/Kolkata, Asia/Krasnoyarsk, Asia/Kuala_Lumpur, + /// Asia/Kuching, Asia/Kuwait, Asia/Macao, Asia/Macau, + /// Asia/Magadan, Asia/Makassar, Asia/Manila, Asia/Muscat, + /// Asia/Nicosia, Asia/Novokuznetsk, Asia/Novosibirsk, + /// Asia/Omsk, Asia/Oral, Asia/Phnom_Penh, Asia/Pontianak, + /// Asia/Pyongyang, Asia/Qatar, Asia/Qostanay, Asia/Qyzylorda, + /// Asia/Rangoon, Asia/Riyadh, Asia/Saigon, Asia/Sakhalin, + /// Asia/Samarkand, Asia/Seoul, Asia/Shanghai, Asia/Singapore, + /// Asia/Srednekolymsk, Asia/Taipei, Asia/Tashkent, + /// Asia/Tbilisi, Asia/Tehran, Asia/Tel_Aviv, Asia/Thimbu, + /// Asia/Thimphu, Asia/Tokyo, Asia/Tomsk, Asia/Ujung_Pandang, + /// Asia/Ulaanbaatar, Asia/Ulan_Bator, Asia/Urumqi, + /// Asia/Ust-Nera, Asia/Vientiane, Asia/Vladivostok, + /// Asia/Yakutsk, Asia/Yangon, Asia/Yekaterinburg, Asia/Yerevan, + /// Atlantic/Azores, Atlantic/Bermuda, Atlantic/Canary, + /// Atlantic/Cape_Verde, Atlantic/Faeroe, Atlantic/Faroe, + /// Atlantic/Jan_Mayen, Atlantic/Madeira, Atlantic/Reykjavik, + /// Atlantic/South_Georgia, Atlantic/St_Helena, Atlantic/Stanley, + /// Australia/ACT, Australia/Adelaide, Australia/Brisbane, + /// Australia/Broken_Hill, Australia/Canberra, Australia/Currie, + /// Australia/Darwin, Australia/Eucla, Australia/Hobart, + /// Australia/LHI, Australia/Lindeman, Australia/Lord_Howe, + /// Australia/Melbourne, Australia/NSW, Australia/North, + /// Australia/Perth, Australia/Queensland, Australia/South, + /// Australia/Sydney, Australia/Tasmania, Australia/Victoria, + /// Australia/West, Australia/Yancowinna, Brazil/Acre, + /// Brazil/DeNoronha, Brazil/East, Brazil/West, CET, + /// CST6CDT, Canada/Atlantic, Canada/Central, Canada/Eastern, /// Canada/Mountain, Canada/Newfoundland, Canada/Pacific, /// Canada/Saskatchewan, Canada/Yukon, Chile/Continental, /// Chile/EasterIsland, Cuba, EET, EST, EST5EDT, diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs index effae66360..1a80f52e64 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemCreateOptions.cs @@ -69,7 +69,7 @@ public class SubscriptionItemCreateOptions : BaseOptions, IHasMetadata /// authentication due to SCA regulation and further user action is needed, this parameter /// does not update the subscription and returns an error instead. This was the default /// behavior for API versions prior to 2019-03-14. See the changelog to learn more. + /// href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. /// One of: allow_incomplete, default_incomplete, error_if_incomplete, /// or pending_if_incomplete. /// diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs index e4d6d297c2..e700fe27d5 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemUpdateOptions.cs @@ -79,7 +79,7 @@ public class SubscriptionItemUpdateOptions : BaseOptions, IHasMetadata /// authentication due to SCA regulation and further user action is needed, this parameter /// does not update the subscription and returns an error instead. This was the default /// behavior for API versions prior to 2019-03-14. See the changelog to learn more. + /// href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. /// One of: allow_incomplete, default_incomplete, error_if_incomplete, /// or pending_if_incomplete. ///
diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs index 592db9565a..5b4d1e165d 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class SubscriptionScheduleBillingModeOptions : INestedOptions { /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. /// One of: classic, or flexible. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseDurationOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseDurationOptions.cs new file mode 100644 index 0000000000..42bd226c81 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseDurationOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionSchedulePhaseDurationOptions : INestedOptions + { + /// + /// Specifies phase duration. Either day, week, month or year. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The multiplier applied to the interval. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs index 2e80ff05b3..bd896c6453 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs @@ -140,6 +140,15 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata #endif public List Discounts { get; set; } + /// + /// The number of intervals the phase should last. If set, end_date must not be set. + /// + [JsonProperty("duration")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("duration")] +#endif + public SubscriptionSchedulePhaseDurationOptions Duration { get; set; } + /// /// The date at which this phase of the subscription schedule ends. If set, /// iterations must not be set. @@ -175,7 +184,8 @@ public class SubscriptionSchedulePhaseOptions : INestedOptions, IHasMetadata /// Integer representing the multiplier applied to the price interval. For example, /// iterations=2 applied to a price with interval=month and /// interval_count=3 results in a phase of duration 2 * 3 months = 6 months. - /// If set, end_date must not be set. + /// If set, end_date must not be set. This parameter is deprecated and will be + /// removed in a future version. Use duration instead. /// [JsonProperty("iterations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs index bd4dbea59f..6fdbd90783 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs @@ -9,6 +9,7 @@ namespace Stripe public class SubscriptionBillingModeOptions : INestedOptions { /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. /// One of: classic, or flexible. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index c1d99356ac..c8c8888200 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -34,7 +34,7 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions /// klarna, konbini, kr_card, link, multibanco, /// naver_pay, nz_bank_account, p24, payco, paynow, /// paypal, promptpay, revolut_pay, sepa_credit_transfer, - /// sepa_debit, sofort, stripe_balance, swish, + /// sepa_debit, sofort, stripe_balance, swish, upi, /// us_bank_account, or wechat_pay. ///
[JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs index 035a9e9322..27d1382aeb 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsOptions.cs @@ -78,6 +78,16 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsOptions : INestedOpt #endif public SubscriptionPaymentSettingsPaymentMethodOptionsSepaDebitOptions SepaDebit { get; set; } + /// + /// This sub-hash contains details about the UPI payment method options to pass to the + /// invoice’s PaymentIntent. + /// + [JsonProperty("upi")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("upi")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions Upi { get; set; } + /// /// This sub-hash contains details about the ACH direct debit payment method options to pass /// to the invoice’s PaymentIntent. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs new file mode 100644 index 0000000000..5482e68385 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions : INestedOptions + { + /// + /// Amount to be charged for future payments. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + 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")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_type")] +#endif + public string AmountType { get; set; } + + /// + /// A description of the mandate or subscription that is meant to be displayed to the + /// customer. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// End date of the mandate or subscription. If not provided, the mandate will be active + /// until canceled. If provided, end date should be after start date. + /// + [JsonProperty("end_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("end_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? EndDate { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions.cs new file mode 100644 index 0000000000..57636955ab --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiOptions : INestedOptions + { + /// + /// Configuration options for setting up an eMandate. + /// + [JsonProperty("mandate_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("mandate_options")] +#endif + public SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index aeb4cac7b5..f81aec22e5 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -276,7 +276,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// authentication due to SCA regulation and further user action is needed, this parameter /// does not update the subscription and returns an error instead. This was the default /// behavior for API versions prior to 2019-03-14. See the changelog to learn more. + /// href="https://docs.stripe.com/changelog/2019-03-14">changelog to learn more. /// One of: allow_incomplete, default_incomplete, error_if_incomplete, /// or pending_if_incomplete. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeOptions.cs index e6206cfe96..de22980f2d 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAeOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAeStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeStandardOptions.cs new file mode 100644 index 0000000000..c1ca9fad9c --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAeStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAeStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlOptions.cs index cd86f5ca04..8065cc5771 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAlOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAlStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlStandardOptions.cs new file mode 100644 index 0000000000..6b9bffb9fc --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAlStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAlStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoOptions.cs index e88a5e8873..010dfe53e4 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAoOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAoStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoStandardOptions.cs new file mode 100644 index 0000000000..4976c9a11c --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAoStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAoStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAtStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAtStandardOptions.cs index 61295a02eb..19c1c9eefa 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAtStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAtStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsAtStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuOptions.cs index 8cce32f610..0f46ab7c07 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAuOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAuStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuStandardOptions.cs new file mode 100644 index 0000000000..5e4f1df708 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAuStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAuStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs index 6532c161d3..e15508a972 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsAwOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsAwStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwStandardOptions.cs new file mode 100644 index 0000000000..13c810c2fe --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsAwStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsAwStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaOptions.cs index 7d3d661fe1..f5e36bdab8 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsBaOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsBaStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaStandardOptions.cs new file mode 100644 index 0000000000..28be785328 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBaStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsBaStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbOptions.cs index 867a817518..9c2552cb11 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsBbOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsBbStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbStandardOptions.cs new file mode 100644 index 0000000000..71f1d36fc8 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBbStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsBbStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs index 8155c3bdef..40e7550d55 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsBdOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsBdStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdStandardOptions.cs new file mode 100644 index 0000000000..4e4129fae2 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBdStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsBdStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBeStandardOptions.cs index a1938c895f..e1e40dce5c 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBeStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBeStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsBeStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs index 4464d86437..9e040ebb7e 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsBfOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsBfStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfStandardOptions.cs new file mode 100644 index 0000000000..f7dfdd19fd --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBfStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsBfStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBgStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBgStandardOptions.cs index d00f703def..c5c3bf5b82 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBgStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBgStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsBgStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhOptions.cs index 74c75845d5..481c34e9a5 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsBhOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsBhStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhStandardOptions.cs new file mode 100644 index 0000000000..e0ae31c404 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBhStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsBhStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsOptions.cs index 040f6d834c..d3b096606b 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsBsOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsBsStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsStandardOptions.cs new file mode 100644 index 0000000000..30bd7d5739 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsBsStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsBsStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdOptions.cs index f50a9fe605..3bdabd40a0 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsCdOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsCdStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdStandardOptions.cs new file mode 100644 index 0000000000..693bb903e3 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCdStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsCdStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChOptions.cs index b2dc331954..af10903885 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsChOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsChStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChStandardOptions.cs new file mode 100644 index 0000000000..55a5abdf18 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsChStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsChStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCyStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCyStandardOptions.cs index ba28d8bef4..36badf5aa6 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCyStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCyStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsCyStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCzStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCzStandardOptions.cs index 65f40d8477..c3c845be50 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCzStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsCzStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsCzStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDeStandardOptions.cs index 2325b744fe..9fc2ca3c7d 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDeStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDeStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsDeStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDkStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDkStandardOptions.cs index 280d3c9dcf..c592a090fb 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDkStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsDkStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsDkStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEeStandardOptions.cs index 99db8aa03a..ac709f53e4 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEeStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEeStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsEeStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEsStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEsStandardOptions.cs index 8d54321533..01bf79a22c 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEsStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEsStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsEsStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs index 4897a85a7c..f7c60633c4 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsEtOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsEtStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtStandardOptions.cs new file mode 100644 index 0000000000..cc41be75f5 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsEtStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsEtStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFiStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFiStandardOptions.cs index e6f64b6202..3f0e08c64f 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFiStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFiStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsFiStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFrStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFrStandardOptions.cs index 74b1844a4d..c5c4823f9e 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFrStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsFrStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsFrStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbOptions.cs index 29ff8cdedc..0f02601685 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsGbOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsGbStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbStandardOptions.cs new file mode 100644 index 0000000000..ca11036a0a --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGbStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsGbStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnOptions.cs index d82c99c9d0..43cc2d4295 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsGnOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsGnStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnStandardOptions.cs new file mode 100644 index 0000000000..9806ec13d7 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGnStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsGnStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGrStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGrStandardOptions.cs index 13bbdb45ed..b96e6f1708 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGrStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsGrStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsGrStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHrStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHrStandardOptions.cs index 72a3e2672e..e7d4b4a9c1 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHrStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHrStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsHrStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHuStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHuStandardOptions.cs index 7bf0b3e1ac..c03947be29 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHuStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsHuStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsHuStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIeStandardOptions.cs index cbba198279..6de1d5c6e5 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIeStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIeStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsIeStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsOptions.cs index afa2fce100..613d827eb9 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsIsOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsIsStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsStandardOptions.cs new file mode 100644 index 0000000000..dae0623335 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsIsStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsIsStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsItStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsItStandardOptions.cs index 206def52aa..8803a6771e 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsItStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsItStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsItStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpOptions.cs index 143c1c7c8c..c66f9543b2 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsJpOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsJpStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpStandardOptions.cs new file mode 100644 index 0000000000..5e76e23255 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsJpStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsJpStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLtStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLtStandardOptions.cs index 16a03e1ca6..51987ba54b 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLtStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLtStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsLtStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLuStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLuStandardOptions.cs index c64b4af62a..a4141c924d 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLuStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLuStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsLuStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLvStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLvStandardOptions.cs index 3727332057..6a37a5c14e 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLvStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLvStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsLvStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeOptions.cs index ebc5b60a41..a71ded1eb4 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsMeOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsMeStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeStandardOptions.cs new file mode 100644 index 0000000000..6ce6cc3bc6 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMeStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsMeStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkOptions.cs index c67840484d..469fb17c95 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsMkOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsMkStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkStandardOptions.cs new file mode 100644 index 0000000000..f8672f6684 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMkStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsMkStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrOptions.cs index 213b36296c..934f5486e3 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsMrOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsMrStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrStandardOptions.cs new file mode 100644 index 0000000000..1e5662bbd8 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMrStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsMrStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMtStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMtStandardOptions.cs index 1260743c53..ff967bc1f6 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMtStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsMtStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsMtStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNlStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNlStandardOptions.cs index 335de6a9d2..d353a90358 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNlStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNlStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsNlStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoOptions.cs index d80c666357..53cb4ef199 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsNoOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsNoStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoStandardOptions.cs new file mode 100644 index 0000000000..4f0f58a6c2 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNoStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsNoStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzOptions.cs index 7457ab624d..95c68edfdf 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsNzOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsNzStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzStandardOptions.cs new file mode 100644 index 0000000000..39e577edb2 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsNzStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsNzStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmOptions.cs index 81f60fa11f..199a3883f2 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsOmOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsOmStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmStandardOptions.cs new file mode 100644 index 0000000000..6079da8b96 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOmStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsOmStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPlStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPlStandardOptions.cs index df1220d5ed..3635d96b80 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPlStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPlStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsPlStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPtStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPtStandardOptions.cs index b1ff11743b..ac585d67fd 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPtStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsPtStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsPtStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRoStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRoStandardOptions.cs index 84899465bd..5e4436374e 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRoStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRoStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsRoStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsOptions.cs index 1e6b768249..0923bf1280 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsRsOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsRsStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsStandardOptions.cs new file mode 100644 index 0000000000..94d6635c11 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsRsStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsRsStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSeStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSeStandardOptions.cs index 7b1ab4b9a9..cad44bc43f 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSeStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSeStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsSeStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgOptions.cs index b8d1b52938..166d972598 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsSgOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsSgStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgStandardOptions.cs new file mode 100644 index 0000000000..b4291348a1 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSgStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsSgStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSiStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSiStandardOptions.cs index 4f83c82914..f28742165b 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSiStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSiStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsSiStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSkStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSkStandardOptions.cs index 30c70ced3a..eec110246a 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSkStandardOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSkStandardOptions.cs @@ -10,7 +10,7 @@ public class RegistrationCountryOptionsSkStandardOptions : INestedOptions { /// /// Place of supply scheme used in an EU standard registration. - /// One of: small_seller, or standard. + /// One of: inbound_goods, small_seller, or standard. /// [JsonProperty("place_of_supply_scheme")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrOptions.cs index 717fd1c9c4..94369e605b 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsSrOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsSrStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrStandardOptions.cs new file mode 100644 index 0000000000..adbb040d3f --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsSrStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsSrStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyOptions.cs index 99185dcbd7..da64137be8 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsUyOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsUyStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyStandardOptions.cs new file mode 100644 index 0000000000..da1e960182 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUyStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsUyStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaOptions.cs index 63235f6414..9af4dda868 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsZaOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsZaStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaStandardOptions.cs new file mode 100644 index 0000000000..3e0fbb7816 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZaStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsZaStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwOptions.cs index 6a31197916..fc584af967 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Tax public class RegistrationCountryOptionsZwOptions : INestedOptions { + /// + /// Options for the standard registration. + /// + [JsonProperty("standard")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("standard")] +#endif + public RegistrationCountryOptionsZwStandardOptions Standard { get; set; } + /// /// Type of registration to be created in country. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwStandardOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwStandardOptions.cs new file mode 100644 index 0000000000..0d3d1a0f22 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsZwStandardOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsZwStandardOptions : INestedOptions + { + /// + /// Place of supply scheme used in an standard registration. + /// One of: inbound_goods, or standard. + /// + [JsonProperty("place_of_supply_scheme")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("place_of_supply_scheme")] +#endif + public string PlaceOfSupplyScheme { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingAedOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingAedOptions.cs new file mode 100644 index 0000000000..4048accf94 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingAedOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingAedOptions : INestedOptions + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long? SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingBgnOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingBgnOptions.cs new file mode 100644 index 0000000000..956a9c1344 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingBgnOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingBgnOptions : INestedOptions + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long? SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingHufOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingHufOptions.cs new file mode 100644 index 0000000000..4ff3db3f3a --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingHufOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingHufOptions : INestedOptions + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long? SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs index 99cb9ca5c8..8e54042aa9 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.Terminal public class ConfigurationTippingOptions : INestedOptions { + /// + /// Tipping configuration for AED. + /// + [JsonProperty("aed")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("aed")] +#endif + public ConfigurationTippingAedOptions Aed { get; set; } + /// /// Tipping configuration for AUD. /// @@ -17,6 +26,15 @@ public class ConfigurationTippingOptions : INestedOptions #endif public ConfigurationTippingAudOptions Aud { get; set; } + /// + /// Tipping configuration for BGN. + /// + [JsonProperty("bgn")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("bgn")] +#endif + public ConfigurationTippingBgnOptions Bgn { get; set; } + /// /// Tipping configuration for CAD. /// @@ -80,6 +98,15 @@ public class ConfigurationTippingOptions : INestedOptions #endif public ConfigurationTippingHkdOptions Hkd { get; set; } + /// + /// Tipping configuration for HUF. + /// + [JsonProperty("huf")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("huf")] +#endif + public ConfigurationTippingHufOptions Huf { get; set; } + /// /// Tipping configuration for JPY. /// @@ -125,6 +152,15 @@ public class ConfigurationTippingOptions : INestedOptions #endif public ConfigurationTippingPlnOptions Pln { get; set; } + /// + /// Tipping configuration for RON. + /// + [JsonProperty("ron")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ron")] +#endif + public ConfigurationTippingRonOptions Ron { get; set; } + /// /// Tipping configuration for SEK. /// diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingRonOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingRonOptions.cs new file mode 100644 index 0000000000..b291763af6 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationTippingRonOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationTippingRonOptions : INestedOptions + { + /// + /// Fixed amounts displayed when collecting a tip. + /// + [JsonProperty("fixed_amounts")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fixed_amounts")] +#endif + public List FixedAmounts { get; set; } + + /// + /// Percentages displayed when collecting a tip. + /// + [JsonProperty("percentages")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("percentages")] +#endif + public List Percentages { get; set; } + + /// + /// Below this amount, fixed amounts will be displayed; above it, percentages will be + /// displayed. + /// + [JsonProperty("smart_tip_threshold")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_tip_threshold")] +#endif + public long? SmartTipThreshold { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkCreateOptions.cs b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkCreateOptions.cs new file mode 100644 index 0000000000..34172ef9e3 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkCreateOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OnboardingLinkCreateOptions : BaseOptions + { + /// + /// Specific fields needed to generate the desired link type. + /// + [JsonProperty("link_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_options")] +#endif + public OnboardingLinkLinkOptionsOptions LinkOptions { get; set; } + + /// + /// The type of link being generated. + /// + [JsonProperty("link_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("link_type")] +#endif + public string LinkType { get; set; } + + /// + /// Stripe account ID to generate the link for. + /// + [JsonProperty("on_behalf_of")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_behalf_of")] +#endif + public string OnBehalfOf { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsAppleTermsAndConditionsOptions.cs b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsAppleTermsAndConditionsOptions.cs new file mode 100644 index 0000000000..3330036ed0 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsAppleTermsAndConditionsOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OnboardingLinkLinkOptionsAppleTermsAndConditionsOptions : INestedOptions + { + /// + /// Whether the link should also support users relinking their Apple account. + /// + [JsonProperty("allow_relinking")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("allow_relinking")] +#endif + public bool? AllowRelinking { get; set; } + + /// + /// The business name of the merchant accepting Apple's Terms and Conditions. + /// + [JsonProperty("merchant_display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("merchant_display_name")] +#endif + public string MerchantDisplayName { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsOptions.cs b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsOptions.cs new file mode 100644 index 0000000000..c9fa2f0570 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkLinkOptionsOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OnboardingLinkLinkOptionsOptions : INestedOptions + { + /// + /// The options associated with the Apple Terms and Conditions link type. + /// + [JsonProperty("apple_terms_and_conditions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("apple_terms_and_conditions")] +#endif + public OnboardingLinkLinkOptionsAppleTermsAndConditionsOptions AppleTermsAndConditions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkService.cs b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkService.cs new file mode 100644 index 0000000000..215043e282 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/OnboardingLinks/OnboardingLinkService.cs @@ -0,0 +1,44 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using System; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class OnboardingLinkService : Service, + ICreatable + { + public OnboardingLinkService() + { + } + + internal OnboardingLinkService(ApiRequestor requestor) + : base(requestor) + { + } + + public OnboardingLinkService(IStripeClient client) + : base(client) + { + } + + /// + ///

Creates a new OnboardingLink object that contains a redirect_url used for + /// onboarding onto Tap to Pay on iPhone.

. + ///
+ public virtual OnboardingLink Create(OnboardingLinkCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/onboarding_links", options, requestOptions); + } + + /// + ///

Creates a new OnboardingLink object that contains a redirect_url used for + /// onboarding onto Tap to Pay on iPhone.

. + ///
+ public virtual Task CreateAsync(OnboardingLinkCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/onboarding_links", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/TerminalService.cs b/src/Stripe.net/Services/TerminalService.cs index a037969e8f..a4896b6cd4 100644 --- a/src/Stripe.net/Services/TerminalService.cs +++ b/src/Stripe.net/Services/TerminalService.cs @@ -10,6 +10,7 @@ public class TerminalService : Service private Terminal.ConfigurationService configurations; private Terminal.ConnectionTokenService connectionTokens; private Terminal.LocationService locations; + private Terminal.OnboardingLinkService onboardingLinks; private Terminal.ReaderService readers; private Terminal.ReaderCollectedDataService readerCollectedData; @@ -32,6 +33,9 @@ internal TerminalService(IStripeClient client) public virtual Terminal.LocationService Locations => this.locations ??= new Terminal.LocationService( this.Requestor); + public virtual Terminal.OnboardingLinkService OnboardingLinks => this.onboardingLinks ??= new Terminal.OnboardingLinkService( + this.Requestor); + public virtual Terminal.ReaderService Readers => this.readers ??= new Terminal.ReaderService( this.Requestor); diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs new file mode 100644 index 0000000000..d184c3e35c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions : INestedOptions + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don’t specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs index 574d86e53c..b4ec181638 100644 --- a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountOnboardingOptions.cs @@ -10,9 +10,20 @@ namespace Stripe.V2.Core public class AccountLinkCreateUseCaseAccountOnboardingOptions : INestedOptions { /// - /// Open Enum. A v2/account can be configured to enable certain functionality. The - /// configuration param targets the v2/account_link to collect information for the specified - /// v2/account configuration/s. + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/core/account can be configured to enable certain functionality. The + /// configuration param targets the v2/core/account_link to collect information for the + /// specified v2/core/account configuration/s. + /// One of: customer, merchant, recipient, or storer. /// [JsonProperty("configurations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs new file mode 100644 index 0000000000..dd284fd1b9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions : INestedOptions + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don’t specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs index 3ecc7bb97b..3501d6f61a 100644 --- a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs @@ -9,10 +9,21 @@ namespace Stripe.V2.Core public class AccountLinkCreateUseCaseAccountUpdateOptions : INestedOptions { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions CollectionOptions { get; set; } + /// /// Open Enum. A v2/account can be configured to enable certain functionality. The /// configuration param targets the v2/account_link to collect information for the specified /// v2/account configuration/s. + /// One of: customer, merchant, recipient, or storer. /// [JsonProperty("configurations")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs index 9ba277c608..8f0cb8f197 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs @@ -18,5 +18,14 @@ public class AccountCreateIdentityAttestationsTermsOfServiceOptions : INestedOpt [STJS.JsonPropertyName("account")] #endif public AccountCreateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } + + /// + /// Details on the Account's acceptance of Treasury-specific terms of service. + /// + [JsonProperty("storer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("storer")] +#endif + public AccountCreateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceStorerOptions.cs new file mode 100644 index 0000000000..98f182f0d8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceStorerOptions.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 AccountCreateIdentityAttestationsTermsOfServiceStorerOptions : 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 e54d07a0e0..4305dc1a89 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs @@ -18,5 +18,14 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOpt [STJS.JsonPropertyName("account")] #endif public AccountUpdateIdentityAttestationsTermsOfServiceAccountOptions Account { get; set; } + + /// + /// Details on the Account's acceptance of Treasury-specific terms of service. + /// + [JsonProperty("storer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("storer")] +#endif + public AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs new file mode 100644 index 0000000000..895ea552a3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.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 AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions : 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/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs index deff809ab6..ba9aa027ff 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Payments public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata { /// - /// Amount you want to collect. + /// The “presentment amount” to be collected from the customer. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public V2.Amount Amount { get; set; } /// - /// The frequency of the OSP. + /// The frequency of the underlying payment. /// One of: recurring, or unscheduled. /// [JsonProperty("cadence")] @@ -29,7 +29,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string Cadence { get; set; } /// - /// Customer that owns the provided payment method. + /// ID of the Customer to which this OffSessionPayment belongs. /// [JsonProperty("customer")] #if NET6_0_OR_GREATER @@ -38,7 +38,11 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string Customer { get; set; } /// - /// Any of your internal data you want to track here. + /// 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. Learn more about storing + /// information in metadata. /// [JsonProperty("metadata")] #if NET6_0_OR_GREATER @@ -47,7 +51,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public Dictionary Metadata { get; set; } /// - /// The OBO merchant you want to use. + /// The account (if any) for which the funds of the OffSessionPayment are intended. /// [JsonProperty("on_behalf_of")] #if NET6_0_OR_GREATER @@ -56,8 +60,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string OnBehalfOf { get; set; } /// - /// Payment method you want to debit. Must be attached to a customer and set up for - /// off-session usage. + /// ID of the payment method used in this OffSessionPayment. /// [JsonProperty("payment_method")] #if NET6_0_OR_GREATER @@ -66,7 +69,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string PaymentMethod { get; set; } /// - /// How you want stripe to retry the OSP. + /// Details about the OffSessionPayment retries. /// [JsonProperty("retry_details")] #if NET6_0_OR_GREATER @@ -75,7 +78,11 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public OffSessionPaymentCreateRetryDetailsOptions RetryDetails { get; set; } /// - /// String you want to appear on your customer's statement. + /// Text that appears on the customer’s statement as the statement descriptor for a non-card + /// charge. This value overrides the account’s default statement descriptor. For information + /// about requirements, including the 22-character limit, see the Statement + /// Descriptor docs. /// [JsonProperty("statement_descriptor")] #if NET6_0_OR_GREATER @@ -84,7 +91,10 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string StatementDescriptor { get; set; } /// - /// Suffix appended to your account level descriptor. + /// Provides information about a card charge. Concatenated to the account’s statement + /// descriptor prefix to form the complete statement descriptor that appears on the + /// customer’s statement. /// [JsonProperty("statement_descriptor_suffix")] #if NET6_0_OR_GREATER @@ -93,7 +103,7 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string StatementDescriptorSuffix { get; set; } /// - /// Test clock to be used for testing your retry handling. Only usable in a sandbox. + /// Test clock that can be used to advance the retry attempts in a sandbox. /// [JsonProperty("test_clock")] #if NET6_0_OR_GREATER @@ -102,7 +112,9 @@ public class OffSessionPaymentCreateOptions : BaseOptions, IHasMetadata public string TestClock { get; set; } /// - /// How you want to transfer the funds to your connected accounts. + /// The data that automatically creates a Transfer after the payment finalizes. Learn more + /// about the use case for connected accounts. /// [JsonProperty("transfer_data")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateRetryDetailsOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateRetryDetailsOptions.cs index 3e8e4e40a3..3a945d376e 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateRetryDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateRetryDetailsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Payments public class OffSessionPaymentCreateRetryDetailsOptions : INestedOptions { /// - /// How you want Stripe to retry the payment. + /// Indicates the strategy for how you want Stripe to retry the payment. /// One of: none, or smart. /// [JsonProperty("retry_strategy")] diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateTransferDataOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateTransferDataOptions.cs index 4d41f9f88c..62fa38c0da 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateTransferDataOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreateTransferDataOptions.cs @@ -9,7 +9,13 @@ namespace Stripe.V2.Payments public class OffSessionPaymentCreateTransferDataOptions : INestedOptions { /// - /// Amount in minor units that you want to transfer. + /// The amount transferred to the destination account. This transfer will occur + /// automatically after the payment succeeds. If no amount is specified, by default the + /// entire payment amount is transferred to the destination account. The amount must be less + /// than or equal to the amount_requested, + /// and must be a positive integer representing how much to transfer in the smallest + /// currency unit (e.g., 100 cents to charge $1.00). /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -18,7 +24,8 @@ public class OffSessionPaymentCreateTransferDataOptions : INestedOptions public long? Amount { get; set; } /// - /// ID of the connected account where you want money to go. + /// The account (if any) that the payment is attributed to for tax reporting, and where + /// funds from the payment are transferred to after payment success. /// [JsonProperty("destination")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentService.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentService.cs index 6ab080ed65..48f5f57280 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentService.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentService.cs @@ -21,7 +21,7 @@ internal OffSessionPaymentService(IStripeClient client) } /// - /// Cancel OSP. + /// Cancel an OffSessionPayment that has previously been created. /// public virtual OffSessionPayment Cancel(string id, OffSessionPaymentCancelOptions options = null, RequestOptions requestOptions = null) { @@ -29,7 +29,7 @@ public virtual OffSessionPayment Cancel(string id, OffSessionPaymentCancelOption } /// - /// Cancel OSP. + /// Cancel an OffSessionPayment that has previously been created. /// public virtual Task CancelAsync(string id, OffSessionPaymentCancelOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -37,7 +37,7 @@ public virtual Task CancelAsync(string id, OffSessionPaymentC } /// - /// Create OSP. + /// Creates an OffSessionPayment object. /// public virtual OffSessionPayment Create(OffSessionPaymentCreateOptions options, RequestOptions requestOptions = null) { @@ -45,7 +45,7 @@ public virtual OffSessionPayment Create(OffSessionPaymentCreateOptions options, } /// - /// Create OSP. + /// Creates an OffSessionPayment object. /// public virtual Task CreateAsync(OffSessionPaymentCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -53,7 +53,7 @@ public virtual Task CreateAsync(OffSessionPaymentCreateOption } /// - /// Retrieve OSP by ID. + /// Retrieves the details of an OffSessionPayment that has previously been created. /// public virtual OffSessionPayment Get(string id, OffSessionPaymentGetOptions options = null, RequestOptions requestOptions = null) { @@ -61,7 +61,7 @@ public virtual OffSessionPayment Get(string id, OffSessionPaymentGetOptions opti } /// - /// Retrieve OSP by ID. + /// Retrieves the details of an OffSessionPayment that has previously been created. /// public virtual Task GetAsync(string id, OffSessionPaymentGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -69,7 +69,7 @@ public virtual Task GetAsync(string id, OffSessionPaymentGetO } /// - /// List OSPs matching filter. + /// Returns a list of OffSessionPayments matching a filter. /// public virtual V2.StripeList List(OffSessionPaymentListOptions options = null, RequestOptions requestOptions = null) { @@ -77,7 +77,7 @@ public virtual V2.StripeList List(OffSessionPaymentListOption } /// - /// List OSPs matching filter. + /// Returns a list of OffSessionPayments matching a filter. /// public virtual Task> ListAsync(OffSessionPaymentListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -85,7 +85,7 @@ public virtual V2.StripeList List(OffSessionPaymentListOption } /// - /// List OSPs matching filter. + /// Returns a list of OffSessionPayments matching a filter. /// public virtual IEnumerable ListAutoPaging(OffSessionPaymentListOptions options = null, RequestOptions requestOptions = null) { @@ -93,7 +93,7 @@ public virtual IEnumerable ListAutoPaging(OffSessionPaymentLi } /// - /// List OSPs matching filter. + /// Returns a list of OffSessionPayments matching a filter. /// public virtual IAsyncEnumerable ListAutoPagingAsync(OffSessionPaymentListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 7258664a94..91da5242a0 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -40,8 +40,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, /// 2024-10-28.acacia, 2024-11-20.acacia, 2024-12-18.acacia, /// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard, - /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, or - /// 2025-06-30.basil. + /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, + /// 2025-06-30.basil, or 2025-07-30.basil. ///
[JsonProperty("api_version")] #if NET6_0_OR_GREATER diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index a95ec41d92..2da6c804d7 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -6286,13 +6286,23 @@ public void TestV2CoreAccountLinkPost() Type = "account_onboarding", AccountOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingOptions { - Configurations = new List { "recipient" }, + CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions + { + Fields = "eventually_due", + FutureRequirements = "include", + }, + Configurations = new List { "storer" }, RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, AccountUpdate = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountUpdateOptions { - Configurations = new List { "recipient" }, + CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountUpdateCollectionOptionsOptions + { + Fields = "eventually_due", + FutureRequirements = "include", + }, + Configurations = new List { "storer" }, RefreshUrl = "refresh_url", ReturnUrl = "return_url", },