diff --git a/CHANGELOG.md b/CHANGELOG.md index ec3e04b8ce..939f6b3ee0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,14 +6,6 @@ * Add support for `SucceedInputCollection` and `TimeoutInputCollection` test helper methods on resource `Terminal.Reader` * Add support for `TargetDate` on `OrderPaymentSettingsPaymentMethodOptionsAcssDebitOptions`, `OrderPaymentSettingsPaymentMethodOptionsAcssDebit`, `OrderPaymentSettingsPaymentMethodOptionsSepaDebitOptions`, and `OrderPaymentSettingsPaymentMethodOptionsSepaDebit` -## 47.4.0-beta.1 - 2025-02-07 -* [#3049](https://github.com/stripe/stripe-dotnet/pull/3049) Update generated code for beta - * Add support for `RejectedReason` on `AccountRiskControls` - * Add support for `ProductTaxCodeSelector` on `AccountSessionComponentsOptions` - * Add support for `Prices` on `BillingCreditBalanceSummaryFilterApplicabilityScopeOptions`, `BillingCreditGrantApplicabilityConfigScopeOptions`, and `BillingCreditGrantApplicabilityConfigScope` - * Add support for `BrandProduct` on `ChargePaymentMethodDetailsAmazonPayFundingCard` and `ChargePaymentMethodDetailsRevolutPayFundingCard` - * Add support for `Restrictions` on `CheckoutSessionPaymentMethodOptionsCardOptions` and `CheckoutSessionPaymentMethodOptionsCard` - ## 47.4.0 - 2025-02-24 * [#3050](https://github.com/stripe/stripe-dotnet/pull/3050) Update generated code * Add support for `Prices` on `BillingCreditBalanceSummaryFilterApplicabilityScopeOptions`, `BillingCreditGrantApplicabilityConfigScopeOptions`, and `BillingCreditGrantApplicabilityConfigScope` @@ -25,6 +17,14 @@ * [#3054](https://github.com/stripe/stripe-dotnet/pull/3054) Improved examples * [#3055](https://github.com/stripe/stripe-dotnet/pull/3055) add codeowners file +## 47.4.0-beta.1 - 2025-02-07 +* [#3049](https://github.com/stripe/stripe-dotnet/pull/3049) Update generated code for beta + * Add support for `RejectedReason` on `AccountRiskControls` + * Add support for `ProductTaxCodeSelector` on `AccountSessionComponentsOptions` + * Add support for `Prices` on `BillingCreditBalanceSummaryFilterApplicabilityScopeOptions`, `BillingCreditGrantApplicabilityConfigScopeOptions`, and `BillingCreditGrantApplicabilityConfigScope` + * Add support for `BrandProduct` on `ChargePaymentMethodDetailsAmazonPayFundingCard` and `ChargePaymentMethodDetailsRevolutPayFundingCard` + * Add support for `Restrictions` on `CheckoutSessionPaymentMethodOptionsCardOptions` and `CheckoutSessionPaymentMethodOptionsCard` + ## 47.3.0 - 2025-01-27 * [#3044](https://github.com/stripe/stripe-dotnet/pull/3044) Update generated code * Add support for `Close` method on resource `Treasury.FinancialAccount` @@ -4169,3 +4169,4 @@ List of backwards incompatible changes: * [#1019](https://github.com/stripe/stripe-dotnet#1019) Add `StripeChargeCaptureOptions` and use it for charge capture * [#1022](https://github.com/stripe/stripe-dotnet#1022) Add support for SKUs * [#1025](https://github.com/stripe/stripe-dotnet#1025) Add `Discountable` for `StripeInvoiceLineItem` + diff --git a/src/Stripe.net/Entities/V2/EventDestinations/EventDestination.cs b/src/Stripe.net/Entities/V2/EventDestinations/EventDestination.cs index b530c5e1d8..95d60b03f9 100644 --- a/src/Stripe.net/Entities/V2/EventDestinations/EventDestination.cs +++ b/src/Stripe.net/Entities/V2/EventDestinations/EventDestination.cs @@ -8,6 +8,14 @@ namespace Stripe.V2 using STJS = System.Text.Json.Serialization; #endif + /// + /// Set up an event destination to receive events from Stripe across multiple destination + /// types, including webhook endpoints and Amazon EventBridge. + /// Event destinations support receiving thin events and snapshot events. + /// public class EventDestination : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs index 6a22347540..150558a54b 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs @@ -226,6 +226,7 @@ public class AccountPersonCreateOptions : BaseOptions, IHasMetadata /// Indicates if the person or any of their representatives, family members, or other /// closely related persons, declares that they hold or have held an important public job or /// function, in any jurisdiction. + /// One of: existing, or none. /// [JsonProperty("political_exposure")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs index a5deee9118..b6186fe25d 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs @@ -226,6 +226,7 @@ public class AccountPersonUpdateOptions : BaseOptions, IHasMetadata /// Indicates if the person or any of their representatives, family members, or other /// closely related persons, declares that they hold or have held an important public job or /// function, in any jurisdiction. + /// One of: existing, or none. /// [JsonProperty("political_exposure")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesAutomaticTaxLiabilityOptions.cs deleted file mode 100644 index d28c6d06fa..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesAutomaticTaxLiabilityOptions.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoiceUpcomingLinesAutomaticTaxLiabilityOptions : INestedOptions - { - /// - /// The connected account being referenced when type is account. - /// - [JsonProperty("account")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("account")] -#endif - public string Account { get; set; } - - /// - /// Type of the account referenced in the request. - /// One of: account, or self. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesAutomaticTaxOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesAutomaticTaxOptions.cs deleted file mode 100644 index d43907f35b..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesAutomaticTaxOptions.cs +++ /dev/null @@ -1,34 +0,0 @@ -// 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 InvoiceUpcomingLinesAutomaticTaxOptions : INestedOptions - { - /// - /// Whether Stripe automatically computes tax on this invoice. Note that incompatible - /// invoice items (invoice items with manually specified tax rates, negative amounts, or - /// tax_behavior=unspecified) cannot be added to automatic tax invoices. - /// - [JsonProperty("enabled")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("enabled")] -#endif - public bool? Enabled { get; set; } - - /// - /// The account that's liable for tax. If set, the business address and tax registrations - /// required to perform the tax calculation are loaded from this account. The tax - /// transaction is returned in the report of the connected account. - /// - [JsonProperty("liability")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("liability")] -#endif - public InvoiceUpcomingLinesAutomaticTaxLiabilityOptions Liability { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsOptions.cs deleted file mode 100644 index 1a357f3426..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsOptions.cs +++ /dev/null @@ -1,58 +0,0 @@ -// 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 InvoiceUpcomingLinesCustomerDetailsOptions : INestedOptions - { - /// - /// The customer's address. - /// - [JsonProperty("address")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("address")] -#endif - public AddressOptions Address { get; set; } - - /// - /// The customer's shipping information. Appears on invoices emailed to this customer. - /// - [JsonProperty("shipping")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("shipping")] -#endif - public InvoiceUpcomingLinesCustomerDetailsShippingOptions Shipping { get; set; } - - /// - /// Tax details about the customer. - /// - [JsonProperty("tax")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax")] -#endif - public InvoiceUpcomingLinesCustomerDetailsTaxOptions Tax { get; set; } - - /// - /// The customer's tax exemption. One of none, exempt, or reverse. - /// One of: exempt, none, or reverse. - /// - [JsonProperty("tax_exempt")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_exempt")] -#endif - public string TaxExempt { get; set; } - - /// - /// The customer's tax IDs. - /// - [JsonProperty("tax_ids")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_ids")] -#endif - public List TaxIds { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsShippingOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsShippingOptions.cs deleted file mode 100644 index b450a3d69f..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsShippingOptions.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 InvoiceUpcomingLinesCustomerDetailsShippingOptions : INestedOptions - { - /// - /// Customer shipping address. - /// - [JsonProperty("address")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("address")] -#endif - public AddressOptions Address { get; set; } - - /// - /// Customer name. - /// - [JsonProperty("name")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("name")] -#endif - public string Name { get; set; } - - /// - /// Customer phone (including extension). - /// - [JsonProperty("phone")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("phone")] -#endif - public string Phone { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs deleted file mode 100644 index 76ac7ca53d..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxIdOptions.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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 InvoiceUpcomingLinesCustomerDetailsTaxIdOptions : INestedOptions - { - /// - /// Type of the tax ID, one of ad_nrt, ae_trn, al_tin, am_tin, - /// ao_tin, ar_cuit, au_abn, au_arn, ba_tin, - /// bb_tin, bg_uic, bh_vat, bo_tin, br_cnpj, - /// br_cpf, bs_tin, by_tin, ca_bn, ca_gst_hst, - /// ca_pst_bc, ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, - /// ch_uid, ch_vat, cl_tin, cn_tin, co_nit, - /// cr_tin, de_stn, do_rcn, ec_ruc, eg_tin, - /// es_cif, eu_oss_vat, eu_vat, gb_vat, ge_vat, - /// gn_nif, hk_br, hr_oib, hu_tin, id_npwp, - /// il_vat, in_gst, is_vat, jp_cn, jp_rn, jp_trn, - /// ke_pin, kh_tin, kr_brn, kz_bin, li_uid, - /// li_vat, ma_vat, md_vat, me_pib, mk_vat, - /// mr_nif, mx_rfc, my_frp, my_itn, my_sst, - /// ng_tin, no_vat, no_voec, np_pan, nz_gst, - /// om_vat, pe_ruc, ph_tin, ro_tin, rs_pib, - /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, - /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, - /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, - /// ug_tin, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. - /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, - /// ar_cuit, au_abn, au_arn, ba_tin, bb_tin, - /// bg_uic, bh_vat, bo_tin, br_cnpj, br_cpf, - /// bs_tin, by_tin, ca_bn, ca_gst_hst, ca_pst_bc, - /// ca_pst_mb, ca_pst_sk, ca_qst, cd_nif, ch_uid, - /// ch_vat, cl_tin, cn_tin, co_nit, cr_tin, - /// de_stn, do_rcn, ec_ruc, eg_tin, es_cif, - /// eu_oss_vat, eu_vat, gb_vat, ge_vat, gn_nif, - /// hk_br, hr_oib, hu_tin, id_npwp, il_vat, - /// in_gst, is_vat, jp_cn, jp_rn, jp_trn, ke_pin, - /// kh_tin, kr_brn, kz_bin, li_uid, li_vat, - /// ma_vat, md_vat, me_pib, mk_vat, mr_nif, - /// mx_rfc, my_frp, my_itn, my_sst, ng_tin, - /// no_vat, no_voec, np_pan, nz_gst, om_vat, - /// pe_ruc, ph_tin, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// us_ein, uy_ruc, uz_tin, uz_vat, ve_rif, - /// vn_tin, za_vat, zm_tin, or zw_tin. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - - /// - /// Value of the tax ID. - /// - [JsonProperty("value")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("value")] -#endif - public string Value { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxOptions.cs deleted file mode 100644 index 10f5e61fb6..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesCustomerDetailsTaxOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// 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 InvoiceUpcomingLinesCustomerDetailsTaxOptions : INestedOptions - { - /// - /// A recent IP address of the customer used for tax reporting and tax location inference. - /// Stripe recommends updating the IP address when a new PaymentMethod is attached or the - /// address field on the customer is updated. We recommend against updating this field more - /// frequently since it could result in unexpected tax location/reporting outcomes. - /// - [JsonProperty("ip_address")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("ip_address")] -#endif - public string IpAddress { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 1242397c9c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountDiscountEndOptions.cs deleted file mode 100644 index 7c1fdad581..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountOptions.cs deleted file mode 100644 index dc23afe4fe..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 3473320214..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndOptions.cs deleted file mode 100644 index a75697d67c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountOptions.cs deleted file mode 100644 index 2f33f6ce51..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesInvoiceItemDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesInvoiceItemDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemOptions.cs deleted file mode 100644 index c27eeb55ec..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemOptions.cs +++ /dev/null @@ -1,182 +0,0 @@ -// 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 InvoiceUpcomingLinesInvoiceItemOptions : INestedOptions, IHasMetadata - { - /// - /// The integer amount in cents (or local equivalent) of previewed invoice item. - /// - [JsonProperty("amount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amount")] -#endif - public long? Amount { get; set; } - - /// - /// Three-letter ISO currency - /// code, in lowercase. Must be a supported - /// currency. Only applicable to new invoice items. - /// - [JsonProperty("currency")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("currency")] -#endif - public string Currency { get; set; } - - /// - /// An arbitrary string which you can attach to the invoice item. The description is - /// displayed in the invoice for easy tracking. - /// - [JsonProperty("description")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("description")] -#endif - public string Description { get; set; } - - /// - /// Explicitly controls whether discounts apply to this invoice item. Defaults to true, - /// except for negative invoice items. - /// - [JsonProperty("discountable")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discountable")] -#endif - public bool? Discountable { get; set; } - - /// - /// The coupons to redeem into discounts for the invoice item in the preview. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// The ID of the invoice item to update in preview. If not specified, a new invoice item - /// will be added to the preview of the upcoming invoice. - /// - [JsonProperty("invoiceitem")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("invoiceitem")] -#endif - public string Invoiceitem { 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 period associated with this invoice item. When set to different values, the period - /// will be rendered on the invoice. If you have Stripe Revenue Recognition - /// enabled, the period will be used to recognize and defer revenue. See the Revenue - /// Recognition documentation for details. - /// - [JsonProperty("period")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("period")] -#endif - public InvoiceUpcomingLinesInvoiceItemPeriodOptions Period { get; set; } - - /// - /// The ID of the price object. One of price or price_data is required. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#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 InvoiceUpcomingLinesInvoiceItemPriceDataOptions PriceData { get; set; } - - /// - /// Non-negative integer. The quantity of units for the invoice item. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { 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 tax code ID. - /// - [JsonProperty("tax_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_code")] -#endif - public string TaxCode { get; set; } - - /// - /// The tax rates that apply to the item. When set, any default_tax_rates do not - /// apply to this item. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - - /// - /// The integer unit amount in cents (or local equivalent) of the charge to be applied to - /// the upcoming invoice. This unit_amount will be multiplied by the quantity to get the - /// full amount. If you want to apply a credit to the customer's account, pass a negative - /// unit_amount. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemPeriodOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemPeriodOptions.cs deleted file mode 100644 index 532ba0b337..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemPeriodOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// 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 InvoiceUpcomingLinesInvoiceItemPeriodOptions : INestedOptions - { - /// - /// The end of the period, which must be greater than or equal to the start. This value is - /// inclusive. - /// - [JsonProperty("end")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("end")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? End { get; set; } - - /// - /// The start of the period. This value is inclusive. - /// - [JsonProperty("start")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("start")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Start { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemPriceDataOptions.cs deleted file mode 100644 index 757e71f353..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesInvoiceItemPriceDataOptions.cs +++ /dev/null @@ -1,67 +0,0 @@ -// 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 InvoiceUpcomingLinesInvoiceItemPriceDataOptions : 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. - /// - [JsonProperty("product")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("product")] -#endif - public string Product { 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 positive integer in cents (or local equivalent) (or 0 for a free price) representing - /// how much to charge. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesIssuerOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesIssuerOptions.cs deleted file mode 100644 index 38ccea8cc4..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesIssuerOptions.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoiceUpcomingLinesIssuerOptions : INestedOptions - { - /// - /// The connected account being referenced when type is account. - /// - [JsonProperty("account")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("account")] -#endif - public string Account { get; set; } - - /// - /// Type of the account referenced in the request. - /// One of: account, or self. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDiscountEndOptions.cs deleted file mode 100644 index 6001916338..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDiscountEndOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDiscountEndOptions : INestedOptions - { - /// - /// The ID of a specific discount. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDurationOptions.cs deleted file mode 100644 index 99b5c7fea2..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndOptions.cs deleted file mode 100644 index 78abe6e367..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndOptions.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndOptions : INestedOptions - { - /// - /// Use the end time of a given discount. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDiscountEndOptions DiscountEnd { get; set; } - - /// - /// Time span for the amendment starting from the amendment_start. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the amendment to end. Must be after the - /// amendment_start. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// Select one of three ways to pass the amendment_end. - /// One of: discount_end, duration, schedule_end, timestamp, - /// trial_end, trial_start, or upcoming_invoice. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartAmendmentEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartAmendmentEndOptions.cs deleted file mode 100644 index faf40d2997..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartAmendmentEndOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartAmendmentEndOptions : INestedOptions - { - /// - /// The position of the previous amendment in the amendments array after which this - /// amendment should begin. Indexes start from 0 and must be less than the index of the - /// current amendment in the array. - /// - [JsonProperty("index")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("index")] -#endif - public long? Index { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartDiscountEndOptions.cs deleted file mode 100644 index 73f371896c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartDiscountEndOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartDiscountEndOptions : INestedOptions - { - /// - /// The ID of a specific discount. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartOptions.cs deleted file mode 100644 index a8115cb5cd..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartOptions.cs +++ /dev/null @@ -1,54 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartOptions : INestedOptions - { - /// - /// Details of another amendment in the same array, immediately after which this amendment - /// should begin. - /// - [JsonProperty("amendment_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amendment_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartAmendmentEndOptions AmendmentEnd { get; set; } - - /// - /// Use the end time of a given discount. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartDiscountEndOptions DiscountEnd { get; set; } - - /// - /// A precise Unix timestamp for the amendment to start. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// Select one of three ways to pass the amendment_start. - /// One of: amendment_end, discount_end, now, schedule_end, - /// timestamp, trial_end, trial_start, or upcoming_invoice. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddDiscountEndOptions.cs deleted file mode 100644 index 2a233527ae..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddDiscountEndOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddDiscountEndOptions : INestedOptions - { - /// - /// The type of calculation made to determine when the discount ends. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddOptions.cs deleted file mode 100644 index 4513af33d1..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddOptions.cs +++ /dev/null @@ -1,57 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddOptions : INestedOptions - { - /// - /// The coupon code to redeem. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// An ID of an existing discount for a coupon that was already redeemed. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddDiscountEndOptions DiscountEnd { get; set; } - - /// - /// The index, starting at 0, at which to position the new discount. When not supplied, - /// Stripe defaults to appending the discount to the end of the discounts array. - /// - [JsonProperty("index")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("index")] -#endif - public long? Index { get; set; } - - /// - /// The promotion code to redeem. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionOptions.cs deleted file mode 100644 index 23c0e1cbd9..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionOptions.cs +++ /dev/null @@ -1,48 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionOptions : INestedOptions - { - /// - /// Details of the discount to add. - /// - [JsonProperty("add")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("add")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionAddOptions Add { get; set; } - - /// - /// Details of the discount to remove. - /// - [JsonProperty("remove")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("remove")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionRemoveOptions Remove { get; set; } - - /// - /// Details of the discount to replace the existing discounts with. - /// - [JsonProperty("set")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("set")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionSetOptions Set { get; set; } - - /// - /// Determines the type of discount action. - /// One of: add, remove, or set. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionRemoveOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionRemoveOptions.cs deleted file mode 100644 index 08161fd8b9..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionRemoveOptions.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionRemoveOptions : INestedOptions - { - /// - /// The coupon code to remove from the discounts array. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// The ID of a discount to remove from the discounts array. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// The ID of a promotion code to remove from the discounts array. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionSetOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionSetOptions.cs deleted file mode 100644 index 59f8db029c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionSetOptions.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentDiscountActionSetOptions : INestedOptions - { - /// - /// The coupon code to replace the discounts array with. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// An ID of an existing discount to replace the discounts array with. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// An ID of an existing promotion code to replace the discounts array with. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index b572a94307..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndOptions.cs deleted file mode 100644 index 4d5971681c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountOptions.cs deleted file mode 100644 index 1caa1ed71c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddOptions.cs deleted file mode 100644 index 4737ba748c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddOptions.cs +++ /dev/null @@ -1,72 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddOptions : INestedOptions, IHasMetadata - { - /// - /// The discounts applied to the item. Subscription item discounts are applied before - /// subscription discounts. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { 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 ID of the price object. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#endif - public string Price { get; set; } - - /// - /// Quantity for this item. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { get; set; } - - /// - /// The tax rates that apply to this subscription item. When set, the - /// default_tax_rates on the subscription do not apply to this - /// subscription_item. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - - /// - /// Options that configure the trial on the subscription item. - /// - [JsonProperty("trial")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddTrialOptions Trial { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddTrialOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddTrialOptions.cs deleted file mode 100644 index e3137597c6..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddTrialOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddTrialOptions : INestedOptions - { - /// - /// List of price IDs which, if present on the subscription following a paid trial, - /// constitute opting-in to the paid trial. Currently only supports at most 1 price ID. - /// - [JsonProperty("converts_to")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("converts_to")] -#endif - public List ConvertsTo { get; set; } - - /// - /// Determines the type of trial for this item. - /// One of: free, or paid. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionOptions.cs deleted file mode 100644 index 0deb6dd6e6..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionOptions.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionOptions : INestedOptions - { - /// - /// Details of the subscription item to add. If an item with the same price exists, - /// it will be replaced by this new item. Otherwise, it adds the new item. - /// - [JsonProperty("add")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("add")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionAddOptions Add { get; set; } - - /// - /// Details of the subscription item to remove. - /// - [JsonProperty("remove")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("remove")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionRemoveOptions Remove { get; set; } - - /// - /// Details of the subscription item to replace the existing items with. If an item with the - /// set[price] already exists, the items array is not cleared. Instead, all of - /// the other set properties that are passed in this request will replace the - /// existing values for the configuration item. - /// - [JsonProperty("set")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("set")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetOptions Set { get; set; } - - /// - /// Determines the type of item action. - /// One of: add, remove, or set. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionRemoveOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionRemoveOptions.cs deleted file mode 100644 index 8f6f3d5412..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionRemoveOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionRemoveOptions : INestedOptions - { - /// - /// ID of a price to remove. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#endif - public string Price { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 3ab0a54193..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndOptions.cs deleted file mode 100644 index fd37643221..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountOptions.cs deleted file mode 100644 index 142ea8c936..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetOptions.cs deleted file mode 100644 index 8e0dc4893b..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetOptions.cs +++ /dev/null @@ -1,80 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetOptions : INestedOptions, IHasMetadata - { - /// - /// If an item with the price already exists, passing this will override the - /// discounts array on the subscription item that matches that price. Otherwise, the - /// items array is cleared and a single new item is added with the supplied - /// discounts. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// If an item with the price already exists, passing this will override the - /// metadata on the subscription item that matches that price. Otherwise, the - /// items array is cleared and a single new item is added with the supplied - /// metadata. - /// - [JsonProperty("metadata")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("metadata")] -#endif - public Dictionary Metadata { get; set; } - - /// - /// The ID of the price object. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#endif - public string Price { get; set; } - - /// - /// If an item with the price already exists, passing this will override the quantity - /// on the subscription item that matches that price. Otherwise, the items array is - /// cleared and a single new item is added with the supplied quantity. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { get; set; } - - /// - /// If an item with the price already exists, passing this will override the - /// tax_rates array on the subscription item that matches that price. Otherwise, the - /// items array is cleared and a single new item is added with the supplied - /// tax_rates. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - - /// - /// If an item with the price already exists, passing this will override the - /// trial configuration on the subscription item that matches that price. Otherwise, - /// the items array is cleared and a single new item is added with the supplied - /// trial. - /// - [JsonProperty("trial")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetTrialOptions Trial { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetTrialOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetTrialOptions.cs deleted file mode 100644 index 2d8a58d407..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetTrialOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentItemActionSetTrialOptions : INestedOptions - { - /// - /// List of price IDs which, if present on the subscription following a paid trial, - /// constitute opting-in to the paid trial. Currently only supports at most 1 price ID. - /// - [JsonProperty("converts_to")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("converts_to")] -#endif - public List ConvertsTo { get; set; } - - /// - /// Determines the type of trial for this item. - /// One of: free, or paid. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentMetadataActionOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentMetadataActionOptions.cs deleted file mode 100644 index d3a5fd0cb1..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentMetadataActionOptions.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentMetadataActionOptions : INestedOptions - { - /// - /// Key-value pairs to add to schedule phase metadata. These values will merge with existing - /// schedule phase metadata. - /// - [JsonProperty("add")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("add")] -#endif - public Dictionary Add { get; set; } - - /// - /// Keys to remove from schedule phase metadata. - /// - [JsonProperty("remove")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("remove")] -#endif - public List Remove { get; set; } - - /// - /// Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will - /// be overwritten. - /// - [JsonProperty("set")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("set")] -#endif - public Dictionary Set { get; set; } - - /// - /// Select one of three ways to update phase-level metadata on subscription - /// schedules. - /// One of: add, remove, or set. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentOptions.cs deleted file mode 100644 index 0a12bd765a..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentOptions.cs +++ /dev/null @@ -1,120 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentOptions : INestedOptions - { - /// - /// Details to identify the end of the time range modified by the proposed change. If not - /// supplied, the amendment is considered a point-in-time operation that only affects the - /// exact timestamp at amendment_start, and a restricted set of attributes is - /// supported on the amendment. - /// - [JsonProperty("amendment_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amendment_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentEndOptions AmendmentEnd { get; set; } - - /// - /// Details to identify the earliest timestamp where the proposed change should take effect. - /// - [JsonProperty("amendment_start")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amendment_start")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentAmendmentStartOptions AmendmentStart { get; set; } - - /// - /// For point-in-time amendments (having no amendment_end), this attribute lets you - /// set or remove whether the subscription's billing cycle anchor is reset at the - /// amendment_start timestamp.For time-span based amendments (having both - /// amendment_start and amendment_end), the only value valid is - /// automatic, which removes any previously configured billing cycle anchor resets - /// scheduled to occur during the window of time spanned by the amendment. - /// One of: amendment_start, or automatic. - /// - [JsonProperty("billing_cycle_anchor")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_cycle_anchor")] -#endif - public string BillingCycleAnchor { get; set; } - - /// - /// Changes to the coupons being redeemed or discounts being applied during the amendment - /// time span. - /// - [JsonProperty("discount_actions")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_actions")] -#endif - public List DiscountActions { get; set; } - - /// - /// Changes to the subscription items during the amendment time span. - /// - [JsonProperty("item_actions")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("item_actions")] -#endif - public List ItemActions { get; set; } - - /// - /// Instructions for how to modify phase metadata. - /// - [JsonProperty("metadata_actions")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("metadata_actions")] -#endif - public List MetadataActions { get; set; } - - /// - /// Changes to how Stripe handles prorations during the amendment time span. Affects if and - /// how prorations are created when a future phase starts. In cases where the amendment - /// changes the currently active phase, it is used to determine whether or how to prorate - /// now, at the time of the request. Also supported as a point-in-time operation when - /// amendment_end is null. - /// One of: always_invoice, create_prorations, or none. - /// - [JsonProperty("proration_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("proration_behavior")] -#endif - public string ProrationBehavior { get; set; } - - /// - /// Defines how to pause collection for the underlying subscription throughout the duration - /// of the amendment. - /// - [JsonProperty("set_pause_collection")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("set_pause_collection")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionOptions SetPauseCollection { get; set; } - - /// - /// Ends the subscription schedule early as dictated by either the accompanying amendment's - /// start or end. - /// One of: amendment_end, or amendment_start. - /// - [JsonProperty("set_schedule_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("set_schedule_end")] -#endif - public string SetScheduleEnd { get; set; } - - /// - /// Settings related to subscription trials. - /// - [JsonProperty("trial_settings")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial_settings")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsOptions TrialSettings { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionOptions.cs deleted file mode 100644 index dcbbbf7959..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionOptions.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionOptions : INestedOptions - { - /// - /// Details of the pause_collection behavior to apply to the amendment. - /// - [JsonProperty("set")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("set")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionSetOptions Set { get; set; } - - /// - /// Determines the type of the pause_collection amendment. - /// One of: remove, or set. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs deleted file mode 100644 index 60ad26b936..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionSetOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentSetPauseCollectionSetOptions : INestedOptions - { - /// - /// The payment collection behavior for this subscription while paused. One of - /// keep_as_draft, mark_uncollectible, or void. - /// One of: keep_as_draft, mark_uncollectible, or void. - /// - [JsonProperty("behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("behavior")] -#endif - public string Behavior { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsEndBehaviorOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsEndBehaviorOptions.cs deleted file mode 100644 index 22453af748..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsEndBehaviorOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsEndBehaviorOptions : INestedOptions - { - /// - /// Configure how an opt-in following a paid trial is billed when using billing_behavior: - /// prorate_up_front. - /// One of: defer, or include. - /// - [JsonProperty("prorate_up_front")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("prorate_up_front")] -#endif - public string ProrateUpFront { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsOptions.cs deleted file mode 100644 index 23cadcae72..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsOptions : INestedOptions - { - /// - /// Defines how the subscription should behave when a trial ends. - /// - [JsonProperty("end_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("end_behavior")] -#endif - public InvoiceUpcomingLinesScheduleDetailsAmendmentTrialSettingsEndBehaviorOptions EndBehavior { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsOptions.cs deleted file mode 100644 index 8129371fa8..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsOptions.cs +++ /dev/null @@ -1,80 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsOptions : INestedOptions - { - /// - /// Changes to apply to the phases of the subscription schedule, in the order provided. - /// - [JsonProperty("amendments")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amendments")] -#endif - public List Amendments { get; set; } - - /// - /// Configures when the subscription schedule generates prorations for phase transitions. - /// Possible values are prorate_on_next_phase or prorate_up_front with the - /// default being prorate_on_next_phase. prorate_on_next_phase will apply - /// phase changes and generate prorations at transition time. prorate_up_front will - /// bill for all phases within the current billing cycle up front. - /// One of: prorate_on_next_phase, or prorate_up_front. - /// - [JsonProperty("billing_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_behavior")] -#endif - public string BillingBehavior { get; set; } - - /// - /// Behavior of the subscription schedule and underlying subscription when it ends. Possible - /// values are release or cancel with the default being release. - /// release will end the subscription schedule and keep the underlying subscription - /// running. cancel will end the subscription schedule and cancel the underlying - /// subscription. - /// One of: cancel, or release. - /// - [JsonProperty("end_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("end_behavior")] -#endif - public string EndBehavior { get; set; } - - /// - /// List representing phases of the subscription schedule. Each phase can be customized to - /// have different durations, plans, and coupons. If there are multiple phases, the - /// end_date of one phase will always equal the start_date of the next phase. - /// - [JsonProperty("phases")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("phases")] -#endif - public List Phases { get; set; } - - /// - /// Provide any time periods to bill in advance. - /// - [JsonProperty("prebilling")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("prebilling")] -#endif - public List Prebilling { get; set; } - - /// - /// In cases where the schedule_details params update the currently active phase, - /// specifies if and how to prorate at the time of the request. - /// One of: always_invoice, create_prorations, or none. - /// - [JsonProperty("proration_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("proration_behavior")] -#endif - public string ProrationBehavior { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 5094c06e68..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndOptions.cs deleted file mode 100644 index dc388520d6..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountOptions.cs deleted file mode 100644 index 8ae4aac674..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemOptions.cs deleted file mode 100644 index 2347d529f3..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemOptions.cs +++ /dev/null @@ -1,59 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemOptions : INestedOptions - { - /// - /// The coupons to redeem into discounts for the item. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// The ID of the price object. One of price or price_data is required. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#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 InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemPriceDataOptions PriceData { get; set; } - - /// - /// Quantity for this item. Defaults to 1. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { get; set; } - - /// - /// The tax rates which apply to the item. When set, the default_tax_rates do not - /// apply to this item. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs deleted file mode 100644 index 5240662127..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemPriceDataOptions.cs +++ /dev/null @@ -1,68 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAddInvoiceItemPriceDataOptions : 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. - /// - [JsonProperty("product")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("product")] -#endif - public string Product { 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 positive integer in cents (or local equivalent) (or 0 for a free price) representing - /// how much to charge or a negative integer representing the amount to credit to the - /// customer. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs deleted file mode 100644 index e45ce9514f..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxLiabilityOptions.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxLiabilityOptions : INestedOptions - { - /// - /// The connected account being referenced when type is account. - /// - [JsonProperty("account")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("account")] -#endif - public string Account { get; set; } - - /// - /// Type of the account referenced in the request. - /// One of: account, or self. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxOptions.cs deleted file mode 100644 index b3ef0bc799..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxOptions : INestedOptions - { - /// - /// Enabled automatic tax calculation which will automatically compute tax rates on all - /// invoices generated by the subscription. - /// - [JsonProperty("enabled")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("enabled")] -#endif - public bool? Enabled { get; set; } - - /// - /// The account that's liable for tax. If set, the business address and tax registrations - /// required to perform the tax calculation are loaded from this account. The tax - /// transaction is returned in the report of the connected account. - /// - [JsonProperty("liability")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("liability")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxLiabilityOptions Liability { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseBillingThresholdsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseBillingThresholdsOptions.cs deleted file mode 100644 index f775084c22..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseBillingThresholdsOptions.cs +++ /dev/null @@ -1,31 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseBillingThresholdsOptions : INestedOptions - { - /// - /// Monetary threshold that triggers the subscription to advance to a new billing period. - /// - [JsonProperty("amount_gte")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amount_gte")] -#endif - public long? AmountGte { get; set; } - - /// - /// Indicates if the billing_cycle_anchor should be reset when a threshold is - /// reached. If true, billing_cycle_anchor will be updated to the date/time the - /// threshold was last reached; otherwise, the value will remain unchanged. - /// - [JsonProperty("reset_billing_cycle_anchor")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("reset_billing_cycle_anchor")] -#endif - public bool? ResetBillingCycleAnchor { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 6daea64e99..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndOptions.cs deleted file mode 100644 index d68fcdc9ff..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountOptions.cs deleted file mode 100644 index 5c2c97319f..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseEndDate.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseEndDate.cs deleted file mode 100644 index 5200acb076..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseEndDate.cs +++ /dev/null @@ -1,13 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - public class InvoiceUpcomingLinesScheduleDetailsPhaseEndDate : StringEnum - { - public static readonly InvoiceUpcomingLinesScheduleDetailsPhaseEndDate Now = new InvoiceUpcomingLinesScheduleDetailsPhaseEndDate("now"); - - private InvoiceUpcomingLinesScheduleDetailsPhaseEndDate(string value) - : base(value) - { - } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs deleted file mode 100644 index b7cc118b73..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsIssuerOptions.cs +++ /dev/null @@ -1,30 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsIssuerOptions : INestedOptions - { - /// - /// The connected account being referenced when type is account. - /// - [JsonProperty("account")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("account")] -#endif - public string Account { get; set; } - - /// - /// Type of the account referenced in the request. - /// One of: account, or self. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsOptions.cs deleted file mode 100644 index a446749470..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsOptions : INestedOptions - { - /// - /// The account tax IDs associated with this phase of the subscription schedule. Will be set - /// on invoices generated by this phase of the subscription schedule. - /// - [JsonProperty("account_tax_ids")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("account_tax_ids")] -#endif - public List AccountTaxIds { get; set; } - - /// - /// Number of days within which a customer must pay invoices generated by this subscription - /// schedule. This value will be null for subscription schedules where - /// billing=charge_automatically. - /// - [JsonProperty("days_until_due")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("days_until_due")] -#endif - public long? DaysUntilDue { get; set; } - - /// - /// The connected account that issues the invoice. The invoice is presented with the - /// branding and support information of the specified account. - /// - [JsonProperty("issuer")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("issuer")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsIssuerOptions Issuer { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemBillingThresholdsOptions.cs deleted file mode 100644 index 24541df6b5..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemBillingThresholdsOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemBillingThresholdsOptions : INestedOptions - { - /// - /// Number of units that meets the billing threshold to advance the subscription to a new - /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary - /// threshold). - /// - [JsonProperty("usage_gte")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("usage_gte")] -#endif - public long? UsageGte { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 1ffeda91ea..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndOptions.cs deleted file mode 100644 index 6ca80e2116..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountOptions.cs deleted file mode 100644 index 20dfa63344..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseItemDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemOptions.cs deleted file mode 100644 index 1cad15573e..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemOptions.cs +++ /dev/null @@ -1,109 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemOptions : INestedOptions, IHasMetadata - { - /// - /// Define thresholds at which an invoice will be sent, and the subscription advanced to a - /// new billing period. When updating, pass an empty string to remove previously-defined - /// thresholds. - /// - [JsonProperty("billing_thresholds")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_thresholds")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseItemBillingThresholdsOptions BillingThresholds { get; set; } - - /// - /// The coupons to redeem into discounts for the subscription item. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// Set of key-value pairs that you can - /// attach to a configuration item. Metadata on a configuration item will update the - /// underlying subscription item's metadata when the phase is entered, adding new - /// keys and replacing existing keys. Individual keys in the subscription item's - /// metadata can be unset by posting an empty value to them in the configuration - /// item's metadata. To unset all keys in the subscription item's metadata, - /// update the subscription item directly or unset every key individually from the - /// configuration item's metadata. - /// - [JsonProperty("metadata")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("metadata")] -#endif - public Dictionary Metadata { get; set; } - - /// - /// The plan ID to subscribe to. You may specify the same ID in plan and - /// price. - /// - [JsonProperty("plan")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("plan")] -#endif - public string Plan { get; set; } - - /// - /// The ID of the price object. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#endif - public string Price { get; set; } - - /// - /// Data used to generate a new Price - /// object inline. - /// - [JsonProperty("price_data")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price_data")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataOptions PriceData { get; set; } - - /// - /// Quantity for the given price. Can be set only if the price's usage_type is - /// licensed and not metered. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { get; set; } - - /// - /// A list of Tax Rate ids. These Tax - /// Rates will override the default_tax_rates - /// on the Subscription. When updating, pass an empty string to remove previously-defined - /// tax rates. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - - /// - /// Options that configure the trial on the subscription item. - /// - [JsonProperty("trial")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseItemTrialOptions Trial { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataOptions.cs deleted file mode 100644 index 2aaf76ff6c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataOptions.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataOptions : 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. - /// - [JsonProperty("product")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("product")] -#endif - public string Product { 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataRecurringOptions 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 positive integer in cents (or local equivalent) (or 0 for a free price) representing - /// how much to charge. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataRecurringOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataRecurringOptions.cs deleted file mode 100644 index 206f323c2b..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataRecurringOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemPriceDataRecurringOptions : 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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemTrialOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemTrialOptions.cs deleted file mode 100644 index acb76160cb..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseItemTrialOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseItemTrialOptions : INestedOptions - { - /// - /// List of price IDs which, if present on the subscription following a paid trial, - /// constitute opting-in to the paid trial. Currently only supports at most 1 price ID. - /// - [JsonProperty("converts_to")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("converts_to")] -#endif - public List ConvertsTo { get; set; } - - /// - /// Determines the type of trial for this item. - /// One of: free, or paid. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs deleted file mode 100644 index b2fcac4b95..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseOptions.cs +++ /dev/null @@ -1,315 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - 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 InvoiceUpcomingLinesScheduleDetailsPhaseOptions : INestedOptions, IHasMetadata - { - /// - /// A list of prices and quantities that will generate invoice items appended to the next - /// invoice for this phase. You may pass up to 20 items. - /// - [JsonProperty("add_invoice_items")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("add_invoice_items")] -#endif - public List AddInvoiceItems { get; set; } - - /// - /// A non-negative decimal between 0 and 100, with at most two decimal places. This - /// represents the percentage of the subscription invoice total that will be transferred to - /// the application owner's Stripe account. The request must be made by a platform account - /// on a connected account in order to set an application fee percentage. For more - /// information, see the application fees documentation. - /// - [JsonProperty("application_fee_percent")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("application_fee_percent")] -#endif - public decimal? ApplicationFeePercent { get; set; } - - /// - /// Automatic tax settings for this phase. - /// - [JsonProperty("automatic_tax")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("automatic_tax")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseAutomaticTaxOptions AutomaticTax { get; set; } - - /// - /// Can be set to phase_start to set the anchor to the start of the phase or - /// automatic to automatically change it if needed. Cannot be set to - /// phase_start if this phase specifies a trial. For more information, see the - /// billing cycle documentation. - /// One of: automatic, or phase_start. - /// - [JsonProperty("billing_cycle_anchor")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_cycle_anchor")] -#endif - public string BillingCycleAnchor { get; set; } - - /// - /// Define thresholds at which an invoice will be sent, and the subscription advanced to a - /// new billing period. Pass an empty string to remove previously-defined thresholds. - /// - [JsonProperty("billing_thresholds")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_thresholds")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseBillingThresholdsOptions BillingThresholds { get; set; } - - /// - /// Either charge_automatically, or send_invoice. When charging automatically, - /// Stripe will attempt to pay the underlying subscription at the end of each billing cycle - /// using the default source attached to the customer. When sending an invoice, Stripe will - /// email your customer an invoice with payment instructions and mark the subscription as - /// active. Defaults to charge_automatically on creation. - /// One of: charge_automatically, or send_invoice. - /// - [JsonProperty("collection_method")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("collection_method")] -#endif - public string CollectionMethod { get; set; } - - /// - /// The ID of the coupon to apply to this phase of the subscription schedule. This field has - /// been deprecated and will be removed in a future API version. Use discounts - /// instead. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// 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; } - - /// - /// ID of the default payment method for the subscription schedule. It must belong to the - /// customer associated with the subscription schedule. If not set, invoices will use the - /// default payment method in the customer's invoice settings. - /// - [JsonProperty("default_payment_method")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("default_payment_method")] -#endif - public string DefaultPaymentMethod { get; set; } - - /// - /// A list of Tax Rate ids. These Tax - /// Rates will set the Subscription's default_tax_rates, - /// which means they will be the Invoice's default_tax_rates - /// for any Invoices issued by the Subscription during this Phase. - /// - [JsonProperty("default_tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("default_tax_rates")] -#endif - public List DefaultTaxRates { get; set; } - - /// - /// Subscription description, meant to be displayable to the customer. Use this field to - /// optionally store an explanation of the subscription for rendering in Stripe surfaces and - /// certain local payment methods UIs. - /// - [JsonProperty("description")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("description")] -#endif - public string Description { get; set; } - - /// - /// The coupons to redeem into discounts for the schedule phase. If not specified, inherits - /// the discount from the subscription's customer. Pass an empty string to avoid inheriting - /// any discounts. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// The date at which this phase of the subscription schedule ends. If set, - /// iterations must not be set. - /// - [JsonProperty("end_date")] - [JsonConverter(typeof(AnyOfConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("end_date")] - [STJS.JsonConverter(typeof(STJAnyOfConverter))] -#endif - public AnyOf EndDate { get; set; } - - /// - /// All invoices will be billed using the specified settings. - /// - [JsonProperty("invoice_settings")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("invoice_settings")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseInvoiceSettingsOptions InvoiceSettings { get; set; } - - /// - /// List of configuration items, each with an attached price, to apply during this phase of - /// the subscription schedule. - /// - [JsonProperty("items")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("items")] -#endif - public List Items { get; set; } - - /// - /// 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. - /// - [JsonProperty("iterations")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("iterations")] -#endif - public long? Iterations { get; set; } - - /// - /// Set of key-value pairs that you can - /// attach to a phase. Metadata on a schedule's phase will update the underlying - /// subscription's metadata when the phase is entered, adding new keys and replacing - /// existing keys in the subscription's metadata. Individual keys in the - /// subscription's metadata can be unset by posting an empty value to them in the - /// phase's metadata. To unset all keys in the subscription's metadata, update - /// the subscription directly or unset every key individually from the phase's - /// metadata. - /// - [JsonProperty("metadata")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("metadata")] -#endif - public Dictionary Metadata { get; set; } - - /// - /// The account on behalf of which to charge, for each of the associated subscription's - /// invoices. - /// - [JsonProperty("on_behalf_of")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("on_behalf_of")] -#endif - public string OnBehalfOf { get; set; } - - /// - /// If specified, payment collection for this subscription will be paused. Note that the - /// subscription status will be unchanged and will not be updated to paused. Learn - /// more about pausing - /// collection. - /// - [JsonProperty("pause_collection")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("pause_collection")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionOptions PauseCollection { get; set; } - - /// - /// Whether the subscription schedule will create prorations when - /// transitioning to this phase. The default value is create_prorations. This setting - /// controls prorations when a phase is started asynchronously and it is persisted as a - /// field on the phase. It's different from the request-level proration_behavior - /// parameter which controls what happens if the update request affects the billing - /// configuration of the current phase. - /// One of: always_invoice, create_prorations, or none. - /// - [JsonProperty("proration_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("proration_behavior")] -#endif - public string ProrationBehavior { get; set; } - - /// - /// The date at which this phase of the subscription schedule starts or now. Must be - /// set on the first phase. - /// - [JsonProperty("start_date")] - [JsonConverter(typeof(AnyOfConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("start_date")] - [STJS.JsonConverter(typeof(STJAnyOfConverter))] -#endif - public AnyOf StartDate { get; set; } - - /// - /// The data with which to automatically create a Transfer for each of the associated - /// subscription's invoices. - /// - [JsonProperty("transfer_data")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("transfer_data")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseTransferDataOptions TransferData { get; set; } - - /// - /// If set to true the entire phase is counted as a trial and the customer will not be - /// charged for any fees. - /// - [JsonProperty("trial")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial")] -#endif - public bool? Trial { get; set; } - - /// - /// Specify trial behavior when crossing phase boundaries. - /// One of: continue, or none. - /// - [JsonProperty("trial_continuation")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial_continuation")] -#endif - public string TrialContinuation { get; set; } - - /// - /// Sets the phase to trialing from the start date to this date. Must be before the phase - /// end date, can not be combined with trial. - /// - [JsonProperty("trial_end")] - [JsonConverter(typeof(AnyOfConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial_end")] - [STJS.JsonConverter(typeof(STJAnyOfConverter))] -#endif - public AnyOf TrialEnd { get; set; } - - /// - /// Settings related to subscription trials. - /// - [JsonProperty("trial_settings")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial_settings")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsOptions TrialSettings { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionOptions.cs deleted file mode 100644 index 958948eedd..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhasePauseCollectionOptions : INestedOptions - { - /// - /// The payment collection behavior for this subscription while paused. One of - /// keep_as_draft, mark_uncollectible, or void. - /// One of: keep_as_draft, mark_uncollectible, or void. - /// - [JsonProperty("behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("behavior")] -#endif - public string Behavior { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseStartDate.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseStartDate.cs deleted file mode 100644 index 4e45e85f5e..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseStartDate.cs +++ /dev/null @@ -1,13 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - public class InvoiceUpcomingLinesScheduleDetailsPhaseStartDate : StringEnum - { - public static readonly InvoiceUpcomingLinesScheduleDetailsPhaseStartDate Now = new InvoiceUpcomingLinesScheduleDetailsPhaseStartDate("now"); - - private InvoiceUpcomingLinesScheduleDetailsPhaseStartDate(string value) - : base(value) - { - } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTransferDataOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTransferDataOptions.cs deleted file mode 100644 index 075ba74fe1..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTransferDataOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseTransferDataOptions : INestedOptions - { - /// - /// A non-negative decimal between 0 and 100, with at most two decimal places. This - /// represents the percentage of the subscription invoice total that will be transferred to - /// the destination account. By default, the entire amount is transferred to the - /// destination. - /// - [JsonProperty("amount_percent")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amount_percent")] -#endif - public decimal? AmountPercent { get; set; } - - /// - /// ID of an existing, connected Stripe account. - /// - [JsonProperty("destination")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("destination")] -#endif - public string Destination { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd.cs deleted file mode 100644 index 0d17cbeb9d..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd.cs +++ /dev/null @@ -1,13 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - public class InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd : StringEnum - { - public static readonly InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd Now = new InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd("now"); - - private InvoiceUpcomingLinesScheduleDetailsPhaseTrialEnd(string value) - : base(value) - { - } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsEndBehaviorOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsEndBehaviorOptions.cs deleted file mode 100644 index ebd905cb24..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsEndBehaviorOptions.cs +++ /dev/null @@ -1,22 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsEndBehaviorOptions : INestedOptions - { - /// - /// Configure how an opt-in following a paid trial is billed when using billing_behavior: - /// prorate_up_front. - /// One of: defer, or include. - /// - [JsonProperty("prorate_up_front")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("prorate_up_front")] -#endif - public string ProrateUpFront { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsOptions.cs deleted file mode 100644 index 2769cac36a..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsOptions : INestedOptions - { - /// - /// Defines how the subscription should behave when a trial ends. - /// - [JsonProperty("end_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("end_behavior")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPhaseTrialSettingsEndBehaviorOptions EndBehavior { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilAmendmentEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilAmendmentEndOptions.cs deleted file mode 100644 index f8ae06fa6e..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilAmendmentEndOptions.cs +++ /dev/null @@ -1,21 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilAmendmentEndOptions : INestedOptions - { - /// - /// The position of the amendment in the amendments array at which prebilling should - /// end. Indexes start from 0 and must be less than the total number of supplied amendments. - /// - [JsonProperty("index")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("index")] -#endif - public long? Index { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilDurationOptions.cs deleted file mode 100644 index 605f832533..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilOptions.cs deleted file mode 100644 index 11c452b8e7..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilOptions.cs +++ /dev/null @@ -1,52 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilOptions : INestedOptions - { - /// - /// End the prebilled period when a specified amendment ends. - /// - [JsonProperty("amendment_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("amendment_end")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilAmendmentEndOptions AmendmentEnd { get; set; } - - /// - /// Time span for prebilling, starting from bill_from. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilDurationOptions Duration { get; set; } - - /// - /// End the prebilled period at a precise integer timestamp, starting from the Unix epoch. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// Select one of several ways to pass the bill_until value. - /// One of: amendment_end, duration, schedule_end, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingOptions.cs deleted file mode 100644 index 046f08d7fb..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesScheduleDetailsPrebillingOptions.cs +++ /dev/null @@ -1,29 +0,0 @@ -// 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 InvoiceUpcomingLinesScheduleDetailsPrebillingOptions : INestedOptions - { - /// - /// The end of the prebilled time period. - /// - [JsonProperty("bill_until")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("bill_until")] -#endif - public InvoiceUpcomingLinesScheduleDetailsPrebillingBillUntilOptions BillUntil { get; set; } - - /// - /// This is used to determine the number of billing cycles to prebill. - /// - [JsonProperty("iterations")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("iterations")] -#endif - public long? Iterations { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesService.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesService.cs deleted file mode 100644 index 59e078821c..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesService.cs +++ /dev/null @@ -1,66 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using System; - using System.Collections.Generic; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - public class InvoiceUpcomingLinesService : ServiceNested - { - public InvoiceUpcomingLinesService() - { - } - - internal InvoiceUpcomingLinesService(ApiRequestor requestor) - : base(requestor) - { - } - - public InvoiceUpcomingLinesService(IStripeClient client) - : base(client) - { - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- public virtual StripeList List(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null) - { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming/lines", options, requestOptions); - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- public virtual Task> ListAsync(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming/lines", options, requestOptions, cancellationToken); - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- public virtual IEnumerable ListAutoPaging(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null) - { - return this.ListRequestAutoPaging($"/v1/invoices/upcoming/lines", options, requestOptions); - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- public virtual IAsyncEnumerable ListAutoPagingAsync(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.ListRequestAutoPagingAsync($"/v1/invoices/upcoming/lines", options, requestOptions, cancellationToken); - } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor.cs deleted file mode 100644 index 8cc0bd65e4..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor.cs +++ /dev/null @@ -1,14 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - public class InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor : StringEnum - { - public static readonly InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor Now = new InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor("now"); - public static readonly InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor Unchanged = new InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor("unchanged"); - - private InvoiceUpcomingLinesSubscriptionDetailsBillingCycleAnchor(string value) - : base(value) - { - } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions.cs deleted file mode 100644 index 306aa1ad41..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions : INestedOptions - { - /// - /// Number of units that meets the billing threshold to advance the subscription to a new - /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary - /// threshold). - /// - [JsonProperty("usage_gte")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("usage_gte")] -#endif - public long? UsageGte { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index b4a22170eb..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndOptions.cs deleted file mode 100644 index 49a071b585..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountOptions.cs deleted file mode 100644 index 3da329ae90..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesSubscriptionDetailsItemDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs deleted file mode 100644 index c6f19e5626..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemOptions.cs +++ /dev/null @@ -1,125 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemOptions : INestedOptions, IHasId, IHasMetadata - { - /// - /// Define thresholds at which an invoice will be sent, and the subscription advanced to a - /// new billing period. When updating, pass an empty string to remove previously-defined - /// thresholds. - /// - [JsonProperty("billing_thresholds")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_thresholds")] -#endif - public InvoiceUpcomingLinesSubscriptionDetailsItemBillingThresholdsOptions BillingThresholds { get; set; } - - /// - /// Delete all usage for a given subscription item. You must pass this when deleting a usage - /// records subscription item. clear_usage has no effect if the plan has a billing - /// meter attached. - /// - [JsonProperty("clear_usage")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("clear_usage")] -#endif - public bool? ClearUsage { get; set; } - - /// - /// A flag that, if set to true, will delete the specified item. - /// - [JsonProperty("deleted")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("deleted")] -#endif - public bool? Deleted { get; set; } - - /// - /// The coupons to redeem into discounts for the subscription item. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// Subscription item to update. - /// - [JsonProperty("id")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("id")] -#endif - public string Id { 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; } - - /// - /// Plan ID for this item, as a string. - /// - [JsonProperty("plan")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("plan")] -#endif - public string Plan { get; set; } - - /// - /// The ID of the price object. One of price or price_data is required. When - /// changing a subscription item's price, quantity is set to 1 unless a - /// quantity parameter is provided. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#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 InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataOptions PriceData { get; set; } - - /// - /// Quantity for this item. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { get; set; } - - /// - /// A list of Tax Rate ids. These Tax - /// Rates will override the default_tax_rates - /// on the Subscription. When updating, pass an empty string to remove previously-defined - /// tax rates. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataOptions.cs deleted file mode 100644 index 8e0da53c0b..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataOptions.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataOptions : 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. - /// - [JsonProperty("product")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("product")] -#endif - public string Product { 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 InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataRecurringOptions 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 positive integer in cents (or local equivalent) (or 0 for a free price) representing - /// how much to charge. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataRecurringOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataRecurringOptions.cs deleted file mode 100644 index 431bfeb0d4..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataRecurringOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsItemPriceDataRecurringOptions : 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/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsOptions.cs deleted file mode 100644 index 85455ca71d..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsOptions.cs +++ /dev/null @@ -1,156 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - 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 InvoiceUpcomingLinesSubscriptionDetailsOptions : INestedOptions - { - /// - /// For new subscriptions, a future timestamp to anchor the subscription's billing cycle. This is - /// used to determine the date of the first full invoice, and, for plans with month - /// or year intervals, the day of the month for subsequent invoices. For existing - /// subscriptions, the value can only be set to now or unchanged. - /// - [JsonProperty("billing_cycle_anchor")] - [JsonConverter(typeof(AnyOfConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_cycle_anchor")] - [STJS.JsonConverter(typeof(STJAnyOfConverter))] -#endif - public AnyOf BillingCycleAnchor { get; set; } - - /// - /// A timestamp at which the subscription should cancel. If set to a date before the current - /// period ends, this will cause a proration if prorations have been enabled using - /// proration_behavior. If set during a future period, this will always cause a - /// proration for that period. - /// - [JsonProperty("cancel_at")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("cancel_at")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? CancelAt { get; set; } - - /// - /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. - /// - [JsonProperty("cancel_at_period_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("cancel_at_period_end")] -#endif - public bool? CancelAtPeriodEnd { get; set; } - - /// - /// This simulates the subscription being canceled or expired immediately. - /// - [JsonProperty("cancel_now")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("cancel_now")] -#endif - public bool? CancelNow { get; set; } - - /// - /// If provided, the invoice returned will preview updating or creating a subscription with - /// these default tax rates. The default tax rates will apply to any line item that does not - /// have tax_rates set. - /// - [JsonProperty("default_tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("default_tax_rates")] -#endif - public List DefaultTaxRates { get; set; } - - /// - /// A list of up to 20 subscription items, each with an attached price. - /// - [JsonProperty("items")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("items")] -#endif - public List Items { get; set; } - - /// - /// The pre-billing to apply to the subscription as a preview. - /// - [JsonProperty("prebilling")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("prebilling")] -#endif - public InvoiceUpcomingLinesSubscriptionDetailsPrebillingOptions Prebilling { get; set; } - - /// - /// Determines how to handle prorations when the - /// billing cycle changes (e.g., when switching plans, resetting - /// billing_cycle_anchor=now, or starting a trial), or if an item's quantity - /// changes. The default value is create_prorations. - /// One of: always_invoice, create_prorations, or none. - /// - [JsonProperty("proration_behavior")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("proration_behavior")] -#endif - public string ProrationBehavior { get; set; } - - /// - /// If previewing an update to a subscription, and doing proration, - /// subscription_details.proration_date forces the proration to be calculated as - /// though the update was done at the specified time. The time given must be within the - /// current subscription period and within the current phase of the schedule backing this - /// subscription, if the schedule exists. If set, subscription, and one of - /// subscription_details.items, or subscription_details.trial_end are - /// required. Also, subscription_details.proration_behavior cannot be set to 'none'. - /// - [JsonProperty("proration_date")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("proration_date")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? ProrationDate { get; set; } - - /// - /// For paused subscriptions, setting subscription_details.resume_at to now - /// will preview the invoice that will be generated if the subscription is resumed. - /// - [JsonProperty("resume_at")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("resume_at")] -#endif - public string ResumeAt { get; set; } - - /// - /// Date a subscription is intended to start (can be future or past). - /// - [JsonProperty("start_date")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("start_date")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? StartDate { get; set; } - - /// - /// If provided, the invoice returned will preview updating or creating a subscription with - /// that trial end. If set, one of subscription_details.items or subscription - /// is required. - /// - [JsonProperty("trial_end")] - [JsonConverter(typeof(AnyOfConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("trial_end")] - [STJS.JsonConverter(typeof(STJAnyOfConverter))] -#endif - public AnyOf TrialEnd { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsPrebillingOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsPrebillingOptions.cs deleted file mode 100644 index 1b0f9b2c2d..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsPrebillingOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionDetailsPrebillingOptions : INestedOptions - { - /// - /// This is used to determine the number of billing cycles to prebill. - /// - [JsonProperty("iterations")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("iterations")] -#endif - public long? Iterations { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsTrialEnd.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsTrialEnd.cs deleted file mode 100644 index c67472eb13..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionDetailsTrialEnd.cs +++ /dev/null @@ -1,13 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - public class InvoiceUpcomingLinesSubscriptionDetailsTrialEnd : StringEnum - { - public static readonly InvoiceUpcomingLinesSubscriptionDetailsTrialEnd Now = new InvoiceUpcomingLinesSubscriptionDetailsTrialEnd("now"); - - private InvoiceUpcomingLinesSubscriptionDetailsTrialEnd(string value) - : base(value) - { - } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions.cs deleted file mode 100644 index 19dd8dcd5b..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions.cs +++ /dev/null @@ -1,23 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions : INestedOptions - { - /// - /// Number of units that meets the billing threshold to advance the subscription to a new - /// billing period (e.g., it takes 10 $5 units to meet a $50 monetary - /// threshold). - /// - [JsonProperty("usage_gte")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("usage_gte")] -#endif - public long? UsageGte { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndDurationOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndDurationOptions.cs deleted file mode 100644 index 64ff06ac15..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndDurationOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndDurationOptions : INestedOptions - { - /// - /// Specifies a type of interval unit. 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, as an whole number greater than 0. Stripe multiplies this by - /// the interval type to get the overall duration. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndOptions.cs deleted file mode 100644 index 3bd1817fc0..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndOptions : INestedOptions - { - /// - /// Time span for the redeemed discount. - /// - [JsonProperty("duration")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("duration")] -#endif - public InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndDurationOptions Duration { get; set; } - - /// - /// A precise Unix timestamp for the discount to end. Must be in the future. - /// - [JsonProperty("timestamp")] - [JsonConverter(typeof(UnixDateTimeConverter))] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("timestamp")] - [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] -#endif - public DateTime? Timestamp { get; set; } - - /// - /// The type of calculation made to determine when the discount ends. - /// One of: duration, or timestamp. - /// - [JsonProperty("type")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] -#endif - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountOptions.cs deleted file mode 100644 index 4dbac9f9b7..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemDiscountOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemDiscountOptions : INestedOptions - { - /// - /// ID of the coupon to create a new discount for. - /// - [JsonProperty("coupon")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("coupon")] -#endif - public string Coupon { get; set; } - - /// - /// ID of an existing discount on the object (or one of its ancestors) to reuse. - /// - [JsonProperty("discount")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount")] -#endif - public string Discount { get; set; } - - /// - /// Details to determine how long the discount should be applied for. - /// - [JsonProperty("discount_end")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discount_end")] -#endif - public InvoiceUpcomingLinesSubscriptionItemDiscountDiscountEndOptions DiscountEnd { get; set; } - - /// - /// ID of the promotion code to create a new discount for. - /// - [JsonProperty("promotion_code")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("promotion_code")] -#endif - public string PromotionCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs deleted file mode 100644 index 89f8fd5ee2..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemOptions.cs +++ /dev/null @@ -1,125 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemOptions : INestedOptions, IHasId, IHasMetadata - { - /// - /// Define thresholds at which an invoice will be sent, and the subscription advanced to a - /// new billing period. When updating, pass an empty string to remove previously-defined - /// thresholds. - /// - [JsonProperty("billing_thresholds")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_thresholds")] -#endif - public InvoiceUpcomingLinesSubscriptionItemBillingThresholdsOptions BillingThresholds { get; set; } - - /// - /// Delete all usage for a given subscription item. You must pass this when deleting a usage - /// records subscription item. clear_usage has no effect if the plan has a billing - /// meter attached. - /// - [JsonProperty("clear_usage")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("clear_usage")] -#endif - public bool? ClearUsage { get; set; } - - /// - /// A flag that, if set to true, will delete the specified item. - /// - [JsonProperty("deleted")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("deleted")] -#endif - public bool? Deleted { get; set; } - - /// - /// The coupons to redeem into discounts for the subscription item. - /// - [JsonProperty("discounts")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("discounts")] -#endif - public List Discounts { get; set; } - - /// - /// Subscription item to update. - /// - [JsonProperty("id")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("id")] -#endif - public string Id { 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; } - - /// - /// Plan ID for this item, as a string. - /// - [JsonProperty("plan")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("plan")] -#endif - public string Plan { get; set; } - - /// - /// The ID of the price object. One of price or price_data is required. When - /// changing a subscription item's price, quantity is set to 1 unless a - /// quantity parameter is provided. - /// - [JsonProperty("price")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("price")] -#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 InvoiceUpcomingLinesSubscriptionItemPriceDataOptions PriceData { get; set; } - - /// - /// Quantity for this item. - /// - [JsonProperty("quantity")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("quantity")] -#endif - public long? Quantity { get; set; } - - /// - /// A list of Tax Rate ids. These Tax - /// Rates will override the default_tax_rates - /// on the Subscription. When updating, pass an empty string to remove previously-defined - /// tax rates. - /// - [JsonProperty("tax_rates")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("tax_rates")] -#endif - public List TaxRates { get; set; } - } -} diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemPriceDataOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemPriceDataOptions.cs deleted file mode 100644 index af7f8a656b..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemPriceDataOptions.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemPriceDataOptions : 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. - /// - [JsonProperty("product")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("product")] -#endif - public string Product { 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 InvoiceUpcomingLinesSubscriptionItemPriceDataRecurringOptions 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 positive integer in cents (or local equivalent) (or 0 for a free price) representing - /// how much to charge. - /// - [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/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemPriceDataRecurringOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemPriceDataRecurringOptions.cs deleted file mode 100644 index b3650ee114..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionItemPriceDataRecurringOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionItemPriceDataRecurringOptions : 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/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionPrebillingOptions.cs b/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionPrebillingOptions.cs deleted file mode 100644 index 97aadb8a2d..0000000000 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesSubscriptionPrebillingOptions.cs +++ /dev/null @@ -1,20 +0,0 @@ -// 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 InvoiceUpcomingLinesSubscriptionPrebillingOptions : INestedOptions - { - /// - /// This is used to determine the number of billing cycles to prebill. - /// - [JsonProperty("iterations")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("iterations")] -#endif - public long? Iterations { get; set; } - } -} diff --git a/src/Stripe.net/Services/Invoices/InvoiceService.cs b/src/Stripe.net/Services/Invoices/InvoiceService.cs index 99101ec8fc..a55d9a1796 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceService.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceService.cs @@ -18,7 +18,6 @@ public partial class InvoiceService : Service, { private InvoicePaymentService payments; private InvoiceLineItemService lineItems; - private InvoiceUpcomingLinesService upcomingLines; public InvoiceService() { @@ -40,9 +39,6 @@ public InvoiceService(IStripeClient client) public virtual InvoiceLineItemService LineItems => this.lineItems ??= new InvoiceLineItemService( this.Requestor); - public virtual InvoiceUpcomingLinesService UpcomingLines => this.upcomingLines ??= new InvoiceUpcomingLinesService( - this.Requestor); - /// ///

Adds multiple line items to an invoice. This is only possible when an invoice is /// still a draft.

. @@ -521,6 +517,46 @@ public virtual Task UpcomingAsync(UpcomingInvoiceOptions options = null return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming", options, requestOptions, cancellationToken); } + /// + ///

When retrieving an upcoming invoice, you’ll get a lines property + /// containing the total count of line items and the first handful of those items. There is + /// also a URL where you can retrieve the full (paginated) list of line items.

. + ///
+ public virtual StripeList UpcomingLines(InvoiceUpcomingLinesOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming/lines", options, requestOptions); + } + + /// + ///

When retrieving an upcoming invoice, you’ll get a lines property + /// containing the total count of line items and the first handful of those items. There is + /// also a URL where you can retrieve the full (paginated) list of line items.

. + ///
+ public virtual Task> UpcomingLinesAsync(InvoiceUpcomingLinesOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming/lines", options, requestOptions, cancellationToken); + } + + /// + ///

When retrieving an upcoming invoice, you’ll get a lines property + /// containing the total count of line items and the first handful of those items. There is + /// also a URL where you can retrieve the full (paginated) list of line items.

. + ///
+ public virtual IEnumerable UpcomingLinesAutoPaging(InvoiceUpcomingLinesOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v1/invoices/upcoming/lines", options, requestOptions); + } + + /// + ///

When retrieving an upcoming invoice, you’ll get a lines property + /// containing the total count of line items and the first handful of those items. There is + /// also a URL where you can retrieve the full (paginated) list of line items.

. + ///
+ public virtual IAsyncEnumerable UpcomingLinesAutoPagingAsync(InvoiceUpcomingLinesOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v1/invoices/upcoming/lines", options, requestOptions, cancellationToken); + } + /// ///

Draft invoices are fully editable. Once an invoice is finalized, diff --git a/src/Stripe.net/Services/Invoices/InvoiceService.partial.cs b/src/Stripe.net/Services/Invoices/InvoiceService.partial.cs index dd46c7903a..c6237576e2 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceService.partial.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceService.partial.cs @@ -53,50 +53,6 @@ public virtual IAsyncEnumerable ListLineItemsAutoPagingAsync(st return this.ListRequestAutoPagingAsync($"/v1/invoices/{WebUtility.UrlEncode(id)}/lines", options, requestOptions, cancellationToken); } - ///

- ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- [Obsolete("Use InvoiceUpcomingLinesService.List instead.")] - public virtual StripeList ListUpcomingLineItems(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null) - { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming/lines", options, requestOptions); - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- [Obsolete("Use InvoiceUpcomingLinesService.ListAsync instead.")] - public virtual Task> ListUpcomingLineItemsAsync(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v1/invoices/upcoming/lines", options, requestOptions, cancellationToken); - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- [Obsolete("Use InvoiceUpcomingLinesService.ListAutoPaging instead.")] - public virtual IEnumerable ListUpcomingLineItemsAutoPaging(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null) - { - return this.ListRequestAutoPaging($"/v1/invoices/upcoming/lines", options, requestOptions); - } - - /// - ///

When retrieving an upcoming invoice, you’ll get a lines property - /// containing the total count of line items and the first handful of those items. There is - /// also a URL where you can retrieve the full (paginated) list of line items.

. - ///
- [Obsolete("Use InvoiceUpcomingLinesService.ListAutoPagingAsync instead.")] - public virtual IAsyncEnumerable ListUpcomingLineItemsAutoPagingAsync(InvoiceUpcomingLinesListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.ListRequestAutoPagingAsync($"/v1/invoices/upcoming/lines", options, requestOptions, cancellationToken); - } - /// ///

Updates an invoice’s line item. Some fields, such as tax_amounts, only live on /// the invoice line item, so they can only be updated through this endpoint. Other fields, diff --git a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesListOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceUpcomingLinesOptions.cs similarity index 94% rename from src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesListOptions.cs rename to src/Stripe.net/Services/Invoices/InvoiceUpcomingLinesOptions.cs index 7b7a489e2d..76240379ce 100644 --- a/src/Stripe.net/Services/InvoiceUpcomingLines/InvoiceUpcomingLinesListOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceUpcomingLinesOptions.cs @@ -9,7 +9,7 @@ namespace Stripe using STJS = System.Text.Json.Serialization; #endif - public class InvoiceUpcomingLinesListOptions : ListOptions + public class InvoiceUpcomingLinesOptions : ListOptions { ///

/// Settings for automatic tax lookup for this invoice preview. @@ -18,7 +18,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("automatic_tax")] #endif - public InvoiceUpcomingLinesAutomaticTaxOptions AutomaticTax { get; set; } + public InvoiceAutomaticTaxOptions AutomaticTax { get; set; } /// /// The ID of the coupon to apply to this phase of the subscription schedule. This field has @@ -61,7 +61,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("customer_details")] #endif - public InvoiceUpcomingLinesCustomerDetailsOptions CustomerDetails { get; set; } + public InvoiceCustomerDetailsOptions CustomerDetails { get; set; } /// /// The coupons to redeem into discounts for the invoice preview. If not specified, inherits @@ -73,7 +73,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("discounts")] #endif - public List Discounts { get; set; } + public List Discounts { get; set; } /// /// List of invoice items to add or update in the upcoming invoice preview (up to 250). @@ -82,7 +82,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("invoice_items")] #endif - public List InvoiceItems { get; set; } + public List InvoiceItems { get; set; } /// /// The connected account that issues the invoice. The invoice is presented with the @@ -92,7 +92,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("issuer")] #endif - public InvoiceUpcomingLinesIssuerOptions Issuer { get; set; } + public InvoiceIssuerOptions Issuer { get; set; } /// /// The account (if any) for which the funds of the invoice payment are intended. If set, @@ -135,7 +135,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("schedule_details")] #endif - public InvoiceUpcomingLinesScheduleDetailsOptions ScheduleDetails { get; set; } + public InvoiceScheduleDetailsOptions ScheduleDetails { get; set; } /// /// The identifier of the subscription for which you'd like to retrieve the upcoming @@ -225,7 +225,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("subscription_details")] #endif - public InvoiceUpcomingLinesSubscriptionDetailsOptions SubscriptionDetails { get; set; } + public InvoiceSubscriptionDetailsOptions SubscriptionDetails { get; set; } /// /// A list of up to 20 subscription items, each with an attached price. This field has been @@ -236,7 +236,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("subscription_items")] #endif - public List SubscriptionItems { get; set; } + public List SubscriptionItems { get; set; } /// /// The pre-billing to apply to the subscription as a preview. This field has been @@ -247,7 +247,7 @@ public class InvoiceUpcomingLinesListOptions : ListOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("subscription_prebilling")] #endif - public InvoiceUpcomingLinesSubscriptionPrebillingOptions SubscriptionPrebilling { get; set; } + public InvoiceSubscriptionPrebillingOptions SubscriptionPrebilling { get; set; } /// /// Determines how to handle existing, or none. /// [JsonProperty("political_exposure")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/EventDestinations/EventDestinationService.cs b/src/Stripe.net/Services/V2/Core/EventDestinations/EventDestinationService.cs index 98519481f1..560d7f1793 100644 --- a/src/Stripe.net/Services/V2/Core/EventDestinations/EventDestinationService.cs +++ b/src/Stripe.net/Services/V2/Core/EventDestinations/EventDestinationService.cs @@ -103,17 +103,17 @@ public virtual V2.EventDestination Get(string id, EventDestinationGetOptions opt /// /// Lists all event destinations. /// - public virtual StripeList List(EventDestinationListOptions options = null, RequestOptions requestOptions = null) + public virtual V2.StripeList List(EventDestinationListOptions options = null, RequestOptions requestOptions = null) { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/event_destinations", options, requestOptions); + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/event_destinations", options, requestOptions); } /// /// Lists all event destinations. /// - public virtual Task> ListAsync(EventDestinationListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + public virtual Task> ListAsync(EventDestinationListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/event_destinations", options, requestOptions, cancellationToken); + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/event_destinations", options, requestOptions, cancellationToken); } /// diff --git a/src/Stripe.net/Services/V2/Core/Events/EventService.cs b/src/Stripe.net/Services/V2/Core/Events/EventService.cs index ac5d439f25..e39553225f 100644 --- a/src/Stripe.net/Services/V2/Core/Events/EventService.cs +++ b/src/Stripe.net/Services/V2/Core/Events/EventService.cs @@ -39,17 +39,17 @@ public virtual V2.Event Get(string id, EventGetOptions options = null, RequestOp /// /// List events, going back up to 30 days. /// - public virtual StripeList List(EventListOptions options = null, RequestOptions requestOptions = null) + public virtual V2.StripeList List(EventListOptions options = null, RequestOptions requestOptions = null) { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/events", options, requestOptions); + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/events", options, requestOptions); } /// /// List events, going back up to 30 days. /// - public virtual Task> ListAsync(EventListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + public virtual Task> ListAsync(EventListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/events", options, requestOptions, cancellationToken); + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/events", options, requestOptions, cancellationToken); } /// diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 3410f25ec2..a3861d4886 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -756,8 +756,7 @@ public void TestCouponsPost() var options = new CouponCreateOptions { PercentOff = 25.5M, - Duration = "repeating", - DurationInMonths = 3, + Duration = "once", }; var service = new CouponService(this.StripeClient); service.Create(options); @@ -1852,21 +1851,6 @@ public void TestInvoicesSendPost() "/v1/invoices/in_xxxxxxxxxxxxx/send"); } - [Fact] - public void TestInvoicesUpcomingGet() - { - var options = new UpcomingInvoiceOptions - { - Customer = "cus_9utnxg47pWjV1e", - }; - var service = new InvoiceService(this.StripeClient); - service.Upcoming(options); - this.AssertRequest( - HttpMethod.Get, - "/v1/invoices/upcoming", - "customer=cus_9utnxg47pWjV1e"); - } - [Fact] public void TestInvoicesVoidPost() { diff --git a/src/StripeTests/Services/Invoices/InvoiceServiceTest.cs b/src/StripeTests/Services/Invoices/InvoiceServiceTest.cs index cc939ae16d..2943bc5fc7 100644 --- a/src/StripeTests/Services/Invoices/InvoiceServiceTest.cs +++ b/src/StripeTests/Services/Invoices/InvoiceServiceTest.cs @@ -19,7 +19,6 @@ public class InvoiceServiceTest : BaseStripeTest private readonly InvoiceListOptions listOptions; private readonly InvoiceLineItemListOptions lineItemListOptions; private readonly UpcomingInvoiceOptions upcomingOptions; - private readonly InvoiceUpcomingLinesListOptions upcomingListLineItemsOptions; private readonly InvoiceFinalizeOptions finalizeOptions; private readonly InvoiceMarkUncollectibleOptions markUncollectibleOptions; private readonly InvoiceSendOptions sendOptions; @@ -67,13 +66,6 @@ public InvoiceServiceTest( Subscription = "sub_123", }; - this.upcomingListLineItemsOptions = new InvoiceUpcomingLinesListOptions() - { - Limit = 1, - Customer = "cus_123", - Subscription = "sub_123", - }; - this.finalizeOptions = new InvoiceFinalizeOptions { }; @@ -239,44 +231,6 @@ public async Task ListLineItemsAutoPagingAsync() Assert.Equal("line_item", lineItem.Object); } - [Fact] - public void ListUpcomingLineItems() - { - var lineItems = this.service.UpcomingLines.List(this.upcomingListLineItemsOptions); - this.AssertRequest(HttpMethod.Get, "/v1/invoices/upcoming/lines"); - Assert.NotNull(lineItems); - Assert.Equal("list", lineItems.Object); - Assert.Single(lineItems.Data); - Assert.Equal("line_item", lineItems.Data[0].Object); - } - - [Fact] - public async Task ListUpcomingLineItemsAsync() - { - var lineItems = await this.service.UpcomingLines.ListAsync(this.upcomingListLineItemsOptions); - this.AssertRequest(HttpMethod.Get, "/v1/invoices/upcoming/lines"); - Assert.NotNull(lineItems); - Assert.Equal("list", lineItems.Object); - Assert.Single(lineItems.Data); - Assert.Equal("line_item", lineItems.Data[0].Object); - } - - [Fact] - public void ListUpcomingLineItemsAutoPaging() - { - var lineItem = this.service.UpcomingLines.ListAutoPaging(this.upcomingListLineItemsOptions).First(); - Assert.NotNull(lineItem); - Assert.Equal("line_item", lineItem.Object); - } - - [Fact] - public async Task ListUpcomingLineItemsAutoPagingAsync() - { - var lineItem = await this.service.UpcomingLines.ListAutoPagingAsync(this.upcomingListLineItemsOptions).FirstAsync(); - Assert.NotNull(lineItem); - Assert.Equal("line_item", lineItem.Object); - } - [Fact] public void MarkUncollectible() { diff --git a/src/StripeTests/Services/Invoices/UpcomingInvoiceListLineItemsOptionsTest.cs b/src/StripeTests/Services/Invoices/UpcomingInvoiceListLineItemsOptionsTest.cs deleted file mode 100644 index c56111360c..0000000000 --- a/src/StripeTests/Services/Invoices/UpcomingInvoiceListLineItemsOptionsTest.cs +++ /dev/null @@ -1,63 +0,0 @@ -namespace StripeTests -{ - using System; - using Stripe; - using Stripe.Infrastructure.FormEncoding; - using Xunit; - - public class UpcomingInvoiceListLineItemsOptionsTest : BaseStripeTest - { - [Fact] - public void SerializeSubscriptionBillingCycleAnchor() - { - var testCases = new[] - { - new - { - options = new InvoiceUpcomingLinesListOptions() - { - SubscriptionBillingCycleAnchor = DateTime.Parse("Fri, 13 Feb 2009 23:31:30Z"), - }, - want = "subscription_billing_cycle_anchor=1234567890", - }, - new - { - options = new InvoiceUpcomingLinesListOptions - { - SubscriptionBillingCycleAnchor = SubscriptionBillingCycleAnchor.Now, - }, - want = "subscription_billing_cycle_anchor=now", - }, - new - { - options = new InvoiceUpcomingLinesListOptions - { - SubscriptionBillingCycleAnchor = SubscriptionBillingCycleAnchor.Unchanged, - }, - want = "subscription_billing_cycle_anchor=unchanged", - }, - new - { - options = new InvoiceUpcomingLinesListOptions - { - SubscriptionTrialEnd = DateTime.Parse("Fri, 13 Feb 2009 23:31:30Z"), - }, - want = "subscription_trial_end=1234567890", - }, - new - { - options = new InvoiceUpcomingLinesListOptions - { - SubscriptionTrialEnd = SubscriptionTrialEnd.Now, - }, - want = "subscription_trial_end=now", - }, - }; - - foreach (var testCase in testCases) - { - Assert.Equal(testCase.want, ContentEncoder.CreateQueryString(testCase.options)); - } - } - } -}