diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md new file mode 100644 index 0000000000..8b47500c6e --- /dev/null +++ b/.claude/CLAUDE.md @@ -0,0 +1,50 @@ +# stripe-dotnet + +## Testing + +- Run all tests: `just test` (auto-installs correct .NET version) +- Run a specific test: `just test-one TestClassName` or `just test-one FullyQualifiedName` + +## Formatting + +- Format: `just format` +- Format check: `just format-check` +- Uses `dotnet format` (whitespace + analyzers) + +## Key Locations + +- HTTP client interface: `src/Stripe.net/Infrastructure/Public/IHttpClient.cs` +- HTTP implementation: `src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs` +- Main client class: `src/Stripe.net/Infrastructure/Public/StripeClient.cs` +- Client options: `src/Stripe.net/Infrastructure/Public/StripeClientOptions.cs` +- Request building: `src/Stripe.net/Infrastructure/Public/StripeRequest.cs` +- API requestor: `src/Stripe.net/Infrastructure/Public/LiveApiRequestor.cs` +- Version: `src/Stripe.net/Constants/Version.cs` +- Tests: `src/StripeTests/` + +## Generated Code + +- Files containing `File generated from our OpenAPI spec` at the top are generated; do not edit. Similarly, any code block starting with `The beginning of the section generated from our OpenAPI spec` is generated and should not be edited directly. + - If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it directly. +- The `Infrastructure/` directory is NOT generated. + +## Conventions + +- Uses .NET `System.Net.Http.HttpClient` +- Multi-target framework (net461+, net6.0+, etc.) +- Solution file: `src/Stripe.net.sln` +- .NET version managed via mise +- All code must run on all supported .NET versions (full list in the test section of @.github/workflows/ci.yml) +- Work is not complete until `just test`, `just format` complete successfully. + +### Comments + +- Comments MUST only be used to: + 1. Document a function + 2. Explain the WHY of a piece of code + 3. Explain a particularly complicated piece of code +- Comments NEVER should be used to: + 1. Say what used to be there. That's no longer relevant! + 2. Explain the WHAT of a piece of code (unless it's very non-obvious) + +It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything. diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index c99d4272fb..9bc9e77e13 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -e10daa4ed23a4fe87d6ea60836226446e042fdd3 \ No newline at end of file +3c01247cc15d88decd374e4f4af77d05388fb986 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 58dae79358..4c2310759e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2186 \ No newline at end of file +v2189 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 463ef0b027..74491b249b 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-01-28.preview"; + public const string Current = "2026-03-04.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index fa4c78fb08..289e825d51 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -91,6 +91,11 @@ public static class EventTypes /// public const string BillingPortalSessionCreated = "billing_portal.session.created"; + /// + /// Occurs whenever your custom alert threshold is recovered from a previous exceeded state. + /// + public const string BillingAlertRecovered = "billing.alert.recovered"; + /// /// Occurs whenever your custom alert threshold is met. /// @@ -1172,6 +1177,41 @@ public static class EventTypes /// public const string ReportingReportTypeUpdated = "reporting.report_type.updated"; + /// + /// Occurs when a reserve hold is created. + /// + public const string ReserveHoldCreated = "reserve.hold.created"; + + /// + /// Occurs when a reserve hold is updated. + /// + public const string ReserveHoldUpdated = "reserve.hold.updated"; + + /// + /// Occurs when a reserve plan is created. + /// + public const string ReservePlanCreated = "reserve.plan.created"; + + /// + /// Occurs when a reserve plan is disabled. + /// + public const string ReservePlanDisabled = "reserve.plan.disabled"; + + /// + /// Occurs when a reserve plan expires. + /// + public const string ReservePlanExpired = "reserve.plan.expired"; + + /// + /// Occurs when a reserve plan is updated. + /// + public const string ReservePlanUpdated = "reserve.plan.updated"; + + /// + /// Occurs when a reserve release is created. + /// + public const string ReserveReleaseCreated = "reserve.release.created"; + /// /// Occurs whenever a review is closed. The review's reason field indicates why: /// approved, disputed, refunded, refunded_as_fraud, or diff --git a/src/Stripe.net/Constants/FilePurpose.cs b/src/Stripe.net/Constants/FilePurpose.cs index eb0738cffb..884e19184f 100644 --- a/src/Stripe.net/Constants/FilePurpose.cs +++ b/src/Stripe.net/Constants/FilePurpose.cs @@ -40,5 +40,9 @@ public static class FilePurpose public const string TerminalAndroidApk = "terminal_android_apk"; public const string TerminalReaderSplashscreen = "terminal_reader_splashscreen"; + + public const string TerminalWifiCertificate = "terminal_wifi_certificate"; + + public const string TerminalWifiPrivateKey = "terminal_wifi_private_key"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs index 24447ad636..862071ed8f 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -108,6 +108,17 @@ public class AccountSessionComponents : StripeEntity #endif public AccountSessionComponentsIssuingCardsList IssuingCardsList { get; set; } + /// + /// Configuration for the network + /// cost passthrough report embedded component. + /// + [JsonProperty("network_cost_passthrough_report")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_cost_passthrough_report")] +#endif + public AccountSessionComponentsNetworkCostPassthroughReport NetworkCostPassthroughReport { get; set; } + [JsonProperty("notification_banner")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("notification_banner")] @@ -162,17 +173,6 @@ public class AccountSessionComponents : StripeEntity #endif public AccountSessionComponentsTaxSettings TaxSettings { get; set; } - /// - /// Configuration for the network - /// cost passthrough report embedded component. - /// - [JsonProperty("network_cost_passthrough_report")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("network_cost_passthrough_report")] -#endif - public AccountSessionComponentsNetworkCostPassthroughReport NetworkCostPassthroughReport { get; set; } - /// /// Configuration for the Terminal diff --git a/src/Stripe.net/Entities/Accounts/AccountSettings.cs b/src/Stripe.net/Entities/Accounts/AccountSettings.cs index 1e02550dd0..42fa373245 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettings.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettings.cs @@ -74,6 +74,12 @@ public class AccountSettings : StripeEntity #endif public AccountSettingsSepaDebitPayments SepaDebitPayments { get; set; } + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountSettingsSmartDisputes SmartDisputes { get; set; } + [JsonProperty("tax_forms")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tax_forms")] diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs index c8379c5e9e..c0c3d3990e 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs @@ -8,6 +8,16 @@ namespace Stripe public class AccountSettingsPayments : StripeEntity { + /// + /// When enabled, the customer of this Account will receive an email receipt when their + /// payment is successful. If this parameter is not set, the default value is false. + /// + [JsonProperty("email_customers_on_successful_payment")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email_customers_on_successful_payment")] +#endif + public bool? EmailCustomersOnSuccessfulPayment { get; set; } + /// /// The default text that appears on credit card statements when a charge is made. This /// field prefixes any dynamic statement_descriptor specified on the charge. diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputes.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputes.cs new file mode 100644 index 0000000000..6835fe1d03 --- /dev/null +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputes.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSettingsSmartDisputes : StripeEntity + { + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountSettingsSmartDisputesAutoRespond AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputesAutoRespond.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputesAutoRespond.cs new file mode 100644 index 0000000000..e3a36edc3f --- /dev/null +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsSmartDisputesAutoRespond.cs @@ -0,0 +1,31 @@ +// 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 AccountSettingsSmartDisputesAutoRespond : StripeEntity + { + /// + /// The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + + /// + /// The effective value for auto-respond. Can be 'on' or 'off'. + /// One of: off, or on. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/BalanceTransfers/BalanceTransfer.cs b/src/Stripe.net/Entities/BalanceTransfers/BalanceTransfer.cs index 95d4946c3a..2cf457dbfe 100644 --- a/src/Stripe.net/Entities/BalanceTransfers/BalanceTransfer.cs +++ b/src/Stripe.net/Entities/BalanceTransfers/BalanceTransfer.cs @@ -88,8 +88,8 @@ public class BalanceTransfer : StripeEntity, IHasId, IHasMetada public string HostedRegulatoryReceiptUrl { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Billing/AlertRecovereds/AlertRecovered.cs b/src/Stripe.net/Entities/Billing/AlertRecovereds/AlertRecovered.cs new file mode 100644 index 0000000000..bb76c054a3 --- /dev/null +++ b/src/Stripe.net/Entities/Billing/AlertRecovereds/AlertRecovered.cs @@ -0,0 +1,99 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AlertRecovered : StripeEntity, IHasObject + { + /// + /// String representing the object's type. Objects of the same type share the same value. + /// + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + /// + /// A billing alert is a resource that notifies you when a certain usage threshold on a + /// meter is crossed. For example, you might create a billing alert to notify you when a + /// certain user made 100 API requests. + /// + [JsonProperty("alert")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("alert")] +#endif + public Alert Alert { get; set; } + + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + /// + [JsonProperty("created")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Currency for the threshold value. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// Custom pricing unit for the threshold value. + /// + [JsonProperty("custom_pricing_unit")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom_pricing_unit")] +#endif + public string CustomPricingUnit { get; set; } + + /// + /// ID of customer for which the alert recovered. + /// + [JsonProperty("customer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("customer")] +#endif + public string Customer { get; set; } + + /// + /// External customer ID for the customer for which the alert recovered. + /// + [JsonProperty("external_customer_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("external_customer_id")] +#endif + public string ExternalCustomerId { get; set; } + + /// + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. + /// + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + /// + /// The value at which the alert recovered. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public decimal Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs index 0439c3e8a8..41886cad38 100644 --- a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs +++ b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalance.cs @@ -19,5 +19,11 @@ public class CreditBalanceSummaryBalance : StripeEntity + { + /// + /// The details of the most recent meter event included in the balance update. + /// + [JsonProperty("latest_meter_event")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("latest_meter_event")] +#endif + public CreditBalanceSummaryBalanceBalanceUpdateDetailsLatestMeterEvent LatestMeterEvent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalanceBalanceUpdateDetailsLatestMeterEvent.cs b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalanceBalanceUpdateDetailsLatestMeterEvent.cs new file mode 100644 index 0000000000..c9c3c7cbd7 --- /dev/null +++ b/src/Stripe.net/Entities/Billing/CreditBalanceSummaries/CreditBalanceSummaryBalanceBalanceUpdateDetailsLatestMeterEvent.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class CreditBalanceSummaryBalanceBalanceUpdateDetailsLatestMeterEvent : StripeEntity + { + /// + /// Time at which the object was created. Measured in seconds since the Unix epoch. + /// + [JsonProperty("created")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Maximum event time across all meter events that were processed and included in the + /// balance update. Measured in seconds since 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; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index 7c6c54a1db..066afc55fb 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -294,5 +294,26 @@ public class ChargePaymentMethodDetailsCard : StripeEntity + /// Whether the PaymentIntent can be reauthorized or not. + /// + [JsonProperty("reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorization")] +#endif + public ChargePaymentMethodDetailsCardReauthorization Reauthorization { get; set; } + + /// + /// The time at which the associated PaymentIntent will transition to a terminal state if it + /// is not reauthorized. + /// + [JsonProperty("reauthorize_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorize_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ReauthorizeBefore { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index 47c956b654..6f763f4afe 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. @@ -269,5 +289,26 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity + /// Whether the PaymentIntent can be reauthorized or not. + /// + [JsonProperty("reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorization")] +#endif + public ChargePaymentMethodDetailsCardPresentReauthorization Reauthorization { get; set; } + + /// + /// The time at which the associated PaymentIntent will transition to a terminal state if it + /// is not reauthorized. + /// + [JsonProperty("reauthorize_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorize_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ReauthorizeBefore { get; set; } } } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReauthorization.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReauthorization.cs new file mode 100644 index 0000000000..0bc4f4328b --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReauthorization.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ChargePaymentMethodDetailsCardPresentReauthorization : StripeEntity + { + /// + /// Indicates whether or not the reauthorization feature is supported. + /// One of: available, or unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardReauthorization.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardReauthorization.cs new file mode 100644 index 0000000000..23d3499bce --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardReauthorization.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ChargePaymentMethodDetailsCardReauthorization : StripeEntity + { + /// + /// Indicates whether or not the reauthorization feature is supported. + /// One of: available, or unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs index 730a39446d..82e049d9dc 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs @@ -144,6 +144,16 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -190,6 +200,16 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index 2ab0097fe4..df974d53f4 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -444,6 +444,18 @@ public Invoice Invoice #endif public string Locale { get; set; } + /// + /// Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SessionManagedPayments ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs index a45729d7af..1f9f471ba9 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs @@ -17,21 +17,21 @@ public class SessionCollectedInformationTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class SessionCollectedInformationTaxId : StripeEntitygb_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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs index dd48c60530..531e7970e2 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldDropdown.cs @@ -10,7 +10,7 @@ namespace Stripe.Checkout public class SessionCustomFieldDropdown : StripeEntity { /// - /// The value that will pre-fill on the payment page. + /// The value that pre-fills on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs index 53efe5fb7e..8d2ff04898 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldNumeric.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldNumeric : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs index 5be884376a..70032c5463 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomFieldText.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldText : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs index e7dc857efe..54bc6d49ff 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextAfterSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextAfterSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs index 3b6e9881b5..689fe802ef 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextShippingAddress.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextShippingAddress : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs index ad7d29bce2..e06a960fd9 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs index d17dd8a829..f9f6d471c4 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptance.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextTermsOfServiceAcceptance : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs index fb6c4753df..8a41e5340b 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs @@ -17,21 +17,21 @@ public class SessionCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class SessionCustomerDetailsTaxId : StripeEntitygb_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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs new file mode 100644 index 0000000000..6a89958324 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionManagedPayments.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index e7c9f4f372..bdf5ef4e95 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfe { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index fd3a7302fd..d3445ba7eb 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. @@ -269,5 +289,26 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod [STJS.JsonPropertyName("wallet")] #endif public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentWallet Wallet { get; set; } + + /// + /// Whether the PaymentIntent can be reauthorized or not. + /// + [JsonProperty("reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorization")] +#endif + public ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization Reauthorization { get; set; } + + /// + /// The time at which the associated PaymentIntent will transition to a terminal state if it + /// is not reauthorized. + /// + [JsonProperty("reauthorize_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorize_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ReauthorizeBefore { get; set; } } } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization.cs new file mode 100644 index 0000000000..c3769c0a7f --- /dev/null +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization : StripeEntity + { + /// + /// Indicates whether or not the reauthorization feature is supported. + /// One of: available, or unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs index d4fc94587e..a7979ddd84 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs @@ -32,6 +32,15 @@ public class RequestedSession : StripeEntity, IHasId, IHasMeta #endif public string Object { get; set; } + /// + /// Affiliate attribution data associated with this requested session. + /// + [JsonProperty("affiliate_attributions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("affiliate_attributions")] +#endif + public List AffiliateAttributions { get; set; } + /// /// The subtotal amount of the requested session. /// @@ -111,8 +120,8 @@ public class RequestedSession : StripeEntity, IHasId, IHasMeta public List LineItemDetails { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttribution.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttribution.cs new file mode 100644 index 0000000000..69f9dfb4e5 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttribution.cs @@ -0,0 +1,118 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + 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 RequestedSessionAffiliateAttribution : StripeEntity + { + /// + /// Agent-scoped campaign identifier. + /// + [JsonProperty("campaign_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("campaign_id")] +#endif + public string CampaignId { get; set; } + + /// + /// Agent-scoped creative identifier. + /// + [JsonProperty("creative_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("creative_id")] +#endif + public string CreativeId { get; set; } + + /// + /// Timestamp when the attribution token expires. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expires_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Agent-issued secret to validate the legitimacy of the source of this data. + /// + [JsonProperty("identification_token")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("identification_token")] +#endif + public string IdentificationToken { get; set; } + + /// + /// Timestamp for when the attribution token was issued. + /// + [JsonProperty("issued_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("issued_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime IssuedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Identifier for the attribution agent / affiliate network namespace. + /// + [JsonProperty("provider")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("provider")] +#endif + public string Provider { get; set; } + + /// + /// Agent-scoped affiliate/publisher identifier. + /// + [JsonProperty("publisher_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("publisher_id")] +#endif + public string PublisherId { get; set; } + + /// + /// Freeform key/value pairs for additional non-sensitive per-agent data. + /// + [JsonProperty("shared_metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shared_metadata")] +#endif + public Dictionary SharedMetadata { get; set; } + + /// + /// Context about where the attribution originated. + /// + [JsonProperty("source")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("source")] +#endif + public RequestedSessionAffiliateAttributionSource Source { get; set; } + + /// + /// Agent-scoped sub-tracking identifier. + /// + [JsonProperty("sub_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sub_id")] +#endif + public string SubId { get; set; } + + /// + /// Whether this is the first or last touchpoint. + /// One of: first, or last. + /// + [JsonProperty("touchpoint")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("touchpoint")] +#endif + public string Touchpoint { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionSource.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionSource.cs new file mode 100644 index 0000000000..5036d11d22 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionSource.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionAffiliateAttributionSource : StripeEntity + { + /// + /// The platform of the attribution source. + /// + [JsonProperty("platform")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("platform")] +#endif + public string Platform { get; set; } + + /// + /// The type of the attribution source. + /// One of: platform, or url. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The URL of the attribution source. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs index dcd865053f..233dce42ed 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOption.cs @@ -25,5 +25,14 @@ public class RequestedSessionFulfillmentDetailsFulfillmentOption : StripeEntity< [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// The digital fulfillment option. + /// + [JsonProperty("digital")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital")] +#endif + public RequestedSessionFulfillmentDetailsFulfillmentOptionDigital Digital { get; set; } } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigital.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigital.cs new file mode 100644 index 0000000000..ae88310f95 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigital.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsFulfillmentOptionDigital : StripeEntity + { + /// + /// The digital options. + /// + [JsonProperty("digital_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital_options")] +#endif + public List DigitalOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs new file mode 100644 index 0000000000..4ea9ee1742 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsFulfillmentOptionDigitalDigitalOption : StripeEntity + { + /// + /// The description of the digital fulfillment option. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + /// + /// The digital amount of the digital fulfillment option. + /// + [JsonProperty("digital_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital_amount")] +#endif + public long DigitalAmount { get; set; } + + /// + /// The display name of the digital fulfillment option. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + /// + /// The key of the digital fulfillment option. + /// + [JsonProperty("key")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("key")] +#endif + public string Key { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs index b42e124b6d..d28ecd3a89 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOption.cs @@ -25,5 +25,14 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOption : Strip [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// The digital fulfillment option. + /// + [JsonProperty("digital")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital")] +#endif + public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital Digital { get; set; } } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital.cs new file mode 100644 index 0000000000..7fd0471a73 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigital : StripeEntity + { + /// + /// The digital option. + /// + [JsonProperty("digital_option")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital_option")] +#endif + public string DigitalOption { get; set; } + } +} diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs index 7260892ca1..f7552eaacb 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionLineItemDetail.cs @@ -67,5 +67,14 @@ public class RequestedSessionLineItemDetail : StripeEntity + /// The fulfillment type of the line item. + /// + [JsonProperty("fulfillment_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fulfillment_type")] +#endif + public string FulfillmentType { get; set; } } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs index 6c649fc006..94f35ddcbe 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs @@ -1,7 +1,101 @@ // File generated from our OpenAPI spec namespace Stripe.DelegatedCheckout { + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + +#if NET6_0_OR_GREATER + [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] +#endif public class RequestedSessionSellerDetails : StripeEntity { + /// + /// The marketplace seller details. + /// + [JsonProperty("marketplace_seller_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("marketplace_seller_details")] +#endif + public RequestedSessionSellerDetailsMarketplaceSellerDetails MarketplaceSellerDetails { get; set; } + + #region Expandable NetworkProfile + + /// + /// (ID of the Profile) + /// The network profile of the seller. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public string NetworkProfileId + { + get => this.InternalNetworkProfile?.Id; + set => this.InternalNetworkProfile = SetExpandableFieldId(value, this.InternalNetworkProfile); + } + + /// + /// (Expanded) + /// The network profile of the seller. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public Profile NetworkProfile + { + get => this.InternalNetworkProfile?.ExpandedObject; + set => this.InternalNetworkProfile = SetExpandableFieldObject(value, this.InternalNetworkProfile); + } + + [JsonProperty("network_profile")] + [JsonConverter(typeof(ExpandableFieldConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network_profile")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] +#endif + internal ExpandableField InternalNetworkProfile { get; set; } + #endregion + + /// + /// The URL to the seller's privacy notice. + /// + [JsonProperty("privacy_notice_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("privacy_notice_url")] +#endif + public string PrivacyNoticeUrl { get; set; } + + /// + /// The URL to the seller's return policy. + /// + [JsonProperty("return_policy_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_policy_url")] +#endif + public string ReturnPolicyUrl { get; set; } + + /// + /// The URL to the seller's store policy. + /// + [JsonProperty("store_policy_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("store_policy_url")] +#endif + public string StorePolicyUrl { get; set; } + + /// + /// The URL to the seller's terms of service. + /// + [JsonProperty("terms_of_service_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("terms_of_service_url")] +#endif + public string TermsOfServiceUrl { get; set; } } } diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetailsMarketplaceSellerDetails.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetailsMarketplaceSellerDetails.cs new file mode 100644 index 0000000000..d872d00796 --- /dev/null +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetailsMarketplaceSellerDetails.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + public class RequestedSessionSellerDetailsMarketplaceSellerDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 90b4397635..f3e43facbf 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -151,7 +151,7 @@ public class Event : StripeEntity, IHasId, IHasObject /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing_portal.configuration.created, + /// billing.credit_grant.created, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -254,15 +254,18 @@ public class Event : StripeEntity, IHasId, IHasObject /// radar.early_fraud_warning.updated, refund.created, refund.failed, /// refund.updated, reporting.report_run.failed, /// reporting.report_run.succeeded, reporting.report_type.updated, - /// review.closed, review.opened, setup_intent.canceled, - /// setup_intent.created, setup_intent.requires_action, - /// setup_intent.setup_failed, setup_intent.succeeded, - /// sigma.scheduled_query_run.created, source.canceled, - /// source.chargeable, source.failed, source.mandate_notification, - /// source.refund_attributes_required, source.transaction.created, - /// source.transaction.updated, subscription_schedule.aborted, - /// subscription_schedule.canceled, subscription_schedule.completed, - /// subscription_schedule.created, subscription_schedule.expiring, + /// reserve.hold.created, reserve.hold.updated, reserve.plan.created, + /// reserve.plan.disabled, reserve.plan.expired, reserve.plan.updated, + /// reserve.release.created, review.closed, review.opened, + /// setup_intent.canceled, setup_intent.created, + /// setup_intent.requires_action, setup_intent.setup_failed, + /// setup_intent.succeeded, sigma.scheduled_query_run.created, + /// source.canceled, source.chargeable, source.failed, + /// source.mandate_notification, source.refund_attributes_required, + /// source.transaction.created, source.transaction.updated, + /// subscription_schedule.aborted, subscription_schedule.canceled, + /// subscription_schedule.completed, subscription_schedule.created, + /// subscription_schedule.expiring, /// subscription_schedule.price_migration_failed, /// subscription_schedule.released, subscription_schedule.updated, /// tax.form.updated, tax.settings.updated, tax_rate.created, @@ -293,9 +296,9 @@ public class Event : StripeEntity, IHasId, IHasObject /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, /// invoice_payment.detached, billing.credit_balance_transaction.created, - /// billing.credit_grant.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, or ping. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Files/File.cs b/src/Stripe.net/Entities/Files/File.cs index 141360e07e..3beae726ba 100644 --- a/src/Stripe.net/Entities/Files/File.cs +++ b/src/Stripe.net/Entities/Files/File.cs @@ -88,7 +88,8 @@ public class File : StripeEntity, IHasId, IHasObject /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, platform_terms_of_service, selfie, /// sigma_scheduled_query, tax_document_user_upload, - /// terminal_android_apk, or terminal_reader_splashscreen. + /// terminal_android_apk, terminal_reader_splashscreen, + /// terminal_wifi_certificate, or terminal_wifi_private_key. /// [JsonProperty("purpose")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs index 65c910e3ef..231c902268 100644 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs +++ b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs @@ -42,8 +42,8 @@ public class FrMealVouchersOnboarding : StripeEntity, public string Object { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Identity/BlocklistEntries/BlocklistEntry.cs b/src/Stripe.net/Entities/Identity/BlocklistEntries/BlocklistEntry.cs index e7112affa9..5d341d6127 100644 --- a/src/Stripe.net/Entities/Identity/BlocklistEntries/BlocklistEntry.cs +++ b/src/Stripe.net/Entities/Identity/BlocklistEntries/BlocklistEntry.cs @@ -77,8 +77,8 @@ public class BlocklistEntry : StripeEntity, IHasId, IHasObject public DateTime? ExpiresAt { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemPricing.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemPricing.cs index 2c579b4390..18f648f2b6 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemPricing.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemPricing.cs @@ -20,6 +20,12 @@ public class InvoiceItemPricing : StripeEntity #endif public InvoiceItemPricingPriceDetails PriceDetails { get; set; } + [JsonProperty("rate_card_custom_pricing_unit_overage_rate_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rate_card_custom_pricing_unit_overage_rate_details")] +#endif + public InvoiceItemPricingRateCardCustomPricingUnitOverageRateDetails RateCardCustomPricingUnitOverageRateDetails { get; set; } + [JsonProperty("rate_card_rate_details")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("rate_card_rate_details")] @@ -47,11 +53,5 @@ public class InvoiceItemPricing : StripeEntity [STJS.JsonPropertyName("unit_amount_decimal")] #endif public decimal? UnitAmountDecimal { get; set; } - - [JsonProperty("rate_card_custom_pricing_unit_overage_rate_details")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("rate_card_custom_pricing_unit_overage_rate_details")] -#endif - public InvoiceItemPricingRateCardCustomPricingUnitOverageRateDetails RateCardCustomPricingUnitOverageRateDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentScheduleDetails.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentScheduleDetails.cs index efd49f4e9f..828400b5c6 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentScheduleDetails.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemParentScheduleDetails.cs @@ -8,15 +8,6 @@ namespace Stripe public class InvoiceLineItemParentScheduleDetails : StripeEntity { - /// - /// The subscription schedule that generated this line item. - /// - [JsonProperty("schedule")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("schedule")] -#endif - public string Schedule { get; set; } - /// /// The invoice item that generated this line item. /// @@ -44,6 +35,15 @@ public class InvoiceLineItemParentScheduleDetails : StripeEntity + /// The subscription schedule that generated this line item. + /// + [JsonProperty("schedule")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("schedule")] +#endif + public string Schedule { get; set; } + /// /// The subscription that the schedule belongs to. /// diff --git a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemPricing.cs b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemPricing.cs index 3ca46586be..da2fe38704 100644 --- a/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemPricing.cs +++ b/src/Stripe.net/Entities/InvoiceLineItems/InvoiceLineItemPricing.cs @@ -20,6 +20,12 @@ public class InvoiceLineItemPricing : StripeEntity #endif public InvoiceLineItemPricingPriceDetails PriceDetails { get; set; } + [JsonProperty("rate_card_custom_pricing_unit_overage_rate_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rate_card_custom_pricing_unit_overage_rate_details")] +#endif + public InvoiceLineItemPricingRateCardCustomPricingUnitOverageRateDetails RateCardCustomPricingUnitOverageRateDetails { get; set; } + [JsonProperty("rate_card_rate_details")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("rate_card_rate_details")] @@ -47,11 +53,5 @@ public class InvoiceLineItemPricing : StripeEntity [STJS.JsonPropertyName("unit_amount_decimal")] #endif public decimal? UnitAmountDecimal { get; set; } - - [JsonProperty("rate_card_custom_pricing_unit_overage_rate_details")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("rate_card_custom_pricing_unit_overage_rate_details")] -#endif - public InvoiceLineItemPricingRateCardCustomPricingUnitOverageRateDetails RateCardCustomPricingUnitOverageRateDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/Invoices/Invoice.cs b/src/Stripe.net/Entities/Invoices/Invoice.cs index 955941bcac..2a4b33b27d 100644 --- a/src/Stripe.net/Entities/Invoices/Invoice.cs +++ b/src/Stripe.net/Entities/Invoices/Invoice.cs @@ -949,7 +949,8 @@ public Account OnBehalfOf public InvoicePaymentSettings PaymentSettings { get; set; } /// - /// Payments for this invoice. + /// Payments for this invoice. Use invoice + /// payment to get more details. /// [JsonProperty("payments")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs index 99508e7a87..7120d9c271 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs @@ -17,21 +17,21 @@ public class InvoiceCustomerTaxId : StripeEntity /// au_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class InvoiceCustomerTaxId : StripeEntity /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index bd25a5449d..c17e620601 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -42,10 +42,11 @@ public class InvoicePaymentSettings : StripeEntity /// customer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index 6af33af56b..bf7609ef74 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransf { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs index f7bd1af814..d2435a9894 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -42,8 +42,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions : Strip public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs index 20a1fdd8e2..fc1310f825 100644 --- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs +++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetailsBacsDebit.cs @@ -8,6 +8,15 @@ namespace Stripe public class MandatePaymentMethodDetailsBacsDebit : StripeEntity { + /// + /// The display name for the account on this mandate. + /// + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + /// /// The status of the mandate on the Bacs network. Can be one of pending, /// revoked, refused, or accepted. @@ -40,6 +49,15 @@ public class MandatePaymentMethodDetailsBacsDebit : StripeEntity + /// The service user number for the account on this mandate. + /// + [JsonProperty("service_user_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_user_number")] +#endif + public string ServiceUserNumber { get; set; } + /// /// The URL that will contain the mandate that the customer has signed. /// diff --git a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index a16faf9980..6e68459889 100644 --- a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs index 8096586ba2..e3a2edfe40 100644 --- a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs @@ -17,21 +17,21 @@ public class OrderTaxDetailsTaxId : StripeEntity /// au_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class OrderTaxDetailsTaxId : StripeEntity /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs index 4f71a46db0..e0de63950e 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAffirm.cs @@ -9,8 +9,7 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that - /// this transaction's reader is assigned to. + /// ID of the location that this reader is assigned to. /// [JsonProperty("location")] #if NET6_0_OR_GREATER @@ -19,8 +18,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this - /// transaction was made on. + /// ID of the reader this transaction was made on. /// [JsonProperty("reader")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs index cd7e73896b..0ecabdd31e 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay.cs @@ -18,7 +18,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsAfterpayClearpay : StripeEn public string OrderId { get; set; } /// - /// Order identifier shown to the merchant in Afterpay’s online portal. + /// Order identifier shown to the merchant in Afterpay's online portal. /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs index ed24e8d833..b7e14d0b92 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardChecks.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCardChecks : StripeEntity { /// + /// If you provide a value for address.line1, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_line1_check")] @@ -18,6 +20,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardChecks : StripeEntity

+ /// If you provide a address postal code, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_postal_code_check")] @@ -27,6 +31,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardChecks : StripeEntity

+ /// If you provide a CVC, the check results is one of pass, fail, + /// unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("cvc_check")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs index f4fe81391b..f770a56af5 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardInstallments.cs @@ -8,6 +8,9 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCardInstallments : StripeEntity { + ///

+ /// Installment plan selected for the payment. + /// [JsonProperty("plan")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("plan")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs index 66ea4a7719..1ba226caa0 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. @@ -269,5 +289,26 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< [STJS.JsonPropertyName("wallet")] #endif public PaymentAttemptRecordPaymentMethodDetailsCardPresentWallet Wallet { get; set; } + + /// + /// Whether the PaymentIntent can be reauthorized or not. + /// + [JsonProperty("reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorization")] +#endif + public PaymentAttemptRecordPaymentMethodDetailsCardPresentReauthorization Reauthorization { get; set; } + + /// + /// The time at which the associated PaymentIntent will transition to a terminal state if it + /// is not reauthorized. + /// + [JsonProperty("reauthorize_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorize_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ReauthorizeBefore { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReauthorization.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReauthorization.cs new file mode 100644 index 0000000000..26bb423e28 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReauthorization.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentAttemptRecordPaymentMethodDetailsCardPresentReauthorization : StripeEntity + { + /// + /// Indicates whether or not the reauthorization feature is supported. + /// One of: available, or unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs index d7a9d046af..d35c8f70f1 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity { /// + /// For authenticated transactions: Indicates how the issuing bank authenticated the + /// customer. /// One of: challenge, or frictionless. /// [JsonProperty("authentication_flow")] @@ -18,6 +20,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn public string AuthenticationFlow { get; set; } /// + /// Indicates the outcome of 3D Secure authentication. /// One of: attempt_acknowledged, authenticated, exempted, /// failed, not_supported, or processing_error. /// @@ -28,6 +31,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn public string Result { get; set; } /// + /// Additional information about why 3D Secure succeeded or failed, based on the + /// result. /// One of: abandoned, bypassed, canceled, card_not_enrolled, /// network_not_supported, protocol_error, or rejected. /// @@ -38,6 +43,7 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn public string ResultReason { get; set; } /// + /// The version of 3D Secure that was used. /// One of: 1.0.2, 2.1.0, or 2.2.0. /// [JsonProperty("version")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs index 3cf2b2a168..27c9bf0a83 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs @@ -144,6 +144,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresent : StripeEnti #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -190,6 +200,16 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresent : StripeEnti #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs index 48cc7fcf22..56c8a40ede 100644 --- a/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs +++ b/src/Stripe.net/Entities/PaymentIntentAmountDetailsLineItems/PaymentIntentAmountDetailsLineItem.cs @@ -62,7 +62,7 @@ public class PaymentIntentAmountDetailsLineItem : StripeEntity [JsonProperty("product_name")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index e6ddb7c18b..9683639182 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -448,6 +448,15 @@ public Charge LatestCharge #endif public bool Livemode { get; set; } + /// + /// Settings for Managed Payments. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public PaymentIntentManagedPayments ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -810,7 +819,7 @@ public IPaymentSource Source /// href="https://docs.stripe.com/payments/intents#intent-statuses">status. /// One of: canceled, processing, requires_action, /// requires_capture, requires_confirmation, requires_payment_method, - /// or succeeded. + /// requires_reauthorization, or succeeded. /// [JsonProperty("status")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs new file mode 100644 index 0000000000..8a9082b47c --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 PaymentIntentManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs index b751e8d155..b7366c632d 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCard.cs @@ -206,5 +206,17 @@ public class PaymentIntentPaymentMethodOptionsCard : StripeEntity + /// Request ability to reauthorize for this + /// PaymentIntent. + /// One of: if_available, or never. + /// + [JsonProperty("request_reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("request_reauthorization")] +#endif + public string RequestReauthorization { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs index 37166a1ee5..473fafb028 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardPresent.cs @@ -48,5 +48,17 @@ public class PaymentIntentPaymentMethodOptionsCardPresent : StripeEntity + /// Request ability to reauthorize for this + /// PaymentIntent. + /// One of: if_available, or never. + /// + [JsonProperty("request_reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("request_reauthorization")] +#endif + public string RequestReauthorization { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index 99c36c9f93..ee098c8f27 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs index ba3ac70ac0..c206207676 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs @@ -58,6 +58,16 @@ public class PaymentIntentPaymentMethodOptionsUsBankAccount : StripeEntity + /// The purpose of the transaction. + /// One of: goods, other, services, or unspecified. + /// + [JsonProperty("transaction_purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_purpose")] +#endif + public string TransactionPurpose { get; set; } + /// /// Bank account verification method. /// One of: automatic, instant, or microdeposits. diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs index cdbd358759..e7879b89a3 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldDropdown.cs @@ -10,7 +10,7 @@ namespace Stripe public class PaymentLinkCustomFieldDropdown : StripeEntity { /// - /// The value that will pre-fill on the payment page. + /// The value that pre-fills on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs index 9a5d6255eb..9f54969aa7 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldNumeric.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldNumeric : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs index 94c0ac3f92..cfcfd68379 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomFieldText.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldText : StripeEntity { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs index a921d25d6d..5cfc5749c5 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextAfterSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextAfterSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs index ff5b0b53bc..a118404b98 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextShippingAddress.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextShippingAddress : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs index e25982a951..c5f3fa3b56 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextSubmit.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextSubmit : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs index 2b24ccea5d..3ad263dba6 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptance.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextTermsOfServiceAcceptance : StripeEntity { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethodBalances/PaymentMethodBalance.cs b/src/Stripe.net/Entities/PaymentMethodBalances/PaymentMethodBalance.cs index 36ae6eae76..837f0b33d2 100644 --- a/src/Stripe.net/Entities/PaymentMethodBalances/PaymentMethodBalance.cs +++ b/src/Stripe.net/Entities/PaymentMethodBalances/PaymentMethodBalance.cs @@ -44,8 +44,8 @@ public class PaymentMethodBalance : StripeEntity, IHasObje public PaymentMethodBalanceBalance Balance { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index 69abf23bd5..a1f7d675c7 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str #endif public string Last4 { get; set; } + /// + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str #endif public string ReadMethod { get; set; } + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. @@ -269,5 +289,26 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str [STJS.JsonPropertyName("wallet")] #endif public PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentWallet Wallet { get; set; } + + /// + /// Whether the PaymentIntent can be reauthorized or not. + /// + [JsonProperty("reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorization")] +#endif + public PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization Reauthorization { get; set; } + + /// + /// The time at which the associated PaymentIntent will transition to a terminal state if it + /// is not reauthorized. + /// + [JsonProperty("reauthorize_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorize_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ReauthorizeBefore { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization.cs new file mode 100644 index 0000000000..43286d9c2e --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReauthorization : StripeEntity + { + /// + /// Indicates whether or not the reauthorization feature is supported. + /// One of: available, or unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCustom.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCustom.cs index 6f86855ca7..1d7274bdcd 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCustom.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCustom.cs @@ -27,22 +27,22 @@ public class PaymentMethodCustom : StripeEntity public PaymentMethodCustomLogo Logo { get; set; } /// - /// ID of the Dashboard-only CustomPaymentMethodType. Not expandable. + /// A reference to an external payment method, such as a PayPal Billing Agreement ID. /// - [JsonProperty("type")] + [JsonProperty("payment_method_reference")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("type")] + [STJS.JsonPropertyName("payment_method_reference")] #endif - public string Type { get; set; } + public string PaymentMethodReference { get; set; } /// - /// A reference to an external payment method, such as a PayPal Billing Agreement ID. + /// ID of the Dashboard-only CustomPaymentMethodType. Not expandable. /// - [JsonProperty("payment_method_reference")] + [JsonProperty("type")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("payment_method_reference")] + [STJS.JsonPropertyName("type")] #endif - public string PaymentMethodReference { get; set; } + public string Type { get; set; } /// /// Indicates whether the payment method supports off-session payments. diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs index 45040df18d..948c4464de 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAffirm.cs @@ -9,8 +9,7 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsAffirm : StripeEntity { /// - /// ID of the location that - /// this transaction's reader is assigned to. + /// ID of the location that this reader is assigned to. /// [JsonProperty("location")] #if NET6_0_OR_GREATER @@ -19,8 +18,7 @@ public class PaymentRecordPaymentMethodDetailsAffirm : StripeEntity - /// ID of the reader this - /// transaction was made on. + /// ID of the reader this transaction was made on. /// [JsonProperty("reader")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs index e1c30446be..247794d916 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAfterpayClearpay.cs @@ -18,7 +18,7 @@ public class PaymentRecordPaymentMethodDetailsAfterpayClearpay : StripeEntity - /// Order identifier shown to the merchant in Afterpay’s online portal. + /// Order identifier shown to the merchant in Afterpay's online portal. /// [JsonProperty("reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs index 27f6964fcf..c02c7cb472 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardChecks.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCardChecks : StripeEntity { /// + /// If you provide a value for address.line1, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_line1_check")] @@ -18,6 +20,8 @@ public class PaymentRecordPaymentMethodDetailsCardChecks : StripeEntity + /// If you provide a address postal code, the check result is one of pass, + /// fail, unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("address_postal_code_check")] @@ -27,6 +31,8 @@ public class PaymentRecordPaymentMethodDetailsCardChecks : StripeEntity + /// If you provide a CVC, the check results is one of pass, fail, + /// unavailable, or unchecked. /// One of: fail, pass, unavailable, or unchecked. /// [JsonProperty("cvc_check")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs index 2cf78cae33..a6d30debd6 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardInstallments.cs @@ -8,6 +8,9 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCardInstallments : StripeEntity { + /// + /// Installment plan selected for the payment. + /// [JsonProperty("plan")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("plan")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs index 497b00eafd..3723989e3a 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs @@ -190,6 +190,16 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -254,6 +264,16 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. @@ -269,5 +289,26 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity + /// Whether the PaymentIntent can be reauthorized or not. + /// + [JsonProperty("reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorization")] +#endif + public PaymentRecordPaymentMethodDetailsCardPresentReauthorization Reauthorization { get; set; } + + /// + /// The time at which the associated PaymentIntent will transition to a terminal state if it + /// is not reauthorized. + /// + [JsonProperty("reauthorize_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reauthorize_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ReauthorizeBefore { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReauthorization.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReauthorization.cs new file mode 100644 index 0000000000..d5c35300c5 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReauthorization.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentRecordPaymentMethodDetailsCardPresentReauthorization : StripeEntity + { + /// + /// Indicates whether or not the reauthorization feature is supported. + /// One of: available, or unavailable. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs index 0aaf45b173..d899b7bbe7 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs @@ -9,6 +9,8 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity { /// + /// For authenticated transactions: Indicates how the issuing bank authenticated the + /// customer. /// One of: challenge, or frictionless. /// [JsonProperty("authentication_flow")] @@ -18,6 +20,7 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity + /// Indicates the outcome of 3D Secure authentication. /// One of: attempt_acknowledged, authenticated, exempted, /// failed, not_supported, or processing_error. /// @@ -28,6 +31,8 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity + /// Additional information about why 3D Secure succeeded or failed, based on the + /// result. /// One of: abandoned, bypassed, canceled, card_not_enrolled, /// network_not_supported, protocol_error, or rejected. /// @@ -38,6 +43,7 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity + /// The version of 3D Secure that was used. /// One of: 1.0.2, 2.1.0, or 2.2.0. /// [JsonProperty("version")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs index c64488af7d..7c85e52aed 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs @@ -144,6 +144,16 @@ public class PaymentRecordPaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("location")] +#endif + public string Location { get; set; } + /// /// Identifies which network this charge was processed on. Can be amex, /// cartes_bancaires, diners, discover, eftpos_au, @@ -190,6 +200,16 @@ public class PaymentRecordPaymentMethodDetailsInteracPresent : StripeEntity + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reader")] +#endif + public string Reader { get; set; } + /// /// A collection of fields required to be displayed on receipts. Only required for EMV /// transactions. diff --git a/src/Stripe.net/Entities/ProductCatalog/TrialOffers/TrialOffer.cs b/src/Stripe.net/Entities/ProductCatalog/TrialOffers/TrialOffer.cs index 6f9a5fd9eb..fc9e901d15 100644 --- a/src/Stripe.net/Entities/ProductCatalog/TrialOffers/TrialOffer.cs +++ b/src/Stripe.net/Entities/ProductCatalog/TrialOffers/TrialOffer.cs @@ -48,8 +48,8 @@ public class TrialOffer : StripeEntity, IHasId, IHasObject public TrialOfferEndBehavior EndBehavior { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Profiles/Profile.cs b/src/Stripe.net/Entities/Profiles/Profile.cs new file mode 100644 index 0000000000..50e0eac968 --- /dev/null +++ b/src/Stripe.net/Entities/Profiles/Profile.cs @@ -0,0 +1,62 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// A Stripe profile. + /// + public class Profile : StripeEntity, IHasId, IHasObject + { + [JsonProperty("id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("id")] +#endif + public string Id { get; set; } + + [JsonProperty("object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("object")] +#endif + public string Object { get; set; } + + [JsonProperty("branding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("branding")] +#endif + public ProfileBranding Branding { get; set; } + + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { get; set; } + + [JsonProperty("display_name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("display_name")] +#endif + public string DisplayName { get; set; } + + [JsonProperty("livemode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("livemode")] +#endif + public bool Livemode { get; set; } + + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + + [JsonProperty("username")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("username")] +#endif + public string Username { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Profiles/ProfileBranding.cs b/src/Stripe.net/Entities/Profiles/ProfileBranding.cs new file mode 100644 index 0000000000..5bd4e3a628 --- /dev/null +++ b/src/Stripe.net/Entities/Profiles/ProfileBranding.cs @@ -0,0 +1,35 @@ +// 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 ProfileBranding : StripeEntity + { + [JsonProperty("icon")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("icon")] +#endif + public ProfileBrandingIcon Icon { get; set; } + + [JsonProperty("logo")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("logo")] +#endif + public ProfileBrandingLogo Logo { get; set; } + + [JsonProperty("primary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("primary_color")] +#endif + public string PrimaryColor { get; set; } + + [JsonProperty("secondary_color")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("secondary_color")] +#endif + public string SecondaryColor { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs b/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs new file mode 100644 index 0000000000..912f0db93a --- /dev/null +++ b/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ProfileBrandingIcon : StripeEntity + { + [JsonProperty("original")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("original")] +#endif + public string Original { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs b/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs new file mode 100644 index 0000000000..b61b7624cc --- /dev/null +++ b/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs @@ -0,0 +1,17 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ProfileBrandingLogo : StripeEntity + { + [JsonProperty("original")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("original")] +#endif + public string Original { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs index f9258babdf..1df2858120 100644 --- a/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs +++ b/src/Stripe.net/Entities/PromotionCodes/PromotionCode.cs @@ -55,7 +55,7 @@ public class PromotionCode : StripeEntity, IHasId, IHasMetadata, /// /// The customer-facing code. Regardless of case, this code must be unique across all active /// promotion codes for each customer. Valid characters are lower case letters (a-z), upper - /// case letters (A-Z), and digits (0-9). + /// case letters (A-Z), digits (0-9), and dashes (-). /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscount.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscount.cs index f9339afc05..08156e400f 100644 --- a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscount.cs +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscount.cs @@ -153,5 +153,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public QuoteLineActionAddDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettings.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettings.cs new file mode 100644 index 0000000000..611d713647 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 QuoteLineActionAddDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or line_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..b2880bbfc1 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..1bd8d383ea --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 QuoteLineActionAddDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscount.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscount.cs index c6a834cd95..e0693cd4cd 100644 --- a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscount.cs +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public QuoteLineActionAddItemDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettings.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettings.cs new file mode 100644 index 0000000000..03b30e7424 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 QuoteLineActionAddItemDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or line_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..b6fa8cedc9 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..eede61272a --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 QuoteLineActionAddItemDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscount.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscount.cs index ed091c649c..cebd08cfca 100644 --- a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscount.cs +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public QuoteLineActionSetDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettings.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettings.cs new file mode 100644 index 0000000000..cbd28f3ad6 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 QuoteLineActionSetDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or line_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..5bc4c17031 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..c3359ce2a7 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 QuoteLineActionSetDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscount.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscount.cs index ea14c7bd41..978ba7de9e 100644 --- a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscount.cs +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public QuoteLineActionSetItemDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettings.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettings.cs new file mode 100644 index 0000000000..9c3eec386f --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 QuoteLineActionSetItemDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or line_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..4ab78bda4c --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..a7f03f41a5 --- /dev/null +++ b/src/Stripe.net/Entities/QuoteLines/QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 QuoteLineActionSetItemDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs index b8c588f886..d67a720f27 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoice.cs @@ -872,7 +872,8 @@ public Account OnBehalfOf public QuotePreviewInvoicePaymentSettings PaymentSettings { get; set; } /// - /// Payments for this invoice. + /// Payments for this invoice. Use invoice + /// payment to get more details. /// [JsonProperty("payments")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs index e1fd6270c2..9f7f590793 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs @@ -17,21 +17,21 @@ public class QuotePreviewInvoiceCustomerTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class QuotePreviewInvoiceCustomerTaxId : StripeEntitygb_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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index ebb116829d..a652e83323 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -42,10 +42,11 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntitycustomer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index 40cfc02c05..2253dfd2b8 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCustomerBalan { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs index 420a44209a..dce21254aa 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -42,8 +42,7 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUpiMandateOpt public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscount.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscount.cs index 7e350ed0fe..e41fe055dc 100644 --- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscount.cs +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public QuotePreviewSubscriptionSchedulePhaseDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettings.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettings.cs new file mode 100644 index 0000000000..eb2e94fa3e --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 QuotePreviewSubscriptionSchedulePhaseDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or phase_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..e964e3f4bf --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..36464191e5 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 QuotePreviewSubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscount.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscount.cs index 090fe93b0a..01fe0a6d71 100644 --- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscount.cs +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public QuotePreviewSubscriptionSchedulePhaseItemDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettings.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettings.cs new file mode 100644 index 0000000000..f9da803215 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 QuotePreviewSubscriptionSchedulePhaseItemDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or phase_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..3dfe0eafb4 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..e860b73ce3 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 QuotePreviewSubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Quotes/QuoteStatusDetailsStaleLastReason.cs b/src/Stripe.net/Entities/Quotes/QuoteStatusDetailsStaleLastReason.cs index 0564666295..bd5bbc3e85 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteStatusDetailsStaleLastReason.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteStatusDetailsStaleLastReason.cs @@ -87,10 +87,10 @@ public class QuoteStatusDetailsStaleLastReason : StripeEntity /// The reason the quote was marked as stale. /// One of: accept_failed_validations, bill_on_acceptance_invalid, - /// line_invalid, lines_invalid, marked_stale, - /// subscription_canceled, subscription_changed, subscription_expired, - /// subscription_schedule_canceled, subscription_schedule_changed, or - /// subscription_schedule_released. + /// billing_schedules_invalid, line_invalid, lines_invalid, + /// marked_stale, subscription_canceled, subscription_changed, + /// subscription_expired, subscription_schedule_canceled, + /// subscription_schedule_changed, or subscription_schedule_released. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluation.cs b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluation.cs index 797e55237d..18172484f4 100644 --- a/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluation.cs +++ b/src/Stripe.net/Entities/Radar/AccountEvaluations/AccountEvaluation.cs @@ -63,8 +63,8 @@ public class AccountEvaluation : StripeEntity, IHasId, IHasOb public List Events { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs index 687af0d5c8..4a3a272398 100644 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsights.cs @@ -10,15 +10,6 @@ namespace Stripe.Radar public class PaymentEvaluationInsights : StripeEntity { - /// - /// Stripe Radar's evaluation of the likelihood of a card issuer decline on this payment. - /// - [JsonProperty("card_issuer_decline")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("card_issuer_decline")] -#endif - public PaymentEvaluationInsightsCardIssuerDecline CardIssuerDecline { get; set; } - /// /// The timestamp when the evaluation was performed. /// diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsCardIssuerDecline.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsCardIssuerDecline.cs deleted file mode 100644 index 9cdaf744a2..0000000000 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationInsightsCardIssuerDecline.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Radar -{ - using Newtonsoft.Json; -#if NET6_0_OR_GREATER - using STJS = System.Text.Json.Serialization; -#endif - - public class PaymentEvaluationInsightsCardIssuerDecline : StripeEntity - { - /// - /// Stripe Radar's evaluation of the likelihood that the payment will be declined by the - /// card issuer. Scores range from 0 to 100, with higher values indicating a higher - /// likelihood of decline. - /// - [JsonProperty("model_score")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("model_score")] -#endif - public decimal ModelScore { get; set; } - - /// - /// Recommended action based on the model score. Possible values are block and - /// continue. - /// One of: block, or continue. - /// - [JsonProperty("recommended_action")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("recommended_action")] -#endif - public string RecommendedAction { get; set; } - } -} diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index 10e9d70b7f..47f95f2cbb 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -335,6 +335,12 @@ public SetupAttempt LatestAttempt #endif public bool Livemode { get; set; } + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SetupIntentManagedPayments ManagedPayments { get; set; } + #region Expandable Mandate /// diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs new file mode 100644 index 0000000000..f33ab74909 --- /dev/null +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 SetupIntentManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs index 020d310c76..f46a41b211 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedToken.cs @@ -69,8 +69,8 @@ public class GrantedToken : StripeEntity, IHasId, IHasObject public string DeactivatedReason { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscount.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscount.cs index 414ac4a2da..41da186a5a 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscount.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public SubscriptionSchedulePhaseDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettings.cs new file mode 100644 index 0000000000..5439757b47 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 SubscriptionSchedulePhaseDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or phase_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..933b2aa8e9 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..f2aa3ab8ad --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 SubscriptionSchedulePhaseDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscount.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscount.cs index 43012f6423..391243685f 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscount.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscount.cs @@ -143,5 +143,11 @@ public PromotionCode PromotionCode #endif internal ExpandableField InternalPromotionCode { get; set; } #endregion + + [JsonProperty("settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("settings")] +#endif + public SubscriptionSchedulePhaseItemDiscountSettings Settings { get; set; } } } diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettings.cs new file mode 100644 index 0000000000..2cef1cca5e --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettings.cs @@ -0,0 +1,28 @@ +// 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 SubscriptionSchedulePhaseItemDiscountSettings : StripeEntity + { + [JsonProperty("service_period_anchor_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("service_period_anchor_config")] +#endif + public SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig ServicePeriodAnchorConfig { get; set; } + + /// + /// The start date of the discount's service period when applying a coupon or promotion code + /// with a service period duration. + /// One of: current_period_end, current_period_start, or phase_start. + /// + [JsonProperty("start_date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("start_date")] +#endif + public string StartDate { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig.cs new file mode 100644 index 0000000000..984dc257ad --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig.cs @@ -0,0 +1,27 @@ +// 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 SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfig : StripeEntity + { + [JsonProperty("custom")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom")] +#endif + public SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom Custom { get; set; } + + /// + /// The type of service period anchor config. + /// One of: custom, or inherit. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom.cs new file mode 100644 index 0000000000..db893cb818 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom.cs @@ -0,0 +1,56 @@ +// 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 SubscriptionSchedulePhaseItemDiscountSettingsServicePeriodAnchorConfigCustom : StripeEntity + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("day_of_month")] +#endif + public long DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("hour")] +#endif + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minute")] +#endif + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("month")] +#endif + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("second")] +#endif + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index 683967c450..df6e9a71eb 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -558,6 +558,17 @@ public Invoice LatestInvoice #endif public bool Livemode { get; set; } + /// + /// Settings for Managed Payments for this Subscription and resulting Invoices and PaymentIntents. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SubscriptionManagedPayments ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs new file mode 100644 index 0000000000..32d52db77d --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionManagedPayments.cs @@ -0,0 +1,22 @@ +// 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 SubscriptionManagedPayments : StripeEntity + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 55b799a2ef..72921093ba 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -32,10 +32,11 @@ public class SubscriptionPaymentSettings : StripeEntitycustomer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs index dc90703422..ea48e1b696 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.cs @@ -10,7 +10,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// One of: BE, DE, ES, FR, IE, or NL. /// [JsonProperty("country")] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs index 87a1b0884c..7ecc07c087 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions.cs @@ -42,8 +42,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptions : public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs index b27af1c020..c9068b71e6 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettings.cs @@ -9,7 +9,7 @@ namespace Stripe public class SubscriptionTrialSettings : StripeEntity { /// - /// Defines how a subscription behaves when a free trial ends. + /// Defines how a subscription behaves when a trial ends. /// [JsonProperty("end_behavior")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettingsEndBehavior.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettingsEndBehavior.cs index 3f2c71d627..a739d76868 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettingsEndBehavior.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionTrialSettingsEndBehavior.cs @@ -8,6 +8,17 @@ namespace Stripe public class SubscriptionTrialSettingsEndBehavior : StripeEntity { + /// + /// Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not + /// set, the default is now. + /// One of: now, or unchanged. + /// + [JsonProperty("billing_cycle_anchor")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_cycle_anchor")] +#endif + public string BillingCycleAnchor { get; set; } + /// /// Indicates how the subscription should change when the trial ends if the user did not /// provide a payment method. diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs index edaecb508f..3ba4d89895 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs @@ -17,21 +17,21 @@ public class CalculationCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class CalculationCustomerDetailsTaxId : StripeEntitygb_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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs index c986b1ec4a..12aa3e9283 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs @@ -338,6 +338,12 @@ public class RegistrationCountryOptions : StripeEntity + { + /// + /// Type of registration in country. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs index 6b8bd9f7d8..dff8975bb7 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs @@ -17,21 +17,21 @@ public class TransactionCustomerDetailsTaxId : StripeEntityau_arn, in_gst, no_vat, no_voec, za_vat, /// ch_vat, mx_rfc, sg_uen, ru_inn, ru_kpp, ca_bn, /// hk_br, es_cif, pl_nip, tw_vat, th_vat, jp_cn, - /// jp_rn, jp_trn, li_uid, li_vat, my_itn, us_ein, - /// kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, ca_pst_mb, - /// ca_pst_sk, my_sst, sg_gst, ae_trn, cl_tin, - /// sa_vat, id_npwp, my_frp, il_vat, ge_vat, - /// ua_vat, is_vat, bg_uic, hu_tin, si_tin, - /// ke_pin, tr_tin, eg_tin, ph_tin, al_tin, - /// bh_vat, kz_bin, ng_tin, om_vat, de_stn, - /// ch_uid, tz_vat, uz_vat, uz_tin, md_vat, - /// ma_vat, by_tin, ao_tin, bs_tin, bb_tin, - /// cd_nif, mr_nif, me_pib, zw_tin, ba_tin, - /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, - /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, - /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// jp_rn, jp_trn, li_uid, li_vat, lk_vat, my_itn, + /// us_ein, kr_brn, ca_qst, ca_gst_hst, ca_pst_bc, + /// ca_pst_mb, ca_pst_sk, my_sst, sg_gst, ae_trn, + /// cl_tin, sa_vat, id_npwp, my_frp, il_vat, + /// ge_vat, ua_vat, is_vat, bg_uic, hu_tin, + /// si_tin, ke_pin, tr_tin, eg_tin, ph_tin, + /// al_tin, bh_vat, kz_bin, ng_tin, om_vat, + /// de_stn, ch_uid, tz_vat, uz_vat, uz_tin, + /// md_vat, ma_vat, by_tin, ao_tin, bs_tin, + /// bb_tin, cd_nif, mr_nif, me_pib, zw_tin, + /// ba_tin, gn_nif, mk_vat, sr_fin, sn_ninea, + /// am_tin, np_pan, tj_tin, ug_tin, zm_tin, + /// kh_tin, aw_tin, az_tin, bd_bin, bj_ifu, + /// et_tin, kg_tin, la_tin, cm_niu, cv_nif, + /// bf_ifu, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -44,16 +44,17 @@ public class TransactionCustomerDetailsTaxId : StripeEntitygb_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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs index f769771c8b..c69466cc27 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxId.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs @@ -153,16 +153,16 @@ public Customer Customer /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. Note that - /// some legacy tax IDs have type unknown. + /// lk_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, pl_nip, 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. Note that some legacy tax IDs have type unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -175,16 +175,17 @@ public Customer Customer /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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, unknown, 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 diff --git a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs index 4cc274b23a..7b473e4a93 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs @@ -44,6 +44,12 @@ public class Configuration : StripeEntity, IHasId, IHasObject #endif public ConfigurationBbposWiseposE BbposWiseposE { get; set; } + [JsonProperty("cellular")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cellular")] +#endif + public ConfigurationCellular Cellular { get; set; } + /// /// Whether this object is deleted or not. /// @@ -106,6 +112,12 @@ public class Configuration : StripeEntity, IHasId, IHasObject #endif public ConfigurationStripeS700 StripeS700 { get; set; } + [JsonProperty("stripe_s710")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_s710")] +#endif + public ConfigurationStripeS710 StripeS710 { get; set; } + [JsonProperty("tipping")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("tipping")] diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationCellular.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationCellular.cs new file mode 100644 index 0000000000..533fe3a755 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationCellular.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationCellular : StripeEntity + { + /// + /// Whether a cellular-capable reader can connect to the internet over cellular. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationStripeS710.cs b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationStripeS710.cs new file mode 100644 index 0000000000..c5a3893089 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Configurations/ConfigurationStripeS710.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + +#if NET6_0_OR_GREATER + [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] +#endif + public class ConfigurationStripeS710 : StripeEntity + { + #region Expandable Splashscreen + + /// + /// (ID of the File) + /// A File ID representing an image to display on the reader. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public string SplashscreenId + { + get => this.InternalSplashscreen?.Id; + set => this.InternalSplashscreen = SetExpandableFieldId(value, this.InternalSplashscreen); + } + + /// + /// (Expanded) + /// A File ID representing an image to display on the reader. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public File Splashscreen + { + get => this.InternalSplashscreen?.ExpandedObject; + set => this.InternalSplashscreen = SetExpandableFieldObject(value, this.InternalSplashscreen); + } + + [JsonProperty("splashscreen")] + [JsonConverter(typeof(ExpandableFieldConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("splashscreen")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] +#endif + internal ExpandableField InternalSplashscreen { get; set; } + #endregion + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs index bdcf24bf00..fc9fc8e303 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/Reader.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/Reader.cs @@ -70,8 +70,9 @@ public class Reader : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// Device type of the reader. /// One of: bbpos_chipper2x, bbpos_wisepad3, bbpos_wisepos_e, - /// mobile_phone_reader, simulated_stripe_s700, simulated_wisepos_e, - /// stripe_m2, stripe_s700, or verifone_P400. + /// mobile_phone_reader, simulated_stripe_s700, simulated_stripe_s710, + /// simulated_wisepos_e, stripe_m2, stripe_s700, stripe_s710, or + /// verifone_P400. /// [JsonProperty("device_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/TransitBalances/TransitBalance.cs b/src/Stripe.net/Entities/TransitBalances/TransitBalance.cs index 05e6d6982f..e0c847e205 100644 --- a/src/Stripe.net/Entities/TransitBalances/TransitBalance.cs +++ b/src/Stripe.net/Entities/TransitBalances/TransitBalance.cs @@ -51,8 +51,8 @@ public class TransitBalance : StripeEntity, IHasObject public string Currency { get; set; } /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. /// [JsonProperty("livemode")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs index 77ac3672ef..ec859934ea 100644 --- a/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/BillSettingVersions/BillSettingVersion.cs @@ -7,6 +7,11 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Bill Setting Version is a specific configuration of a BillSetting at a point in time. + /// Bill Setting Versions enable you to track changes to bill generation and invoice + /// settings over time and manage which version is active for new billing operations. + /// public class BillSettingVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs index 284b362cb2..57ac64309e 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/Cadence.cs @@ -8,6 +8,10 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Cadence represents a billing schedule applied to a customer, defining when and how + /// often to generate invoices, such as on monthly or annual billing cycle. + /// public class Cadence : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs index 0a1770f736..079d1f51e7 100644 --- a/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/CollectionSettingVersions/CollectionSettingVersion.cs @@ -7,6 +7,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Collection Setting Version is a specific configuration of a CollectionSetting at a + /// point in time. Collection Setting Versions enable you to track changes to payment + /// collection settings over time and manage which version is active for new billing + /// operations. + /// public class CollectionSettingVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentAction.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentAction.cs index b83d3abce6..53d4bc34de 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentAction.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentAction.cs @@ -7,6 +7,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Billing Intent Action represents a specific operation within a Billing Intent, such as + /// subscribing to a Pricing Plan, modifying a subscription's quantity, or deactivating + /// service. Each action has a specific type and associated details that define what change + /// will be made when the Intent is committed. + /// public class IntentAction : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetails.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetails.cs index c343883a9e..37da2ead1b 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetails.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentActionDeactivatePricingPlanSubscriptionDetails : StripeEntity { /// - /// Allows users to override the partial period behavior. + /// Configurations for overriding behaviors related to the subscription. /// [JsonProperty("overrides")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverrides.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverrides.cs index 0ccbd103de..4b740342c3 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverrides.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverrides.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentActionDeactivatePricingPlanSubscriptionDetailsOverrides : StripeEntity { /// - /// Override for the partial period behavior. + /// Configurations for behaviors when the action takes effect during the service period. /// [JsonProperty("partial_period_behaviors")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs index ba0a52a505..8d19bd0f58 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior : StripeEntity { /// - /// Type of the partial period behavior override. + /// The type of behavior to override. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -18,7 +18,8 @@ public class IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartia public string Type { get; set; } /// - /// Override for the license fee. + /// Overrides the behavior for license fee components when the action takes effect during + /// the service period. /// [JsonProperty("license_fee")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs index a054e8bbfe..bd4cc1aebf 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs @@ -10,7 +10,7 @@ public class IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartia { /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is deactivating. + /// license fee when the user is deactivating. If not specified, defaults to none. /// One of: none, or prorated. /// [JsonProperty("credit_proration_behavior")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetails.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetails.cs index 0c42e8f35e..f9bf7ac682 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetails.cs @@ -37,7 +37,7 @@ public class IntentActionModifyPricingPlanSubscriptionDetails : StripeEntity - /// Allows users to override the partial period behavior. + /// Configurations for overriding behaviors related to the subscription. /// [JsonProperty("overrides")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverrides.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverrides.cs index 3c6502484e..9813a0b510 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverrides.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverrides.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentActionModifyPricingPlanSubscriptionDetailsOverrides : StripeEntity { /// - /// Override for the partial period behavior. + /// Configurations for behaviors when the action takes effect during the service period. /// [JsonProperty("partial_period_behaviors")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs index dfae45b0ce..b1cd38f7b0 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior : StripeEntity { /// - /// Type of the partial period behavior override. + /// The type of behavior to override. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -18,7 +18,8 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPer public string Type { get; set; } /// - /// Override for the license fee. + /// Overrides the behavior for license fee components when the action takes effect during + /// the service period. /// [JsonProperty("license_fee")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs index ffdd98e847..95cf0345a8 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs @@ -10,7 +10,8 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPer { /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is upgrading. + /// license fee when the user modifies the subscription. If not specified, defaults to + /// prorated. /// One of: none, or prorated. /// [JsonProperty("credit_proration_behavior")] @@ -21,7 +22,8 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPer /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is downgrading. + /// license fee when the user modifies the subscription. If not specified, defaults to + /// prorated. /// One of: none, or prorated. /// [JsonProperty("debit_proration_behavior")] diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetails.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetails.cs index 7191669d1f..bc9bb7b180 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetails.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetails.cs @@ -30,7 +30,7 @@ public class IntentActionSubscribePricingPlanSubscriptionDetails : StripeEntity< public Dictionary Metadata { get; set; } /// - /// Allows users to override the partial period behavior. + /// Configurations for overriding behaviors related to the subscription. /// [JsonProperty("overrides")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverrides.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverrides.cs index 01497d909d..8eb0a1a197 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverrides.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverrides.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentActionSubscribePricingPlanSubscriptionDetailsOverrides : StripeEntity { /// - /// Override for the partial period behavior. + /// Configurations for behaviors when the action takes effect during the service period. /// [JsonProperty("partial_period_behaviors")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs index 9766fc0cf5..0381b6c918 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior : StripeEntity { /// - /// Type of the partial period behavior override. + /// The type of behavior to override. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -18,7 +18,8 @@ public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartial public string Type { get; set; } /// - /// Override for the license fee. + /// Overrides the behavior for license fee components when the action takes effect during + /// the service period. /// [JsonProperty("license_fee")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs index 39e9f41136..10277ac131 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee.cs @@ -10,7 +10,7 @@ public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartial { /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is subscribing. + /// license fee when the user is subscribing. If not specified, defaults to prorated. /// One of: none, or prorated. /// [JsonProperty("debit_proration_behavior")] diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs b/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs index 7aed017313..a2ffd07a60 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/Intent.cs @@ -7,6 +7,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Billing Intent represents a proposed change to a customer's billing configuration, + /// such as subscribing to a new service, modifying an existing subscription, or canceling + /// service. Intents follow a draft-reserve-commit workflow where they can be previewed + /// before committing, allowing you to see the billing impact before changes take effect. + /// public class Intent : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFeeSubscriptions/LicenseFeeSubscription.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFeeSubscriptions/LicenseFeeSubscription.cs index 8560f1c4b7..6049b91fdf 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFeeSubscriptions/LicenseFeeSubscription.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFeeSubscriptions/LicenseFeeSubscription.cs @@ -8,6 +8,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A License Fee Subscription represents a customer's subscription to a License Fee at a + /// specified quantity. It tracks the number of units (such as seats or licenses) the + /// customer has subscribed to and bills them according to the service interval defined in + /// the License Fee and the Billing Cadence. + /// public class LicenseFeeSubscription : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs index e49d66fc7d..cdda975b0f 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFeeVersions/LicenseFeeVersion.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A License Fee Version represents a specific configuration of a License Fee at a point in + /// time. Versions are created automatically when you update the pricing structure of a + /// License Fee, allowing you to track changes and manage which version is active for new + /// subscriptions. Each version maintains the pricing details including unit amounts and + /// tiers. + /// public class LicenseFeeVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs index 4c6d498e22..79fa124450 100644 --- a/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs +++ b/src/Stripe.net/Entities/V2/Billing/LicenseFees/LicenseFee.cs @@ -8,6 +8,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A License Fee represents a versioned recurring charge for a Licensed Item, typically + /// used for seat-based or quantity-based pricing. Each License Fee defines the pricing + /// structure (flat unit amount or tiered pricing) and service interval. After creating a + /// License Fee, you can subscribe customers to it by creating a License Fee Subscription. + /// public class LicenseFee : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs index 8b5037d4fc..8ec3983c76 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs @@ -7,6 +7,11 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Meter Event Adjustment is used to cancel or modify previously recorded meter events. + /// Meter Event Adjustments allow you to correct billing data by canceling individual events + /// or event ranges, with tracking of adjustment status and creation time. + /// public class MeterEventAdjustment : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs index f12f3d8d27..7b88ae971f 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventSessions/MeterEventSession.cs @@ -7,6 +7,11 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Meter Event Session is an authentication session for the high-throughput meter event + /// API. Meter Event Sessions provide temporary authentication tokens with expiration times, + /// enabling secure and efficient bulk submission of usage events. + /// public class MeterEventSession : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs index d372b43532..39c116ceda 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs @@ -9,7 +9,9 @@ namespace Stripe.V2.Billing #endif /// - /// Fix me empty_doc_string. + /// A Meter Event is a usage record that captures billable activity for usage-based billing. + /// Meter Events contain an event name, timestamp, and payload with customer mapping and + /// usage value, enabling accurate usage tracking and billing. /// public class MeterEvent : StripeEntity, IHasObject { diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanComponents/PricingPlanComponent.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanComponents/PricingPlanComponent.cs index 0d5fce05f1..1829f15f74 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanComponents/PricingPlanComponent.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanComponents/PricingPlanComponent.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Pricing Plan Component represents an individual billing element within a Pricing Plan. + /// Components can be Rate Cards for usage-based charges, License Fees for recurring fixed + /// charges, or Service Actions for recurring credit grants. Each component is associated + /// with a specific version of the Pricing Plan and defines one aspect of how customers are + /// billed. + /// public class PricingPlanComponent : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscription.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscription.cs index 069ad240f2..e8cb13bd56 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscription.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscription.cs @@ -8,6 +8,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Pricing Plan Subscription represents a customer's active subscription to a Pricing + /// Plan. It tracks both the servicing status (whether the customer is receiving service) + /// and collection status (whether payments are current). Subscriptions are created through + /// Billing Intents and bill according to the associated Billing Cadence. + /// public class PricingPlanSubscription : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs index d876a2537d..cad0a5d04c 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanVersions/PricingPlanVersion.cs @@ -7,6 +7,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Pricing Plan Version represents a specific configuration of a Pricing Plan at a point + /// in time. Versions are created automatically when you update a Pricing Plan, allowing you + /// to track changes and manage which version is active for new subscriptions. Each version + /// has a start date and optionally an end date if it has been superseded. + /// public class PricingPlanVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs index 43893a74b7..d1a0ef8c1c 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlans/PricingPlan.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Pricing Plan represents a bundled collection of billing components that define how + /// customers are charged. Each plan can include multiple components such as Rate Cards for + /// usage-based pricing, License Fees for recurring charges, and Service Actions for + /// recurring credit grants. After creating a Pricing Plan, you can subscribe customers to + /// it by creating a Pricing Plan Subscription. + /// public class PricingPlan : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs index 450ef6fe4b..eecea80974 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCardRates/RateCardRate.cs @@ -8,6 +8,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Rate Card Rate represents a single usage-based price within a Rate Card. Each rate + /// binds to one Metered Item and defines the pricing structure for that item, including + /// either a flat unit amount or tiered pricing. Rates support features like graduated or + /// volume-based tiering, quantity transformations, and custom pricing units. + /// public class RateCardRate : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscription.cs b/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscription.cs index 70e154da1d..9cf7fc7928 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscription.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCardSubscriptions/RateCardSubscription.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Rate Card Subscription represents a customer's subscription to a Rate Card's + /// usage-based pricing. It tracks the servicing status (whether usage is being measured) + /// and collection status (whether payments are current). Subscriptions bill according to + /// the service interval defined in the Rate Card and are collected on the associated + /// Billing Cadence. + /// public class RateCardSubscription : StripeEntity, IHasId, IHasMetadata, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/RateCardVersions/RateCardVersion.cs b/src/Stripe.net/Entities/V2/Billing/RateCardVersions/RateCardVersion.cs index 4670e4f59e..6efff0b471 100644 --- a/src/Stripe.net/Entities/V2/Billing/RateCardVersions/RateCardVersion.cs +++ b/src/Stripe.net/Entities/V2/Billing/RateCardVersions/RateCardVersion.cs @@ -7,6 +7,12 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// A Rate Card Version represents a specific configuration of a Rate Card at a point in + /// time. Versions are created automatically when you add or modify rates on a Rate Card, + /// allowing you to track changes and manage which version is active for new subscriptions. + /// Each version maintains a record of when it was created. + /// public class RateCardVersion : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceAction.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceAction.cs index a645fc6c91..a11f479112 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceAction.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceAction.cs @@ -7,6 +7,10 @@ namespace Stripe.V2.Billing using STJS = System.Text.Json.Serialization; #endif + /// + /// Service Actions represent actions applied during service assessment periods, such as + /// granting credits to a customer. + /// public class ServiceAction : StripeEntity, IHasId, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs index 806bbfff74..9c967aa894 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs @@ -10,7 +10,8 @@ public class AccountLinkUseCase : StripeEntity { /// /// Open Enum. The type of Account Link the user is requesting. - /// One of: account_onboarding, or account_update. + /// One of: account_onboarding, account_update, recipient_onboarding, + /// or recipient_update. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -37,5 +38,25 @@ public class AccountLinkUseCase : StripeEntity [STJS.JsonPropertyName("account_update")] #endif public AccountLinkUseCaseAccountUpdate AccountUpdate { get; set; } + + /// + /// Hash containing configuration options for an Account Link object that onboards a new + /// recipient. + /// + [JsonProperty("recipient_onboarding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient_onboarding")] +#endif + public AccountLinkUseCaseRecipientOnboarding RecipientOnboarding { get; set; } + + /// + /// Hash containing configuration options for an Account Link that updates an existing + /// recipient. + /// + [JsonProperty("recipient_update")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient_update")] +#endif + public AccountLinkUseCaseRecipientUpdate RecipientUpdate { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientOnboarding.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientOnboarding.cs new file mode 100644 index 0000000000..f32825d89e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientOnboarding.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseRecipientOnboarding : StripeEntity + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkUseCaseRecipientOnboardingCollectionOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/core/account can be configured to enable certain functionality. The + /// configuration param targets the v2/core/account_link to collect information for the + /// specified v2/core/account configuration/s. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the AccountLink is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new AccountLink + /// with the same parameters used to create the original AccountLink, then redirect the user + /// to the new AccountLink's URL so they can continue the flow. If a new AccountLink cannot + /// be generated or the redirect fails you should display a useful error to the user. Please + /// make sure to implement authentication before redirecting the user in case this URL is + /// leaked to a third party. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientOnboardingCollectionOptions.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientOnboardingCollectionOptions.cs new file mode 100644 index 0000000000..afc9bef094 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientOnboardingCollectionOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseRecipientOnboardingCollectionOptions : StripeEntity + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don't specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientUpdate.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientUpdate.cs new file mode 100644 index 0000000000..d18eed85bf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientUpdate.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseRecipientUpdate : StripeEntity + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Update + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkUseCaseRecipientUpdateCollectionOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/account can be configured to enable certain functionality. The + /// configuration param targets the v2/account_link to collect information for the specified + /// v2/account configuration/s. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the Account Link is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new Account Link + /// with the same parameters used to create the original Account Link, then redirect the + /// user to the new Account Link URL so they can continue the flow. Make sure to + /// authenticate the user before redirecting to the new Account Link, in case the URL leaks + /// to a third party. If a new Account Link can't be generated, or if the redirect fails, + /// you should display a useful error to the user. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientUpdateCollectionOptions.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientUpdateCollectionOptions.cs new file mode 100644 index 0000000000..53cfe0be0b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseRecipientUpdateCollectionOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkUseCaseRecipientUpdateCollectionOptions : StripeEntity + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). The default value is currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs index 4db0ea539b..2b48e53483 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs @@ -9,9 +9,15 @@ namespace Stripe.V2.Core #endif /// - /// A V2 Account is a representation of a company or individual that a Stripe user does - /// business with. Accounts contain the contact details, Legal Entity information, and - /// configuration required to enable the Account for use across Stripe products. + /// An Account v2 object represents a company, individual, or other entity that interacts + /// with a platform on Stripe. It contains both identifying information and properties that + /// control its behavior and functionality. An Account can have one or more configurations + /// that enable sets of related features, such as allowing it to act as a merchant or + /// customer. The Accounts v2 API supports both the Global Payouts preview feature and the + /// Connect-Billing integration preview feature. However, a particular Account can only + /// access one of them. The Connect-Billing integration preview feature allows an Account v2 + /// to pay subscription fees to a platform. An Account v1 required a separate Customer + /// object to pay subscription fees. /// public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject { diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs index 1fbe049046..f2d34c247a 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchant.cs @@ -93,6 +93,15 @@ public class AccountConfigurationMerchant : StripeEntity + /// Settings for Smart Disputes automatic response feature. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountConfigurationMerchantSmartDisputes SmartDisputes { get; set; } + /// /// Statement descriptor. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputes.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputes.cs new file mode 100644 index 0000000000..a88149d62e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputes.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSmartDisputes : StripeEntity + { + /// + /// Settings for Smart Disputes auto_respond. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountConfigurationMerchantSmartDisputesAutoRespond AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputesAutoRespond.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputesAutoRespond.cs new file mode 100644 index 0000000000..e8c2b60ac6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSmartDisputesAutoRespond.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationMerchantSmartDisputesAutoRespond : StripeEntity + { + /// + /// The preference for automatic dispute responses. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + + /// + /// The effective value for automatic dispute responses. + /// One of: off, or on. + /// + [JsonProperty("value")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("value")] +#endif + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs index 0d201a098a..4b003956e4 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs @@ -20,16 +20,18 @@ public class AccountConfigurationRecipientDefaultOutboundDestination : StripeEnt /// /// Closed Enum. The payout method type of the default outbound destination. /// One of: ae_bank_account, ag_bank_account, al_bank_account, - /// am_bank_account, at_bank_account, au_bank_account, - /// ba_bank_account, be_bank_account, bg_bank_account, - /// bh_bank_account, bj_bank_account, bn_bank_account, - /// bs_bank_account, bw_bank_account, card, ca_bank_account, - /// ch_bank_account, ci_bank_account, crypto_wallet, - /// cy_bank_account, cz_bank_account, de_bank_account, - /// dk_bank_account, dz_bank_account, ec_bank_account, - /// ee_bank_account, es_bank_account, et_bank_account, - /// fi_bank_account, fr_bank_account, gb_bank_account, - /// gm_bank_account, gr_bank_account, gy_bank_account, + /// am_bank_account, ar_bank_account, at_bank_account, + /// au_bank_account, ba_bank_account, be_bank_account, + /// bg_bank_account, bh_bank_account, bj_bank_account, + /// bn_bank_account, bs_bank_account, bt_bank_account, + /// bw_bank_account, card, ca_bank_account, ch_bank_account, + /// ci_bank_account, co_bank_account, crypto_wallet, + /// cr_bank_account, cy_bank_account, cz_bank_account, + /// de_bank_account, dk_bank_account, do_bank_account, + /// dz_bank_account, ec_bank_account, ee_bank_account, + /// es_bank_account, et_bank_account, fi_bank_account, + /// fr_bank_account, gb_bank_account, gm_bank_account, + /// gr_bank_account, gt_bank_account, gy_bank_account, /// hk_bank_account, hr_bank_account, hu_bank_account, /// id_bank_account, ie_bank_account, il_bank_account, /// in_bank_account, is_bank_account, it_bank_account, @@ -37,18 +39,20 @@ public class AccountConfigurationRecipientDefaultOutboundDestination : StripeEnt /// kh_bank_account, kw_bank_account, lc_bank_account, /// li_bank_account, lk_bank_account, lt_bank_account, /// lu_bank_account, lv_bank_account, ma_bank_account, - /// mc_bank_account, mg_bank_account, mn_bank_account, + /// mc_bank_account, md_bank_account, mg_bank_account, + /// mk_bank_account, mn_bank_account, mo_bank_account, /// mt_bank_account, mu_bank_account, mx_bank_account, - /// my_bank_account, na_bank_account, nl_bank_account, - /// no_bank_account, nz_bank_account, om_bank_account, - /// pa_bank_account, ph_bank_account, pl_bank_account, + /// my_bank_account, mz_bank_account, na_bank_account, + /// nl_bank_account, no_bank_account, nz_bank_account, + /// om_bank_account, pa_bank_account, pe_bank_account, + /// ph_bank_account, pk_bank_account, pl_bank_account, /// pt_bank_account, qa_bank_account, ro_bank_account, /// rs_bank_account, rw_bank_account, se_bank_account, /// sg_bank_account, si_bank_account, sk_bank_account, /// sn_bank_account, sv_bank_account, th_bank_account, /// tn_bank_account, tr_bank_account, tt_bank_account, - /// tz_bank_account, us_bank_account, vn_bank_account, or - /// za_bank_account. + /// tw_bank_account, tz_bank_account, us_bank_account, + /// uz_bank_account, vn_bank_account, or za_bank_account. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs index 189ab1daf4..0c4914dcd3 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs @@ -8,6 +8,15 @@ namespace Stripe.V2.Core public class AccountConfigurationStorerCapabilities : StripeEntity { + /// + /// Hash containing capabilities related to consumer financial accounts. + /// + [JsonProperty("consumer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("consumer")] +#endif + public AccountConfigurationStorerCapabilitiesConsumer Consumer { get; set; } + /// /// Can provision a financial address to credit/debit a FinancialAccount. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumer.cs new file mode 100644 index 0000000000..14ed020fb1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumer.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationStorerCapabilitiesConsumer : StripeEntity + { + /// + /// Can hold storage-type funds on Stripe consumer FAs in USD. + /// + [JsonProperty("holds_currencies")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("holds_currencies")] +#endif + public AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies HoldsCurrencies { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies.cs new file mode 100644 index 0000000000..d3a2540410 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies : StripeEntity + { + /// + /// Can hold storage-type funds on Stripe consumer FAs in USD. + /// + [JsonProperty("usd")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("usd")] +#endif + public AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd Usd { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd.cs new file mode 100644 index 0000000000..332b4959f2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd : StripeEntity + { + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status_details")] +#endif + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail.cs new file mode 100644 index 0000000000..10f2951488 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("code")] +#endif + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("resolution")] +#endif + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs index bd756893c1..395f70c5c9 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs @@ -21,10 +21,11 @@ public class AccountFutureRequirementsEntryImpactRestrictsCapability : StripeEnt /// commercial.cross_river_bank.charge_card, /// commercial.cross_river_bank.spend_card, commercial.lead.prepaid_card, /// commercial.stripe.charge_card, commercial.stripe.prepaid_card, - /// crypto, eps_payments, financial_addresses.bank_accounts, - /// fpx_payments, gb_bank_transfer_payments, grabpay_payments, - /// holds_currencies.eur, holds_currencies.gbp, holds_currencies.usd, - /// ideal_payments, inbound_transfers.financial_accounts, jcb_payments, + /// consumer.holds_currencies.usd, crypto, eps_payments, + /// financial_addresses.bank_accounts, fpx_payments, + /// gb_bank_transfer_payments, grabpay_payments, holds_currencies.eur, + /// holds_currencies.gbp, holds_currencies.usd, ideal_payments, + /// inbound_transfers.financial_accounts, jcb_payments, /// jp_bank_transfer_payments, kakao_pay_payments, klarna_payments, /// konbini_payments, kr_card_payments, link_payments, /// mobilepay_payments, multibanco_payments, mx_bank_transfer_payments, diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs index a1e471c7ca..aeb2cf6bd9 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs @@ -21,10 +21,11 @@ public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntitycommercial.cross_river_bank.charge_card, /// commercial.cross_river_bank.spend_card, commercial.lead.prepaid_card, /// commercial.stripe.charge_card, commercial.stripe.prepaid_card, - /// crypto, eps_payments, financial_addresses.bank_accounts, - /// fpx_payments, gb_bank_transfer_payments, grabpay_payments, - /// holds_currencies.eur, holds_currencies.gbp, holds_currencies.usd, - /// ideal_payments, inbound_transfers.financial_accounts, jcb_payments, + /// consumer.holds_currencies.usd, crypto, eps_payments, + /// financial_addresses.bank_accounts, fpx_payments, + /// gb_bank_transfer_payments, grabpay_payments, holds_currencies.eur, + /// holds_currencies.gbp, holds_currencies.usd, ideal_payments, + /// inbound_transfers.financial_accounts, jcb_payments, /// jp_bank_transfer_payments, kakao_pay_payments, klarna_payments, /// konbini_payments, kr_card_payments, link_payments, /// mobilepay_payments, multibanco_payments, mx_bank_transfer_payments, diff --git a/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs b/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs index 2824831239..323bb2b38d 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressCreditSimulations/FinancialAddressCreditSimulation.cs @@ -6,6 +6,10 @@ namespace Stripe.V2 using STJS = System.Text.Json.Serialization; #endif + /// + /// Credit Simulations represent simulated credit transactions applied to financial + /// addresses for testing purposes. + /// public class FinancialAddressCreditSimulation : StripeEntity, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs index bf1fa3f38e..4c2549ef88 100644 --- a/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs +++ b/src/Stripe.net/Entities/V2/FinancialAddressGeneratedMicrodeposits/FinancialAddressGeneratedMicrodeposits.cs @@ -7,6 +7,10 @@ namespace Stripe.V2 using STJS = System.Text.Json.Serialization; #endif + /// + /// Generated Microdeposits represent verification deposits sent to a financial address for + /// ownership verification, containing the deposited amounts and status. + /// public class FinancialAddressGeneratedMicrodeposits : StripeEntity, IHasObject { /// diff --git a/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKey.cs b/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKey.cs index 878c846ad6..8f8b7fb1e2 100644 --- a/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKey.cs +++ b/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKey.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Iam #endif /// - /// An API key. + /// An API key is used to authenticate API requests. /// public class ApiKey : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs index 312e1e7c5b..aa47b8e696 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountStorage.cs @@ -9,6 +9,17 @@ namespace Stripe.V2.MoneyManagement public class FinancialAccountStorage : StripeEntity { + /// + /// The usage type for funds in this FinancialAccount. Can be used to specify that the funds + /// are for Consumer activity. + /// One of: business, or consumer. + /// + [JsonProperty("funds_usage_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("funds_usage_type")] +#endif + public string FundsUsageType { get; set; } + /// /// The currencies that this FinancialAccount can hold. /// diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs index f058cde6b7..3679eba592 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddress.cs @@ -8,8 +8,8 @@ namespace Stripe.V2.MoneyManagement #endif /// - /// A FinancialAddress contains information needed to transfer money to a Financial Account. - /// A Financial Account can have more than one Financial Address. + /// A Financial Address contains information needed to transfer money to a Financial + /// Account. A Financial Account can have more than one Financial Address. /// public class FinancialAddress : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs index ef3cb7a891..ab070b24a1 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs @@ -131,6 +131,15 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada #endif public string OutboundPaymentQuote { get; set; } + /// + /// The purpose of the OutboundPayment. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + /// /// A link to the Stripe-hosted receipt for this OutboundPayment. The receipt link remains /// active for 60 days from the OutboundPayment creation date. After this period, the link @@ -217,7 +226,7 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada /// /// A unique identifier that can be used to track this OutboundPayment with recipient bank. - /// Banks might call this a “reference number” or something similar. + /// Banks might call this a "reference number" or something similar. /// [JsonProperty("trace_id")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs index a3df1cf075..944cd67379 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs @@ -198,7 +198,7 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta /// /// A unique identifier that can be used to track this OutboundTransfer with recipient bank. - /// Banks might call this a “reference number” or something similar. + /// Banks might call this a "reference number" or something similar. /// [JsonProperty("trace_id")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs index d154944360..0d6a07e060 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutMethods/PayoutMethodBankAccount.cs @@ -41,6 +41,15 @@ public class PayoutMethodBankAccount : StripeEntity #endif public string BankName { get; set; } + /// + /// The branch number of the bank account, if present. + /// + [JsonProperty("branch_number")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("branch_number")] +#endif + public string BranchNumber { get; set; } + /// /// The country code of the bank account. /// @@ -94,5 +103,14 @@ public class PayoutMethodBankAccount : StripeEntity [STJS.JsonPropertyName("supported_currencies")] #endif public List SupportedCurrencies { get; set; } + + /// + /// The swift code of the bank or financial institution. + /// + [JsonProperty("swift_code")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("swift_code")] +#endif + public string SwiftCode { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs index 083dc548a3..f51e37dc7e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetails.cs @@ -12,24 +12,25 @@ public class TransactionEntryTransactionDetails : StripeEntityadjustment, advance, anticipation_repayment, - /// balance_transfer, charge, charge_failure, - /// climate_order_purchase, climate_order_refund, + /// balance_transfer, climate_order_purchase, climate_order_refund, /// connect_collection_transfer, connect_reserved_funds, contribution, - /// currency_conversion, dispute_reversal, financing_paydown, - /// financing_paydown_reversal, inbound_transfer, - /// inbound_transfer_reversal, issuing_dispute, - /// issuing_dispute_fraud_liability_debit, issuing_dispute_provisional_credit, + /// currency_conversion, dispute, dispute_reversal, + /// financing_paydown, financing_paydown_reversal, inbound_payment, + /// inbound_payment_failure, inbound_transfer, + /// inbound_transfer_reversal, india_mdr_processing_fee, + /// issuing_dispute, issuing_dispute_fraud_liability_debit, + /// issuing_dispute_provisional_credit, /// issuing_dispute_provisional_credit_reversal, minimum_balance_hold, /// network_cost, obligation, outbound_payment, /// outbound_payment_reversal, outbound_transfer, /// outbound_transfer_reversal, partial_capture_reversal, - /// payment_network_reserved_funds, platform_earning, - /// platform_earning_refund, platform_fee, received_credit, - /// received_credit_reversal, received_debit, received_debit_reversal, - /// refund_failure, return, risk_reserved_funds, - /// stripe_balance_payment_debit, stripe_balance_payment_debit_reversal, - /// stripe_fee, stripe_fee_tax, transfer_reversal, or - /// unreconciled_customer_funds. + /// payment_method_passthrough_fee, payment_network_reserved_funds, + /// platform_earning, platform_earning_refund, platform_fee, + /// received_credit, received_credit_reversal, received_debit, + /// received_debit_reversal, refund, refund_failure, return, + /// risk_reserved_funds, stripe_balance_payment_debit, + /// stripe_balance_payment_debit_reversal, stripe_fee, stripe_fee_tax, + /// tax_withholding, transfer_reversal, or unreconciled_customer_funds. /// [JsonProperty("category")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs index dbbfa39240..b9a18228cd 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/Transaction.cs @@ -57,24 +57,25 @@ public class Transaction : StripeEntity, IHasId, IHasObject /// /// Open Enum. A descriptive category used to classify the Transaction. /// One of: adjustment, advance, anticipation_repayment, - /// balance_transfer, charge, charge_failure, - /// climate_order_purchase, climate_order_refund, + /// balance_transfer, climate_order_purchase, climate_order_refund, /// connect_collection_transfer, connect_reserved_funds, contribution, - /// currency_conversion, dispute_reversal, financing_paydown, - /// financing_paydown_reversal, inbound_transfer, - /// inbound_transfer_reversal, issuing_dispute, - /// issuing_dispute_fraud_liability_debit, issuing_dispute_provisional_credit, + /// currency_conversion, dispute, dispute_reversal, + /// financing_paydown, financing_paydown_reversal, inbound_payment, + /// inbound_payment_failure, inbound_transfer, + /// inbound_transfer_reversal, india_mdr_processing_fee, + /// issuing_dispute, issuing_dispute_fraud_liability_debit, + /// issuing_dispute_provisional_credit, /// issuing_dispute_provisional_credit_reversal, minimum_balance_hold, /// network_cost, obligation, outbound_payment, /// outbound_payment_reversal, outbound_transfer, /// outbound_transfer_reversal, partial_capture_reversal, - /// payment_network_reserved_funds, platform_earning, - /// platform_earning_refund, platform_fee, received_credit, - /// received_credit_reversal, received_debit, received_debit_reversal, - /// refund_failure, return, risk_reserved_funds, - /// stripe_balance_payment_debit, stripe_balance_payment_debit_reversal, - /// stripe_fee, stripe_fee_tax, transfer_reversal, or - /// unreconciled_customer_funds. + /// payment_method_passthrough_fee, payment_network_reserved_funds, + /// platform_earning, platform_earning_refund, platform_fee, + /// received_credit, received_credit_reversal, received_debit, + /// received_debit_reversal, refund, refund_failure, return, + /// risk_reserved_funds, stripe_balance_payment_debit, + /// stripe_balance_payment_debit_reversal, stripe_fee, stripe_fee_tax, + /// tax_withholding, transfer_reversal, or unreconciled_customer_funds. /// [JsonProperty("category")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs index d810399128..4fa3f8c1cc 100644 --- a/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs +++ b/src/Stripe.net/Entities/V2/Payments/OffSessionPayments/OffSessionPayment.cs @@ -9,7 +9,16 @@ namespace Stripe.V2.Payments #endif /// - /// OffSessionPayment resource. + /// An OffSessionPayment allows you to create your own payment flow for recurring and + /// unscheduled payments. In a single API request, you can initiate a payment and leverage + /// Stripe's AI-powered Smart + /// Retries to choose the best times to retry failures to increase the chance of a + /// successful payment. To properly interface with OffSessionPayments, we recommend setting + /// up an event destination to listen to webhook notifications, as the OffSessionPayment + /// will transition through its lifecycle asynchronously. Related guide: Off-Session Payments + /// API. /// public class OffSessionPayment : StripeEntity, IHasId, IHasMetadata, IHasObject { diff --git a/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent.cs b/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent.cs new file mode 100644 index 0000000000..de812d60cb --- /dev/null +++ b/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Occurs when a RateCardCustomPricingUnitOverageRate is created. + /// + public class V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent : V2.Core.Event + { + /// + /// Data for the v2.billing.rate_card_custom_pricing_unit_overage_rate.created event. + /// + [JsonProperty("data")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("data")] +#endif + + public V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_object")] +#endif + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Billing.RateCardCustomPricingUnitOverageRate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData.cs b/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData.cs new file mode 100644 index 0000000000..7c15dae229 --- /dev/null +++ b/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System; + using System.Threading.Tasks; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class V2BillingRateCardCustomPricingUnitOverageRateCreatedEventData : StripeEntity + { + /// + /// Timestamp of when the object was created. + /// + [JsonProperty("created")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("created")] +#endif + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The ID of the custom pricing unit this overage rate applies to. + /// + [JsonProperty("custom_pricing_unit")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("custom_pricing_unit")] +#endif + public string CustomPricingUnit { get; set; } + + /// + /// The ID of the RateCard which this custom pricing unit overage rate belongs to. + /// + [JsonProperty("rate_card")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rate_card")] +#endif + public string RateCard { get; set; } + + /// + /// The ID of the RateCard Version when the custom pricing unit overage rate was created. + /// + [JsonProperty("rate_card_version")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("rate_card_version")] +#endif + public string RateCardVersion { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification.cs b/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification.cs new file mode 100644 index 0000000000..0078706375 --- /dev/null +++ b/src/Stripe.net/Events/V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + /// + /// Occurs when a RateCardCustomPricingUnitOverageRate is created. + /// + public class V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_object")] +#endif + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Billing.RateCardCustomPricingUnitOverageRate FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs index 7abbad239e..a6ba709c4d 100644 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs @@ -11,7 +11,7 @@ public class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEve { /// /// Open Enum. The capability which had its status updated. - /// One of: financial_addressses.bank_accounts, + /// One of: consumer.holds_currencies.usd, financial_addressses.bank_accounts, /// financial_addressses.crypto_wallets, holds_currencies.eur, /// holds_currencies.gbp, holds_currencies.usd, holds_currencies.usdc, /// inbound_transfers.bank_accounts, outbound_payments.bank_accounts, diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantApprovedEvent.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantApprovedEvent.cs new file mode 100644 index 0000000000..eb90aab5f2 --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantApprovedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs when a Stripe Access Grant is approved. + /// + public class V2IamStripeAccessGrantApprovedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantApprovedEventNotification.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantApprovedEventNotification.cs new file mode 100644 index 0000000000..00745cbf0e --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantApprovedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a Stripe Access Grant is approved. + /// + public class V2IamStripeAccessGrantApprovedEventNotification : V2.Core.EventNotification + { + public V2IamStripeAccessGrantApprovedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantCanceledEvent.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantCanceledEvent.cs new file mode 100644 index 0000000000..dde639dc04 --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantCanceledEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs when a Stripe Access Grant is canceled by the requesting Stripe. + /// + public class V2IamStripeAccessGrantCanceledEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantCanceledEventNotification.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantCanceledEventNotification.cs new file mode 100644 index 0000000000..c9b63f8207 --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantCanceledEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a Stripe Access Grant is canceled by the requesting Stripe. + /// + public class V2IamStripeAccessGrantCanceledEventNotification : V2.Core.EventNotification + { + public V2IamStripeAccessGrantCanceledEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantDeniedEvent.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantDeniedEvent.cs new file mode 100644 index 0000000000..7737ee0ade --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantDeniedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs when a Stripe Access Grant is denied (was pending, then denied by the customer). + /// + public class V2IamStripeAccessGrantDeniedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantDeniedEventNotification.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantDeniedEventNotification.cs new file mode 100644 index 0000000000..78c2a6efad --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantDeniedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a Stripe Access Grant is denied (was pending, then denied by the customer). + /// + public class V2IamStripeAccessGrantDeniedEventNotification : V2.Core.EventNotification + { + public V2IamStripeAccessGrantDeniedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantRemovedEvent.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantRemovedEvent.cs new file mode 100644 index 0000000000..0c66f3fb0b --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantRemovedEvent.cs @@ -0,0 +1,13 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs when a Stripe Access Grant is removed (was approved, and then removed by the + /// customer). + /// + public class V2IamStripeAccessGrantRemovedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantRemovedEventNotification.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantRemovedEventNotification.cs new file mode 100644 index 0000000000..9d6ff334ec --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantRemovedEventNotification.cs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a Stripe Access Grant is removed (was approved, and then removed by the + /// customer). + /// + public class V2IamStripeAccessGrantRemovedEventNotification : V2.Core.EventNotification + { + public V2IamStripeAccessGrantRemovedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantRequestedEvent.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantRequestedEvent.cs new file mode 100644 index 0000000000..e386e4bd23 --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantRequestedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs when a Stripe Access Grant is requested. + /// + public class V2IamStripeAccessGrantRequestedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantRequestedEventNotification.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantRequestedEventNotification.cs new file mode 100644 index 0000000000..dca95476fd --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantRequestedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a Stripe Access Grant is requested. + /// + public class V2IamStripeAccessGrantRequestedEventNotification : V2.Core.EventNotification + { + public V2IamStripeAccessGrantRequestedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantUpdatedEvent.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantUpdatedEvent.cs new file mode 100644 index 0000000000..d904e0c015 --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantUpdatedEvent.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + + /// + /// Occurs when a Stripe Access Grant is updated. + /// + public class V2IamStripeAccessGrantUpdatedEvent : V2.Core.Event + { + } +} diff --git a/src/Stripe.net/Events/V2IamStripeAccessGrantUpdatedEventNotification.cs b/src/Stripe.net/Events/V2IamStripeAccessGrantUpdatedEventNotification.cs new file mode 100644 index 0000000000..3263b27d05 --- /dev/null +++ b/src/Stripe.net/Events/V2IamStripeAccessGrantUpdatedEventNotification.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Stripe.V2; + + /// + /// Occurs when a Stripe Access Grant is updated. + /// + public class V2IamStripeAccessGrantUpdatedEventNotification : V2.Core.EventNotification + { + public V2IamStripeAccessGrantUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 3e013a674b..e91114c03c 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -30,6 +30,7 @@ public static class StripeTypeRegistry { "balance_transfer", typeof(BalanceTransfer) }, { "bank_account", typeof(BankAccount) }, { "billing.alert", typeof(Billing.Alert) }, + { "billing.alert_recovered", typeof(Billing.AlertRecovered) }, { "billing.alert_triggered", typeof(Billing.AlertTriggered) }, { "billing.analytics.meter_usage", typeof(Billing.Analytics.MeterUsage) }, { "billing.analytics.meter_usage_row", typeof(Billing.Analytics.MeterUsageRow) }, @@ -166,6 +167,7 @@ public static class StripeTypeRegistry { "product", typeof(Product) }, { "product_catalog.trial_offer", typeof(ProductCatalog.TrialOffer) }, { "product_feature", typeof(ProductFeature) }, + { "profile", typeof(Profile) }, { "promotion_code", typeof(PromotionCode) }, { "quote", typeof(Quote) }, { "quote_line", typeof(QuoteLine) }, @@ -479,6 +481,10 @@ public static class StripeTypeRegistry }, { "v2.billing.rate_card.created", typeof(Events.V2BillingRateCardCreatedEvent) }, { "v2.billing.rate_card.updated", typeof(Events.V2BillingRateCardUpdatedEvent) }, + { + "v2.billing.rate_card_custom_pricing_unit_overage_rate.created", typeof( + Events.V2BillingRateCardCustomPricingUnitOverageRateCreatedEvent) + }, { "v2.billing.rate_card_rate.created", typeof( Events.V2BillingRateCardRateCreatedEvent) @@ -718,6 +724,30 @@ public static class StripeTypeRegistry }, { "v2.iam.api_key.rotated", typeof(Events.V2IamApiKeyRotatedEvent) }, { "v2.iam.api_key.updated", typeof(Events.V2IamApiKeyUpdatedEvent) }, + { + "v2.iam.stripe_access_grant.approved", typeof( + Events.V2IamStripeAccessGrantApprovedEvent) + }, + { + "v2.iam.stripe_access_grant.canceled", typeof( + Events.V2IamStripeAccessGrantCanceledEvent) + }, + { + "v2.iam.stripe_access_grant.denied", typeof( + Events.V2IamStripeAccessGrantDeniedEvent) + }, + { + "v2.iam.stripe_access_grant.removed", typeof( + Events.V2IamStripeAccessGrantRemovedEvent) + }, + { + "v2.iam.stripe_access_grant.requested", typeof( + Events.V2IamStripeAccessGrantRequestedEvent) + }, + { + "v2.iam.stripe_access_grant.updated", typeof( + Events.V2IamStripeAccessGrantUpdatedEvent) + }, { "v2.money_management.adjustment.created", typeof( Events.V2MoneyManagementAdjustmentCreatedEvent) @@ -1082,6 +1112,10 @@ public static class StripeTypeRegistry "v2.billing.rate_card.updated", typeof( Events.V2BillingRateCardUpdatedEventNotification) }, + { + "v2.billing.rate_card_custom_pricing_unit_overage_rate.created", typeof( + Events.V2BillingRateCardCustomPricingUnitOverageRateCreatedEventNotification) + }, { "v2.billing.rate_card_rate.created", typeof( Events.V2BillingRateCardRateCreatedEventNotification) @@ -1330,6 +1364,30 @@ public static class StripeTypeRegistry }, { "v2.iam.api_key.rotated", typeof(Events.V2IamApiKeyRotatedEventNotification) }, { "v2.iam.api_key.updated", typeof(Events.V2IamApiKeyUpdatedEventNotification) }, + { + "v2.iam.stripe_access_grant.approved", typeof( + Events.V2IamStripeAccessGrantApprovedEventNotification) + }, + { + "v2.iam.stripe_access_grant.canceled", typeof( + Events.V2IamStripeAccessGrantCanceledEventNotification) + }, + { + "v2.iam.stripe_access_grant.denied", typeof( + Events.V2IamStripeAccessGrantDeniedEventNotification) + }, + { + "v2.iam.stripe_access_grant.removed", typeof( + Events.V2IamStripeAccessGrantRemovedEventNotification) + }, + { + "v2.iam.stripe_access_grant.requested", typeof( + Events.V2IamStripeAccessGrantRequestedEventNotification) + }, + { + "v2.iam.stripe_access_grant.updated", typeof( + Events.V2IamStripeAccessGrantUpdatedEventNotification) + }, { "v2.money_management.adjustment.created", typeof( Events.V2MoneyManagementAdjustmentCreatedEventNotification) diff --git a/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs b/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs index f13500c1fe..4aa7ebc96b 100644 --- a/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs +++ b/src/Stripe.net/Infrastructure/Public/SystemNetHttpClient.cs @@ -62,6 +62,17 @@ private static readonly Lazy LazyDefaultHttpClient private string stripeClientUserAgentString; + internal static readonly (string EnvVar, string Slug)[] AIAgents = new (string EnvVar, string Slug)[] + { + ("ANTIGRAVITY_CLI_ALIAS", "antigravity"), + ("CLAUDECODE", "claude_code"), + ("CLINE_ACTIVE", "cline"), + ("CODEX_SANDBOX", "codex_cli"), + ("CURSOR_AGENT", "cursor"), + ("GEMINI_CLI", "gemini_cli"), + ("OPENCODE", "open_code"), + }; + // Deprecated in .NET 9; but tls 1.2 became a default after .NET Framework 4.7 #if !NET9_0_OR_GREATER static SystemNetHttpClient() @@ -189,6 +200,25 @@ await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) }; } + private static string DetectAIAgent() + { + return DetectAIAgent(System.Environment.GetEnvironmentVariable); + } + + internal static string DetectAIAgent(Func getEnv) + { + foreach (var (envVar, slug) in AIAgents) + { + var val = getEnv(envVar); + if (!string.IsNullOrEmpty(val)) + { + return slug; + } + } + + return string.Empty; + } + private async Task<(HttpResponseMessage responseMessage, int retries)> SendHttpRequest( StripeRequest request, CancellationToken cancellationToken) @@ -302,6 +332,12 @@ private string BuildStripeClientUserAgentString() values.Add("application", this.appInfo); } + var aiAgent = DetectAIAgent(); + if (!string.IsNullOrEmpty(aiAgent)) + { + values.Add("ai_agent", aiAgent); + } + return JsonUtils.SerializeObject(values, Formatting.None); } @@ -314,6 +350,12 @@ private string BuildUserAgentString(ApiMode apiMode) userAgent += " " + this.appInfo.FormatUserAgent(); } + var aiAgent = DetectAIAgent(); + if (!string.IsNullOrEmpty(aiAgent)) + { + userAgent += $" AIAgent/{aiAgent}"; + } + return userAgent; } diff --git a/src/Stripe.net/Services/AccountLinks/AccountLinkCollectionOptionsOptions.cs b/src/Stripe.net/Services/AccountLinks/AccountLinkCollectionOptionsOptions.cs index ca68a3b3e8..1b80bb674f 100644 --- a/src/Stripe.net/Services/AccountLinks/AccountLinkCollectionOptionsOptions.cs +++ b/src/Stripe.net/Services/AccountLinks/AccountLinkCollectionOptionsOptions.cs @@ -8,6 +8,20 @@ namespace Stripe public class AccountLinkCollectionOptionsOptions : INestedOptions { + /// + /// Specifies whether the platform collects external account information from connected + /// accounts during Connect Onboarding. When set to true, the platform only collects + /// external account information if the connected account has capabilities which require it. + /// Some capabilities, such as treasury, don't require external account collection. + /// When set to false, external account collection is skipped. Defaults to + /// true. + /// + [JsonProperty("external_account_collection")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("external_account_collection")] +#endif + public bool? ExternalAccountCollection { get; set; } + /// /// Specifies whether the platform collects only currently_due requirements /// (currently_due) or both currently_due and eventually_due requirements @@ -31,16 +45,5 @@ public class AccountLinkCollectionOptionsOptions : INestedOptions [STJS.JsonPropertyName("future_requirements")] #endif public string FutureRequirements { get; set; } - - /// - /// Specifies whether the platform collects external account information from connected - /// accounts during Connect Onboarding. When set to false, external account - /// collection is skipped. Defaults to true. - /// - [JsonProperty("external_account_collection")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("external_account_collection")] -#endif - public bool? ExternalAccountCollection { get; set; } } } diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index f7f2e5f55d..eff53bc934 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -30,6 +30,17 @@ public class AccountSessionComponentsOptions : INestedOptions #endif public AccountSessionComponentsAccountOnboardingOptions AccountOnboarding { get; set; } + /// + /// Configuration for the agentic + /// commerce settings embedded component. + /// + [JsonProperty("agentic_commerce_settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("agentic_commerce_settings")] +#endif + public AccountSessionComponentsAgenticCommerceSettingsOptions AgenticCommerceSettings { get; set; } + /// /// Configuration for the app @@ -360,17 +371,6 @@ public class AccountSessionComponentsOptions : INestedOptions #endif public AccountSessionComponentsTaxThresholdMonitoringOptions TaxThresholdMonitoring { get; set; } - /// - /// Configuration for the agentic - /// commerce settings embedded component. - /// - [JsonProperty("agentic_commerce_settings")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("agentic_commerce_settings")] -#endif - public AccountSessionComponentsAgenticCommerceSettingsOptions AgenticCommerceSettings { get; set; } - /// /// Configuration for the Terminal diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs index ea088b839e..c70820d6db 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs @@ -99,6 +99,15 @@ public class AccountSettingsOptions : INestedOptions #endif public AccountSettingsPaypayPaymentsOptions PaypayPayments { get; set; } + /// + /// Settings specific to the account's use of Smart Disputes. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountSettingsSmartDisputesOptions SmartDisputes { get; set; } + /// /// Settings specific to the account's tax forms. /// diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs index 94fc683e9c..ed3d1bf1be 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsPaymentsOptions.cs @@ -8,6 +8,17 @@ namespace Stripe public class AccountSettingsPaymentsOptions : INestedOptions { + /// + /// When you enable this parameter, the customer of this Account receives an email receipt + /// when their payment succeeds. If this parameter isn't set, the default value is + /// false. + /// + [JsonProperty("email_customers_on_successful_payment")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("email_customers_on_successful_payment")] +#endif + public bool? EmailCustomersOnSuccessfulPayment { get; set; } + /// /// The default text that appears on statements for non-card charges outside of Japan. For /// card charges, if you don't set a statement_descriptor_prefix, this text is also diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesAutoRespondOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesAutoRespondOptions.cs new file mode 100644 index 0000000000..af67858a2f --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesAutoRespondOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSettingsSmartDisputesAutoRespondOptions : INestedOptions + { + /// + /// The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesOptions.cs new file mode 100644 index 0000000000..d2d0ed16c0 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountSettingsSmartDisputesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountSettingsSmartDisputesOptions : INestedOptions + { + /// + /// Smart Disputes auto-respond settings for the account. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountSettingsSmartDisputesAutoRespondOptions AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Services/Billing/Alerts/AlertCreateOptions.cs b/src/Stripe.net/Services/Billing/Alerts/AlertCreateOptions.cs index 9861429f8d..a8afbf658c 100644 --- a/src/Stripe.net/Services/Billing/Alerts/AlertCreateOptions.cs +++ b/src/Stripe.net/Services/Billing/Alerts/AlertCreateOptions.cs @@ -29,7 +29,9 @@ public class AlertCreateOptions : BaseOptions public AlertCreditBalanceThresholdOptions CreditBalanceThreshold { get; set; } /// - /// The configuration of the spend threshold. + /// The configuration of the spend threshold. An event fires when the amount consumed + /// exceeds the threshold, after all credits and discounts are applied but before tax is + /// applied. /// [JsonProperty("spend_threshold")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Billing/Alerts/AlertSpendThresholdGteOptions.cs b/src/Stripe.net/Services/Billing/Alerts/AlertSpendThresholdGteOptions.cs index 5c02aa8695..e8fa1e3291 100644 --- a/src/Stripe.net/Services/Billing/Alerts/AlertSpendThresholdGteOptions.cs +++ b/src/Stripe.net/Services/Billing/Alerts/AlertSpendThresholdGteOptions.cs @@ -9,7 +9,9 @@ namespace Stripe.Billing public class AlertSpendThresholdGteOptions : INestedOptions { /// - /// The monetary amount. Required when type is amount. + /// The monetary amount. Required when type is amount. The threshold is the + /// total_before_tax, the amount consumed after all credits and discounts are applied, but + /// before tax is applied. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs b/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs index 21a59dbe1a..0c783f768f 100644 --- a/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs +++ b/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs @@ -20,7 +20,7 @@ public class AlertUsageThresholdOptions : INestedOptions public List Filters { get; set; } /// - /// Defines at which value the alert will fire. + /// Defines the threshold value that triggers the alert. /// [JsonProperty("gte")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs index 15ec619cab..7cb1ed2f57 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionCreateOptions.cs @@ -10,7 +10,7 @@ public class SessionCreateOptions : BaseOptions { /// /// The ID of an existing configuration to + /// href="https://docs.stripe.com/api/customer_portal/configurations">configuration to /// use for this session, describing its functionality and features. If not specified, the /// session uses the default configuration. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 25d048cbb2..10c63a4d2b 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -312,6 +312,18 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata #endif public string Locale { get; set; } + /// + /// Settings for Managed Payments for this Checkout Session and resulting PaymentIntents, Invoices, and Subscriptions. + /// + [JsonProperty("managed_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("managed_payments")] +#endif + public SessionManagedPaymentsOptions ManagedPayments { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs index c3cc7e8282..a39eb57ce0 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldDropdownOptions.cs @@ -10,8 +10,8 @@ namespace Stripe.Checkout public class SessionCustomFieldDropdownOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page.Must match a value in - /// the options array. + /// The value that pre-fills the field on the payment page.Must match a value in the + /// options array. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs index 339f5982b2..3b4b7fa371 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldNumericOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldNumericOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs index 9bc477c0de..ca97514fed 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomFieldTextOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomFieldTextOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs index c803f9e155..673d4735de 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextAfterSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextAfterSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs index 44676934e7..5c603c618a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextShippingAddressOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextShippingAddressOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs index f9a7c09811..d52241f355 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs index dcdde77fc9..da069c6f9a 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCustomTextTermsOfServiceAcceptanceOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.Checkout public class SessionCustomTextTermsOfServiceAcceptanceOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs new file mode 100644 index 0000000000..216cb88241 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionManagedPaymentsOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionManagedPaymentsOptions : INestedOptions + { + /// + /// Set to true to enable Managed Payments, Stripe's + /// merchant of record solution, for this session. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 53bef818d1..7fca8eceea 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfe { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs index 06e59f7cdc..9988a547b7 100644 --- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs +++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesLineOptions.cs @@ -50,8 +50,9 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions public long? Quantity { get; set; } /// - /// A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with - /// tax_rates. + /// A list of up to 10 tax amounts for the credit note line item. Not valid when + /// tax_rates is used or if invoice is set up with + /// automatic_tax[enabled]=true. /// [JsonProperty("tax_amounts")] #if NET6_0_OR_GREATER @@ -61,7 +62,7 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions /// /// The tax rates which apply to the credit note line item. Only valid when the type - /// is custom_line_item and cannot be mixed with tax_amounts. + /// is custom_line_item and tax_amounts is not used. /// [JsonProperty("tax_rates")] #if NET6_0_OR_GREATER @@ -71,7 +72,8 @@ public class CreditNotePreviewLinesLineOptions : INestedOptions /// /// Type of the credit note line item, one of invoice_line_item or - /// custom_line_item. + /// custom_line_item. custom_line_item is not valid when the invoice is set up + /// with automatic_tax[enabled]=true. /// One of: custom_line_item, or invoice_line_item. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs index 8c7c6d3d98..a5fbd2cdce 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteLineOptions.cs @@ -50,8 +50,9 @@ public class CreditNoteLineOptions : INestedOptions public long? Quantity { get; set; } /// - /// A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with - /// tax_rates. + /// A list of up to 10 tax amounts for the credit note line item. Not valid when + /// tax_rates is used or if invoice is set up with + /// automatic_tax[enabled]=true. /// [JsonProperty("tax_amounts")] #if NET6_0_OR_GREATER @@ -61,7 +62,7 @@ public class CreditNoteLineOptions : INestedOptions /// /// The tax rates which apply to the credit note line item. Only valid when the type - /// is custom_line_item and cannot be mixed with tax_amounts. + /// is custom_line_item and tax_amounts is not used. /// [JsonProperty("tax_rates")] #if NET6_0_OR_GREATER @@ -71,7 +72,8 @@ public class CreditNoteLineOptions : INestedOptions /// /// Type of the credit note line item, one of invoice_line_item or - /// custom_line_item. + /// custom_line_item. custom_line_item is not valid when the invoice is set up + /// with automatic_tax[enabled]=true. /// One of: custom_line_item, or invoice_line_item. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs index 58e957056a..224803d770 100644 --- a/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/CustomerFundingInstructions/CustomerFundingInstructionsBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class CustomerFundingInstructionsBankTransferEuBankTransferOptions : INes { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs index b24f940c0e..a256c9f95f 100644 --- a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs @@ -22,15 +22,16 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. + /// lk_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, pl_nip, 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, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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 diff --git a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs index 3e3e3dcde6..2e345f968e 100644 --- a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs @@ -22,15 +22,16 @@ public class CustomerTaxIdDataOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. + /// lk_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, pl_nip, 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, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class CustomerTaxIdDataOptions : INestedOptions /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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 diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionOptions.cs new file mode 100644 index 0000000000..b041b8360f --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionOptions.cs @@ -0,0 +1,118 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + 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 RequestedSessionAffiliateAttributionOptions : INestedOptions + { + /// + /// Agent-scoped campaign identifier. + /// + [JsonProperty("campaign_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("campaign_id")] +#endif + public string CampaignId { get; set; } + + /// + /// Agent-scoped creative identifier. + /// + [JsonProperty("creative_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("creative_id")] +#endif + public string CreativeId { get; set; } + + /// + /// Timestamp when the attribution token expires. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("expires_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? ExpiresAt { get; set; } + + /// + /// Agent-issued secret to validate the legitimacy of the source of this data. + /// + [JsonProperty("identification_token")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("identification_token")] +#endif + public string IdentificationToken { get; set; } + + /// + /// Timestamp for when the attribution token was issued. + /// + [JsonProperty("issued_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("issued_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime? IssuedAt { get; set; } + + /// + /// Identifier for the attribution agent / affiliate network namespace. + /// + [JsonProperty("provider")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("provider")] +#endif + public string Provider { get; set; } + + /// + /// Agent-scoped affiliate/publisher identifier. + /// + [JsonProperty("publisher_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("publisher_id")] +#endif + public string PublisherId { get; set; } + + /// + /// Freeform key/value pairs for additional non-sensitive per-agent data. + /// + [JsonProperty("shared_metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("shared_metadata")] +#endif + public Dictionary SharedMetadata { get; set; } + + /// + /// Context about where the attribution originated. + /// + [JsonProperty("source")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("source")] +#endif + public RequestedSessionAffiliateAttributionSourceOptions Source { get; set; } + + /// + /// Agent-scoped sub-tracking identifier. + /// + [JsonProperty("sub_id")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("sub_id")] +#endif + public string SubId { get; set; } + + /// + /// Whether this is the first or last touchpoint. + /// One of: first, or last. + /// + [JsonProperty("touchpoint")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("touchpoint")] +#endif + public string Touchpoint { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionSourceOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionSourceOptions.cs new file mode 100644 index 0000000000..785f9c94c4 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionAffiliateAttributionSourceOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionAffiliateAttributionSourceOptions : INestedOptions + { + /// + /// The platform where the attribution originated. + /// + [JsonProperty("platform")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("platform")] +#endif + public string Platform { get; set; } + + /// + /// The type of the attribution source. + /// One of: platform, or url. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// The URL where the attribution originated. + /// + [JsonProperty("url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("url")] +#endif + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs index c30d9344b5..6cd4bc3333 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionConfirmOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.DelegatedCheckout { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -8,6 +9,15 @@ namespace Stripe.DelegatedCheckout public class RequestedSessionConfirmOptions : BaseOptions { + /// + /// Affiliate attribution data associated with this requested session. + /// + [JsonProperty("affiliate_attributions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("affiliate_attributions")] +#endif + public List AffiliateAttributions { get; set; } + /// /// The PaymentMethod to use with the requested session. /// diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionCreateOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionCreateOptions.cs index cc9e93ef07..a3befc1999 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionCreateOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionCreateOptions.cs @@ -9,6 +9,15 @@ namespace Stripe.DelegatedCheckout public class RequestedSessionCreateOptions : BaseOptions, IHasMetadata { + /// + /// Affiliate attribution data associated with this requested session. + /// + [JsonProperty("affiliate_attributions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("affiliate_attributions")] +#endif + public List AffiliateAttributions { get; set; } + /// /// The currency for this requested session. /// diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions.cs new file mode 100644 index 0000000000..16c434f911 --- /dev/null +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.DelegatedCheckout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions : INestedOptions + { + /// + /// The digital option identifier. + /// + [JsonProperty("digital_option")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital_option")] +#endif + public string DigitalOption { get; set; } + } +} diff --git a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs index 98568c572c..1e20fd8504 100644 --- a/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs +++ b/src/Stripe.net/Services/DelegatedCheckout/RequestedSessions/RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions.cs @@ -25,5 +25,14 @@ public class RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionOptions [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// The digital fulfillment option. + /// + [JsonProperty("digital")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("digital")] +#endif + public RequestedSessionFulfillmentDetailsSelectedFulfillmentOptionDigitalOptions Digital { get; set; } } } diff --git a/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs b/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs index 2657bb9c5b..ab47f973a1 100644 --- a/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs +++ b/src/Stripe.net/Services/Disputes/DisputeUpdateOptions.cs @@ -9,6 +9,16 @@ namespace Stripe public class DisputeUpdateOptions : BaseOptions, IHasMetadata { + /// + /// If not countering the full disputed amount, specify an alternate amount, less than or + /// equal to the disputed amount. + /// + [JsonProperty("amount_to_counter")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_to_counter")] +#endif + public long? AmountToCounter { get; set; } + /// /// Evidence to upload, to respond to a dispute. Updating any field in the hash will submit /// all fields in the hash for review. The combined character count of all fields is limited diff --git a/src/Stripe.net/Services/Files/FileCreateOptions.cs b/src/Stripe.net/Services/Files/FileCreateOptions.cs index 9dfc810809..b62df336e9 100644 --- a/src/Stripe.net/Services/Files/FileCreateOptions.cs +++ b/src/Stripe.net/Services/Files/FileCreateOptions.cs @@ -35,7 +35,8 @@ public class FileCreateOptions : BaseOptions /// business_icon, business_logo, customer_signature, /// dispute_evidence, identity_document, issuing_regulatory_reporting, /// pci_document, platform_terms_of_service, tax_document_user_upload, - /// terminal_android_apk, or terminal_reader_splashscreen. + /// terminal_android_apk, terminal_reader_splashscreen, + /// terminal_wifi_certificate, or terminal_wifi_private_key. /// [JsonProperty("purpose")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Files/FileListOptions.cs b/src/Stripe.net/Services/Files/FileListOptions.cs index 16b89ec9a4..a0477265fe 100644 --- a/src/Stripe.net/Services/Files/FileListOptions.cs +++ b/src/Stripe.net/Services/Files/FileListOptions.cs @@ -31,7 +31,8 @@ public class FileListOptions : ListOptions /// identity_document_downloadable, issuing_regulatory_reporting, /// pci_document, platform_terms_of_service, selfie, /// sigma_scheduled_query, tax_document_user_upload, - /// terminal_android_apk, or terminal_reader_splashscreen. + /// terminal_android_apk, terminal_reader_splashscreen, + /// terminal_wifi_certificate, or terminal_wifi_private_key. /// [JsonProperty("purpose")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs index b8ebd3ac04..03993ab670 100644 --- a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.FinancialConnections public class SessionManualEntryOptions : INestedOptions { /// - /// Whether manual entry will be handled by Stripe during the Session. + /// How manual entry should be handled. /// One of: automatic, or custom. /// [JsonProperty("mode")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs index 804bb9bac7..ab5a2b2a43 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs @@ -22,15 +22,16 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. + /// lk_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, pl_nip, 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, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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 diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 27359c35c3..3299ae5284 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -42,10 +42,11 @@ public class InvoicePaymentSettingsOptions : INestedOptions /// customer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 105fd1f4c6..e553fa02f2 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransf { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs index 2f8e40eb96..5f07ea034a 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -42,8 +42,7 @@ public class InvoicePaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs index 4c104167b4..f5196136af 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs @@ -50,6 +50,15 @@ public class InvoiceScheduleDetailsOptions : INestedOptions #endif public List BillingSchedules { get; set; } + /// + /// Object representing the subscription schedule's default settings. + /// + [JsonProperty("default_settings")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("default_settings")] +#endif + public InvoiceScheduleDetailsDefaultSettingsOptions DefaultSettings { get; set; } + /// /// Behavior of the subscription schedule and underlying subscription when it ends. Possible /// values are release or cancel with the default being release. @@ -94,14 +103,5 @@ public class InvoiceScheduleDetailsOptions : INestedOptions [STJS.JsonPropertyName("proration_behavior")] #endif public string ProrationBehavior { get; set; } - - /// - /// Object representing the subscription schedule's default settings. - /// - [JsonProperty("default_settings")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("default_settings")] -#endif - public InvoiceScheduleDetailsDefaultSettingsOptions DefaultSettings { get; set; } } } diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 7d7e93d1ed..cd24f4ed82 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class OrderPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs index cc40234d80..bed72e8e5b 100644 --- a/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderTaxDetailsTaxIdOptions.cs @@ -22,15 +22,16 @@ public class OrderTaxDetailsTaxIdOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. + /// lk_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, pl_nip, 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, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class OrderTaxDetailsTaxIdOptions : INestedOptions /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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 diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs index d232c2f22f..cd68a9758c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemOptions.cs @@ -44,7 +44,7 @@ public class PaymentIntentAmountDetailsLineItemOptions : INestedOptions /// The product name of the line item. Required for L3 rates. At most 1024 characters long. /// /// For Cards, this field is truncated to 26 alphanumeric characters before being sent to - /// the card networks. For Paypal, this field is truncated to 127 characters. + /// the card networks. For PayPal, this field is truncated to 127 characters. /// [JsonProperty("product_name")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs index b95fe37b51..9534ff7a25 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions : { /// /// Identifier that categorizes the items being purchased using a standardized commodity - /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. /// [JsonProperty("commodity_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs index 55ca30ab59..88527fd3ea 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOp { /// /// Identifier that categorizes the items being purchased using a standardized commodity - /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + /// scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. /// [JsonProperty("commodity_code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs index 7db3ef8dc5..e1e4d705da 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions.cs @@ -9,8 +9,8 @@ namespace Stripe public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INestedOptions { /// - /// This sub-hash contains line item details that are specific to card payment - /// method.". + /// This sub-hash contains line item details that are specific to the card payment + /// method. /// [JsonProperty("card")] #if NET6_0_OR_GREATER @@ -19,8 +19,8 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INe public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardOptions Card { get; set; } /// - /// This sub-hash contains line item details that are specific to card_present - /// payment method.". + /// This sub-hash contains line item details that are specific to the card_present + /// payment method. /// [JsonProperty("card_present")] #if NET6_0_OR_GREATER @@ -29,8 +29,8 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INe public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsCardPresentOptions CardPresent { get; set; } /// - /// This sub-hash contains line item details that are specific to klarna payment - /// method.". + /// This sub-hash contains line item details that are specific to the klarna payment + /// method. /// [JsonProperty("klarna")] #if NET6_0_OR_GREATER @@ -39,8 +39,8 @@ public class PaymentIntentAmountDetailsLineItemPaymentMethodOptionsOptions : INe public PaymentIntentAmountDetailsLineItemPaymentMethodOptionsKlarnaOptions Klarna { get; set; } /// - /// This sub-hash contains line item details that are specific to paypal payment - /// method.". + /// This sub-hash contains line item details that are specific to the paypal payment + /// method. /// [JsonProperty("paypal")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs index c48097088e..834035f014 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -32,8 +32,8 @@ public class PaymentIntentAmountDetailsOptions : INestedOptions /// fails. Use this for strict validation that prevents processing with line item data that /// has arithmetic inconsistencies. /// - /// For card payments, Stripe doesn't send line item data if there's an arithmetic - /// validation error to card networks. + /// For card payments, Stripe doesn't send line item data to card networks if there's an + /// arithmetic validation error. /// [JsonProperty("enforce_arithmetic_validation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs index 0a70cdd46a..ee376c1275 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardOptions.cs @@ -149,6 +149,18 @@ public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions #endif public string RequestPartialAuthorization { get; set; } + /// + /// Request ability to reauthorize for this + /// PaymentIntent. + /// One of: if_available, or never. + /// + [JsonProperty("request_reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("request_reauthorization")] +#endif + public string RequestReauthorization { get; set; } + /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your /// customers for authentication based on risk level and + /// Request ability to reauthorize for this + /// PaymentIntent. + /// One of: if_available, or never. + /// + [JsonProperty("request_reauthorization")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("request_reauthorization")] +#endif + public string RequestReauthorization { get; set; } + /// /// Network routing priority on co-branded EMV cards supporting domestic debit and /// international card schemes. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 9082dfb5c4..7ce9b071b1 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class PaymentIntentPaymentMethodOptionsCustomerBalanceBankTransferEuBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs index 7dc575a6de..c9802d8dee 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccountOptions.cs @@ -87,6 +87,16 @@ public class PaymentIntentPaymentMethodOptionsUsBankAccountOptions : INestedOpti #endif public string TargetDate { get; set; } + /// + /// The purpose of the transaction. + /// One of: goods, other, services, or unspecified. + /// + [JsonProperty("transaction_purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_purpose")] +#endif + public string TransactionPurpose { get; set; } + /// /// Bank account verification method. /// One of: automatic, instant, or microdeposits. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentReauthorizeOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentReauthorizeOptions.cs new file mode 100644 index 0000000000..196c64f01e --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentReauthorizeOptions.cs @@ -0,0 +1,33 @@ +// 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 PaymentIntentReauthorizeOptions : BaseOptions, IHasMetadata + { + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("description")] +#endif + public string Description { 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; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs index f5e04f578e..088906d785 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentService.cs @@ -410,6 +410,42 @@ public virtual IAsyncEnumerable ListAutoPagingAsync(PaymentIntent return this.ListRequestAutoPagingAsync($"/v1/payment_intents", options, requestOptions, cancellationToken); } + /// + ///

Reauthorize a PaymentIntent to obtain a new valid authorization after the initial + /// authorization has expired.

. + /// + ///

When a PaymentIntent’s authorization expires and the capture window elapses, the + /// PaymentIntent transitions to requires_reauthorization status with + /// amount_capturable set to 0. This endpoint brings the PaymentIntent back to + /// requires_capture status, allowing you to capture payment.

. + /// + ///

This is useful for retail and ecommerce scenarios with delayed shipments where + /// authorization validity periods (typically 7 days) expire before the merchant is ready to + /// capture payment.

. + ///
+ public virtual PaymentIntent Reauthorize(string id, PaymentIntentReauthorizeOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_intents/{WebUtility.UrlEncode(id)}/reauthorize", options, requestOptions); + } + + /// + ///

Reauthorize a PaymentIntent to obtain a new valid authorization after the initial + /// authorization has expired.

. + /// + ///

When a PaymentIntent’s authorization expires and the capture window elapses, the + /// PaymentIntent transitions to requires_reauthorization status with + /// amount_capturable set to 0. This endpoint brings the PaymentIntent back to + /// requires_capture status, allowing you to capture payment.

. + /// + ///

This is useful for retail and ecommerce scenarios with delayed shipments where + /// authorization validity periods (typically 7 days) expire before the merchant is ready to + /// capture payment.

. + ///
+ public virtual Task ReauthorizeAsync(string id, PaymentIntentReauthorizeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_intents/{WebUtility.UrlEncode(id)}/reauthorize", options, requestOptions, cancellationToken); + } + /// ///

Search for PaymentIntents you’ve previously created using Stripe’s Search Query Language. diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs index 60cf1c96f0..d647439c97 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldDropdownOptions.cs @@ -10,8 +10,8 @@ namespace Stripe public class PaymentLinkCustomFieldDropdownOptions : INestedOptions { ///

- /// The value that will pre-fill the field on the payment page.Must match a value in - /// the options array. + /// The value that pre-fills the field on the payment page.Must match a value in the + /// options array. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs index fe0ef1e974..9ae0b7aece 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldNumericOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldNumericOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs index 0d93430830..31e31bdbc7 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomFieldTextOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomFieldTextOptions : INestedOptions { /// - /// The value that will pre-fill the field on the payment page. + /// The value that pre-fills the field on the payment page. /// [JsonProperty("default_value")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs index 51f46d5677..edd4e137c1 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextAfterSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextAfterSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs index d90f30095f..f088ea6e05 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextShippingAddressOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextShippingAddressOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs index cd3a0e38ea..a7c8618bba 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextSubmitOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextSubmitOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs index 9b1fd94bf0..a00b6dd339 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCustomTextTermsOfServiceAcceptanceOptions.cs @@ -9,7 +9,7 @@ namespace Stripe public class PaymentLinkCustomTextTermsOfServiceAcceptanceOptions : INestedOptions { /// - /// Text may be up to 1200 characters in length. + /// Text can be up to 1200 characters in length. /// [JsonProperty("message")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index c9661634ff..9f46fba392 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -141,6 +141,20 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata #endif public PaymentLinkNameCollectionOptions NameCollection { get; set; } + /// + /// A list of optional items the customer can add to their order at checkout. Use this + /// parameter to pass one-time or recurring Prices. There is a maximum of 10 optional + /// items allowed on a payment link, and the existing limits on the number of line items + /// allowed on a payment link apply to the combined number of line items and optional items. + /// There is a maximum of 20 combined line items and optional items. + /// + [JsonProperty("optional_items")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("optional_items")] +#endif + public List OptionalItems { get; set; } + /// /// A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in /// payment mode. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs index 35d532eed2..2eb67ed5d2 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptCanceledOptions.cs @@ -22,6 +22,12 @@ public class PaymentRecordReportPaymentAttemptCanceledOptions : BaseOptions, IHa #endif public DateTime? CanceledAt { 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")] diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs index cd36873e63..15728cb66d 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptFailedOptions.cs @@ -22,6 +22,12 @@ public class PaymentRecordReportPaymentAttemptFailedOptions : BaseOptions, IHasM #endif public DateTime? FailedAt { 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")] diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs index da6406a5dc..d74c1040ac 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordReportPaymentAttemptGuaranteedOptions.cs @@ -22,6 +22,12 @@ public class PaymentRecordReportPaymentAttemptGuaranteedOptions : BaseOptions, I #endif public DateTime? GuaranteedAt { 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")] diff --git a/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs b/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs index ccbab14908..5244350041 100644 --- a/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs +++ b/src/Stripe.net/Services/PromotionCodes/PromotionCodeCreateOptions.cs @@ -23,7 +23,7 @@ public class PromotionCodeCreateOptions : BaseOptions, IHasMetadata /// /// The customer-facing code. Regardless of case, this code must be unique across all active /// promotion codes for a specific customer. Valid characters are lower case letters (a-z), - /// upper case letters (A-Z), and digits (0-9). + /// upper case letters (A-Z), digits (0-9), and dashes (-). /// /// If left blank, we will generate one automatically. /// diff --git a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs index cf13d23d08..70b3877ba7 100644 --- a/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs +++ b/src/Stripe.net/Services/SubscriptionItems/SubscriptionItemDeleteOptions.cs @@ -20,6 +20,43 @@ public class SubscriptionItemDeleteOptions : BaseOptions #endif public bool? ClearUsage { get; set; } + /// + /// Use allow_incomplete to transition the subscription to status=past_due if + /// a payment is required but cannot be paid. This allows you to manage scenarios where + /// additional user actions are needed to pay a subscription's invoice. For example, SCA + /// regulation may require 3DS authentication to complete payment. See the SCA + /// Migration Guide for Billing to learn more. This is the default behavior. + /// + /// Use default_incomplete to transition the subscription to status=past_due + /// when payment is required and await explicit confirmation of the invoice's payment + /// intent. This allows simpler management of scenarios where additional user actions are + /// needed to pay a subscription’s invoice. Such as failed payments, SCA + /// regulation, or collecting a mandate for a bank debit payment method. + /// + /// Use pending_if_incomplete to update the subscription using pending + /// updates. When you use pending_if_incomplete you can only pass the parameters + /// supported + /// by pending updates. + /// + /// Use error_if_incomplete if you want Stripe to return an HTTP 402 status code if a + /// subscription's invoice cannot be paid. For example, if a payment method requires 3DS + /// authentication due to SCA regulation and further user action is needed, this parameter + /// does not update the subscription and returns an error instead. This was the default + /// behavior for API versions prior to 2019-03-14. See the changelog to learn more. + /// One of: allow_incomplete, default_incomplete, error_if_incomplete, + /// or pending_if_incomplete. + /// + [JsonProperty("payment_behavior")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_behavior")] +#endif + public string PaymentBehavior { get; set; } + /// /// Determines how to handle prorations when the diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index e13c9a7481..28b6a51aec 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -32,10 +32,11 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions /// customer_balance, eps, fpx, giropay, grabpay, /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, /// klarna, konbini, kr_card, link, multibanco, - /// naver_pay, nz_bank_account, p24, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, stripe_balance, - /// swish, upi, us_bank_account, or wechat_pay. + /// naver_pay, nz_bank_account, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, + /// revolut_pay, sepa_credit_transfer, sepa_debit, sofort, + /// stripe_balance, swish, upi, us_bank_account, or + /// wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs index 527cd9a931..9397ae29e5 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions.cs @@ -10,7 +10,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsCustomerBalanceBankT { /// /// The desired country code of the bank account information. Permitted values include: - /// BE, DE, ES, FR, IE, or NL. + /// DE, FR, IE, or NL. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs index 5482e68385..3622ca8435 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOptions.cs @@ -42,8 +42,7 @@ public class SubscriptionPaymentSettingsPaymentMethodOptionsUpiMandateOptionsOpt public string Description { get; set; } /// - /// End date of the mandate or subscription. If not provided, the mandate will be active - /// until canceled. If provided, end date should be after start date. + /// End date of the mandate or subscription. /// [JsonProperty("end_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index be0603afad..9a1df742e5 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -245,11 +245,11 @@ public virtual Task PauseAsync(string id, SubscriptionPauseOptions /// ///

Initiates resumption of a paused subscription, optionally resetting the billing cycle - /// anchor and creating prorations. If a resumption invoice is generated, it must be paid or - /// marked uncollectible before the subscription will be unpaused. If payment succeeds the - /// subscription will become active, and if payment fails the subscription will be - /// past_due. The resumption invoice will void automatically if not paid by the - /// expiration date.

. + /// anchor and creating prorations. If no resumption invoice is generated, the subscription + /// becomes active immediately. If a resumption invoice is generated, the + /// subscription remains paused until the invoice is paid or marked uncollectible. If + /// the invoice is not paid by the expiration date, it is voided and the subscription + /// remains paused.

. ///
public virtual Subscription Resume(string id, SubscriptionResumeOptions options = null, RequestOptions requestOptions = null) { @@ -258,11 +258,11 @@ public virtual Subscription Resume(string id, SubscriptionResumeOptions options /// ///

Initiates resumption of a paused subscription, optionally resetting the billing cycle - /// anchor and creating prorations. If a resumption invoice is generated, it must be paid or - /// marked uncollectible before the subscription will be unpaused. If payment succeeds the - /// subscription will become active, and if payment fails the subscription will be - /// past_due. The resumption invoice will void automatically if not paid by the - /// expiration date.

. + /// anchor and creating prorations. If no resumption invoice is generated, the subscription + /// becomes active immediately. If a resumption invoice is generated, the + /// subscription remains paused until the invoice is paid or marked uncollectible. If + /// the invoice is not paid by the expiration date, it is voided and the subscription + /// remains paused.

. ///
public virtual Task ResumeAsync(string id, SubscriptionResumeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs index 78150e0f8f..d1057ba717 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs @@ -22,15 +22,16 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. + /// lk_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, pl_nip, 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, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,16 +44,16 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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 diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLkOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLkOptions.cs new file mode 100644 index 0000000000..f784f47416 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsLkOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsLkOptions : INestedOptions + { + /// + /// Type of registration to be created in country. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs index 63143a47f0..b929e89f53 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs @@ -503,6 +503,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions #endif public RegistrationCountryOptionsLaOptions La { get; set; } + /// + /// Options for the registration in LK. + /// + [JsonProperty("lk")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("lk")] +#endif + public RegistrationCountryOptionsLkOptions Lk { get; set; } + /// /// Options for the registration in LT. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs index 7f9f086e23..92749b9571 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsLocalAmusementTaxOptions.cs @@ -10,10 +10,11 @@ public class RegistrationCountryOptionsUsLocalAmusementTaxOptions : INestedOptio { /// /// A FIPS code - /// representing the local jurisdiction. Supported FIPS codes are: 14000 (Chicago), - /// 02154 (Arlington Heights), 06613 (Bloomington), 10906 (Campton - /// Hills), 21696 (East Dundee), 24582 (Evanston), 45421 (Lynwood), - /// 48892 (Midlothian), 64343 (River Grove), and 68081 (Schiller Park). + /// representing the local jurisdiction. Supported FIPS codes are: 02154 (Arlington + /// Heights), 05248 (Bensenville), 06613 (Bloomington), 10906 (Campton + /// Hills), 14000 (Chicago), 21696 (East Dundee), 24582 (Evanston), + /// 45421 (Lynwood), 48892 (Midlothian), 64343 (River Grove), + /// 64421 (Riverside), 65806 (Roselle), and 68081 (Schiller Park). /// [JsonProperty("jurisdiction")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs index 1753779bc5..1208ca90ed 100644 --- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs @@ -31,15 +31,16 @@ public class TaxIdCreateOptions : BaseOptions /// hu_tin, id_npwp, il_vat, in_gst, is_vat, /// jp_cn, jp_rn, jp_trn, ke_pin, kg_tin, kh_tin, /// kr_brn, kz_bin, la_tin, 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, pl_nip, 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. + /// lk_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, pl_nip, 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, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -52,16 +53,16 @@ public class TaxIdCreateOptions : BaseOptions /// 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, kg_tin, kh_tin, kr_brn, - /// kz_bin, la_tin, 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, pl_nip, 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. + /// kz_bin, la_tin, li_uid, li_vat, lk_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, pl_nip, 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 diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCellularOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCellularOptions.cs new file mode 100644 index 0000000000..d0e5f84718 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCellularOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationCellularOptions : INestedOptions + { + /// + /// Determines whether to allow the reader to connect to a cellular network. Defaults to + /// false. + /// + [JsonProperty("enabled")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enabled")] +#endif + public bool? Enabled { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs index 018fff4d28..513fec4d26 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationCreateOptions.cs @@ -26,6 +26,15 @@ public class ConfigurationCreateOptions : BaseOptions #endif public ConfigurationBbposWiseposEOptions BbposWiseposE { get; set; } + /// + /// Configuration for cellular connectivity. + /// + [JsonProperty("cellular")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cellular")] +#endif + public ConfigurationCellularOptions Cellular { get; set; } + /// /// Name of the configuration. /// @@ -71,6 +80,15 @@ public class ConfigurationCreateOptions : BaseOptions #endif public ConfigurationStripeS700Options StripeS700 { get; set; } + /// + /// An object containing device type specific settings for Stripe S710 readers. + /// + [JsonProperty("stripe_s710")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_s710")] +#endif + public ConfigurationStripeS710Options StripeS710 { get; set; } + /// /// Tipping configurations for readers that support on-reader tips. /// diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS710Options.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS710Options.cs new file mode 100644 index 0000000000..cb048682f6 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationStripeS710Options.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ConfigurationStripeS710Options : INestedOptions + { + /// + /// A File ID representing an image you want to display on the reader. + /// + [JsonProperty("splashscreen")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("splashscreen")] +#endif + public string Splashscreen { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs index f24685e0da..39e052918c 100644 --- a/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/Terminal/Configurations/ConfigurationUpdateOptions.cs @@ -26,6 +26,15 @@ public class ConfigurationUpdateOptions : BaseOptions #endif public ConfigurationBbposWiseposEOptions BbposWiseposE { get; set; } + /// + /// Configuration for cellular connectivity. + /// + [JsonProperty("cellular")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("cellular")] +#endif + public ConfigurationCellularOptions Cellular { get; set; } + /// /// Name of the configuration. /// @@ -72,7 +81,16 @@ public class ConfigurationUpdateOptions : BaseOptions public ConfigurationStripeS700Options StripeS700 { get; set; } /// - /// Tipping configurations for readers. supporting on-reader tips. + /// An object containing device type specific settings for Stripe S710 readers. + /// + [JsonProperty("stripe_s710")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("stripe_s710")] +#endif + public ConfigurationStripeS710Options StripeS710 { get; set; } + + /// + /// Tipping configurations for readers that support on-reader tips. /// [JsonProperty("tipping")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs index fb255cc549..c63ac3aa92 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderListOptions.cs @@ -11,8 +11,9 @@ public class ReaderListOptions : ListOptions /// /// Filters readers by device type. /// One of: bbpos_chipper2x, bbpos_wisepad3, bbpos_wisepos_e, - /// mobile_phone_reader, simulated_stripe_s700, simulated_wisepos_e, - /// stripe_m2, stripe_s700, or verifone_P400. + /// mobile_phone_reader, simulated_stripe_s700, simulated_stripe_s710, + /// simulated_wisepos_e, stripe_m2, stripe_s700, stripe_s710, or + /// verifone_P400. /// [JsonProperty("device_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs index 41952c96a9..241995640d 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivateOptions.cs @@ -18,7 +18,8 @@ public class IntentCreateActionDeactivateOptions : INestedOptions public IntentCreateActionDeactivateCancellationDetailsOptions CancellationDetails { get; set; } /// - /// Allows users to override the collect at behavior. + /// When the invoice will be collected. If not specified, the default behavior is + /// on_effective_at. /// One of: next_billing_date, or on_effective_at. /// [JsonProperty("collect_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOptions.cs index 7be7de8aa5..85f5a08b74 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOptions : INestedOptions { /// - /// Allows users to override the partial period behavior. + /// Configurations for overriding behaviors related to the subscription. /// [JsonProperty("overrides")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesOptions.cs index 762d067c55..2c1a8680e5 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesOptions : INestedOptions { /// - /// Override for the partial period behavior. + /// Configurations for behaviors when the action takes effect during the service period. /// [JsonProperty("partial_period_behaviors")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs index 8752d4898d..838050b972 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs @@ -10,7 +10,7 @@ public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverrides { /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is deactivating. + /// license fee when the user is deactivating. If not specified, defaults to none. /// One of: none, or prorated. /// [JsonProperty("credit_proration_behavior")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs index 6585798b2d..e1f045d0e6 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions : INestedOptions { /// - /// Type of the partial period behavior override. + /// The type of behavior to override. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -18,7 +18,8 @@ public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverrides public string Type { get; set; } /// - /// Override for the license fee. + /// Overrides the behavior for license fee components when the action takes effect during + /// the service period. /// [JsonProperty("license_fee")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs index e17f3503fe..60a9610d81 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyOptions.cs @@ -9,7 +9,8 @@ namespace Stripe.V2.Billing public class IntentCreateActionModifyOptions : INestedOptions { /// - /// Allows users to override the collect at behavior. + /// When the invoice will be collected. If not specified, the default behavior is + /// next_billing_date. /// One of: next_billing_date, or on_effective_at. /// [JsonProperty("collect_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOptions.cs index 3eaafa6ab9..67b6b083f2 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOptions.cs @@ -37,7 +37,7 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOptions : INe public string NewPricingPlanVersion { get; set; } /// - /// Allows users to override the partial period behavior. + /// Configurations for overriding behaviors related to the subscription. /// [JsonProperty("overrides")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesOptions.cs index d1647a073c..c7125b5f39 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesOptions : INestedOptions { /// - /// Override for the partial period behavior. + /// Configurations for behaviors when the action takes effect during the service period. /// [JsonProperty("partial_period_behaviors")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs index fd1b5e8198..b5ae291063 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs @@ -10,7 +10,8 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPart { /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is upgrading. + /// license fee when the user modifies the subscription. If not specified, defaults to + /// prorated. /// One of: none, or prorated. /// [JsonProperty("credit_proration_behavior")] @@ -21,7 +22,8 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPart /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is downgrading. + /// license fee when the user modifies the subscription. If not specified, defaults to + /// prorated. /// One of: none, or prorated. /// [JsonProperty("debit_proration_behavior")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs index 210c84ba98..72728ffcae 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions : INestedOptions { /// - /// Type of the partial period behavior override. + /// The type of behavior to override. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -18,7 +18,8 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPart public string Type { get; set; } /// - /// Override for the license fee. + /// Overrides the behavior for license fee components when the action takes effect during + /// the service period. /// [JsonProperty("license_fee")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs index 967c39d292..d51711521c 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionSubscribeOptions : INestedOptions { /// - /// Allows users to override the collect at behavior. + /// When the invoice will be collected. If not specified, defaults to on_effective_at. /// One of: next_billing_date, or on_effective_at. /// [JsonProperty("collect_at")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions.cs index a3aacf4bf0..26a800e150 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions.cs @@ -30,7 +30,7 @@ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions : public Dictionary Metadata { get; set; } /// - /// Allows users to override the partial period behavior. + /// Configurations for overriding behaviors related to the subscription. /// [JsonProperty("overrides")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesOptions.cs index 7e8027bd80..281a6c6765 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesOptions : INestedOptions { /// - /// Override for the partial period behavior. + /// Configurations for behaviors when the action takes effect during the service period. /// [JsonProperty("partial_period_behaviors")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs index d5eb9333ec..c6f17ec737 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions.cs @@ -10,7 +10,7 @@ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesP { /// /// The proration behavior for the partial servicing period. Defines how we prorate the - /// license fee when the user is subscribing. + /// license fee when the user is subscribing. If not specified, defaults to prorated. /// One of: none, or prorated. /// [JsonProperty("debit_proration_behavior")] diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs index 725df176f7..a3945289b4 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.V2.Billing public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions : INestedOptions { /// - /// Type of the partial period behavior override. + /// The type of behavior to override. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -18,7 +18,8 @@ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesP public string Type { get; set; } /// - /// Override for the license fee. + /// Overrides the behavior for license fee components when the action takes effect during + /// the service period. /// [JsonProperty("license_fee")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs index 7661af4192..6a981a2934 100644 --- a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs @@ -10,7 +10,8 @@ public class AccountLinkCreateUseCaseOptions : INestedOptions { /// /// Open Enum. The type of Account Link the user is requesting. - /// One of: account_onboarding, or account_update. + /// One of: account_onboarding, account_update, recipient_onboarding, + /// or recipient_update. /// [JsonProperty("type")] #if NET6_0_OR_GREATER @@ -37,5 +38,25 @@ public class AccountLinkCreateUseCaseOptions : INestedOptions [STJS.JsonPropertyName("account_update")] #endif public AccountLinkCreateUseCaseAccountUpdateOptions AccountUpdate { get; set; } + + /// + /// Hash containing configuration options for an Account Link object that onboards a new + /// recipient. + /// + [JsonProperty("recipient_onboarding")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient_onboarding")] +#endif + public AccountLinkCreateUseCaseRecipientOnboardingOptions RecipientOnboarding { get; set; } + + /// + /// Hash containing configuration options for an Account Link that updates an existing + /// recipient. + /// + [JsonProperty("recipient_update")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("recipient_update")] +#endif + public AccountLinkCreateUseCaseRecipientUpdateOptions RecipientUpdate { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientOnboardingCollectionOptionsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientOnboardingCollectionOptionsOptions.cs new file mode 100644 index 0000000000..9f94b51644 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientOnboardingCollectionOptionsOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseRecipientOnboardingCollectionOptionsOptions : INestedOptions + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). If you don't specify collection_options, the default value is + /// currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientOnboardingOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientOnboardingOptions.cs new file mode 100644 index 0000000000..ca92015379 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientOnboardingOptions.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseRecipientOnboardingOptions : INestedOptions + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkCreateUseCaseRecipientOnboardingCollectionOptionsOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/core/account can be configured to enable certain functionality. The + /// configuration param targets the v2/core/account_link to collect information for the + /// specified v2/core/account configuration/s. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the AccountLink is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new AccountLink + /// with the same parameters used to create the original AccountLink, then redirect the user + /// to the new AccountLink's URL so they can continue the flow. If a new AccountLink cannot + /// be generated or the redirect fails you should display a useful error to the user. Please + /// make sure to implement authentication before redirecting the user in case this URL is + /// leaked to a third party. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientUpdateCollectionOptionsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientUpdateCollectionOptionsOptions.cs new file mode 100644 index 0000000000..9cbdba01d6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientUpdateCollectionOptionsOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseRecipientUpdateCollectionOptionsOptions : INestedOptions + { + /// + /// Specifies whether the platform collects only currently_due requirements + /// (currently_due) or both currently_due and eventually_due requirements + /// (eventually_due). The default value is currently_due. + /// One of: currently_due, or eventually_due. + /// + [JsonProperty("fields")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("fields")] +#endif + public string Fields { get; set; } + + /// + /// Specifies whether the platform collects future_requirements in addition to requirements + /// in Connect Onboarding. The default value is omit. + /// One of: include, or omit. + /// + [JsonProperty("future_requirements")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("future_requirements")] +#endif + public string FutureRequirements { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientUpdateOptions.cs new file mode 100644 index 0000000000..535bfa61c5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseRecipientUpdateOptions.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountLinkCreateUseCaseRecipientUpdateOptions : INestedOptions + { + /// + /// Specifies the requirements that Stripe collects from v2/core/accounts in the Update + /// flow. + /// + [JsonProperty("collection_options")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collection_options")] +#endif + public AccountLinkCreateUseCaseRecipientUpdateCollectionOptionsOptions CollectionOptions { get; set; } + + /// + /// Open Enum. A v2/account can be configured to enable certain functionality. The + /// configuration param targets the v2/account_link to collect information for the specified + /// v2/account configuration/s. + /// + [JsonProperty("configurations")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("configurations")] +#endif + public List Configurations { get; set; } + + /// + /// The URL the user will be redirected to if the Account Link is expired, has been used, or + /// is otherwise invalid. The URL you specify should attempt to generate a new Account Link + /// with the same parameters used to create the original Account Link, then redirect the + /// user to the new Account Link URL so they can continue the flow. Make sure to + /// authenticate the user before redirecting to the new Account Link, in case the URL leaks + /// to a third party. If a new Account Link can't be generated, or if the redirect fails, + /// you should display a useful error to the user. + /// + [JsonProperty("refresh_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("refresh_url")] +#endif + public string RefreshUrl { get; set; } + + /// + /// The URL that the user will be redirected to upon completing the linked flow. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs index a35f22cccb..f3fb8bd434 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantOptions.cs @@ -73,6 +73,15 @@ public class AccountCreateConfigurationMerchantOptions : INestedOptions #endif public AccountCreateConfigurationMerchantScriptStatementDescriptorOptions ScriptStatementDescriptor { get; set; } + /// + /// Settings used for Smart Disputes. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountCreateConfigurationMerchantSmartDisputesOptions SmartDisputes { get; set; } + /// /// Statement descriptor. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions.cs new file mode 100644 index 0000000000..eed3ceb5b6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions : INestedOptions + { + /// + /// The preference for Smart Disputes auto-respond. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesOptions.cs new file mode 100644 index 0000000000..7ec2f09bad --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantSmartDisputesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationMerchantSmartDisputesOptions : INestedOptions + { + /// + /// Settings for Smart Disputes auto_respond. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountCreateConfigurationMerchantSmartDisputesAutoRespondOptions AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs new file mode 100644 index 0000000000..06b145f97b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions : INestedOptions + { + /// + /// Can hold storage-type funds on Stripe in USD in a consumer financial account. + /// + [JsonProperty("usd")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("usd")] +#endif + public AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions Usd { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs new file mode 100644 index 0000000000..c693c49caf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerOptions.cs new file mode 100644 index 0000000000..7c2361a764 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCreateConfigurationStorerCapabilitiesConsumerOptions : INestedOptions + { + /// + /// Can hold storage-type funds on Stripe in a consumer financial account. + /// + [JsonProperty("holds_currencies")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("holds_currencies")] +#endif + public AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions HoldsCurrencies { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs index b79a996e09..6c4f093076 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.V2.Core public class AccountCreateConfigurationStorerCapabilitiesOptions : INestedOptions { + /// + /// Can provision a consumer financial account on Stripe. + /// + [JsonProperty("consumer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("consumer")] +#endif + public AccountCreateConfigurationStorerCapabilitiesConsumerOptions Consumer { get; set; } + /// /// Can provision a financial address to credit/debit a FinancialAccount. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs index 272d6d1d3b..d3353bf7fe 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantOptions.cs @@ -83,6 +83,15 @@ public class AccountUpdateConfigurationMerchantOptions : INestedOptions #endif public AccountUpdateConfigurationMerchantScriptStatementDescriptorOptions ScriptStatementDescriptor { get; set; } + /// + /// Settings for Smart Disputes automatic response feature. + /// + [JsonProperty("smart_disputes")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("smart_disputes")] +#endif + public AccountUpdateConfigurationMerchantSmartDisputesOptions SmartDisputes { get; set; } + /// /// Settings for the default statement descriptor text. diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions.cs new file mode 100644 index 0000000000..0ac4c4b568 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions : INestedOptions + { + /// + /// The preference for automatic dispute responses. + /// One of: inherit, off, or on. + /// + [JsonProperty("preference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preference")] +#endif + public string Preference { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesOptions.cs new file mode 100644 index 0000000000..753eb96bf5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantSmartDisputesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationMerchantSmartDisputesOptions : INestedOptions + { + /// + /// Settings for Smart Disputes auto_respond. + /// + [JsonProperty("auto_respond")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("auto_respond")] +#endif + public AccountUpdateConfigurationMerchantSmartDisputesAutoRespondOptions AutoRespond { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs new file mode 100644 index 0000000000..fbad46dac4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions : INestedOptions + { + /// + /// Can hold storage-type funds on Stripe in USD in a consumer financial account. + /// + [JsonProperty("usd")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("usd")] +#endif + public AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions Usd { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs new file mode 100644 index 0000000000..5d3020bbb2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions : INestedOptions + { + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerOptions.cs new file mode 100644 index 0000000000..8c9e8e9b3d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountUpdateConfigurationStorerCapabilitiesConsumerOptions : INestedOptions + { + /// + /// Can hold storage-type funds on Stripe in a consumer financial account. + /// + [JsonProperty("holds_currencies")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("holds_currencies")] +#endif + public AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions HoldsCurrencies { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs index 42e6f3b9ac..8b44357baf 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs @@ -8,6 +8,15 @@ namespace Stripe.V2.Core public class AccountUpdateConfigurationStorerCapabilitiesOptions : INestedOptions { + /// + /// Can provision a consumer financial account. + /// + [JsonProperty("consumer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("consumer")] +#endif + public AccountUpdateConfigurationStorerCapabilitiesConsumerOptions Consumer { get; set; } + /// /// Can provision a financial address to credit/debit a FinancialAccount. /// diff --git a/src/Stripe.net/Services/V2/Iam/ApiKeys/ApiKeyService.cs b/src/Stripe.net/Services/V2/Iam/ApiKeys/ApiKeyService.cs index 3a6aee54aa..e315b62e37 100644 --- a/src/Stripe.net/Services/V2/Iam/ApiKeys/ApiKeyService.cs +++ b/src/Stripe.net/Services/V2/Iam/ApiKeys/ApiKeyService.cs @@ -21,7 +21,7 @@ internal ApiKeyService(IStripeClient client) } /// - /// Create an API key. To create a secret key in livemode, a public key for encryption must + /// Create an API Key. To create a secret key in livemode, a public key for encryption must /// be provided. /// public virtual ApiKey Create(ApiKeyCreateOptions options, RequestOptions requestOptions = null) @@ -30,7 +30,7 @@ public virtual ApiKey Create(ApiKeyCreateOptions options, RequestOptions request } /// - /// Create an API key. To create a secret key in livemode, a public key for encryption must + /// Create an API Key. To create a secret key in livemode, a public key for encryption must /// be provided. /// public virtual Task CreateAsync(ApiKeyCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) @@ -39,7 +39,7 @@ public virtual Task CreateAsync(ApiKeyCreateOptions options, RequestOpti } /// - /// Expire an API key. The specified key becomes invalid immediately. + /// Expire an API Key. The specified key becomes invalid immediately. /// public virtual ApiKey Expire(string id, ApiKeyExpireOptions options = null, RequestOptions requestOptions = null) { @@ -47,7 +47,7 @@ public virtual ApiKey Expire(string id, ApiKeyExpireOptions options = null, Requ } /// - /// Expire an API key. The specified key becomes invalid immediately. + /// Expire an API Key. The specified key becomes invalid immediately. /// public virtual Task ExpireAsync(string id, ApiKeyExpireOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -55,7 +55,7 @@ public virtual Task ExpireAsync(string id, ApiKeyExpireOptions options = } /// - /// Retrieve an API key. For livemode secret keys, secret tokens are only returned on + /// Retrieve an API Key. For livemode secret keys, secret tokens are only returned on /// creation, and never returned here. /// public virtual ApiKey Get(string id, ApiKeyGetOptions options = null, RequestOptions requestOptions = null) @@ -64,7 +64,7 @@ public virtual ApiKey Get(string id, ApiKeyGetOptions options = null, RequestOpt } /// - /// Retrieve an API key. For livemode secret keys, secret tokens are only returned on + /// Retrieve an API Key. For livemode secret keys, secret tokens are only returned on /// creation, and never returned here. /// public virtual Task GetAsync(string id, ApiKeyGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) @@ -73,7 +73,7 @@ public virtual Task GetAsync(string id, ApiKeyGetOptions options = null, } /// - /// List all API keys of an account. + /// List all API Keys of an account. /// public virtual V2.StripeList List(ApiKeyListOptions options = null, RequestOptions requestOptions = null) { @@ -81,7 +81,7 @@ public virtual V2.StripeList List(ApiKeyListOptions options = null, Requ } /// - /// List all API keys of an account. + /// List all API Keys of an account. /// public virtual Task> ListAsync(ApiKeyListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -89,7 +89,7 @@ public virtual V2.StripeList List(ApiKeyListOptions options = null, Requ } /// - /// List all API keys of an account. + /// List all API Keys of an account. /// public virtual IEnumerable ListAutoPaging(ApiKeyListOptions options = null, RequestOptions requestOptions = null) { @@ -97,7 +97,7 @@ public virtual IEnumerable ListAutoPaging(ApiKeyListOptions options = nu } /// - /// List all API keys of an account. + /// List all API Keys of an account. /// public virtual IAsyncEnumerable ListAutoPagingAsync(ApiKeyListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -105,7 +105,7 @@ public virtual IAsyncEnumerable ListAutoPagingAsync(ApiKeyListOptions op } /// - /// Rotate an API key. A new key with the same properties is created and returned. The + /// Rotate an API Key. A new key with the same properties is created and returned. The /// existing key is expired immediately, unless an expiry time is specified. /// public virtual ApiKey Rotate(string id, ApiKeyRotateOptions options = null, RequestOptions requestOptions = null) @@ -114,7 +114,7 @@ public virtual ApiKey Rotate(string id, ApiKeyRotateOptions options = null, Requ } /// - /// Rotate an API key. A new key with the same properties is created and returned. The + /// Rotate an API Key. A new key with the same properties is created and returned. The /// existing key is expired immediately, unless an expiry time is specified. /// public virtual Task RotateAsync(string id, ApiKeyRotateOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) @@ -123,7 +123,7 @@ public virtual Task RotateAsync(string id, ApiKeyRotateOptions options = } /// - /// Update an API key. Only parameters that are specified in the request will be updated. + /// Update an API Key. Only parameters that are specified in the request will be updated. /// public virtual ApiKey Update(string id, ApiKeyUpdateOptions options, RequestOptions requestOptions = null) { @@ -131,7 +131,7 @@ public virtual ApiKey Update(string id, ApiKeyUpdateOptions options, RequestOpti } /// - /// Update an API key. Only parameters that are specified in the request will be updated. + /// Update an API Key. Only parameters that are specified in the request will be updated. /// public virtual Task UpdateAsync(string id, ApiKeyUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountCreateStorageOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountCreateStorageOptions.cs index 8db1b93f44..6ce04d4670 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountCreateStorageOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountCreateStorageOptions.cs @@ -9,6 +9,17 @@ namespace Stripe.V2.MoneyManagement public class FinancialAccountCreateStorageOptions : INestedOptions { + /// + /// The usage type for funds in this FinancialAccount. Can be used to specify that the funds + /// are for Consumer activity. + /// One of: business, or consumer. + /// + [JsonProperty("funds_usage_type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("funds_usage_type")] +#endif + public string FundsUsageType { get; set; } + /// /// The currencies that this FinancialAccount can hold. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs index 92ba4a8825..907da174c6 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -66,6 +66,15 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata #endif public string OutboundPaymentQuote { get; set; } + /// + /// The purpose of the OutboundPayment. + /// + [JsonProperty("purpose")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purpose")] +#endif + public string Purpose { get; set; } + /// /// Details about the notification settings for the OutboundPayment recipient. /// diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 50e2cfbce6..e961d7e1b7 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -43,7 +43,7 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, /// 2025-06-30.basil, 2025-07-30.basil, 2025-08-27.basil, /// 2025-09-30.clover, 2025-10-29.clover, 2025-11-17.clover, - /// 2025-12-15.clover, or 2026-01-28.clover. + /// 2025-12-15.clover, 2026-01-28.clover, or 2026-02-25.clover. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER @@ -80,7 +80,7 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing_portal.configuration.created, + /// billing.credit_grant.created, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -183,15 +183,18 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// radar.early_fraud_warning.updated, refund.created, refund.failed, /// refund.updated, reporting.report_run.failed, /// reporting.report_run.succeeded, reporting.report_type.updated, - /// review.closed, review.opened, setup_intent.canceled, - /// setup_intent.created, setup_intent.requires_action, - /// setup_intent.setup_failed, setup_intent.succeeded, - /// sigma.scheduled_query_run.created, source.canceled, - /// source.chargeable, source.failed, source.mandate_notification, - /// source.refund_attributes_required, source.transaction.created, - /// source.transaction.updated, subscription_schedule.aborted, - /// subscription_schedule.canceled, subscription_schedule.completed, - /// subscription_schedule.created, subscription_schedule.expiring, + /// reserve.hold.created, reserve.hold.updated, reserve.plan.created, + /// reserve.plan.disabled, reserve.plan.expired, reserve.plan.updated, + /// reserve.release.created, review.closed, review.opened, + /// setup_intent.canceled, setup_intent.created, + /// setup_intent.requires_action, setup_intent.setup_failed, + /// setup_intent.succeeded, sigma.scheduled_query_run.created, + /// source.canceled, source.chargeable, source.failed, + /// source.mandate_notification, source.refund_attributes_required, + /// source.transaction.created, source.transaction.updated, + /// subscription_schedule.aborted, subscription_schedule.canceled, + /// subscription_schedule.completed, subscription_schedule.created, + /// subscription_schedule.expiring, /// subscription_schedule.price_migration_failed, /// subscription_schedule.released, subscription_schedule.updated, /// tax.form.updated, tax.settings.updated, tax_rate.created, @@ -222,9 +225,9 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, /// invoice_payment.detached, billing.credit_balance_transaction.created, - /// billing.credit_grant.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, or ping. ///
[JsonProperty("enabled_events")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 1235b1ac00..5f70ea868d 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -37,7 +37,7 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, /// balance_settings.updated, billing.alert.triggered, - /// billing_portal.configuration.created, + /// billing.credit_grant.created, billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -140,15 +140,18 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// radar.early_fraud_warning.updated, refund.created, refund.failed, /// refund.updated, reporting.report_run.failed, /// reporting.report_run.succeeded, reporting.report_type.updated, - /// review.closed, review.opened, setup_intent.canceled, - /// setup_intent.created, setup_intent.requires_action, - /// setup_intent.setup_failed, setup_intent.succeeded, - /// sigma.scheduled_query_run.created, source.canceled, - /// source.chargeable, source.failed, source.mandate_notification, - /// source.refund_attributes_required, source.transaction.created, - /// source.transaction.updated, subscription_schedule.aborted, - /// subscription_schedule.canceled, subscription_schedule.completed, - /// subscription_schedule.created, subscription_schedule.expiring, + /// reserve.hold.created, reserve.hold.updated, reserve.plan.created, + /// reserve.plan.disabled, reserve.plan.expired, reserve.plan.updated, + /// reserve.release.created, review.closed, review.opened, + /// setup_intent.canceled, setup_intent.created, + /// setup_intent.requires_action, setup_intent.setup_failed, + /// setup_intent.succeeded, sigma.scheduled_query_run.created, + /// source.canceled, source.chargeable, source.failed, + /// source.mandate_notification, source.refund_attributes_required, + /// source.transaction.created, source.transaction.updated, + /// subscription_schedule.aborted, subscription_schedule.canceled, + /// subscription_schedule.completed, subscription_schedule.created, + /// subscription_schedule.expiring, /// subscription_schedule.price_migration_failed, /// subscription_schedule.released, subscription_schedule.updated, /// tax.form.updated, tax.settings.updated, tax_rate.created, @@ -179,9 +182,9 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, /// invoice_payment.detached, billing.credit_balance_transaction.created, - /// billing.credit_grant.created, billing.credit_grant.updated, - /// billing.meter.created, billing.meter.deactivated, - /// billing.meter.reactivated, billing.meter.updated, or ping. + /// billing.credit_grant.updated, billing.meter.created, + /// billing.meter.deactivated, billing.meter.reactivated, + /// billing.meter.updated, or ping. ///
[JsonProperty("enabled_events")] #if NET6_0_OR_GREATER diff --git a/src/StripeTests/Infrastructure/Public/SystemNetHttpClientTest.cs b/src/StripeTests/Infrastructure/Public/SystemNetHttpClientTest.cs index 60b71287a5..fd21fe9b7c 100644 --- a/src/StripeTests/Infrastructure/Public/SystemNetHttpClientTest.cs +++ b/src/StripeTests/Infrastructure/Public/SystemNetHttpClientTest.cs @@ -1,5 +1,6 @@ namespace StripeTests { + using System; using System.Linq; using System.Net; using System.Net.Http; @@ -132,6 +133,67 @@ public void CanInspectEnableTelemetry() Assert.True(client.EnableTelemetry); } + [Fact] + public void TestDetectAIAgent() + { + var result = SystemNetHttpClient.DetectAIAgent( + key => key == "CLAUDECODE" ? "1" : null); + Assert.Equal("claude_code", result); + } + + [Fact] + public void TestDetectAIAgentNoEnvVars() + { + var result = SystemNetHttpClient.DetectAIAgent(key => null); + Assert.Equal(string.Empty, result); + } + + [Fact] + public void TestDetectAIAgentFirstMatchWins() + { + var result = SystemNetHttpClient.DetectAIAgent( + key => key == "CURSOR_AGENT" || key == "OPENCODE" ? "1" : null); + Assert.Equal("cursor", result); + } + + [Fact] + public async Task AIAgentIncludedInHeaders() + { + var responseMessage = new HttpResponseMessage(HttpStatusCode.OK); + responseMessage.Content = new StringContent("Hello world!"); + this.MockHttpClientFixture.MockHandler.Protected() + .Setup>( + "SendAsync", + ItExpr.IsAny(), + ItExpr.IsAny()) + .Returns(Task.FromResult(responseMessage)); + + Environment.SetEnvironmentVariable("CLAUDECODE", "1"); + try + { + var client = new SystemNetHttpClient( + httpClient: new HttpClient(this.MockHttpClientFixture.MockHandler.Object)); + var request = new StripeRequest( + this.StripeClient, + HttpMethod.Post, + "/foo", + null, + null); + await client.MakeRequestAsync(request); + + this.MockHttpClientFixture.MockHandler.Protected() + .Verify( + "SendAsync", + Times.Once(), + ItExpr.Is(m => this.VerifyAIAgentHeaders(m.Headers)), + ItExpr.IsAny()); + } + finally + { + Environment.SetEnvironmentVariable("CLAUDECODE", null); + } + } + private bool VerifyHeaders(HttpRequestHeaders headers) { var userAgent = headers.UserAgent.ToString(); @@ -156,5 +218,16 @@ private bool VerifyHeaders(HttpRequestHeaders headers) return true; } + + private bool VerifyAIAgentHeaders(HttpRequestHeaders headers) + { + var userAgent = headers.UserAgent.ToString(); + var userAgentJson = JObject.Parse(headers.GetValues("X-Stripe-Client-User-Agent").First()); + + Assert.Contains("AIAgent/claude_code", userAgent); + Assert.Equal("claude_code", userAgentJson.Value("ai_agent")); + + return true; + } } } diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index a01cef327f..74db4b2c2a 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -8344,13 +8344,13 @@ public void TestV2CoreAccountLinkPost() HttpMethod.Post, "/v2/core/account_links", (HttpStatusCode)200, - "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"account_onboarding\"},\"livemode\":true}"); + "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"recipient_onboarding\"},\"livemode\":true}"); var options = new Stripe.V2.Core.AccountLinkCreateOptions { Account = "account", UseCase = new Stripe.V2.Core.AccountLinkCreateUseCaseOptions { - Type = "account_onboarding", + Type = "recipient_onboarding", AccountOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingOptions { CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions @@ -8373,6 +8373,28 @@ public void TestV2CoreAccountLinkPost() RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, + RecipientOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseRecipientOnboardingOptions + { + CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseRecipientOnboardingCollectionOptionsOptions + { + Fields = "eventually_due", + FutureRequirements = "include", + }, + Configurations = new List { "recipient" }, + RefreshUrl = "refresh_url", + ReturnUrl = "return_url", + }, + RecipientUpdate = new Stripe.V2.Core.AccountLinkCreateUseCaseRecipientUpdateOptions + { + CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseRecipientUpdateCollectionOptionsOptions + { + Fields = "eventually_due", + FutureRequirements = "include", + }, + Configurations = new List { "recipient" }, + RefreshUrl = "refresh_url", + ReturnUrl = "return_url", + }, }, }; var client = new StripeClient(this.Requestor); @@ -9835,7 +9857,7 @@ public void TestV2MoneyManagementTransactionGet() HttpMethod.Get, "/v2/money_management/transactions", (HttpStatusCode)200, - "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"issuing_dispute_provisional_credit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.StripeList transactions = service @@ -9852,7 +9874,7 @@ public void TestV2MoneyManagementTransactionGet2() HttpMethod.Get, "/v2/money_management/transactions/id_123", (HttpStatusCode)200, - "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"issuing_dispute_provisional_credit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"},\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); + "{\"amount\":{\"value\":111972721,\"currency\":\"usd\"},\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"status\":\"pending\",\"status_transitions\":{},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.MoneyManagement.Transaction transaction = service.Get( @@ -9869,7 +9891,7 @@ public void TestV2MoneyManagementTransactionEntryGet() HttpMethod.Get, "/v2/money_management/transaction_entries", (HttpStatusCode)200, - "{\"data\":[{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"issuing_dispute_provisional_credit_reversal\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"}},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.StripeList transactionEntries = service @@ -9886,7 +9908,7 @@ public void TestV2MoneyManagementTransactionEntryGet2() HttpMethod.Get, "/v2/money_management/transaction_entries/id_123", (HttpStatusCode)200, - "{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"issuing_dispute_provisional_credit_reversal\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"adjustment\"}},\"livemode\":true}"); + "{\"balance_impact\":{\"available\":{\"value\":111972721,\"currency\":\"usd\"},\"inbound_pending\":{\"value\":111972721,\"currency\":\"usd\"},\"outbound_pending\":{\"value\":111972721,\"currency\":\"usd\"}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service