diff --git a/API_VERSION b/API_VERSION new file mode 100644 index 0000000000..c77af7bdda --- /dev/null +++ b/API_VERSION @@ -0,0 +1 @@ +2025-06-30.preview \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b9275122cd..801eefd9ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,11 +39,11 @@ This release changes the pinned API version to `2025-05-28.preview`. * Add support for `BillingModeDetails` on `Subscription` * Add support for `TaxTransactionAttempts` on `Tax.Association` * Add support for `ConfirmConfig` on `Terminal.Reader.Action.ConfirmPaymentIntent` and `Terminal.ReaderConfirmPaymentIntentOptions` - + ## 48.2.0 - 2025-05-29 This release changes the pinned API version to `2025-05-28.basil`. -* [#3128](https://github.com/stripe/stripe-dotnet/pull/3128) Update generated code. +* [#3128](https://github.com/stripe/stripe-dotnet/pull/3128) Update generated code. * Add support for `AttachPayment` method on resource `Invoice` * Add support for `CollectInputs` method on resource `Terminal.Reader` * Add support for `SucceedInputCollection` and `TimeoutInputCollection` test helper methods on resource `Terminal.Reader` @@ -231,11 +231,11 @@ See [SaaS platform payments with subscription billing using Accounts v2](https:/ * [#3074](https://github.com/stripe/stripe-dotnet/pull/3074) System.Text.Json Serialization Support release to GA * Add System.Text.Json support for serializing Stripe.net entities and objects for applications running on .NET 6 and above. Now you can pass a Stripe.net object or collection of objects to the System.Text.Json serializer and it will produce the correct JSON string. * [#3056](https://github.com/stripe/stripe-dotnet/pull/3056) Support for APIs in the new API version 2025-03-31.basil - + This release changes the pinned API version to `2025-03-31.basil`. - + ### ⚠️ Breaking changes due to changes in the Stripe API - + Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/basil) before upgrading. * Remove support for resources `SubscriptionItemUsageRecordSummary` and `SubscriptionItemUsageRecord` @@ -263,9 +263,9 @@ See [SaaS platform payments with subscription billing using Accounts v2](https:/ * Remove support for `AggregateUsage` on `PlanCreateOptions`, `Plan`, `PriceRecurringOptions`, and `PriceRecurring` * Remove support for `CurrentPeriodEnd` and `CurrentPeriodStart` on `Subscription` * Remove support for Page on `V2.EventDestinationListOptions` and `V2.EventListOptions` - + ### Additions - + * Add support for new resource `InvoicePayment` * Add support for `Get` and `List` methods on resource `InvoicePayment` * Add support for `BilliePayments`, `NzBankAccountBecsDebitPayments`, and `SatispayPayments` on `AccountCapabilitiesOptions` and `AccountCapabilities` @@ -291,7 +291,7 @@ See [SaaS platform payments with subscription billing using Accounts v2](https:/ * Add support for `NzBankTransfer` on `RefundDestinationDetails` * Add support for `CurrentPeriodEnd` and `CurrentPeriodStart` on `SubscriptionItem` * Add support for `Wifi` on `Terminal.ConfigurationCreateOptions`, `Terminal.ConfigurationUpdateOptions`, and `TerminalConfiguration` - + ### ⚠️ Other Breaking changes in the SDK * [#3065](https://github.com/stripe/stripe-dotnet/pull/3065) Merge breaking changes from sdk-release/next-major branch to master * Adds `StripeAccount` and `StripeContext` to `StripeClientOptions`, so you can specify the Stripe-Account or Stripe-Context header at the client (instead of the individual request) level. See [PR #3058](https://github.com/stripe/stripe-dotnet/pull/3058) @@ -537,7 +537,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. * [#3007](https://github.com/stripe/stripe-dotnet/pull/3007) Fixes ApiRequestorAdapter requests with BaseAddress other than Api - fixes bug where OAuthTokenService created without an explicit StripeClient accesses the wrong base url - + * [#3003](https://github.com/stripe/stripe-dotnet/pull/3003) Cleaned up examples and added documentation ## 46.2.0 - 2024-10-09 @@ -573,19 +573,19 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x ## 46.0.0 - 2024-10-01 * [#2980](https://github.com/stripe/stripe-dotnet/pull/2980) Support for APIs in the new API version 2024-09-30.acacia - - This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. - + + This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Changelog](https://docs.stripe.com/changelog/acacia#2024-09-30.acacia) and carefully review the API changes before upgrading. + ### ⚠️ Breaking changes due to changes in the API - + * Rename `UsageThresholdConfig` to `UsageThreshold` on `Billing.Alert` and `Billing.AlertCreateOptions` * Remove support for `Filter` on `Billing.Alert` and `BillingAlert.AlertCreateOptions `. Use the filters on the `UsageThreshold` instead * Remove support for `CustomerConsentCollected` on `Terminal.ReaderProcessSetupIntentOptions` - + ### ⚠️ Other Breaking changes in the SDK - + Refer to our [migration guide for v46](https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v46) for a list of backwards incompatible changes in this release. Here is a summary of things to watch out for: - + * [Remove obsolete properties and methods](https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v46#removals) from `Service` and `ServiceNested` base classes including `CreateEntity` and other `*Entity` and `*EntityAsync` methods, `BasePath`, and `BaseUrl` * [Rename `Stripe.Event` to `Stripe.EventTypes`](https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v46#renaming-stripeevents-to-stripeeventtypes). This class contains constants for event type strings. * For more predictable naming of child services and their corresponding Options classes: @@ -595,7 +595,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x * `Newtonsoft.Json` dependency has been upgraded for all .NET target runtimes. This is potentially a breaking change if you also depend on `Newtonsoft.Json` directly from your application. To migrate, please upgrade the version of Newtonsoft.Json your application depends on. If you have runtime conflicts with another library dependency, you can use `` to specify which version .NET should load (see https://stackoverflow.com/a/51053646 and https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/bindingredirect-element) ### Additions - + * Add support for `UsageThreshold` on `Billing.AlertCreateOptions` and `BillingAlert` * Add support for `CustomUnitAmount` on `ProductDefaultPriceDataOptions` * Add support for `AllowRedisplay` on `Terminal.ReaderProcessSetupIntentOptions` and `TerminalReaderProcessConfigOptions` @@ -786,18 +786,18 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x ## 45.0.0 - 2024-06-24 * [#2929](https://github.com/stripe/stripe-dotnet/pull/2929) Update generated code - - This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. - + + This release changes the pinned API version to 2024-06-20. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-06-20) and carefully review the API changes before upgrading. + ### ⚠️ Breaking changes - + * Remove the unused resource `PlatformTaxFee` * Rename `VolumeDecimal` to `QuantityDecimal` on `IssuingAuthorizationPurchaseDetailsFuelOptions`, `IssuingTransactionPurchaseDetailsFuelOptions`, and `IssuingTransactionPurchaseDetailsFuel` - + ### Additions - + * Add support for `FinalizeAmount` test helper method on resource `Issuing.Authorization` - * Add support for new values `platform_disabled`, `paused.inactivity` and `other` on enums `CapabilityRequirements.DisabledReason` and `CapabilityFutureRequirements.DisabledReason` + * Add support for new values `platform_disabled`, `paused.inactivity` and `other` on enums `CapabilityRequirements.DisabledReason` and `CapabilityFutureRequirements.DisabledReason` * Add support for `Fleet` on `Issuing.TestHelpersAuthorizationCreateOptions`, `IssuingAuthorizationPurchaseDetailsOptions`, `IssuingAuthorization`, `IssuingTransactionPurchaseDetailsOptions`, and `IssuingTransactionPurchaseDetails` * Add support for `Fuel` on `Issuing.TestHelpersAuthorizationCreateOptions` and `IssuingAuthorization` * Add support for `IndustryProductCode` and `QuantityDecimal` on `IssuingAuthorizationPurchaseDetailsFuelOptions`, `IssuingTransactionPurchaseDetailsFuelOptions`, and `IssuingTransactionPurchaseDetailsFuel` @@ -947,26 +947,26 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x * Add support for `NextRefreshAvailableAt` on `FinancialConnectionsAccountOwnershipRefresh` ## 44.0.0 - 2024-04-10 -* [#2884](https://github.com/stripe/stripe-dotnet/pull/2884) - - * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading. - +* [#2884](https://github.com/stripe/stripe-dotnet/pull/2884) + + * This release changes the pinned API version to `2024-04-10`. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-04-10) and carefully review the API changes before upgrading. + ### ⚠️ Breaking changes - + * Change the property `Amount` on `SourceTransaction` to not be nullable * Remove the below unused classes * `InvoiceLineItemAutomaticTaxOptions` * `InvoiceLineItemCustomerDetailsOptions` * `InvoiceLineItemCustomerDetailsTaxIdOptions` * `InvoiceLineItemCustomerDetailsTaxOptions` - * Change the type of the below date fields from `long` to `DateTime` + * Change the type of the below date fields from `long` to `DateTime` * `AccountSettingsCardIssuingTosAcceptance.Date` * `AccountSettingsTreasuryTosAcceptance.Date` * `PaymentIntentNextActionPixDisplayQrCode.ExpiresAt` * `PaymentIntentPaymentMethodOptionsPix.ExpiresAt` * `CalculationCreateOptions.TaxDate` * Rename `Features` to `MarketingFeatures` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`. - + #### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API * Remove `BillingPortal.ConfigurationFeatures.SubscriptionPause` and `BillingPortal.ConfigurationFeaturesOptions.SubscriptionPause` as the feature to pause subscription on the portal has been deprecated. * Remove the below deprecated events from `Event.Type`, `WebhookEndpointCreateOptions.EnabledEvents`, `WebhookEndpointUpdateOptions.EnabledEvents` and the constants in `Events` @@ -983,7 +983,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x * `obligation_payout` * `obligation_payout_failure` * `obligation_reversal_outbound` - * Remove the support for `various` in `Climate.Supplier.RemovalPathway` + * Remove the support for `various` in `Climate.Supplier.RemovalPathway` * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` by removing the below classes * `PaymentMethodConfigurationIdBankTransfer` * `PaymentMethodConfigurationMultibanco` @@ -1404,7 +1404,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x - Update pinned API version to `2023-10-16` ## 43.0.0 - 2023-10-16 -* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `Stripe.net`. +* This release changes the pinned API version to `2023-10-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-10-16) and carefully review the API changes before upgrading `Stripe.net`. * [#2781](https://github.com/stripe/stripe-dotnet/pull/2781) Update generated code * Add support for `LegalGuardian` on `AccountRelationshipOptions` and `TokenPersonRelationshipOptions` * Add support for `AdditionalTosAcceptances` on `TokenPersonOptions` @@ -1561,7 +1561,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x * Add support for `FlatAmount` on `Tax.TransactionCreateReversalOptions` ## 42.0.0 - 2023-08-16 -* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-dotnet`. +* This release changes the pinned API version to `2023-08-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-08-16) and carefully review the API changes before upgrading `stripe-dotnet`. * More information is available in the [stripe-dotnet v42 migration guide](https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v42) * [#2750](https://github.com/stripe/stripe-dotnet/pull/2750) Update generated code "⚠️" symbol highlights breaking changes. @@ -1590,7 +1590,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x `SubscriptionSchedulePhaseOptions.TrialEnd`. These fields are dates or numbers that also support special signifier strings like "now". They have been changed to use `AnyOf<...>`. * [#2746](http://github.com/stripe/stripe-dotnet/pull/2746) Type changes * ⚠️ Change type of `AccountSettingsPayoutsScheduleOptions.MonthlyAnchor` from string to long. -* [#2751](https://github.com/stripe/stripe-dotnet/pull/2751) +* [#2751](https://github.com/stripe/stripe-dotnet/pull/2751) * ⚠️ Remove several deprecated constants from `Event` * ⚠️ Make `Discount.Start` non-nullable * ⚠️ Reflect that `Discount.Subscription` is not expandable @@ -1866,7 +1866,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x * Add support for `Country` on `ChargePaymentMethodDetailsLink` * Add support for `PreferredLocale` on `PaymentIntentPaymentMethodOptionsAffirmOptions` and `PaymentIntentPaymentMethodOptionsAffirm` * Add support for `CashappHandleRedirectOrDisplayQrCode` on `PaymentIntentNextAction` and `SetupIntentNextAction` - + * [#2657](https://github.com/stripe/stripe-dotnet/pull/2657) Update generated code (new) * Add support for `CashappPayments` on `AccountCapabilitiesOptions` and `AccountCapabilities` * Add support for `Cashapp` on `ChargePaymentMethodDetails`, `Checkout.SessionPaymentMethodOptionsOptions`, `Checkout.SessionPaymentMethodOptions`, `MandatePaymentMethodDetails`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodCreateOptions`, `PaymentMethodUpdateOptions`, `PaymentMethod`, `SetupAttemptPaymentMethodDetails`, and `SetupIntentPaymentMethodDataOptions` @@ -2033,7 +2033,7 @@ However, [a bug](https://github.com/stripe/stripe-dotnet/pull/3010) in the `46.x ## 41.0.0 - 2022-11-16 -Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15. +Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://docs.stripe.com/changelog/2022-11-15. "⚠️" symbol highlights breaking changes. @@ -2192,7 +2192,7 @@ Breaking changes that arose during code generation of the library that we postpo ## 40.2.0 - 2022-08-11 * [#2556](https://github.com/stripe/stripe-dotnet/pull/2556) API Updates * Add support for `PaymentMethodCollection` on `Checkout.SessionCreateOptions`, `Checkout.Session`, `PaymentLinkCreateOptions`, `PaymentLinkUpdateOptions`, and `PaymentLink` - + * [#2555](https://github.com/stripe/stripe-dotnet/pull/2555) Set MaxDepth for serialization and deserialization * [#2554](https://github.com/stripe/stripe-dotnet/pull/2554) Add test for FileCreation from base64 in memory @@ -2211,7 +2211,8 @@ Breaking changes that arose during code generation of the library that we postpo Major version release for API version 2022-08-01. Default API version changed to "2022-08-01". -Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v40. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01. +* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://docs.stripe.com/changelog/2022-08-01 +* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-dotnet/wiki/Migration-guide-for-v40. "⚠️" symbol highlights breaking changes. @@ -2224,7 +2225,7 @@ Breaking changes that arose during code generation of the library that we postpo ## 39.125.0 - 2022-07-25 * [#2543](https://github.com/stripe/stripe-dotnet/pull/2543) API Updates - * Add support for `Installments` on `Checkout.SessionPaymentMethodOptionsCardOptions`, `Checkout.SessionPaymentMethodOptionsCard`, `InvoicePaymentSettingsPaymentMethodOptionsCardOptions`, and `InvoicePaymentSettingsPaymentMethodOptionsCard` + * Add support for `Installments` on `Checkout.SessionPaymentMethodOptionsCardOptions`, `Checkout.SessionPaymentMethodOptionsCard`, `InvoicePaymentSettingsPaymentMethodOptionsCardOptions`, and `InvoicePaymentSettingsPaymentMethodOptionsCard` * Add support for `DefaultCurrency` and `InvoiceCreditBalance` on `Customer` * Add support for `Currency` on `InvoiceCreateOptions` * Add support for `DefaultMandate` on `InvoicePaymentSettingsOptions` and `InvoicePaymentSettings` @@ -2383,7 +2384,7 @@ Breaking changes that arose during code generation of the library that we postpo * Add support for `Metadata` on `SubscriptionSchedulePhasesOptions` and `SubscriptionSchedulePhases` * [#2478](https://github.com/stripe/stripe-dotnet/pull/2478) Make dotnet formatting faster * [#2479](https://github.com/stripe/stripe-dotnet/pull/2479) API Updates - + * Add support for `AmountDiscount`, `AmountTax`, and `Product` on `LineItem` ## 39.110.0 - 2022-05-05 @@ -2397,7 +2398,7 @@ Breaking changes that arose during code generation of the library that we postpo * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` * Add support for `FinancialConnections` on `Checkout.SessionPaymentMethodOptionsUsBankAccountOptions`, `Checkout.SessionPaymentMethodOptionsUsBankAccount`, `InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountOptions`, `InvoicePaymentSettingsPaymentMethodOptionsUsBankAccount`, `PaymentIntentPaymentMethodOptionsUsBankAccountOptions`, `PaymentIntentPaymentMethodOptionsUsBankAccount`, `SetupIntentPaymentMethodOptionsUsBankAccountOptions`, `SetupIntentPaymentMethodOptionsUsBankAccount`, `SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccount` * Add support for `FinancialConnections.Account` on `PaymentIntentPaymentMethodDataUsBankAccountOptions`, `PaymentMethodUsBankAccountOptions`, `PaymentMethodUsBankAccount`, and `SetupIntentPaymentMethodDataUsBankAccountOptions` - + * [#2473](https://github.com/stripe/stripe-dotnet/pull/2473) API Updates * Add support for `RegisteredAddress` on `AccountIndividualOptions`, `PersonCreateOptions`, `PersonUpdateOptions`, `Person`, `TokenAccountIndividualOptions`, and `TokenPersonOptions` * Change type of `PaymentIntentAmountDetailsTipAmount` from `nullable(integer)` to `integer` @@ -2410,7 +2411,7 @@ Breaking changes that arose during code generation of the library that we postpo * Add support for `Alipay` on `Checkout.SessionPaymentMethodOptionsOptions` and `Checkout.SessionPaymentMethodOptions` * Add support for `CashBalance` on `Customer` * Add support for `Application` on `Invoice`, `Quote`, `SubscriptionSchedule`, and `Subscription` - + * [#2470](https://github.com/stripe/stripe-dotnet/pull/2470) Add missing payment links events * [#2468](https://github.com/stripe/stripe-dotnet/pull/2468) Harden ValidateSignature against invalid input * [#2467](https://github.com/stripe/stripe-dotnet/pull/2467) Cleanup .NET project files @@ -2530,7 +2531,7 @@ Breaking changes that arose during code generation of the library that we postpo * Add support for `NextAction` on `Refund` ## 39.93.0 - 2022-02-25 -* [#2426](https://github.com/stripe/stripe-dotnet/pull/2426) API Updates +* [#2426](https://github.com/stripe/stripe-dotnet/pull/2426) API Updates * Add support for `KonbiniPayments` on `AccountCapabilitiesOptions`, `AccountCapabilitiesOptions`, and `AccountCapabilities` * Add support for `Konbini` on `ChargePaymentMethodDetails`, `Checkout.SessionPaymentMethodOptionsOptions`, `Checkout.SessionPaymentMethodOptions`, `InvoicePaymentSettingsPaymentMethodOptionsOptions`, `PaymentIntentPaymentMethodDataOptions`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodCreateOptions`, `PaymentMethod`, `SubscriptionPaymentSettingsPaymentMethodOptionsOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptions` * Add support for `KonbiniDisplayDetails` on `PaymentIntentNextAction` @@ -2570,17 +2571,17 @@ Breaking changes that arose during code generation of the library that we postpo * [#2412](https://github.com/stripe/stripe-dotnet/pull/2412) API Updates * Add support for `CustomerCreation` on `Checkout.SessionCreateOptions` and `Checkout.Session` * Add support for `Fpx` and `Grabpay` on `PaymentIntentPaymentMethodOptionsOptions`, and `PaymentIntentPaymentMethodOptions` - + * [#2408](https://github.com/stripe/stripe-dotnet/pull/2408) API Updates * Add support for `MandateOptions` on `SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions`, `SubscriptionPaymentSettingsPaymentMethodOptionsCardOptions`, and `SubscriptionPaymentSettingsPaymentMethodOptionsCard` ## 39.84.0 - 2021-12-22 * [#2406](https://github.com/stripe/stripe-dotnet/pull/2406) API Updates * Add support for `AuBecsDebit` on `PaymentIntentPaymentMethodOptionsOptions`, `PaymentIntentPaymentMethodOptionsOptions`, `PaymentIntentPaymentMethodOptionsOptions`, and `PaymentIntentPaymentMethodOptions` - + * [#2405](https://github.com/stripe/stripe-dotnet/pull/2405) API Updates * Add support for `Boleto` on `SetupAttemptPaymentMethodDetails` - + * [#2404](https://github.com/stripe/stripe-dotnet/pull/2404) API Updates * Add support for `Processing` on `PaymentIntent` @@ -2709,7 +2710,7 @@ Breaking changes that arose during code generation of the library that we postpo ## 39.60.0 - 2021-07-20 * [#2349](https://github.com/stripe/stripe-dotnet/pull/2349) API Updates * Add support for `Wallet` on `Issuing.Transaction` - * Add support for `Ideal` on `PaymentIntentPaymentMethodOptionsOptions` + * Add support for `Ideal` on `PaymentIntentPaymentMethodOptionsOptions` * [#2348](https://github.com/stripe/stripe-dotnet/pull/2348) Remove unused API error types from docs. @@ -3602,7 +3603,7 @@ Pull requests included in this release (cf. [#1694](https://github.com/stripe/st * This is technically a breaking change, but we're releasing as a patch version as the non-nullable type made it impossible to deserialize `credit_note` objects in most cases. ## 29.0.0 - 2019-09-10 -* [#1780](https://github.com/stripe/stripe-dotnet/pull/1780) Bump API version to [`2019-09-09`](https://stripe.com/docs/upgrades#2019-09-09) +* [#1780](https://github.com/stripe/stripe-dotnet/pull/1780) Bump API version to [`2019-09-09`](https://docs.stripe.com/changelog/2019-09-09) ## 28.11.0 - 2019-09-09 * [#1778](https://github.com/stripe/stripe-dotnet/pull/1778) Changes to `Account` and `Person` for identity verification @@ -3644,7 +3645,7 @@ Pull requests included in this release (cf. [#1694](https://github.com/stripe/st * Add support for `Executive` on Person create, update and list ## 28.0.0 - 2019-08-14 -* [#1747](https://github.com/stripe/stripe-dotnet/pull/1747) Move to API version [`2019-08-14`](https://stripe.com/docs/upgrades#2019-08-14) +* [#1747](https://github.com/stripe/stripe-dotnet/pull/1747) Move to API version [`2019-08-14`](https://docs.stripe.com/changelog/2019-08-14) * Rename `platform_payments` to `transfers` in `Account` * Introduce `executive` as a relationship on `Person` * [#1746](https://github.com/stripe/stripe-dotnet/pull/1746) Fix argument names in `SetupIntentService` methods @@ -3913,7 +3914,7 @@ Pull requests included in this release (cf. [#1482](https://github.com/stripe/st * [#1557](https://github.com/stripe/stripe-dotnet/pull/1557) Add support for `person_token` on `Person` creation ## 25.0.0 - 2019-03-19 -* [#1552](https://github.com/stripe/stripe-dotnet/pull/1552) Add support for API version [2019-03-14](https://stripe.com/docs/upgrades#2019-03-14): +* [#1552](https://github.com/stripe/stripe-dotnet/pull/1552) Add support for API version [2019-03-14](https://docs.stripe.com/changelog/2019-03-14): * The library is now pinned to API version `2019-03-14`. * Subscriptions are now created with `status: "incomplete"` if the first payment fails. * `PaymentIntentLastPaymentError` was removed in favour of `StripeError`. @@ -4202,7 +4203,7 @@ Pull requests included in this release (cf. [#1293](https://github.com/stripe/st * Fix 19.0.0 release. The version that was pushed to NuGet did not include the changes from 19.0.0. ## 19.0.0 - 2018-08-27 -* [#1259](https://github.com/stripe/stripe-dotnet/pull/1259) Upgrade to API version [2018-08-23](https://stripe.com/docs/upgrades#2018-08-23) +* [#1259](https://github.com/stripe/stripe-dotnet/pull/1259) Upgrade to API version [2018-08-23](https://docs.stripe.com/changelog/2018-08-23) List of backwards incompatible changes: * `BusinessVatId` on `StripeCustomer` / `StripeCustomerCreateOptions` / `StripeCustomerUpdateOptions` is replaced with `TaxInfo` diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3108db19f2..d8931ef8a6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1773 \ No newline at end of file +v1819 \ No newline at end of file diff --git a/README.md b/README.md index d3bbdfdc52..202c501cfc 100644 --- a/README.md +++ b/README.md @@ -43,14 +43,31 @@ how to use the library. ## Usage -### Authentication +### Using StripeClient -Stripe authenticates API requests using your account’s secret key, which you can find in the Stripe Dashboard. By default, secret keys can be used to perform any API request without restriction. +In version 46 of the Stripe .NET SDK, we have enhanced the `StripeClient` class to be the entry point to access all services that had to be previously independently instantiated with global configuration. This improves discoverability during IDE auto-completion and creates a more intuitive developer experience for you. -Use `StripeConfiguration.ApiKey` property to set the secret key. +Each client instantiation can have its own configuration so you can access Stripe API with different API keys or different configuration (like number of retries) on a per client basis and without changing a global configuration. ```C# +// StripeClient pattern (Recommended) +var client = new StripeClient("sk_test_..."); +Customer customer = client.V1.Customers.Get("cus_1234"); + +// Global Configuration pattern (Legacy) StripeConfiguration.ApiKey = "sk_test_..."; +var service = new CustomerService(); +Customer customer = service.Get("cus_1234"); +``` + +The previous global configuration pattern will continue to be supported. + +### Authentication + +Stripe authenticates API requests using your account’s secret key, which you can find in the Stripe Dashboard. By default, secret keys can be used to perform any API request without restriction. + +```C# +var client = new StripeClient("sk_test_..."); ``` ### Creating a resource @@ -63,8 +80,8 @@ var options = new CustomerCreateOptions Email = "customer@example.com" }; -var service = new CustomerService(); -Customer customer = service.Create(options); +var client = new StripeClient("sk_test_..."); +Customer customer = client.V1.Customers.Create(options); // Newly created customer is returned Console.WriteLine(customer.Email); @@ -75,8 +92,8 @@ Console.WriteLine(customer.Email); The `Retrieve` method of the service class can be used to retrieve a resource: ```C# -var service = new CustomerService(); -Customer customer = service.Get("cus_1234"); +var client = new StripeClient("sk_test_..."); +Customer customer = client.V1.Customers.Get("cus_1234"); Console.WriteLine(customer.Email); ``` @@ -91,8 +108,8 @@ var options = new CustomerUpdateOptions Email = "updated-email@example.com" }; -var service = new CustomerService(); -Customer customer = service.Update("cus_123", options); +var client = new StripeClient("sk_test_..."); +Customer customer = client.V1.Customers.Update("cus_123", options); // The updated customer is returned Console.WriteLine(customer.Email); @@ -103,8 +120,8 @@ Console.WriteLine(customer.Email); The `Delete` method of the service class can be used to delete a resource: ```C# -var service = new CustomerService(); -Customer customer = service.Delete("cus_123", options); +var client = new StripeClient("sk_test_..."); +Customer customer = client.V1.Customers.Delete("cus_123", options); ``` ### Listing a resource @@ -115,8 +132,8 @@ The `List` method on the service class can be used to list resources page-by-pag > The `List` method returns only a single page, you have to manually continue the iteration using the `StartingAfter` parameter. ```C# -var service = new CustomerService(); -var customers = service.List(); +var client = new StripeClient("sk_test_..."); +var customers = client.V1.Customers.List(); string lastId = null; @@ -145,8 +162,8 @@ foreach (Customer customer in customers) The `ListAutoPaging` method on the service class can be used to automatically iterate over all pages. ```C# -var service = new CustomerService(); -var customers = service.ListAutoPaging(); +var client = new StripeClient("sk_test_..."); +var customers = client.V1.Customers.ListAutoPaging(); // Enumerate all pages of the list foreach (Customer customer in customers) @@ -157,7 +174,7 @@ foreach (Customer customer in customers) ### Per-request configuration -All of the service methods accept an optional `RequestOptions` object. This is +All the service methods accept an optional `RequestOptions` object. This is used if you want to set an [idempotency key][idempotency-keys], if you are using [Stripe Connect][connect-auth], or if you want to pass the secret API key on each method. @@ -216,8 +233,8 @@ options.AddExtraParam("secret_feature_enabled", "true"); options.AddExtraParam("secret_parameter[primary]", "primary value"); options.AddExtraParam("secret_parameter[secondary]", "secondary value"); -var service = new CustomerService(); -var customer = service.Create(options); +var client = new StripeClient("sk_test_..."); +var customer = client.V1.Customers.Create(options); ``` #### Properties @@ -225,13 +242,12 @@ var customer = service.Create(options); To retrieve undocumented properties from Stripe using C# you can use an option in the library to return the raw JSON object and return the property. An example of this is shown below: ```c# -var service = new CustomerService(); -var customer = service.Get("cus_1234"); +var client = new StripeClient("sk_test_..."); +var customer = client.V1.Customers.Get("cus_1234"); customer.RawJObject["secret_feature_enabled"]; customer.RawJObject["secret_parameter"]["primary"]; customer.RawJObject["secret_parameter"]["secondary"]; - ``` This is only supported on objects returned directly from the Stripe.net SDK. If you are serializing Stripe objects to JSON you will need to handle undocumented properties separately. diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index d39a0f71a7..c35ead0806 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2025-05-28.preview"; + public const string Current = "2025-06-30.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs index 19cbdc80a4..60c966ccee 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountManagementFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountManagementFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs index 815d29e638..8c03f39b1f 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs index 82ccce0d3f..0a58bc84eb 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsBalancesFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs index 9eab52a491..6462168b97 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs index c87f6b64fa..d32cafd450 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsFinancialAccountFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,7 +22,10 @@ public class AccountSessionComponentsFinancialAccountFeatures : StripeEntity - /// Whether to allow external accounts to be linked for money transfer. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs index 450117a727..9145d978d5 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs @@ -36,9 +36,11 @@ public class AccountSessionComponentsIssuingCardsListFeatures : StripeEntity - /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs index 28312b1232..3d8e3bf163 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs index 448cead3b6..908fdad7d2 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs index 23e56115ef..d497c8f79d 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs @@ -9,8 +9,8 @@ namespace Stripe public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity { /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs index a8844c71af..91d9557615 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs index 9629dc3b82..cff3233978 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsPayoutsFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs index 8ee8fd41f7..537ad94334 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs @@ -194,6 +194,17 @@ public class AccountCapabilities : StripeEntity #endif public string CashappPayments { get; set; } + /// + /// The status of the Crypto capability of the account, or whether the account can directly + /// process Crypto payments. + /// One of: active, inactive, or pending. + /// + [JsonProperty("crypto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto_payments")] +#endif + public string CryptoPayments { get; set; } + /// /// The status of the EPS payments capability of the account, or whether the account can /// directly process EPS charges. diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs index 1161bb7c55..dd41f1b6ea 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -38,6 +39,17 @@ public class AccountSettingsPayoutsSchedule : StripeEntity + /// The days of the month funds will be paid out. Only shown if interval is monthly. + /// Payouts scheduled between the 29th and 31st of the month are sent on the last day of + /// shorter months. + /// + [JsonProperty("monthly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_payout_days")] +#endif + public List MonthlyPayoutDays { get; set; } + /// /// The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only /// shown if interval is weekly. @@ -47,5 +59,17 @@ public class AccountSettingsPayoutsSchedule : StripeEntity + /// The days of the week when available funds are paid out, specified as an array, for + /// example, [monday, tuesday]. Only shown if interval is weekly. + /// One of: friday, monday, saturday, sunday, thursday, + /// tuesday, or wednesday. + /// + [JsonProperty("weekly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("weekly_payout_days")] +#endif + public List WeeklyPayoutDays { get; set; } } } diff --git a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs index 7846c77525..b0b802ae7c 100644 --- a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs +++ b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs @@ -10,8 +10,7 @@ namespace Stripe.BillingPortal public class SessionFlowSubscriptionUpdateConfirm : StripeEntity { /// - /// The coupon or promotion code to apply to this subscription update. Currently, only up to - /// one may be specified. + /// The coupon or promotion code to apply to this subscription update. /// [JsonProperty("discounts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index 7a94478b26..d6eff549cf 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -110,6 +110,12 @@ public class ChargePaymentMethodDetails : StripeEntity - /// Installment details for this payment (Mexico only). + /// Installment details for this payment. /// /// For more information, see the installments integration guide. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index 3db0b86a70..04d4450194 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs index b5bb79a6b0..6fd64e8476 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs new file mode 100644 index 0000000000..48c7844bd5 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs @@ -0,0 +1,49 @@ +// 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 ChargePaymentMethodDetailsCrypto : StripeEntity + { + /// + /// The wallet address of the customer. + /// + [JsonProperty("buyer_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("buyer_address")] +#endif + public string BuyerAddress { get; set; } + + /// + /// The blockchain network that the transaction was sent on. + /// One of: base, ethereum, or polygon. + /// + [JsonProperty("network")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network")] +#endif + public string Network { get; set; } + + /// + /// The token currency that the transaction was sent with. + /// One of: usdc, usdg, or usdp. + /// + [JsonProperty("token_currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_currency")] +#endif + public string TokenCurrency { get; set; } + + /// + /// The blockchain transaction hash of the crypto payment. + /// + [JsonProperty("transaction_hash")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_hash")] +#endif + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs index 82588fd5d5..a18217a5d6 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs @@ -14,13 +14,13 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, + /// buut, handelsbanken, ing, knab, moneyou, n26, + /// nn, rabobank, regiobank, revolut, sns_bank, + /// triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, /// handelsbanken, ing, knab, moneyou, n26, nn, /// rabobank, regiobank, revolut, sns_bank, triodos_bank, /// van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -31,9 +31,9 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs index 385f33781b..730a39446d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs @@ -169,7 +169,9 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs index cc15ec157d..a4f18d496d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs @@ -19,7 +19,8 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs index 80c7bbaa1a..035aeba659 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs @@ -29,7 +29,8 @@ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan : StripeE public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs index b05fca760d..50ad08f684 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs @@ -121,6 +121,12 @@ public class ConfirmationTokenPaymentMethodPreview : StripeEntity @@ -411,13 +417,13 @@ public Customer Customer /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// card_present, cashapp, customer_balance, eps, fpx, - /// giropay, gopay, grabpay, id_bank_transfer, ideal, - /// interac_present, kakao_pay, klarna, konbini, kr_card, - /// link, mb_way, mobilepay, multibanco, naver_pay, - /// nz_bank_account, oxxo, p24, pay_by_bank, payco, - /// paynow, paypal, payto, pix, promptpay, qris, - /// rechnung, revolut_pay, samsung_pay, satispay, + /// card_present, cashapp, crypto, customer_balance, eps, + /// fpx, giropay, gopay, grabpay, id_bank_transfer, + /// ideal, interac_present, kakao_pay, klarna, konbini, + /// kr_card, link, mb_way, mobilepay, multibanco, + /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, payto, pix, promptpay, + /// qris, rechnung, revolut_pay, samsung_pay, satispay, /// sepa_debit, shopeepay, sofort, stripe_balance, swish, /// twint, us_bank_account, wechat_pay, or zip. /// diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index d56c5af90d..2eb152fe30 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public bool OvercaptureSupported { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs index e74c5c7118..a53df77dbb 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs index 158665d3e6..c1fda1243a 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs @@ -155,7 +155,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCrypto.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCrypto.cs new file mode 100644 index 0000000000..bff588b586 --- /dev/null +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCrypto.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class ConfirmationTokenPaymentMethodPreviewCrypto : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs index 127834fe58..cd6e5f6a51 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs @@ -10,13 +10,13 @@ public class ConfirmationTokenPaymentMethodPreviewIdeal : StripeEntity /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, - /// bunq, handelsbanken, ing, knab, moneyou, n26, - /// nn, rabobank, regiobank, revolut, sns_bank, - /// triodos_bank, van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// bunq, buut, handelsbanken, ing, knab, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -27,9 +27,9 @@ public class ConfirmationTokenPaymentMethodPreviewIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank, if the bank was provided. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs index 4e8ebb572b..bdf34b583d 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs @@ -134,7 +134,9 @@ public class ConfirmationTokenPaymentMethodPreviewInteracPresent : StripeEntity< public ConfirmationTokenPaymentMethodPreviewInteracPresentNetworks Networks { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs index 6368e3ad9c..cc2f7ceca0 100644 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs +++ b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs @@ -39,7 +39,7 @@ public class CustomerSessionComponentsPaymentElementFeatures : StripeEntity /// Determines the max number of saved payment methods for the Payment Element to display. - /// This parameter defaults to 3. + /// This parameter defaults to 3. The maximum redisplay limit is 10. /// [JsonProperty("payment_method_redisplay_limit")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/Dispute.cs b/src/Stripe.net/Entities/Disputes/Dispute.cs index 049d0001f2..e5cc784335 100644 --- a/src/Stripe.net/Entities/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Disputes/Dispute.cs @@ -124,6 +124,7 @@ public Charge Charge /// /// List of eligibility types that are included in enhanced_evidence. + /// One of: visa_compelling_evidence_3, or visa_compliance. /// [JsonProperty("enhanced_eligibility_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetails.cs b/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetails.cs index 17fd76f96c..f17a50d0e5 100644 --- a/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetails.cs +++ b/src/Stripe.net/Entities/Disputes/DisputeEvidenceDetails.cs @@ -58,5 +58,15 @@ public class DisputeEvidenceDetails : StripeEntity [STJS.JsonPropertyName("submission_count")] #endif public long SubmissionCount { get; set; } + + /// + /// Whether the dispute was submitted manually, with Smart Disputes, or not submitted. + /// One of: manual, not_submitted, or smart_disputes. + /// + [JsonProperty("submission_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("submission_method")] +#endif + public string SubmissionMethod { get; set; } } } diff --git a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs index 23b3d655ae..8ebb20eb21 100644 --- a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs @@ -22,7 +22,7 @@ public class DisputePaymentMethodDetailsCard : StripeEntity /// The type of dispute opened. Different case types may have varying fees and financial /// impact. - /// One of: chargeback, or inquiry. + /// One of: chargeback, compliance, or inquiry. /// [JsonProperty("case_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index a31d531e20..35197f55c2 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -72,8 +72,10 @@ public class Event : StripeEntity, IHasId, IHasObject public string Account { get; set; } /// - /// The Stripe API version used to render data. This property is populated only for - /// events on or after October 31, 2014. + /// The Stripe API version used to render data when the event was created. The + /// contents of data never change, so this value remains static regardless of the API + /// version currently in use. This property is populated only for events created on or after + /// October 31, 2014. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs index 9200d7c1e5..dcc7ad211d 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs @@ -207,6 +207,12 @@ public VerificationReport LastVerificationReport #endif public string RelatedCustomerAccount { get; set; } + [JsonProperty("related_person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_person")] +#endif + public VerificationSessionRelatedPerson RelatedPerson { get; set; } + /// /// Status of this VerificationSession. Learn more about the lifecycle diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs index f34588e9f7..4210f007be 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs @@ -26,6 +26,12 @@ public class VerificationSessionOptions : StripeEntity + { + /// + /// Strictness of the DOB matching policy to apply. + /// One of: none, or similar. + /// + [JsonProperty("dob")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dob")] +#endif + public string Dob { get; set; } + + /// + /// Strictness of the name matching policy to apply. + /// One of: none, or similar. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRelatedPerson.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRelatedPerson.cs new file mode 100644 index 0000000000..930745e099 --- /dev/null +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRelatedPerson.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Identity +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class VerificationSessionRelatedPerson : StripeEntity + { + /// + /// Token referencing the associated Account of the related Person resource. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// Token referencing the related Person resource. + /// + [JsonProperty("person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person")] +#endif + public string Person { get; set; } + } +} diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs index c87daa3745..5e7e1ade1c 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs @@ -12,16 +12,15 @@ namespace Stripe /// /// Invoice Items represent the component lines of an invoice. An invoice item is added to an - /// invoice by creating or updating it with an invoice field, at which point it will - /// be included as an invoice line - /// item within invoice. When you create an invoice item + /// with an invoice field, it is attached to the specified invoice and included as an invoice line item within invoice.lines. /// /// Invoice Items can be created before you are ready to actually send the invoice. This can /// be particularly useful when combined with a subscription. Sometimes you want to - /// add a charge or credit to a customer, but actually charge or credit the customer’s card + /// add a charge or credit to a customer, but actually charge or credit the customer's card /// only at the end of a regular billing cycle. This is useful for combining several charges /// (to minimize per-transaction fees), or for having Stripe tabulate your usage-based /// billing totals. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index 6df23e574b..77e5b0e92f 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -38,14 +38,14 @@ public class InvoicePaymentSettings : StripeEntity /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, custom, 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, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, stripe_balance, swish, us_bank_account, or - /// wechat_pay. + /// boleto, card, cashapp, crypto, custom, + /// 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, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, stripe_balance, swish, + /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs index 96ecb7c17e..f6f4c0a2e0 100644 --- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs @@ -50,6 +50,12 @@ public class MandatePaymentMethodDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarna.cs b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarna.cs index ca99e6301f..05838a4d7f 100644 --- a/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarna.cs +++ b/src/Stripe.net/Entities/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarna.cs @@ -45,6 +45,7 @@ public class OrderPaymentSettingsPaymentMethodOptionsKlarna : StripeEntitysetup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, off_session, or on_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs index 6dd67837ea..ab9bb913c2 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetails.cs @@ -122,6 +122,12 @@ public class PaymentAttemptRecordPaymentMethodDetails : StripeEntity /// Custom Payment Methods represent Payment Method types not modeled directly in the Stripe /// API. This resource consists of details about the custom payment method used for this @@ -402,6 +408,9 @@ public class PaymentAttemptRecordPaymentMethodDetails : StripeEntity + /// Details of the US Bank Account used for this payment attempt. + /// [JsonProperty("us_bank_account")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("us_bank_account")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs index fe9b84e4e3..f905b65248 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresent : StripeEntity< public bool OvercaptureSupported { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt.cs index d310681433..91196f0d17 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt : Stripe public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt : Stripe public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt : Stripe public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt : Stripe public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardPresentReceipt : Stripe public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs new file mode 100644 index 0000000000..3d164510d7 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCrypto.cs @@ -0,0 +1,49 @@ +// 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 PaymentAttemptRecordPaymentMethodDetailsCrypto : StripeEntity + { + /// + /// The wallet address of the customer. + /// + [JsonProperty("buyer_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("buyer_address")] +#endif + public string BuyerAddress { get; set; } + + /// + /// The blockchain network that the transaction was sent on. + /// One of: base, ethereum, or polygon. + /// + [JsonProperty("network")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network")] +#endif + public string Network { get; set; } + + /// + /// The token currency that the transaction was sent with. + /// One of: usdc, usdg, or usdp. + /// + [JsonProperty("token_currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_currency")] +#endif + public string TokenCurrency { get; set; } + + /// + /// The blockchain transaction hash of the crypto payment. + /// + [JsonProperty("transaction_hash")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_hash")] +#endif + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs index be57525b00..dd241bc1a2 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsIdeal.cs @@ -14,13 +14,13 @@ public class PaymentAttemptRecordPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, + /// buut, handelsbanken, ing, knab, moneyou, n26, + /// nn, rabobank, regiobank, revolut, sns_bank, + /// triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, /// handelsbanken, ing, knab, moneyou, n26, nn, /// rabobank, regiobank, revolut, sns_bank, triodos_bank, /// van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -31,9 +31,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs index 060a090300..3cf2b2a168 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresent.cs @@ -169,7 +169,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresent : StripeEnti public string NetworkTransactionId { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt.cs index 9284ecd0af..efa8119a1c 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt.cs @@ -19,7 +19,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt : Str public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt : Str public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt : Str public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt : Str public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsInteracPresentReceipt : Str public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs index 7b4d77b791..5d64c89d8d 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsUsBankAccount.cs @@ -13,7 +13,6 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsUsBankAccount : StripeEntity { /// - /// Account holder type: individual or company. /// One of: company, or individual. /// [JsonProperty("account_holder_type")] @@ -23,7 +22,6 @@ public class PaymentAttemptRecordPaymentMethodDetailsUsBankAccount : StripeEntit public string AccountHolderType { get; set; } /// - /// Account type: checkings or savings. Defaults to checking if omitted. /// One of: checking, or savings. /// [JsonProperty("account_type")] @@ -102,7 +100,7 @@ public Mandate Mandate #endregion /// - /// Reference number to locate ACH payments with customer's bank. + /// Reference number to locate ACH payments with customer’s bank. /// [JsonProperty("payment_reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs index 67563d5d0f..5c17e03dc5 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs @@ -98,6 +98,12 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity - /// Installment details for this payment (Mexico only). + /// Installment details for this payment. /// /// For more information, see the installments integration guide. diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs index de3110f078..4f1761a643 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs @@ -29,7 +29,8 @@ public class PaymentIntentPaymentMethodOptionsCardInstallmentsPlan : StripeEntit public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCrypto.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCrypto.cs new file mode 100644 index 0000000000..0978b21ac6 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCrypto.cs @@ -0,0 +1,37 @@ +// 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 PaymentIntentPaymentMethodOptionsCrypto : StripeEntity + { + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsGopay.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsGopay.cs index d51e49cfc3..8ccc4777d9 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsGopay.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsGopay.cs @@ -27,6 +27,7 @@ public class PaymentIntentPaymentMethodOptionsGopay : StripeEntitysetup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, or off_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs index ddf6088eb2..402284c449 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs @@ -45,6 +45,7 @@ public class PaymentIntentPaymentMethodOptionsKlarna : StripeEntitysetup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, off_session, or on_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 7f955256bf..f2c6b8035d 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -162,6 +162,12 @@ public class PaymentMethod : StripeEntity, IHasId, IHasMetadata, #endif public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentMethodCrypto Crypto { get; set; } + #region Expandable Customer /// @@ -484,13 +490,13 @@ public Customer Customer /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// card_present, cashapp, customer_balance, eps, fpx, - /// giropay, gopay, grabpay, id_bank_transfer, ideal, - /// interac_present, kakao_pay, klarna, konbini, kr_card, - /// link, mb_way, mobilepay, multibanco, naver_pay, - /// nz_bank_account, oxxo, p24, pay_by_bank, payco, - /// paynow, paypal, payto, pix, promptpay, qris, - /// rechnung, revolut_pay, samsung_pay, satispay, + /// card_present, cashapp, crypto, customer_balance, eps, + /// fpx, giropay, gopay, grabpay, id_bank_transfer, + /// ideal, interac_present, kakao_pay, klarna, konbini, + /// kr_card, link, mb_way, mobilepay, multibanco, + /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, payto, pix, promptpay, + /// qris, rechnung, revolut_pay, samsung_pay, satispay, /// sepa_debit, shopeepay, sofort, stripe_balance, swish, /// twint, us_bank_account, wechat_pay, or zip. /// diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index ddcf678b11..c83a691902 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str public bool OvercaptureSupported { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs index 7854d1fd9c..a03a0b91f2 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs index c790fff811..1e0d1571b6 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs @@ -155,7 +155,9 @@ public class PaymentMethodCardPresent : StripeEntity public PaymentMethodCardPresentOffline Offline { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCrypto.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCrypto.cs new file mode 100644 index 0000000000..6514c5d549 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCrypto.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodCrypto : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs index 5ece22fe11..a122f28ec3 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs @@ -10,13 +10,13 @@ public class PaymentMethodIdeal : StripeEntity { /// /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, - /// bunq, handelsbanken, ing, knab, moneyou, n26, - /// nn, rabobank, regiobank, revolut, sns_bank, - /// triodos_bank, van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// bunq, buut, handelsbanken, ing, knab, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -27,9 +27,9 @@ public class PaymentMethodIdeal : StripeEntity /// /// The Bank Identifier Code of the customer's bank, if the bank was provided. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs index ded445fbb8..f905631c8f 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs @@ -134,7 +134,9 @@ public class PaymentMethodInteracPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs index 5a5560a293..591f2cee3d 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetails.cs @@ -122,6 +122,12 @@ public class PaymentRecordPaymentMethodDetails : StripeEntity /// Custom Payment Methods represent Payment Method types not modeled directly in the Stripe /// API. This resource consists of details about the custom payment method used for this @@ -402,6 +408,9 @@ public class PaymentRecordPaymentMethodDetails : StripeEntity + /// Details of the US Bank Account used for this payment attempt. + /// [JsonProperty("us_bank_account")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("us_bank_account")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs index dff63b447a..53afecbc01 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class PaymentRecordPaymentMethodDetailsCardPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReceipt.cs index 5663517ece..217d3ca403 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class PaymentRecordPaymentMethodDetailsCardPresentReceipt : StripeEntity< public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class PaymentRecordPaymentMethodDetailsCardPresentReceipt : StripeEntity< public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class PaymentRecordPaymentMethodDetailsCardPresentReceipt : StripeEntity< public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class PaymentRecordPaymentMethodDetailsCardPresentReceipt : StripeEntity< public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class PaymentRecordPaymentMethodDetailsCardPresentReceipt : StripeEntity< public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs new file mode 100644 index 0000000000..e941024ba0 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCrypto.cs @@ -0,0 +1,49 @@ +// 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 PaymentRecordPaymentMethodDetailsCrypto : StripeEntity + { + /// + /// The wallet address of the customer. + /// + [JsonProperty("buyer_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("buyer_address")] +#endif + public string BuyerAddress { get; set; } + + /// + /// The blockchain network that the transaction was sent on. + /// One of: base, ethereum, or polygon. + /// + [JsonProperty("network")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network")] +#endif + public string Network { get; set; } + + /// + /// The token currency that the transaction was sent with. + /// One of: usdc, usdg, or usdp. + /// + [JsonProperty("token_currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_currency")] +#endif + public string TokenCurrency { get; set; } + + /// + /// The blockchain transaction hash of the crypto payment. + /// + [JsonProperty("transaction_hash")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_hash")] +#endif + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs index fd56718d10..a5a16582b6 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsIdeal.cs @@ -14,13 +14,13 @@ public class PaymentRecordPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, + /// buut, handelsbanken, ing, knab, moneyou, n26, + /// nn, rabobank, regiobank, revolut, sns_bank, + /// triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, /// handelsbanken, ing, knab, moneyou, n26, nn, /// rabobank, regiobank, revolut, sns_bank, triodos_bank, /// van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -31,9 +31,9 @@ public class PaymentRecordPaymentMethodDetailsIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs index 9ec0997123..c64488af7d 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresent.cs @@ -169,7 +169,9 @@ public class PaymentRecordPaymentMethodDetailsInteracPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresentReceipt.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresentReceipt.cs index 291a60eb45..17881336e2 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresentReceipt.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsInteracPresentReceipt.cs @@ -19,7 +19,8 @@ public class PaymentRecordPaymentMethodDetailsInteracPresentReceipt : StripeEnti public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class PaymentRecordPaymentMethodDetailsInteracPresentReceipt : StripeEnti public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class PaymentRecordPaymentMethodDetailsInteracPresentReceipt : StripeEnti public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class PaymentRecordPaymentMethodDetailsInteracPresentReceipt : StripeEnti public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class PaymentRecordPaymentMethodDetailsInteracPresentReceipt : StripeEnti public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs index 41c14dea44..40823c3e48 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsUsBankAccount.cs @@ -13,7 +13,6 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsUsBankAccount : StripeEntity { /// - /// Account holder type: individual or company. /// One of: company, or individual. /// [JsonProperty("account_holder_type")] @@ -23,7 +22,6 @@ public class PaymentRecordPaymentMethodDetailsUsBankAccount : StripeEntity - /// Account type: checkings or savings. Defaults to checking if omitted. /// One of: checking, or savings. /// [JsonProperty("account_type")] @@ -102,7 +100,7 @@ public Mandate Mandate #endregion /// - /// Reference number to locate ACH payments with customer's bank. + /// Reference number to locate ACH payments with customer’s bank. /// [JsonProperty("payment_reference")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index 15e6f68653..08372f3996 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -38,14 +38,14 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, custom, 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, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, stripe_balance, swish, us_bank_account, or - /// wechat_pay. + /// boleto, card, cashapp, crypto, custom, + /// 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, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, stripe_balance, swish, + /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs index dbdab35fa8..a053ce67c8 100644 --- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs @@ -94,17 +94,13 @@ public Application Application public string BillingBehavior { get; set; } /// - /// The billing - /// mode that will be used to process all future operations for the subscription - /// schedule. - /// One of: classic, or flexible. + /// The billing mode of the subscription. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public QuotePreviewSubscriptionScheduleBillingMode BillingMode { get; set; } /// /// Time at which the subscription schedule was canceled. Measured in seconds since the Unix diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleBillingMode.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleBillingMode.cs new file mode 100644 index 0000000000..be89446d4d --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionScheduleBillingMode.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class QuotePreviewSubscriptionScheduleBillingMode : StripeEntity + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// Details on when the current billing_mode was adopted. + /// + [JsonProperty("updated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("updated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime UpdatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs index 1c28ba329b..f2fd6f3fff 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs @@ -48,16 +48,13 @@ public class QuoteSubscriptionData : StripeEntity, IHasMe public string BillingCycleAnchor { get; set; } /// - /// The billing - /// mode that will be set on the subscription once the quote is accepted. - /// One of: classic, or flexible. + /// The billing mode of the quote. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public QuoteSubscriptionDataBillingMode BillingMode { get; set; } /// /// The subscription's description, meant to be displayable to the customer. Use this field diff --git a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionDataBillingMode.cs b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionDataBillingMode.cs new file mode 100644 index 0000000000..7ae93a26e5 --- /dev/null +++ b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionDataBillingMode.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 QuoteSubscriptionDataBillingMode : StripeEntity + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs index b5cb955132..1f63ba87ce 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs @@ -14,13 +14,13 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, + /// buut, handelsbanken, ing, knab, moneyou, n26, + /// nn, rabobank, regiobank, revolut, sns_bank, + /// triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, /// handelsbanken, ing, knab, moneyou, n26, nn, /// rabobank, regiobank, revolut, sns_bank, triodos_bank, /// van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -31,9 +31,9 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index b8eb75892f..7ca0c5a8cc 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -486,6 +486,8 @@ public PaymentMethod PaymentMethod /// /// The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. + /// A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs index 4fa6f62599..d4db34526b 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs @@ -38,6 +38,12 @@ public class SetupIntentPaymentMethodOptions : StripeEntity + { + /// + /// The currency of the setup intent. Three letter ISO currency code. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// Preferred locale of the Klarna checkout page that the customer is redirected to. + /// + [JsonProperty("preferred_locale")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preferred_locale")] +#endif + public string PreferredLocale { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs index 7b455cd4c7..b67b6f7453 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs @@ -96,17 +96,13 @@ public Application Application public string BillingBehavior { get; set; } /// - /// The billing - /// mode that will be used to process all future operations for the subscription - /// schedule. - /// One of: classic, or flexible. + /// The billing mode of the subscription. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public SubscriptionScheduleBillingMode BillingMode { get; set; } /// /// Time at which the subscription schedule was canceled. Measured in seconds since the Unix diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleBillingMode.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleBillingMode.cs new file mode 100644 index 0000000000..e19d7841cd --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleBillingMode.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionScheduleBillingMode : StripeEntity + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// Details on when the current billing_mode was adopted. + /// + [JsonProperty("updated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("updated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime UpdatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index b4f28b46cc..262ddca02e 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -122,23 +122,13 @@ public Application Application public SubscriptionBillingCycleAnchorConfig BillingCycleAnchorConfig { get; set; } /// - /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. + /// The billing mode of the subscription. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } - - /// - /// Details about when the current billing_mode was updated. - /// - [JsonProperty("billing_mode_details")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("billing_mode_details")] -#endif - public SubscriptionBillingModeDetails BillingModeDetails { get; set; } + public SubscriptionBillingMode BillingMode { get; set; } /// /// Define thresholds at which an invoice will be sent, and the subscription advanced to a @@ -163,8 +153,7 @@ public Application Application /// /// Whether this subscription will (if status=active) or did (if - /// status=canceled) cancel at the end of the current billing period. This field will - /// be removed in a future API version. Please use cancel_at instead. + /// status=canceled) cancel at the end of the current billing period. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER @@ -888,8 +877,7 @@ public TestHelpers.TestClock TestClock public SubscriptionTrialSettings TrialSettings { get; set; } /// - /// If the subscription has a trial, the beginning of that trial. For subsequent trials, - /// this date remains as the start of the first ever trial on the subscription. + /// If the subscription has a trial, the beginning of that trial. /// [JsonProperty("trial_start")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingModeDetails.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingMode.cs similarity index 61% rename from src/Stripe.net/Entities/Subscriptions/SubscriptionBillingModeDetails.cs rename to src/Stripe.net/Entities/Subscriptions/SubscriptionBillingMode.cs index bb06311c67..36a022e7d8 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingModeDetails.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingMode.cs @@ -8,8 +8,18 @@ namespace Stripe using STJS = System.Text.Json.Serialization; #endif - public class SubscriptionBillingModeDetails : StripeEntity + public class SubscriptionBillingMode : StripeEntity { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + /// /// Details on when the current billing_mode was adopted. /// diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 96ad6eddc6..83b6f5eb1a 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -28,14 +28,14 @@ public class SubscriptionPaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, custom, 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, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, stripe_balance, swish, us_bank_account, or - /// wechat_pay. + /// boleto, card, cashapp, crypto, custom, + /// 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, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, stripe_balance, swish, + /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #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 b003607222..f34e658506 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs @@ -548,6 +548,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/Terminal/Configurations/Configuration.cs b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs index 25bb6ea534..94505aba78 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs @@ -8,7 +8,9 @@ namespace Stripe.Terminal /// /// A Configurations object represents how features should be configured for terminal - /// readers. + /// readers. For information about how to use it, see the Terminal + /// configurations documentation. /// public class Configuration : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs index 0f766fe992..e70bb2b945 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionCollectPaymentMethodCollectConfig : StripeEntity { /// - /// Enable customer initiated cancellation when processing this payment. + /// Enable customer-initiated cancellation when processing this payment. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs index 515648dadf..d15b6d4ea9 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs @@ -9,8 +9,8 @@ namespace Stripe.Terminal public class ReaderActionConfirmPaymentIntentConfirmConfig : StripeEntity { /// - /// If the customer does not abandon authenticating the payment, they will be redirected to - /// this specified URL after completion. + /// If the customer doesn't abandon authenticating the payment, they're redirected to this + /// URL after completion. /// [JsonProperty("return_url")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs index 17bb3a1c72..3641943ba5 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionProcessPaymentIntentProcessConfig : StripeEntity { /// - /// Enable customer initiated cancellation when processing this payment. + /// Enable customer-initiated cancellation when processing this payment. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER @@ -18,8 +18,8 @@ public class ReaderActionProcessPaymentIntentProcessConfig : StripeEntity - /// If the customer does not abandon authenticating the payment, they will be redirected to - /// this specified URL after completion. + /// If the customer doesn't abandon authenticating the payment, they're redirected to this + /// URL after completion. /// [JsonProperty("return_url")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs index f8251ad7cc..1b0027d0f2 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionProcessSetupIntentProcessConfig : StripeEntity { /// - /// Enable customer initiated cancellation when processing this SetupIntent. + /// Enable customer-initiated cancellation when processing this SetupIntent. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs index a461ecdaf6..0cc64f3265 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionRefundPaymentRefundPaymentConfig : StripeEntity { /// - /// Enable customer initiated cancellation when refunding this payment. + /// Enable customer-initiated cancellation when refunding this payment. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs index ef937b0fb7..ae386ac268 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerAutomaticIndirectTaxLocation.cs @@ -40,8 +40,8 @@ public class AccountConfigurationCustomerAutomaticIndirectTaxLocation : StripeEn /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs index 52e636e41d..5ea4e6c42e 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusD /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs index 156402d299..345fbc2e9e 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationCustomerShippingAddress.cs @@ -50,8 +50,8 @@ public class AccountConfigurationCustomerShippingAddress : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs index 0c00e38d6f..dee58fa41e 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetai /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs index 182a3a9b44..2babc6b7cb 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs index bb0a74b9a5..ce269e78a5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs index 6ebd5c8a00..6f6834d933 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsSta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs index ad2e4d7389..ab23aef043 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs index 65a5560784..010840317b 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs index 3c7483368d..f3cb1a3ad2 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDe /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs index 9caff4b3e0..3a9813efeb 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs index b883ec43b0..5aa11fb1e7 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDet /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs index bce06b5d1c..51f5823640 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs index ac5c823747..59a7b8cd9d 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs index 4beeb879db..7143fb3734 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs index 7b83c70d18..8a9b4e3d03 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStat /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs index d2d5182010..e65f75ed51 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs index e5e64dabe1..b75d65eda2 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail : S /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs index ce98f21a48..5e0c0e674a 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail : S /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs index a99d1757d0..f01c6f1cf7 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatu /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs index d7397a30c6..4aba03837d 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs index 677f109747..51b2c4b174 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs index c3e54dec0b..9f95f267d5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail : S /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs index 8a1f235e5e..9d4a826229 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatu /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs index 909c28ab77..7e07d0e11e 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetai /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs index 122d55661b..f12da16250 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs index 3c5806e3e6..42b526a2a5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs index 7a605cc472..7b62b4df4b 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs index 360d26f01b..b7db2b58f1 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs index a96d3ce5a6..f1d857bede 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs index fdc205d499..d315e435ec 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDet /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs index b37cd9e3ce..a718d4939b 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatu /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs index 9bf19f04ae..3775df9a3b 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetai /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs index bdc3ee2535..33f63fd8b5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs index 846103fe18..579c759efc 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail : S /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs index 4d7b5ff31f..f5b7bd14c2 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs index 8e1ca00218..96017ea510 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs index 5ecb84c69c..7bdd71a9d7 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs index e51f69e78f..64a4155c89 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs index d8aa8cfb2d..2b3a7cc0c5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDet /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs index df8fb6f022..50efdae9d0 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDet /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs index 944e3b3e09..2b634ca5d5 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsSta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs index 331a4d7323..7710cd3b1a 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs index 9b5515d181..d1572062d3 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusD /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs index 402e713d5b..490692aaec 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs index facd337151..d3ee73d8db 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail : /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs index 0f2c000824..c8173bd65f 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatu /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs index d0eb0b2d99..a01d0ee1fb 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail : S /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs index c58a295579..2a62510c37 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantSupportAddress.cs @@ -50,8 +50,8 @@ public class AccountConfigurationMerchantSupportAddress : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsLocalStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsLocalStatusDetail.cs index 993f7793e8..83d66b47b1 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsLocalStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsLocalStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationRecipientCapabilitiesBankAccountsLocalStatusDet /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsWireStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsWireStatusDetail.cs index bc6cf01d5e..19fe1e8dea 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsWireStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsWireStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationRecipientCapabilitiesBankAccountsWireStatusDeta /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesCardsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesCardsStatusDetail.cs index b0ab424608..cc18268ef2 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesCardsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesCardsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationRecipientCapabilitiesCardsStatusDetail : Stripe /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs index 4e1317eb74..30009db1e0 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatus /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs index b6c4892cc6..5e87525e0c 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.cs @@ -13,7 +13,8 @@ public class AccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfe /// status. /// One of: determining_status, requirements_past_due, /// requirements_pending_verification, restricted_other, - /// unsupported_business, or unsupported_country. + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. /// [JsonProperty("code")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs index 5a3e195472..af4381f387 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentity.cs @@ -61,8 +61,8 @@ public class AccountIdentity : StripeEntity /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs index 3a33f7025a..a93b75b145 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAddress.cs @@ -50,8 +50,8 @@ public class AccountIdentityBusinessDetailsAddress : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs index 5e7ea40dd2..1b46230171 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocuments.cs @@ -75,6 +75,15 @@ public class AccountIdentityBusinessDetailsDocuments : StripeEntity + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountIdentityBusinessDetailsDocumentsProofOfAddress ProofOfAddress { get; set; } + /// /// One or more documents showing the company’s proof of registration with the national /// business registry. diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.cs new file mode 100644 index 0000000000..5832073af6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsDocumentsProofOfAddress.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 AccountIdentityBusinessDetailsDocumentsProofOfAddress : StripeEntity + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs index 0cb4995c4c..2b11c58826 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKana.cs @@ -50,8 +50,8 @@ public class AccountIdentityBusinessDetailsScriptAddressesKana : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs index bbfe771c29..8961139591 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsScriptAddressesKanji.cs @@ -50,8 +50,8 @@ public class AccountIdentityBusinessDetailsScriptAddressesKanji : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs index eb4b47d0e3..43450dbead 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividual.cs @@ -172,8 +172,8 @@ public class AccountIdentityIndividual : StripeEntity /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("nationalities")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs index a6f51c80ef..48f7a957fc 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAdditionalAddress.cs @@ -50,8 +50,8 @@ public class AccountIdentityIndividualAdditionalAddress : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs index 01fa113925..835b117e97 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualAddress.cs @@ -50,8 +50,8 @@ public class AccountIdentityIndividualAddress : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs index 3e02a6a2ed..07df059d5e 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKana.cs @@ -50,8 +50,8 @@ public class AccountIdentityIndividualScriptAddressesKana : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs index e22f6bf1b5..c0e1f3e291 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualScriptAddressesKanji.cs @@ -50,8 +50,8 @@ public class AccountIdentityIndividualScriptAddressesKanji : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Persons/Person.cs b/src/Stripe.net/Entities/V2/Core/Persons/Person.cs index 4ee934162a..f7289b3bb1 100644 --- a/src/Stripe.net/Entities/V2/Core/Persons/Person.cs +++ b/src/Stripe.net/Entities/V2/Core/Persons/Person.cs @@ -195,8 +195,8 @@ public class Person : StripeEntity, IHasId, IHasMetadata, IHasObject /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("nationalities")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs index b7dd835d55..400d19984f 100644 --- a/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Persons/PersonAdditionalAddress.cs @@ -50,8 +50,8 @@ public class PersonAdditionalAddress : StripeEntity /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs index 72c563dc6b..5a5feb6beb 100644 --- a/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs +++ b/src/Stripe.net/Entities/V2/Core/Persons/PersonAddress.cs @@ -50,8 +50,8 @@ public class PersonAddress : StripeEntity /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs index 080027a701..abf3ac5a83 100644 --- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs +++ b/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKana.cs @@ -50,8 +50,8 @@ public class PersonScriptAddressesKana : StripeEntity /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs b/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs index 9e2b38beea..06fd558ffc 100644 --- a/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs +++ b/src/Stripe.net/Entities/V2/Core/Persons/PersonScriptAddressesKanji.cs @@ -50,8 +50,8 @@ public class PersonScriptAddressesKanji : StripeEntitytd, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs index a22a252ce4..0eb7785bd8 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccount.cs @@ -2,6 +2,7 @@ namespace Stripe.V2.MoneyManagement { using System; + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -11,7 +12,7 @@ namespace Stripe.V2.MoneyManagement /// The Financial Account is the container that allows for the configuration of money /// movement. /// - public class FinancialAccount : StripeEntity, IHasId, IHasObject + public class FinancialAccount : StripeEntity, IHasId, IHasMetadata, IHasObject { /// /// Unique identifier for the object. @@ -76,8 +77,8 @@ public class FinancialAccount : StripeEntity, IHasId, IHasObje /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER @@ -94,12 +95,6 @@ public class FinancialAccount : StripeEntity, IHasId, IHasObje #endif public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - [JsonProperty("description")] -#if NET6_0_OR_GREATER - [STJS.JsonPropertyName("description")] -#endif - public string Description { get; set; } - /// /// Has the value true if the object exists in live mode or the value false if /// the object exists in test mode. @@ -110,6 +105,15 @@ public class FinancialAccount : StripeEntity, IHasId, IHasObje #endif public bool Livemode { get; set; } + /// + /// Metadata associated with the FinancialAccount. + /// + [JsonProperty("metadata")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("metadata")] +#endif + public Dictionary Metadata { get; set; } + /// /// If this is a other FinancialAccount, this hash indicates what the actual type is. /// Upgrade your API version to see it reflected in type. @@ -123,7 +127,7 @@ public class FinancialAccount : StripeEntity, IHasId, IHasObje /// /// Closed Enum. An enum representing the status of the FinancialAccount. This indicates /// whether or not the FinancialAccount can be used for any money movement flows. - /// One of: closed, or open. + /// One of: closed, open, or pending. /// [JsonProperty("status")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs index 582bb2770a..0327e4b662 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAccounts/FinancialAccountBalance.cs @@ -19,7 +19,7 @@ public class FinancialAccountBalance : StripeEntity public Dictionary Available { get; set; } /// - /// Balance of inbound funds that will later transition to the cash balance. + /// Balance of inbound funds that will later transition to the available balance. /// [JsonProperty("inbound_pending")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs index 841b5ec245..1e018f24ed 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs @@ -153,7 +153,8 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada /// /// The description that appears on the receiving end for an OutboundPayment (for example, - /// bank statement for external bank transfer). + /// bank statement for external bank transfer). It will default to STRIPE if not set + /// on the account settings. /// [JsonProperty("statement_descriptor")] #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 f1b2d2bfa8..15f98b642a 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs @@ -134,7 +134,8 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta /// /// The description that appears on the receiving end for an OutboundTransfer (for example, - /// bank statement for external bank transfer). + /// bank statement for external bank transfer). It will default to STRIPE if not set + /// on the account settings. /// [JsonProperty("statement_descriptor")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs index b31d874d12..fdc0da8a37 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs @@ -9,21 +9,49 @@ namespace Stripe.V2.MoneyManagement public class ReceivedCreditBalanceTransfer : StripeEntity { /// - /// The ID of the Stripe Money Movement that originated the ReceivedCredit. + /// The ID of the account that owns the source object originated the ReceivedCredit. /// - [JsonProperty("payout_v1")] + [JsonProperty("from_account")] #if NET6_0_OR_GREATER - [STJS.JsonPropertyName("payout_v1")] + [STJS.JsonPropertyName("from_account")] #endif - public string PayoutV1 { get; set; } + public string FromAccount { get; set; } /// /// Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit. + /// One of: outbound_payment, outbound_transfer, or payout_v1. /// [JsonProperty("type")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("type")] #endif public string Type { get; set; } + + /// + /// The ID of the outbound payment object that originated the ReceivedCredit. + /// + [JsonProperty("outbound_payment")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("outbound_payment")] +#endif + public string OutboundPayment { get; set; } + + /// + /// The ID of the outbound transfer object that originated the ReceivedCredit. + /// + [JsonProperty("outbound_transfer")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("outbound_transfer")] +#endif + public string OutboundTransfer { get; set; } + + /// + /// The ID of the payout object that originated the ReceivedCredit. + /// + [JsonProperty("payout_v1")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payout_v1")] +#endif + public string PayoutV1 { get; set; } } } diff --git a/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs b/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs index 1b8f4bdae3..4642c65c7e 100644 --- a/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs +++ b/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs @@ -8,7 +8,7 @@ namespace Stripe.Events #endif /// - /// A ping event used to test the connection to an event destination. + /// A ping event used to test the connection to an EventDestination. /// public class V2CoreEventDestinationPingEvent : V2.Event { diff --git a/src/Stripe.net/Infrastructure/Public/StripeException.cs b/src/Stripe.net/Infrastructure/Public/StripeException.cs index d589e01d8a..a67ea8658e 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeException.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeException.cs @@ -55,6 +55,10 @@ internal static StripeException ParseV2Exception(string type, StripeResponse res ret = Stripe.V2.FinancialAccountNotOpenException.Parse(httpStatusCode, body); break; + case "feature_not_enabled": + ret = Stripe.V2.FeatureNotEnabledException.Parse(httpStatusCode, body); + break; + case "blocked_by_stripe": ret = Stripe.V2.BlockedByStripeException.Parse(httpStatusCode, body); break; @@ -79,10 +83,6 @@ internal static StripeException ParseV2Exception(string type, StripeResponse res ret = Stripe.V2.RecipientNotNotifiableException.Parse(httpStatusCode, body); break; - case "feature_not_enabled": - ret = Stripe.V2.FeatureNotEnabledException.Parse(httpStatusCode, body); - break; - case "invalid_payout_method": ret = Stripe.V2.InvalidPayoutMethodException.Parse(httpStatusCode, body); break; diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs index 1219065d66..a3376b1f9b 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountManagementFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountManagementFeaturesOptions : INestedO public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs index 85c35e1b3f..c676cbc8ea 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountOnboardingFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountOnboardingFeaturesOptions : INestedO public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs index 1ea5f7ff48..81098c9d92 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppInstallFeaturesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class AccountSessionComponentsAppInstallFeaturesOptions : INestedOptions { /// - /// List of apps allowed to be enabled for this account session. + /// The list of apps allowed to be enabled in the embedded component. /// [JsonProperty("allowed_apps")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs index 9089c0a9c5..c2f8bdc645 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAppViewportFeaturesOptions.cs @@ -10,7 +10,7 @@ namespace Stripe public class AccountSessionComponentsAppViewportFeaturesOptions : INestedOptions { /// - /// List of apps allowed to be enabled for this account session. + /// The list of apps allowed to be enabled in the embedded component. /// [JsonProperty("allowed_apps")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs index b81df6af0d..6b27c749f1 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? EditPayoutSchedule { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? ExternalAccountCollection { get; set; } /// - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? InstantPayouts { get; set; } /// - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs index a4c9714bce..09fee7790a 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption public bool? CapturePayments { get; set; } /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs index 583cb57550..8b71e15a26 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsFinancialAccountFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,7 +22,10 @@ public class AccountSessionComponentsFinancialAccountFeaturesOptions : INestedOp public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow external accounts to be linked for money transfer. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs index dd3486d9ab..78dbb2faa3 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs @@ -36,9 +36,11 @@ public class AccountSessionComponentsIssuingCardsListFeaturesOptions : INestedOp public bool? CardholderManagement { get; set; } /// - /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs index d4ed54cd98..ad54207f92 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsNotificationBannerFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsNotificationBannerFeaturesOptions : INested public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index ed5554f0a6..dfc8905d87 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -9,7 +9,9 @@ namespace Stripe public class AccountSessionComponentsOptions : INestedOptions { /// - /// Configuration for the account management embedded component. + /// Configuration for the account + /// management embedded component. /// [JsonProperty("account_management")] #if NET6_0_OR_GREATER @@ -18,7 +20,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsAccountManagementOptions AccountManagement { get; set; } /// - /// Configuration for the account onboarding embedded component. + /// Configuration for the account + /// onboarding embedded component. /// [JsonProperty("account_onboarding")] #if NET6_0_OR_GREATER @@ -27,7 +31,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsAccountOnboardingOptions AccountOnboarding { get; set; } /// - /// Configuration for the app install component. + /// Configuration for the app + /// install embedded component. /// [JsonProperty("app_install")] #if NET6_0_OR_GREATER @@ -36,7 +42,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsAppInstallOptions AppInstall { get; set; } /// - /// Configuration for the app viewport component. + /// Configuration for the app + /// viewport embedded component. /// [JsonProperty("app_viewport")] #if NET6_0_OR_GREATER @@ -45,7 +53,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsAppViewportOptions AppViewport { get; set; } /// - /// Configuration for the balances embedded component. + /// Configuration for the balances + /// embedded component. /// [JsonProperty("balances")] #if NET6_0_OR_GREATER @@ -54,7 +64,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsBalancesOptions Balances { get; set; } /// - /// Configuration for the capital financing embedded component. + /// Configuration for the Capital + /// financing embedded component. /// [JsonProperty("capital_financing")] #if NET6_0_OR_GREATER @@ -63,7 +75,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsCapitalFinancingOptions CapitalFinancing { get; set; } /// - /// Configuration for the capital financing application embedded component. + /// Configuration for the Capital + /// financing application embedded component. /// [JsonProperty("capital_financing_application")] #if NET6_0_OR_GREATER @@ -72,7 +86,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsCapitalFinancingApplicationOptions CapitalFinancingApplication { get; set; } /// - /// Configuration for the capital financing promotion embedded component. + /// Configuration for the Capital + /// financing promotion embedded component. /// [JsonProperty("capital_financing_promotion")] #if NET6_0_OR_GREATER @@ -81,7 +97,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsCapitalFinancingPromotionOptions CapitalFinancingPromotion { get; set; } /// - /// Configuration for the capital overview embedded component. + /// Configuration for the Capital + /// overview embedded component. /// [JsonProperty("capital_overview")] #if NET6_0_OR_GREATER @@ -90,7 +108,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsCapitalOverviewOptions CapitalOverview { get; set; } /// - /// Configuration for the disputes list embedded component. + /// Configuration for the disputes + /// list embedded component. /// [JsonProperty("disputes_list")] #if NET6_0_OR_GREATER @@ -99,7 +119,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsDisputesListOptions DisputesList { get; set; } /// - /// Configuration for the documents embedded component. + /// Configuration for the documents + /// embedded component. /// [JsonProperty("documents")] #if NET6_0_OR_GREATER @@ -108,7 +130,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsDocumentsOptions Documents { get; set; } /// - /// Configuration for the export tax transactions embedded component. + /// Configuration for the export + /// tax transactions embedded component. /// [JsonProperty("export_tax_transactions")] #if NET6_0_OR_GREATER @@ -117,7 +141,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsExportTaxTransactionsOptions ExportTaxTransactions { get; set; } /// - /// Configuration for the financial account embedded component. + /// Configuration for the financial + /// account embedded component. /// [JsonProperty("financial_account")] #if NET6_0_OR_GREATER @@ -126,7 +152,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsFinancialAccountOptions FinancialAccount { get; set; } /// - /// Configuration for the financial account transactions embedded component. + /// Configuration for the financial + /// account transactions embedded component. /// [JsonProperty("financial_account_transactions")] #if NET6_0_OR_GREATER @@ -135,7 +163,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsFinancialAccountTransactionsOptions FinancialAccountTransactions { get; set; } /// - /// Configuration for the issuing card embedded component. + /// Configuration for the issuing + /// card embedded component. /// [JsonProperty("issuing_card")] #if NET6_0_OR_GREATER @@ -144,7 +174,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsIssuingCardOptions IssuingCard { get; set; } /// - /// Configuration for the issuing cards list embedded component. + /// Configuration for the issuing + /// cards list embedded component. /// [JsonProperty("issuing_cards_list")] #if NET6_0_OR_GREATER @@ -153,7 +185,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsIssuingCardsListOptions IssuingCardsList { get; set; } /// - /// Configuration for the notification banner embedded component. + /// Configuration for the notification + /// banner embedded component. /// [JsonProperty("notification_banner")] #if NET6_0_OR_GREATER @@ -162,7 +196,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsNotificationBannerOptions NotificationBanner { get; set; } /// - /// Configuration for the payment details embedded component. + /// Configuration for the payment + /// details embedded component. /// [JsonProperty("payment_details")] #if NET6_0_OR_GREATER @@ -171,7 +207,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentDetailsOptions PaymentDetails { get; set; } /// - /// Configuration for the payment disputes embedded component. + /// Configuration for the payment + /// disputes embedded component. /// [JsonProperty("payment_disputes")] #if NET6_0_OR_GREATER @@ -180,7 +218,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentDisputesOptions PaymentDisputes { get; set; } /// - /// Configuration for the payment method settings embedded component. + /// Configuration for the payment + /// method settings embedded component. /// [JsonProperty("payment_method_settings")] #if NET6_0_OR_GREATER @@ -189,7 +229,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentMethodSettingsOptions PaymentMethodSettings { get; set; } /// - /// Configuration for the payments embedded component. + /// Configuration for the payments + /// embedded component. /// [JsonProperty("payments")] #if NET6_0_OR_GREATER @@ -198,7 +240,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentsOptions Payments { get; set; } /// - /// Configuration for the payouts embedded component. + /// Configuration for the payouts + /// embedded component. /// [JsonProperty("payouts")] #if NET6_0_OR_GREATER @@ -207,7 +251,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPayoutsOptions Payouts { get; set; } /// - /// Configuration for the payouts list embedded component. + /// Configuration for the payouts + /// list embedded component. /// [JsonProperty("payouts_list")] #if NET6_0_OR_GREATER @@ -216,7 +262,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPayoutsListOptions PayoutsList { get; set; } /// - /// Configuration for the product tax code selector embedded component. + /// Configuration for the product + /// tax code selector embedded component. /// [JsonProperty("product_tax_code_selector")] #if NET6_0_OR_GREATER @@ -225,7 +273,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsProductTaxCodeSelectorOptions ProductTaxCodeSelector { get; set; } /// - /// Configuration for the recipients component. + /// Configuration for the recipients + /// embedded component. /// [JsonProperty("recipients")] #if NET6_0_OR_GREATER @@ -234,7 +284,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsRecipientsOptions Recipients { get; set; } /// - /// Configuration for the reporting chart embedded component. + /// Configuration for the reporting + /// chart embedded component. /// [JsonProperty("reporting_chart")] #if NET6_0_OR_GREATER @@ -243,7 +295,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsReportingChartOptions ReportingChart { get; set; } /// - /// Configuration for the tax registrations embedded component. + /// Configuration for the tax + /// registrations embedded component. /// [JsonProperty("tax_registrations")] #if NET6_0_OR_GREATER @@ -252,7 +306,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsTaxRegistrationsOptions TaxRegistrations { get; set; } /// - /// Configuration for the tax settings embedded component. + /// Configuration for the tax + /// settings embedded component. /// [JsonProperty("tax_settings")] #if NET6_0_OR_GREATER @@ -261,7 +317,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsTaxSettingsOptions TaxSettings { get; set; } /// - /// Configuration for the tax threshold monitoring embedded component. + /// Configuration for the tax + /// threshold monitoring embedded component. /// [JsonProperty("tax_threshold_monitoring")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs index 3a60210fd0..ede302e850 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti public bool? CapturePayments { get; set; } /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs index a57e14b0ff..224d4d69a5 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs @@ -9,8 +9,8 @@ namespace Stripe public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOptions { /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOpt public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOpt public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs index e6d3bf810f..b8f4278c0c 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions public bool? CapturePayments { get; set; } /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs index c4f25cb9bf..e789d9802b 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? EditPayoutSchedule { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? ExternalAccountCollection { get; set; } /// - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? InstantPayouts { get; set; } /// - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesCryptoPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesCryptoPaymentsOptions.cs new file mode 100644 index 0000000000..0359b357ce --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesCryptoPaymentsOptions.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 AccountCapabilitiesCryptoPaymentsOptions : INestedOptions + { + /// + /// Passing true requests the capability for the account, if it is not already requested. A + /// requested capability may not immediately become active. Any requirements to activate the + /// capability are returned in the requirements arrays. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs index b9da44d8bc..02e928cbd4 100644 --- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs @@ -161,6 +161,15 @@ public class AccountCapabilitiesOptions : INestedOptions #endif public AccountCapabilitiesCashappPaymentsOptions CashappPayments { get; set; } + /// + /// The crypto_payments capability. + /// + [JsonProperty("crypto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto_payments")] +#endif + public AccountCapabilitiesCryptoPaymentsOptions CryptoPayments { get; set; } + /// /// The eps_payments capability. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs index 1362a71745..27b2840094 100644 --- a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs @@ -163,6 +163,9 @@ public class AccountCompanyOptions : INestedOptions #endif public string Phone { get; set; } + /// + /// When the business was incorporated or registered. + /// [JsonProperty("registration_date")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("registration_date")] diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs index 016acde5c8..d4709f3477 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs @@ -68,6 +68,15 @@ public class AccountDocumentsOptions : INestedOptions #endif public AccountDocumentsCompanyTaxIdVerificationOptions CompanyTaxIdVerification { get; set; } + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + /// /// One or more documents showing the company’s proof of registration with the national /// business registry. diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..8f17234612 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs @@ -0,0 +1,23 @@ +// 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 AccountDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document ids returned by a file upload with a purpose + /// value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs index 8e8a387056..956d87dcb2 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; #if NET6_0_OR_GREATER @@ -48,6 +49,18 @@ public class AccountSettingsPayoutsScheduleOptions : INestedOptions #endif public long? MonthlyAnchor { get; set; } + /// + /// The days of the month when available funds are paid out, specified as an array of + /// numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the + /// month are instead sent on the last day of a shorter month. Required and applicable only + /// if interval is monthly and monthly_anchor is not set. + /// + [JsonProperty("monthly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_payout_days")] +#endif + public List MonthlyPayoutDays { get; set; } + /// /// The day of the week when available funds are paid out, specified as monday, /// tuesday, etc. (required and applicable only if interval is weekly.). @@ -59,5 +72,18 @@ public class AccountSettingsPayoutsScheduleOptions : INestedOptions [STJS.JsonPropertyName("weekly_anchor")] #endif public string WeeklyAnchor { get; set; } + + /// + /// The days of the week when available funds are paid out, specified as an array, e.g., + /// [monday, tuesday]. (required and applicable only if interval is + /// weekly and weekly_anchor is not set.). + /// One of: friday, monday, saturday, sunday, thursday, + /// tuesday, or wednesday. + /// + [JsonProperty("weekly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("weekly_payout_days")] +#endif + public List WeeklyPayoutDays { get; set; } } } diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs index a76f794c49..fe4514694e 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs @@ -10,8 +10,7 @@ namespace Stripe.BillingPortal public class SessionFlowDataSubscriptionUpdateConfirmOptions : INestedOptions { /// - /// The coupon or promotion code to apply to this subscription update. Currently, only up to - /// one may be specified. + /// The coupon or promotion code to apply to this subscription update. /// [JsonProperty("discounts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index ea85d8f0a0..2504b9337f 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -238,7 +238,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// A list of items the customer is purchasing. Use this parameter to pass one-time or - /// recurring Prices. + /// recurring Prices. The parameter is + /// required for payment and subscription mode. /// /// For payment mode, there is a maximum of 100 line items, however it is recommended /// to consolidate line items if there are more than a few dozen. @@ -392,14 +393,14 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// gopay, grabpay, ideal, kakao_pay, klarna, - /// konbini, kr_card, link, mb_way, mobilepay, - /// multibanco, naver_pay, oxxo, p24, pay_by_bank, - /// payco, paynow, paypal, payto, pix, promptpay, - /// qris, rechnung, revolut_pay, samsung_pay, satispay, - /// sepa_debit, shopeepay, sofort, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, gopay, grabpay, ideal, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// mobilepay, multibanco, naver_pay, oxxo, p24, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, qris, rechnung, revolut_pay, + /// samsung_pay, satispay, sepa_debit, shopeepay, sofort, + /// swish, twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs index 746998ca22..09a1ccfd8f 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.Checkout { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -33,5 +34,14 @@ public class SessionPaymentMethodOptionsKlarnaOptions : INestedOptions [STJS.JsonPropertyName("setup_future_usage")] #endif public string SetupFutureUsage { get; set; } + + /// + /// Subscription details if the Checkout Session sets up a future subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..f283d488d6 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// 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 SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..8d7ac35add --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// 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 SessionPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs new file mode 100644 index 0000000000..156cb202cd --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs @@ -0,0 +1,20 @@ +// 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 SessionSubscriptionDataBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs index 8612181f08..e2aa7467d7 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs @@ -38,13 +38,12 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public SessionSubscriptionDataBillingModeOptions BillingMode { get; set; } /// /// The tax rates that will apply to any subscription item that does not have diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs index 13aca05572..c5066e0766 100644 --- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs +++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs @@ -13,7 +13,8 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata { /// /// The integer amount in cents (or local equivalent) representing the total amount of the - /// credit note. + /// credit note. One of amount, lines, or shipping_cost must be + /// provided. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -65,7 +66,8 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata public string Invoice { get; set; } /// - /// Line items that make up the credit note. + /// Line items that make up the credit note. One of amount, lines, or + /// shipping_cost must be provided. /// [JsonProperty("lines")] #if NET6_0_OR_GREATER @@ -137,7 +139,8 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata /// /// When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is - /// included in the credit note. + /// included in the credit note. One of amount, lines, or shipping_cost + /// must be provided. /// [JsonProperty("shipping_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs index 97acdae83e..51fe4331d8 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs @@ -13,7 +13,8 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata { /// /// The integer amount in cents (or local equivalent) representing the total amount of the - /// credit note. + /// credit note. One of amount, lines, or shipping_cost must be + /// provided. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -65,7 +66,8 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata public string Invoice { get; set; } /// - /// Line items that make up the credit note. + /// Line items that make up the credit note. One of amount, lines, or + /// shipping_cost must be provided. /// [JsonProperty("lines")] #if NET6_0_OR_GREATER @@ -137,7 +139,8 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata /// /// When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is - /// included in the credit note. + /// included in the credit note. One of amount, lines, or shipping_cost + /// must be provided. /// [JsonProperty("shipping_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs index 12867ca7b5..84eced1d3d 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs @@ -13,7 +13,8 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata { /// /// The integer amount in cents (or local equivalent) representing the total amount of the - /// credit note. + /// credit note. One of amount, lines, or shipping_cost must be + /// provided. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -65,7 +66,8 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata public string Invoice { get; set; } /// - /// Line items that make up the credit note. + /// Line items that make up the credit note. One of amount, lines, or + /// shipping_cost must be provided. /// [JsonProperty("lines")] #if NET6_0_OR_GREATER @@ -137,7 +139,8 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata /// /// When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is - /// included in the credit note. + /// included in the credit note. One of amount, lines, or shipping_cost + /// must be provided. /// [JsonProperty("shipping_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs index 33d2611084..b67f9a03d9 100644 --- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs @@ -28,15 +28,15 @@ public class CustomerPaymentMethodListOptions : ListOptions /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// gopay, grabpay, id_bank_transfer, ideal, kakao_pay, - /// klarna, konbini, kr_card, link, mb_way, - /// mobilepay, multibanco, naver_pay, nz_bank_account, - /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// payto, pix, promptpay, qris, rechnung, - /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, konbini, kr_card, link, + /// mb_way, mobilepay, multibanco, naver_pay, + /// nz_bank_account, oxxo, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// sepa_debit, shopeepay, sofort, stripe_balance, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs index 0b1978d321..a6f0149ba2 100644 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs +++ b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs @@ -39,7 +39,7 @@ public class CustomerSessionComponentsPaymentElementFeaturesOptions : INestedOpt /// /// Determines the max number of saved payment methods for the Payment Element to display. - /// This parameter defaults to 3. + /// This parameter defaults to 3. The maximum redisplay limit is 10. /// [JsonProperty("payment_method_redisplay_limit")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index 1082a06375..a7bf452ad0 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -67,6 +67,15 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata #endif public string RelatedCustomerAccount { get; set; } + /// + /// Tokens referencing a Person resource and it's associated account. + /// + [JsonProperty("related_person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_person")] +#endif + public VerificationSessionRelatedPersonOptions RelatedPerson { get; set; } + /// /// The URL that the user will be redirected to upon completing the verification flow. /// diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionRelatedPersonOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionRelatedPersonOptions.cs new file mode 100644 index 0000000000..c15deac874 --- /dev/null +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionRelatedPersonOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.Identity +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class VerificationSessionRelatedPersonOptions : INestedOptions + { + /// + /// A token representing a connected account. If provided, the person parameter is also + /// required and must be associated with the account. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// A token referencing a Person resource that this verification is being used to verify. + /// + [JsonProperty("person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person")] +#endif + public string Person { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 2870611687..e254be6325 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -38,14 +38,14 @@ public class InvoicePaymentSettingsOptions : INestedOptions /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, custom, 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, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, stripe_balance, swish, us_bank_account, or - /// wechat_pay. + /// boleto, card, cashapp, crypto, custom, + /// 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, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, stripe_balance, swish, + /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs index 19031b807d..0bf4ccd510 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs @@ -30,7 +30,8 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptio public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs new file mode 100644 index 0000000000..ecfef7f8fe --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.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 InvoiceScheduleDetailsBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs index e0578dcf97..e691b88988 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs @@ -34,13 +34,12 @@ public class InvoiceScheduleDetailsOptions : INestedOptions /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public InvoiceScheduleDetailsBillingModeOptions BillingMode { get; set; } /// /// Behavior of the subscription schedule and underlying subscription when it ends. Possible diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs new file mode 100644 index 0000000000..2f425a7e97 --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.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 InvoiceSubscriptionDetailsBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs index 225ea1156c..1c350b61dd 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs @@ -28,13 +28,12 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public InvoiceSubscriptionDetailsBillingModeOptions BillingMode { get; set; } /// /// A timestamp at which the subscription should cancel. If set to a date before the current @@ -52,8 +51,7 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions /// /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. This param will be removed in a - /// future API version. Please use cancel_at instead. + /// (current_period_end). Defaults to false. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOnDemandOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOnDemandOptions.cs new file mode 100644 index 0000000000..ce16733515 --- /dev/null +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOnDemandOptions.cs @@ -0,0 +1,60 @@ +// 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 OrderPaymentSettingsPaymentMethodOptionsKlarnaOnDemandOptions : INestedOptions + { + /// + /// Your average amount value. You can use a value across your customer base, or segment + /// based on customer type, country, etc. + /// + [JsonProperty("average_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("average_amount")] +#endif + public long? AverageAmount { get; set; } + + /// + /// The maximum value you may charge a customer per purchase. You can use a value across + /// your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("maximum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum_amount")] +#endif + public long? MaximumAmount { get; set; } + + /// + /// The lowest or minimum value you may charge a customer per purchase. You can use a value + /// across your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("minimum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_amount")] +#endif + public long? MinimumAmount { get; set; } + + /// + /// Interval at which the customer is making purchases. + /// One of: day, month, week, or year. + /// + [JsonProperty("purchase_interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval")] +#endif + public string PurchaseInterval { get; set; } + + /// + /// The number of purchase_interval between charges. + /// + [JsonProperty("purchase_interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval_count")] +#endif + public long? PurchaseIntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs index 7c4667b2d8..29c8449cef 100644 --- a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -24,6 +25,15 @@ public class OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions : INestedOpti #endif public string CaptureMethod { get; set; } + /// + /// On-demand details if setting up or charging an on-demand payment. + /// + [JsonProperty("on_demand")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_demand")] +#endif + public OrderPaymentSettingsPaymentMethodOptionsKlarnaOnDemandOptions OnDemand { get; set; } + /// /// Preferred language of the Klarna authorization page that the customer is redirected to. /// One of: cs-CZ, da-DK, de-AT, de-CH, de-DE, @@ -64,11 +74,21 @@ public class OrderPaymentSettingsPaymentMethodOptionsKlarnaOptions : INestedOpti /// If you've already set setup_future_usage and you're performing a request using a /// publishable key, you can only update the value from on_session to /// off_session. + /// One of: none, off_session, or on_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("setup_future_usage")] #endif public string SetupFutureUsage { get; set; } + + /// + /// Subscription details if setting up or charging a subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } } } diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..8eac38787a --- /dev/null +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..7b5f85389e --- /dev/null +++ b/src/Stripe.net/Services/Orders/OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// 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 OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public OrderPaymentSettingsPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 50ea6bf30a..ffd98a163c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -159,7 +159,9 @@ public class PaymentIntentConfirmOptions : BaseOptions /// /// The list of payment method types (for example, a card) that this PaymentIntent can use. /// Use automatic_payment_methods to manage payment methods from the Stripe Dashboard. + /// href="https://dashboard.stripe.com/settings/payment_methods">Stripe Dashboard. A + /// list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index 6bb075f7a6..df371b5586 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -313,7 +313,8 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// The list of payment method types (for example, a card) that this PaymentIntent can use. /// If you don't provide this, Stripe will dynamically show relevant payment methods from /// your payment method - /// settings. + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataCryptoOptions.cs new file mode 100644 index 0000000000..63072eb8fb --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentIntentPaymentMethodDataCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs index f7f37eb1b1..2ad330c343 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs @@ -11,10 +11,10 @@ public class PaymentIntentPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index 3ba1b52da5..c45005b678 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -162,6 +162,16 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat #endif public PaymentIntentPaymentMethodDataCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentIntentPaymentMethodDataCryptoOptions Crypto { get; set; } + /// /// If this is a customer_balance PaymentMethod, this hash contains details about the /// CustomerBalance payment method. @@ -581,15 +591,15 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, cashapp, - /// customer_balance, eps, fpx, giropay, gopay, - /// grabpay, id_bank_transfer, ideal, kakao_pay, klarna, - /// konbini, kr_card, link, mb_way, mobilepay, - /// multibanco, naver_pay, nz_bank_account, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, payto, - /// pix, promptpay, qris, rechnung, revolut_pay, - /// samsung_pay, satispay, sepa_debit, shopeepay, sofort, - /// stripe_balance, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// crypto, customer_balance, eps, fpx, giropay, + /// gopay, grabpay, id_bank_transfer, ideal, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// mobilepay, multibanco, naver_pay, nz_bank_account, + /// oxxo, p24, pay_by_bank, payco, paynow, paypal, + /// payto, pix, promptpay, qris, rechnung, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// shopeepay, sofort, stripe_balance, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs index 1340960788..33fe86ae57 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs @@ -30,7 +30,8 @@ public class PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions : INes public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCryptoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCryptoOptions.cs new file mode 100644 index 0000000000..4d18add8ff --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCryptoOptions.cs @@ -0,0 +1,41 @@ +// 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 PaymentIntentPaymentMethodOptionsCryptoOptions : INestedOptions + { + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + /// If you've already set setup_future_usage and you're performing a request using a + /// publishable key, you can only update the value from on_session to + /// off_session. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsGopayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsGopayOptions.cs index 038c84e80e..c6f250d9ba 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsGopayOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsGopayOptions.cs @@ -31,6 +31,7 @@ public class PaymentIntentPaymentMethodOptionsGopayOptions : INestedOptions /// If you've already set setup_future_usage and you're performing a request using a /// publishable key, you can only update the value from on_session to /// off_session. + /// One of: none, or off_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs new file mode 100644 index 0000000000..d6544d9055 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs @@ -0,0 +1,60 @@ +// 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 PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions : INestedOptions + { + /// + /// Your average amount value. You can use a value across your customer base, or segment + /// based on customer type, country, etc. + /// + [JsonProperty("average_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("average_amount")] +#endif + public long? AverageAmount { get; set; } + + /// + /// The maximum value you may charge a customer per purchase. You can use a value across + /// your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("maximum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum_amount")] +#endif + public long? MaximumAmount { get; set; } + + /// + /// The lowest or minimum value you may charge a customer per purchase. You can use a value + /// across your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("minimum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_amount")] +#endif + public long? MinimumAmount { get; set; } + + /// + /// Interval at which the customer is making purchases. + /// One of: day, month, week, or year. + /// + [JsonProperty("purchase_interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval")] +#endif + public string PurchaseInterval { get; set; } + + /// + /// The number of purchase_interval between charges. + /// + [JsonProperty("purchase_interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval_count")] +#endif + public long? PurchaseIntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs index 04df1da353..ac428641ca 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -24,6 +25,15 @@ public class PaymentIntentPaymentMethodOptionsKlarnaOptions : INestedOptions #endif public string CaptureMethod { get; set; } + /// + /// On-demand details if setting up or charging an on-demand payment. + /// + [JsonProperty("on_demand")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_demand")] +#endif + public PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions OnDemand { get; set; } + /// /// Preferred language of the Klarna authorization page that the customer is redirected to. /// One of: cs-CZ, da-DK, de-AT, de-CH, de-DE, @@ -64,11 +74,21 @@ public class PaymentIntentPaymentMethodOptionsKlarnaOptions : INestedOptions /// If you've already set setup_future_usage and you're performing a request using a /// publishable key, you can only update the value from on_session to /// off_session. + /// One of: none, off_session, or on_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("setup_future_usage")] #endif public string SetupFutureUsage { get; set; } + + /// + /// Subscription details if setting up or charging a subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..8c6539b89e --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..29aaef84cb --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// 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 PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index b84dbb3939..12bc64212a 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -157,6 +157,16 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions #endif public PaymentIntentPaymentMethodOptionsCashappOptions Cashapp { get; set; } + /// + /// If this is a crypto PaymentMethod, this sub-hash contains details about the + /// Crypto payment method options. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentIntentPaymentMethodOptionsCryptoOptions Crypto { get; set; } + /// /// If this is a customer balance PaymentMethod, this sub-hash contains details about /// the customer balance payment method options. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index d5bcbffb5c..a255dc114b 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -199,7 +199,9 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// The list of payment method types (for example, card) that this PaymentIntent can use. /// Use automatic_payment_methods to manage payment methods from the Stripe Dashboard. + /// href="https://dashboard.stripe.com/settings/payment_methods">Stripe Dashboard. A + /// list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index d485991a80..dea450ed2d 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -177,6 +177,16 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata #endif public PaymentMethodCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentMethodCryptoOptions Crypto { get; set; } + /// /// The Customer to whom the original PaymentMethod is attached. /// @@ -614,15 +624,15 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// gopay, grabpay, id_bank_transfer, ideal, kakao_pay, - /// klarna, konbini, kr_card, link, mb_way, - /// mobilepay, multibanco, naver_pay, nz_bank_account, - /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// payto, pix, promptpay, qris, rechnung, - /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, konbini, kr_card, link, + /// mb_way, mobilepay, multibanco, naver_pay, + /// nz_bank_account, oxxo, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// sepa_debit, shopeepay, sofort, stripe_balance, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCryptoOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCryptoOptions.cs new file mode 100644 index 0000000000..011d9d1868 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs index ce1d3c602e..31d1521a73 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs @@ -11,10 +11,10 @@ public class PaymentMethodIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs index 92b77e9e4a..23c6241ff5 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -25,15 +25,15 @@ public class PaymentMethodListOptions : ListOptions /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// gopay, grabpay, id_bank_transfer, ideal, kakao_pay, - /// klarna, konbini, kr_card, link, mb_way, - /// mobilepay, multibanco, naver_pay, nz_bank_account, - /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// payto, pix, promptpay, qris, rechnung, - /// revolut_pay, samsung_pay, satispay, sepa_debit, - /// shopeepay, sofort, stripe_balance, swish, twint, - /// us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, konbini, kr_card, link, + /// mb_way, mobilepay, multibanco, naver_pay, + /// nz_bank_account, oxxo, p24, pay_by_bank, payco, + /// paynow, paypal, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// sepa_debit, shopeepay, sofort, stripe_balance, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs new file mode 100644 index 0000000000..7cdba81dbd --- /dev/null +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.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 QuoteSubscriptionDataBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs index 2c30b008fb..b485a3c7c3 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs @@ -46,13 +46,12 @@ public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public QuoteSubscriptionDataBillingModeOptions BillingMode { get; set; } /// /// The subscription's description, meant to be displayable to the customer. Use this field diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs index 7485a47758..6fc6752992 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -186,7 +186,8 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// The list of payment method types (for example, card) that this SetupIntent can use. If /// you don't provide this, Stripe will dynamically show relevant payment methods from your /// payment method - /// settings. + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataCryptoOptions.cs new file mode 100644 index 0000000000..e19e44ae49 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupIntentPaymentMethodDataCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs index fd7a77c338..2539be4b3d 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs @@ -11,10 +11,10 @@ public class SetupIntentPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index ab1a18d7ee..4234f735b8 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -162,6 +162,16 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata #endif public SetupIntentPaymentMethodDataCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public SetupIntentPaymentMethodDataCryptoOptions Crypto { get; set; } + /// /// If this is a customer_balance PaymentMethod, this hash contains details about the /// CustomerBalance payment method. @@ -581,15 +591,15 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, cashapp, - /// customer_balance, eps, fpx, giropay, gopay, - /// grabpay, id_bank_transfer, ideal, kakao_pay, klarna, - /// konbini, kr_card, link, mb_way, mobilepay, - /// multibanco, naver_pay, nz_bank_account, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, payto, - /// pix, promptpay, qris, rechnung, revolut_pay, - /// samsung_pay, satispay, sepa_debit, shopeepay, sofort, - /// stripe_balance, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// crypto, customer_balance, eps, fpx, giropay, + /// gopay, grabpay, id_bank_transfer, ideal, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// mobilepay, multibanco, naver_pay, nz_bank_account, + /// oxxo, p24, pay_by_bank, payco, paynow, paypal, + /// payto, pix, promptpay, qris, rechnung, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// shopeepay, sofort, stripe_balance, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs new file mode 100644 index 0000000000..77cbc1db90 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs @@ -0,0 +1,60 @@ +// 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 SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions : INestedOptions + { + /// + /// Your average amount value. You can use a value across your customer base, or segment + /// based on customer type, country, etc. + /// + [JsonProperty("average_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("average_amount")] +#endif + public long? AverageAmount { get; set; } + + /// + /// The maximum value you may charge a customer per purchase. You can use a value across + /// your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("maximum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum_amount")] +#endif + public long? MaximumAmount { get; set; } + + /// + /// The lowest or minimum value you may charge a customer per purchase. You can use a value + /// across your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("minimum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_amount")] +#endif + public long? MinimumAmount { get; set; } + + /// + /// Interval at which the customer is making purchases. + /// One of: day, month, week, or year. + /// + [JsonProperty("purchase_interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval")] +#endif + public string PurchaseInterval { get; set; } + + /// + /// The number of purchase_interval between charges. + /// + [JsonProperty("purchase_interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval_count")] +#endif + public long? PurchaseIntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOptions.cs new file mode 100644 index 0000000000..87100253db --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOptions.cs @@ -0,0 +1,56 @@ +// 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 SetupIntentPaymentMethodOptionsKlarnaOptions : INestedOptions + { + /// + /// The currency of the SetupIntent. Three letter ISO currency code. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// On-demand details if setting up a payment method for on-demand payments. + /// + [JsonProperty("on_demand")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_demand")] +#endif + public SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions OnDemand { get; set; } + + /// + /// Preferred language of the Klarna authorization page that the customer is redirected to. + /// One of: cs-CZ, da-DK, de-AT, de-CH, de-DE, + /// el-GR, en-AT, en-AU, en-BE, en-CA, en-CH, + /// en-CZ, en-DE, en-DK, en-ES, en-FI, en-FR, + /// en-GB, en-GR, en-IE, en-IT, en-NL, en-NO, + /// en-NZ, en-PL, en-PT, en-RO, en-SE, en-US, + /// es-ES, es-US, fi-FI, fr-BE, fr-CA, fr-CH, + /// fr-FR, it-CH, it-IT, nb-NO, nl-BE, nl-NL, + /// pl-PL, pt-PT, ro-RO, sv-FI, or sv-SE. + /// + [JsonProperty("preferred_locale")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preferred_locale")] +#endif + public string PreferredLocale { get; set; } + + /// + /// Subscription details if setting up or charging a subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..0a2c5e9e80 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..789b720144 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// 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 SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs index 12b2ba855e..5119214f31 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs @@ -57,6 +57,16 @@ public class SetupIntentPaymentMethodOptionsOptions : INestedOptions #endif public SetupIntentPaymentMethodOptionsCardPresentOptions CardPresent { get; set; } + /// + /// If this is a klarna PaymentMethod, this hash contains details about the Klarna + /// payment method options. + /// + [JsonProperty("klarna")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("klarna")] +#endif + public SetupIntentPaymentMethodOptionsKlarnaOptions Klarna { get; set; } + /// /// If this is a link PaymentMethod, this sub-hash contains details about the Link /// payment method options. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index f253fd5979..b78b36119d 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -132,7 +132,8 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// The list of payment method types (for example, card) that this SetupIntent can set up. /// If you don't provide this, Stripe will dynamically show relevant payment methods from /// your payment method - /// settings. + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs new file mode 100644 index 0000000000..592db9565a --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.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 SubscriptionScheduleBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs index ddb72baa75..053011ae68 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs @@ -27,13 +27,12 @@ public class SubscriptionScheduleCreateOptions : BaseOptions, IHasMetadata /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public SubscriptionScheduleBillingModeOptions BillingMode { get; set; } /// /// The identifier of the customer to create the subscription schedule for. diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs new file mode 100644 index 0000000000..bd4dbea59f --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.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 SubscriptionBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs index 19bfbe91f2..6ac097cb68 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs @@ -36,8 +36,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata public decimal? ApplicationFeePercent { get; set; } /// - /// Automatic tax settings for this subscription. We recommend you only include this - /// parameter when the existing value is being changed. + /// Automatic tax settings for this subscription. /// [JsonProperty("automatic_tax")] #if NET6_0_OR_GREATER @@ -46,9 +45,9 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata public SubscriptionAutomaticTaxOptions AutomaticTax { get; set; } /// - /// For new subscriptions, a past timestamp to backdate the subscription's start date to. If - /// set, the first invoice will contain a proration for the timespan between the start date - /// and the current time. Can be combined with trials and the billing cycle anchor. + /// A past timestamp to backdate the subscription's start date to. If set, the first invoice + /// will contain line items for the timespan between the start date and the current time. + /// Can be combined with trials and the billing cycle anchor. /// [JsonProperty("backdate_start_date")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -86,13 +85,12 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. - /// One of: classic, or flexible. /// [JsonProperty("billing_mode")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public SubscriptionBillingModeOptions BillingMode { get; set; } /// /// Define thresholds at which an invoice will be sent, and the subscription advanced to a @@ -121,8 +119,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. This param will be removed in a - /// future API version. Please use cancel_at instead. + /// (current_period_end). Defaults to false. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs index d26019a084..f8f5f21b04 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs @@ -15,6 +15,6 @@ public class SubscriptionMigrateOptions : BaseOptions #if NET6_0_OR_GREATER [STJS.JsonPropertyName("billing_mode")] #endif - public string BillingMode { get; set; } + public SubscriptionBillingModeOptions BillingMode { get; set; } } } diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index 8500fee219..c1d99356ac 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -28,14 +28,14 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, custom, 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, - /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, - /// sofort, stripe_balance, swish, us_bank_account, or - /// wechat_pay. + /// boleto, card, cashapp, crypto, custom, + /// 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, promptpay, revolut_pay, sepa_credit_transfer, + /// sepa_debit, sofort, stripe_balance, swish, + /// us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index 39d42014e4..aeb4cac7b5 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -85,8 +85,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata /// /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. This param will be removed in a - /// future API version. Please use cancel_at instead. + /// (current_period_end). Defaults to false. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs index fe0b1f40f6..9087eaf07b 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs @@ -818,6 +818,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions #endif public RegistrationCountryOptionsTzOptions Tz { get; set; } + /// + /// Options for the registration in UA. + /// + [JsonProperty("ua")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ua")] +#endif + public RegistrationCountryOptionsUaOptions Ua { get; set; } + /// /// Options for the registration in UG. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs new file mode 100644 index 0000000000..678e55e641 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.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 RegistrationCountryOptionsUaOptions : 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/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs new file mode 100644 index 0000000000..6111113b41 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers +{ + public class ConfirmationTokenPaymentMethodDataCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs index 257ee608d3..b774cf9191 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs @@ -11,10 +11,10 @@ public class ConfirmationTokenPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index d1c77a385e..10459c670e 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -162,6 +162,16 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet #endif public ConfirmationTokenPaymentMethodDataCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public ConfirmationTokenPaymentMethodDataCryptoOptions Crypto { get; set; } + /// /// If this is a customer_balance PaymentMethod, this hash contains details about the /// CustomerBalance payment method. @@ -581,15 +591,15 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, cashapp, - /// customer_balance, eps, fpx, giropay, gopay, - /// grabpay, id_bank_transfer, ideal, kakao_pay, klarna, - /// konbini, kr_card, link, mb_way, mobilepay, - /// multibanco, naver_pay, nz_bank_account, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, payto, - /// pix, promptpay, qris, rechnung, revolut_pay, - /// samsung_pay, satispay, sepa_debit, shopeepay, sofort, - /// stripe_balance, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// crypto, customer_balance, eps, fpx, giropay, + /// gopay, grabpay, id_bank_transfer, ideal, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// mobilepay, multibanco, naver_pay, nz_bank_account, + /// oxxo, p24, pay_by_bank, payco, paynow, paypal, + /// payto, pix, promptpay, qris, rechnung, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// shopeepay, sofort, stripe_balance, swish, twint, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs index ec7d8d257b..8dd1a75c10 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs @@ -30,7 +30,8 @@ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions : public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs index 5f2609ac15..4ff41ec6c6 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs @@ -173,6 +173,9 @@ public class TokenAccountCompanyOptions : INestedOptions #endif public string Phone { get; set; } + /// + /// When the business was incorporated or registered. + /// [JsonProperty("registration_date")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("registration_date")] diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs index 36b0999588..2962c8dcd8 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs @@ -20,5 +20,15 @@ public class FinancialAccountListOptions : ListOptions [STJS.JsonConverter(typeof(STJAnyOfConverter))] #endif public AnyOf Created { get; set; } + + /// + /// Only return FinancialAccounts that have the given status: open or closed. + /// One of: closed, or open. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } } } diff --git a/src/Stripe.net/Services/V2/BillingService.cs b/src/Stripe.net/Services/V2/BillingService.cs index ca4bbfa97e..d83cd1385c 100644 --- a/src/Stripe.net/Services/V2/BillingService.cs +++ b/src/Stripe.net/Services/V2/BillingService.cs @@ -7,8 +7,8 @@ namespace Stripe.V2 public class BillingService : Service { - private V2.Billing.MeterEventSessionService meterEventSession; private V2.Billing.MeterEventAdjustmentService meterEventAdjustments; + private V2.Billing.MeterEventSessionService meterEventSession; private V2.Billing.MeterEventStreamService meterEventStream; private V2.Billing.MeterEventService meterEvents; @@ -22,10 +22,10 @@ internal BillingService(IStripeClient client) { } - public virtual V2.Billing.MeterEventSessionService MeterEventSession => this.meterEventSession ??= new V2.Billing.MeterEventSessionService( + public virtual V2.Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new V2.Billing.MeterEventAdjustmentService( this.Requestor); - public virtual V2.Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new V2.Billing.MeterEventAdjustmentService( + public virtual V2.Billing.MeterEventSessionService MeterEventSession => this.meterEventSession ??= new V2.Billing.MeterEventSessionService( this.Requestor); public virtual V2.Billing.MeterEventStreamService MeterEventStream => this.meterEventStream ??= new V2.Billing.MeterEventStreamService( diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs index 4b20c545aa..b880142879 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsOptions.cs @@ -75,6 +75,15 @@ public class AccountCreateIdentityBusinessDetailsDocumentsOptions : INestedOptio #endif public AccountCreateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions PrimaryVerification { get; set; } + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + /// /// One or more documents showing the company’s proof of registration with the national /// business registry. diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..01e2da1ebc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions.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 AccountCreateIdentityBusinessDetailsDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs index ae3f1b233a..481c5ddc1f 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualAdditionalAddressOptions.cs @@ -50,8 +50,8 @@ public class AccountCreateIdentityIndividualAdditionalAddressOptions : INestedOp /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs index 2b3edaa532..9b4dd96d30 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityIndividualOptions.cs @@ -134,8 +134,8 @@ public class AccountCreateIdentityIndividualOptions : INestedOptions, IHasMetada /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("nationalities")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs index 43caf0feac..d3f8dab379 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityOptions.cs @@ -61,8 +61,8 @@ public class AccountCreateIdentityOptions : INestedOptions /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs index 684057626f..1b339ea939 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsOptions.cs @@ -289,6 +289,15 @@ public AccountUpdateIdentityBusinessDetailsDocumentsPrimaryVerificationOptions P } } + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + [JsonProperty("proof_of_registration")] [JsonConverter(typeof(EmptyableConverter))] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..cd1dc97b4d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions.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 AccountUpdateIdentityBusinessDetailsDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document IDs returned by a file upload with a + /// purpose value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + + /// + /// The format of the document. Currently supports files only. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs index ecb109c6a1..c7f7e0f629 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualAdditionalAddressOptions.cs @@ -106,8 +106,8 @@ public bool EmptyCountry /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonIgnore] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs index f418b511e4..07d8c5b8ac 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityIndividualOptions.cs @@ -408,8 +408,8 @@ public string LegalGender /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("nationalities")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs index 8958f624b8..4d2b48eb69 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityOptions.cs @@ -61,8 +61,8 @@ public class AccountUpdateIdentityOptions : INestedOptions /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs index a9d7a17d03..ad0e02925e 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateAdditionalAddressOptions.cs @@ -50,8 +50,8 @@ public class PersonCreateAdditionalAddressOptions : INestedOptions /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("country")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs index 2fb119499b..bc9f29d1fc 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonCreateOptions.cs @@ -142,8 +142,8 @@ public class PersonCreateOptions : BaseOptions, IHasMetadata /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("nationalities")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs index 4aaddef522..24c3ab3cc0 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateAdditionalAddressOptions.cs @@ -106,8 +106,8 @@ public bool EmptyCountry /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonIgnore] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs index faba406d1a..074c70e88f 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/Persons/PersonUpdateOptions.cs @@ -146,8 +146,8 @@ public class PersonUpdateOptions : BaseOptions, IHasMetadata /// td, tf, tg, th, tj, tk, tl, tm, /// tn, to, tr, tt, tv, tw, tz, ua, /// ug, um, us, uy, uz, va, vc, ve, - /// vg, vi, vn, vu, wf, ws, ye, yt, - /// za, zm, or zw. + /// vg, vi, vn, vu, wf, ws, xx, ye, + /// yt, za, zm, or zw. /// [JsonProperty("nationalities")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/V2/CoreService.cs b/src/Stripe.net/Services/V2/CoreService.cs index abc3ae9ccd..dac76d1a55 100644 --- a/src/Stripe.net/Services/V2/CoreService.cs +++ b/src/Stripe.net/Services/V2/CoreService.cs @@ -7,8 +7,8 @@ namespace Stripe.V2 public class CoreService : Service { - private V2.Core.AccountService accounts; private V2.Core.AccountLinkService accountLinks; + private V2.Core.AccountService accounts; private V2.Core.EventDestinationService eventDestinations; private V2.Core.EventService events; private V2.Core.VaultService vault; @@ -23,10 +23,10 @@ internal CoreService(IStripeClient client) { } - public virtual V2.Core.AccountService Accounts => this.accounts ??= new V2.Core.AccountService( + public virtual V2.Core.AccountLinkService AccountLinks => this.accountLinks ??= new V2.Core.AccountLinkService( this.Requestor); - public virtual V2.Core.AccountLinkService AccountLinks => this.accountLinks ??= new V2.Core.AccountLinkService( + public virtual V2.Core.AccountService Accounts => this.accounts ??= new V2.Core.AccountService( this.Requestor); public virtual V2.Core.EventDestinationService EventDestinations => this.eventDestinations ??= new V2.Core.EventDestinationService( diff --git a/src/Stripe.net/Services/V2/MoneyManagementService.cs b/src/Stripe.net/Services/V2/MoneyManagementService.cs index 6fd8d800aa..87dc3a4baf 100644 --- a/src/Stripe.net/Services/V2/MoneyManagementService.cs +++ b/src/Stripe.net/Services/V2/MoneyManagementService.cs @@ -11,16 +11,16 @@ public class MoneyManagementService : Service private V2.MoneyManagement.FinancialAccountService financialAccounts; private V2.MoneyManagement.FinancialAddressService financialAddresses; private V2.MoneyManagement.InboundTransferService inboundTransfers; - private V2.MoneyManagement.OutboundPaymentService outboundPayments; private V2.MoneyManagement.OutboundPaymentQuoteService outboundPaymentQuotes; - private V2.MoneyManagement.OutboundTransferService outboundTransfers; + private V2.MoneyManagement.OutboundPaymentService outboundPayments; private V2.MoneyManagement.OutboundSetupIntentService outboundSetupIntents; + private V2.MoneyManagement.OutboundTransferService outboundTransfers; private V2.MoneyManagement.PayoutMethodService payoutMethods; private V2.MoneyManagement.PayoutMethodsBankAccountSpecService payoutMethodsBankAccountSpec; private V2.MoneyManagement.ReceivedCreditService receivedCredits; private V2.MoneyManagement.ReceivedDebitService receivedDebits; - private V2.MoneyManagement.TransactionService transactions; private V2.MoneyManagement.TransactionEntryService transactionEntries; + private V2.MoneyManagement.TransactionService transactions; internal MoneyManagementService(ApiRequestor requestor) : base(requestor) @@ -44,18 +44,18 @@ internal MoneyManagementService(IStripeClient client) public virtual V2.MoneyManagement.InboundTransferService InboundTransfers => this.inboundTransfers ??= new V2.MoneyManagement.InboundTransferService( this.Requestor); - public virtual V2.MoneyManagement.OutboundPaymentService OutboundPayments => this.outboundPayments ??= new V2.MoneyManagement.OutboundPaymentService( - this.Requestor); - public virtual V2.MoneyManagement.OutboundPaymentQuoteService OutboundPaymentQuotes => this.outboundPaymentQuotes ??= new V2.MoneyManagement.OutboundPaymentQuoteService( this.Requestor); - public virtual V2.MoneyManagement.OutboundTransferService OutboundTransfers => this.outboundTransfers ??= new V2.MoneyManagement.OutboundTransferService( + public virtual V2.MoneyManagement.OutboundPaymentService OutboundPayments => this.outboundPayments ??= new V2.MoneyManagement.OutboundPaymentService( this.Requestor); public virtual V2.MoneyManagement.OutboundSetupIntentService OutboundSetupIntents => this.outboundSetupIntents ??= new V2.MoneyManagement.OutboundSetupIntentService( this.Requestor); + public virtual V2.MoneyManagement.OutboundTransferService OutboundTransfers => this.outboundTransfers ??= new V2.MoneyManagement.OutboundTransferService( + this.Requestor); + public virtual V2.MoneyManagement.PayoutMethodService PayoutMethods => this.payoutMethods ??= new V2.MoneyManagement.PayoutMethodService( this.Requestor); @@ -68,10 +68,10 @@ internal MoneyManagementService(IStripeClient client) public virtual V2.MoneyManagement.ReceivedDebitService ReceivedDebits => this.receivedDebits ??= new V2.MoneyManagement.ReceivedDebitService( this.Requestor); - public virtual V2.MoneyManagement.TransactionService Transactions => this.transactions ??= new V2.MoneyManagement.TransactionService( + public virtual V2.MoneyManagement.TransactionEntryService TransactionEntries => this.transactionEntries ??= new V2.MoneyManagement.TransactionEntryService( this.Requestor); - public virtual V2.MoneyManagement.TransactionEntryService TransactionEntries => this.transactionEntries ??= new V2.MoneyManagement.TransactionEntryService( + public virtual V2.MoneyManagement.TransactionService Transactions => this.transactions ??= new V2.MoneyManagement.TransactionService( this.Requestor); } } diff --git a/src/Stripe.net/Services/V2Services.cs b/src/Stripe.net/Services/V2Services.cs index cbd1714334..276fb2349b 100644 --- a/src/Stripe.net/Services/V2Services.cs +++ b/src/Stripe.net/Services/V2Services.cs @@ -7,11 +7,11 @@ namespace Stripe public class V2Services : Service { + private V2.BillingService billing; private V2.CoreService core; private V2.MoneyManagementService moneyManagement; - private V2.BillingService billing; - private V2.TestHelperService testHelpers; private V2.PaymentService payments; + private V2.TestHelperService testHelpers; internal V2Services(ApiRequestor requestor) : base(requestor) @@ -23,19 +23,19 @@ internal V2Services(IStripeClient client) { } + public virtual V2.BillingService Billing => this.billing ??= new V2.BillingService( + this.Requestor); + public virtual V2.CoreService Core => this.core ??= new V2.CoreService( this.Requestor); public virtual V2.MoneyManagementService MoneyManagement => this.moneyManagement ??= new V2.MoneyManagementService( this.Requestor); - public virtual V2.BillingService Billing => this.billing ??= new V2.BillingService( + public virtual V2.PaymentService Payments => this.payments ??= new V2.PaymentService( this.Requestor); public virtual V2.TestHelperService TestHelpers => this.testHelpers ??= new V2.TestHelperService( this.Requestor); - - public virtual V2.PaymentService Payments => this.payments ??= new V2.PaymentService( - this.Requestor); } } diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index f0b4a7e4ee..7258664a94 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -40,7 +40,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, /// 2024-10-28.acacia, 2024-11-20.acacia, 2024-12-18.acacia, /// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard, - /// 2025-03-31.basil, 2025-04-30.basil, or 2025-05-28.basil. + /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, or + /// 2025-06-30.basil. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 3709497602..160636d2dd 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -6171,34 +6171,137 @@ public void TestWebhookEndpointsPost2() } [Fact] - public void TestV2CoreAccountPost() + public void TestV2BillingMeterEventAdjustmentPost() { this.StubRequest( HttpMethod.Post, - "/v2/core/accounts/id_123/close", + "/v2/billing/meter_event_adjustments", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"applied_configurations\":[\"recipient\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"identity\":null,\"livemode\":true,\"metadata\":null,\"requirements\":null}"); + "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_adjustment\",\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"livemode\":true,\"status\":\"complete\",\"type\":\"cancel\"}"); + var options = new Stripe.V2.Billing.MeterEventAdjustmentCreateOptions + { + Cancel = new Stripe.V2.Billing.MeterEventAdjustmentCreateCancelOptions + { + Identifier = "identifier", + }, + EventName = "event_name", + Type = "cancel", + }; var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Accounts; - Stripe.V2.Core.Account account = service.Close("id_123"); + var service = client.V2.Billing.MeterEventAdjustments; + Stripe.V2.Billing.MeterEventAdjustment meterEventAdjustment = service + .Create(options); this.AssertRequest( HttpMethod.Post, - "/v2/core/accounts/id_123/close"); + "/v2/billing/meter_event_adjustments"); } [Fact] - public void TestV2CoreAccountPost2() + public void TestV2BillingMeterEventSessionPost() { this.StubRequest( HttpMethod.Post, - "/v2/core/accounts", + "/v2/billing/meter_event_session", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"applied_configurations\":[\"recipient\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"identity\":null,\"livemode\":true,\"metadata\":null,\"requirements\":null}"); - var options = new Stripe.V2.Core.AccountCreateOptions(); + "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}"); + var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions(); var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Accounts; - Stripe.V2.Core.Account account = service.Create(options); - this.AssertRequest(HttpMethod.Post, "/v2/core/accounts"); + var service = client.V2.Billing.MeterEventSession; + Stripe.V2.Billing.MeterEventSession meterEventSession = service + .Create(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/billing/meter_event_session"); + } + + [Fact] + public void TestV2BillingMeterEventStreamPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/billing/meter_event_stream", + (HttpStatusCode)200, + "{}"); + var options = new Stripe.V2.Billing.MeterEventStreamCreateOptions + { + Events = new List + { + new Stripe.V2.Billing.MeterEventStreamCreateEventOptions + { + EventName = "event_name", + Identifier = "identifier", + Payload = new Dictionary + { + { "undefined", "payload" }, + }, + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + }, + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Billing.MeterEventStream; + service.Create(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/billing/meter_event_stream"); + } + + [Fact] + public void TestV2BillingMeterEventPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/billing/meter_events", + (HttpStatusCode)200, + "{\"object\":\"v2.billing.meter_event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"livemode\":true,\"payload\":{\"undefined\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\"}"); + var options = new Stripe.V2.Billing.MeterEventCreateOptions + { + EventName = "event_name", + Payload = new Dictionary + { + { "undefined", "payload" }, + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Billing.MeterEvents; + Stripe.V2.Billing.MeterEvent meterEvent = service.Create(options); + this.AssertRequest(HttpMethod.Post, "/v2/billing/meter_events"); + } + + [Fact] + public void TestV2CoreAccountLinkPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/account_links", + (HttpStatusCode)200, + "{\"object\":\"v2.core.account_link\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true,\"url\":\"url\",\"use_case\":{\"type\":\"account_onboarding\",\"account_onboarding\":null,\"account_update\":null}}"); + var options = new Stripe.V2.Core.AccountLinkCreateOptions + { + Account = "account", + UseCase = new Stripe.V2.Core.AccountLinkCreateUseCaseOptions + { + Type = "account_onboarding", + AccountOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingOptions + { + Configurations = new List { "recipient" }, + RefreshUrl = "refresh_url", + ReturnUrl = "return_url", + }, + AccountUpdate = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountUpdateOptions + { + Configurations = new List { "recipient" }, + RefreshUrl = "refresh_url", + ReturnUrl = "return_url", + }, + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.AccountLinks; + Stripe.V2.Core.AccountLink accountLink = service.Create(options); + this.AssertRequest(HttpMethod.Post, "/v2/core/account_links"); } [Fact] @@ -6216,6 +6319,21 @@ public void TestV2CoreAccountGet() this.AssertRequest(HttpMethod.Get, "/v2/core/accounts"); } + [Fact] + public void TestV2CoreAccountPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts", + (HttpStatusCode)200, + "{\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"applied_configurations\":[\"recipient\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"identity\":null,\"livemode\":true,\"metadata\":null,\"requirements\":null}"); + var options = new Stripe.V2.Core.AccountCreateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.Core.Account account = service.Create(options); + this.AssertRequest(HttpMethod.Post, "/v2/core/accounts"); + } + [Fact] public void TestV2CoreAccountGet2() { @@ -6231,7 +6349,7 @@ public void TestV2CoreAccountGet2() } [Fact] - public void TestV2CoreAccountPost3() + public void TestV2CoreAccountPost2() { this.StubRequest( HttpMethod.Post, @@ -6245,6 +6363,39 @@ public void TestV2CoreAccountPost3() this.AssertRequest(HttpMethod.Post, "/v2/core/accounts/id_123"); } + [Fact] + public void TestV2CoreAccountPost3() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/accounts/id_123/close", + (HttpStatusCode)200, + "{\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"applied_configurations\":[\"recipient\"],\"configuration\":null,\"contact_email\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"dashboard\":null,\"defaults\":null,\"display_name\":null,\"identity\":null,\"livemode\":true,\"metadata\":null,\"requirements\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts; + Stripe.V2.Core.Account account = service.Close("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/accounts/id_123/close"); + } + + [Fact] + public void TestV2CoreAccountsPersonGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/persons", + (HttpStatusCode)200, + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id_numbers\":null,\"legal_gender\":null,\"livemode\":true,\"metadata\":null,\"nationalities\":null,\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Accounts.Persons; + Stripe.V2.StripeList persons = service.List( + "account_id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/accounts/account_id_123/persons"); + } + [Fact] public void TestV2CoreAccountsPersonPost() { @@ -6282,23 +6433,6 @@ public void TestV2CoreAccountsPersonDelete() "/v2/core/accounts/account_id_123/persons/id_123"); } - [Fact] - public void TestV2CoreAccountsPersonGet() - { - this.StubRequest( - HttpMethod.Get, - "/v2/core/accounts/account_id_123/persons", - (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"account\":\"account\",\"additional_addresses\":null,\"additional_names\":null,\"additional_terms_of_service\":null,\"address\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"date_of_birth\":null,\"documents\":null,\"email\":null,\"given_name\":null,\"id_numbers\":null,\"legal_gender\":null,\"livemode\":true,\"metadata\":null,\"nationalities\":null,\"phone\":null,\"political_exposure\":null,\"relationship\":null,\"script_addresses\":null,\"script_names\":null,\"surname\":null,\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Accounts.Persons; - Stripe.V2.StripeList persons = service.List( - "account_id_123"); - this.AssertRequest( - HttpMethod.Get, - "/v2/core/accounts/account_id_123/persons"); - } - [Fact] public void TestV2CoreAccountsPersonGet2() { @@ -6338,37 +6472,18 @@ public void TestV2CoreAccountsPersonPost2() } [Fact] - public void TestV2CoreAccountLinkPost() + public void TestV2CoreEventDestinationGet() { this.StubRequest( - HttpMethod.Post, - "/v2/core/account_links", + HttpMethod.Get, + "/v2/core/event_destinations", (HttpStatusCode)200, - "{\"object\":\"v2.core.account_link\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true,\"url\":\"url\",\"use_case\":{\"type\":\"account_onboarding\",\"account_onboarding\":null,\"account_update\":null}}"); - var options = new Stripe.V2.Core.AccountLinkCreateOptions - { - Account = "account", - UseCase = new Stripe.V2.Core.AccountLinkCreateUseCaseOptions - { - Type = "account_onboarding", - AccountOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingOptions - { - Configurations = new List { "recipient" }, - RefreshUrl = "refresh_url", - ReturnUrl = "return_url", - }, - AccountUpdate = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountUpdateOptions - { - Configurations = new List { "recipient" }, - RefreshUrl = "refresh_url", - ReturnUrl = "return_url", - }, - }, - }; + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Core.AccountLinks; - Stripe.V2.Core.AccountLink accountLink = service.Create(options); - this.AssertRequest(HttpMethod.Post, "/v2/core/account_links"); + var service = client.V2.Core.EventDestinations; + Stripe.V2.StripeList eventDestinations = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/core/event_destinations"); } [Fact] @@ -6410,84 +6525,72 @@ public void TestV2CoreEventDestinationDelete() } [Fact] - public void TestV2CoreEventDestinationPost2() + public void TestV2CoreEventDestinationGet2() { this.StubRequest( - HttpMethod.Post, - "/v2/core/event_destinations/id_123/disable", + HttpMethod.Get, + "/v2/core/event_destinations/id_123", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Disable( - "id_123"); + Stripe.V2.EventDestination eventDestination = service.Get("id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/core/event_destinations/id_123/disable"); + HttpMethod.Get, + "/v2/core/event_destinations/id_123"); } [Fact] - public void TestV2CoreEventDestinationPost3() + public void TestV2CoreEventDestinationPost2() { this.StubRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/enable", + "/v2/core/event_destinations/id_123", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); + var options = new Stripe.V2.Core.EventDestinationUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Enable( - "id_123"); + Stripe.V2.EventDestination eventDestination = service.Update( + "id_123", + options); this.AssertRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/enable"); - } - - [Fact] - public void TestV2CoreEventDestinationGet() - { - this.StubRequest( - HttpMethod.Get, - "/v2/core/event_destinations", - (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.Core.EventDestinations; - Stripe.V2.StripeList eventDestinations = service - .List(); - this.AssertRequest(HttpMethod.Get, "/v2/core/event_destinations"); + "/v2/core/event_destinations/id_123"); } [Fact] - public void TestV2CoreEventDestinationPost4() + public void TestV2CoreEventDestinationPost3() { this.StubRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/ping", + "/v2/core/event_destinations/id_123/disable", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}"); + "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.Event result = service.Ping("id_123"); + Stripe.V2.EventDestination eventDestination = service.Disable( + "id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/ping"); + "/v2/core/event_destinations/id_123/disable"); } [Fact] - public void TestV2CoreEventDestinationGet2() + public void TestV2CoreEventDestinationPost4() { this.StubRequest( - HttpMethod.Get, - "/v2/core/event_destinations/id_123", + HttpMethod.Post, + "/v2/core/event_destinations/id_123/enable", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Get("id_123"); + Stripe.V2.EventDestination eventDestination = service.Enable( + "id_123"); this.AssertRequest( - HttpMethod.Get, - "/v2/core/event_destinations/id_123"); + HttpMethod.Post, + "/v2/core/event_destinations/id_123/enable"); } [Fact] @@ -6495,18 +6598,15 @@ public void TestV2CoreEventDestinationPost5() { this.StubRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123", + "/v2/core/event_destinations/id_123/ping", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); - var options = new Stripe.V2.Core.EventDestinationUpdateOptions(); + "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Update( - "id_123", - options); + Stripe.V2.Event result = service.Ping("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123"); + "/v2/core/event_destinations/id_123/ping"); } [Fact] @@ -6551,110 +6651,93 @@ public void TestV2CoreVaultGbBankAccountPost() { this.StubRequest( HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee", + "/v2/core/vault/gb_bank_accounts", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"last4\":\"last4\",\"livemode\":true,\"sort_code\":\"sort_code\"}"); + var options = new Stripe.V2.Core.Vault.GbBankAccountCreateOptions + { + AccountNumber = "account_number", + SortCode = "sort_code", + }; var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; - Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service - .AcknowledgeConfirmationOfPayee("id_123"); + Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Create( + options); this.AssertRequest( HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee"); + "/v2/core/vault/gb_bank_accounts"); } [Fact] - public void TestV2CoreVaultGbBankAccountPost2() + public void TestV2CoreVaultGbBankAccountGet() { this.StubRequest( - HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts/id_123/archive", + HttpMethod.Get, + "/v2/core/vault/gb_bank_accounts/id_123", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"last4\":\"last4\",\"livemode\":true,\"sort_code\":\"sort_code\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; - Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Archive( + Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Get( "id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts/id_123/archive"); - } - - [Fact] - public void TestV2CoreVaultGbBankAccountPost3() - { - this.StubRequest( - HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"last4\":\"last4\",\"livemode\":true,\"sort_code\":\"sort_code\"}"); - var options = new Stripe.V2.Core.Vault.GbBankAccountCreateOptions - { - AccountNumber = "account_number", - SortCode = "sort_code", - }; - var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Vault.GbBankAccounts; - Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Create( - options); - this.AssertRequest( - HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts"); + HttpMethod.Get, + "/v2/core/vault/gb_bank_accounts/id_123"); } [Fact] - public void TestV2CoreVaultGbBankAccountPost4() + public void TestV2CoreVaultGbBankAccountPost2() { this.StubRequest( HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee", + "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"last4\":\"last4\",\"livemode\":true,\"sort_code\":\"sort_code\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service - .InitiateConfirmationOfPayee("id_123"); + .AcknowledgeConfirmationOfPayee("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee"); + "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee"); } [Fact] - public void TestV2CoreVaultGbBankAccountGet() + public void TestV2CoreVaultGbBankAccountPost3() { this.StubRequest( - HttpMethod.Get, - "/v2/core/vault/gb_bank_accounts/id_123", + HttpMethod.Post, + "/v2/core/vault/gb_bank_accounts/id_123/archive", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"last4\":\"last4\",\"livemode\":true,\"sort_code\":\"sort_code\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; - Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Get( + Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Archive( "id_123"); this.AssertRequest( - HttpMethod.Get, - "/v2/core/vault/gb_bank_accounts/id_123"); + HttpMethod.Post, + "/v2/core/vault/gb_bank_accounts/id_123/archive"); } [Fact] - public void TestV2CoreVaultUsBankAccountPost() + public void TestV2CoreVaultGbBankAccountPost4() { this.StubRequest( HttpMethod.Post, - "/v2/core/vault/us_bank_accounts/id_123/archive", + "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"fedwire_routing_number\":null,\"last4\":\"last4\",\"livemode\":true,\"routing_number\":null}"); + "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{\"business_type\":null,\"name\":null},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"last4\":\"last4\",\"livemode\":true,\"sort_code\":\"sort_code\"}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Core.Vault.UsBankAccounts; - Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service.Archive( - "id_123"); + var service = client.V2.Core.Vault.GbBankAccounts; + Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service + .InitiateConfirmationOfPayee("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/core/vault/us_bank_accounts/id_123/archive"); + "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee"); } [Fact] - public void TestV2CoreVaultUsBankAccountPost2() + public void TestV2CoreVaultUsBankAccountPost() { this.StubRequest( HttpMethod.Post, @@ -6692,7 +6775,7 @@ public void TestV2CoreVaultUsBankAccountGet() } [Fact] - public void TestV2CoreVaultUsBankAccountPost3() + public void TestV2CoreVaultUsBankAccountPost2() { this.StubRequest( HttpMethod.Post, @@ -6710,6 +6793,23 @@ public void TestV2CoreVaultUsBankAccountPost3() "/v2/core/vault/us_bank_accounts/id_123"); } + [Fact] + public void TestV2CoreVaultUsBankAccountPost3() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/vault/us_bank_accounts/id_123/archive", + (HttpStatusCode)200, + "{\"id\":\"obj_123\",\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"fedwire_routing_number\":null,\"last4\":\"last4\",\"livemode\":true,\"routing_number\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Vault.UsBankAccounts; + Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service.Archive( + "id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/vault/us_bank_accounts/id_123/archive"); + } + [Fact] public void TestV2MoneyManagementAdjustmentGet() { @@ -6751,7 +6851,7 @@ public void TestV2MoneyManagementFinancialAccountGet() HttpMethod.Get, "/v2/money_management/financial_accounts", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"undefined\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"ec\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"livemode\":true,\"other\":null,\"status\":\"closed\",\"storage\":null,\"type\":\"other\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"undefined\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"af\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"metadata\":null,\"other\":null,\"status\":\"closed\",\"storage\":null,\"type\":\"other\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.StripeList financialAccounts = service @@ -6768,7 +6868,7 @@ public void TestV2MoneyManagementFinancialAccountGet2() HttpMethod.Get, "/v2/money_management/financial_accounts/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"undefined\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"ec\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"livemode\":true,\"other\":null,\"status\":\"closed\",\"storage\":null,\"type\":\"other\"}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"undefined\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"undefined\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"af\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"metadata\":null,\"other\":null,\"status\":\"closed\",\"storage\":null,\"type\":\"other\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -6778,6 +6878,23 @@ public void TestV2MoneyManagementFinancialAccountGet2() "/v2/money_management/financial_accounts/id_123"); } + [Fact] + public void TestV2MoneyManagementFinancialAddressGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/financial_addresses", + (HttpStatusCode)200, + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"livemode\":true,\"status\":\"failed\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.FinancialAddresses; + Stripe.V2.StripeList financialAddresses = service + .List(); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/financial_addresses"); + } + [Fact] public void TestV2MoneyManagementFinancialAddressPost() { @@ -6801,37 +6918,37 @@ public void TestV2MoneyManagementFinancialAddressPost() } [Fact] - public void TestV2MoneyManagementFinancialAddressGet() + public void TestV2MoneyManagementFinancialAddressGet2() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/financial_addresses", + "/v2/money_management/financial_addresses/id_123", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"livemode\":true,\"status\":\"failed\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"livemode\":true,\"status\":\"failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses; - Stripe.V2.StripeList financialAddresses = service - .List(); + Stripe.V2.MoneyManagement.FinancialAddress financialAddress = service + .Get("id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/financial_addresses"); + "/v2/money_management/financial_addresses/id_123"); } [Fact] - public void TestV2MoneyManagementFinancialAddressGet2() + public void TestV2MoneyManagementInboundTransferGet() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/financial_addresses/id_123", + "/v2/money_management/inbound_transfers", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"credentials\":null,\"currency\":\"stn\",\"financial_account\":\"financial_account\",\"livemode\":true,\"status\":\"failed\"}"); + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\",\"us_bank_account\":null}},\"livemode\":true,\"receipt_url\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\",\"bank_debit_failed\":null,\"bank_debit_processing\":null,\"bank_debit_queued\":null,\"bank_debit_returned\":null,\"bank_debit_succeeded\":null}]}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.FinancialAddresses; - Stripe.V2.MoneyManagement.FinancialAddress financialAddress = service - .Get("id_123"); + var service = client.V2.MoneyManagement.InboundTransfers; + Stripe.V2.StripeList inboundTransfers = service + .List(); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/financial_addresses/id_123"); + "/v2/money_management/inbound_transfers"); } [Fact] @@ -6847,12 +6964,12 @@ public void TestV2MoneyManagementInboundTransferPost() Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.InboundTransferCreateFromOptions { - Currency = "currency", + Currency = "usd", PaymentMethod = "payment_method", }, To = new Stripe.V2.MoneyManagement.InboundTransferCreateToOptions { - Currency = "currency", + Currency = "usd", FinancialAccount = "financial_account", }, }; @@ -6865,23 +6982,6 @@ public void TestV2MoneyManagementInboundTransferPost() "/v2/money_management/inbound_transfers"); } - [Fact] - public void TestV2MoneyManagementInboundTransferGet() - { - this.StubRequest( - HttpMethod.Get, - "/v2/money_management/inbound_transfers", - (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.inbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"payment_method\":{\"type\":\"type\",\"us_bank_account\":null}},\"livemode\":true,\"receipt_url\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"financial_account\":\"financial_account\"},\"transfer_history\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"level\":\"canonical\",\"type\":\"bank_debit_failed\",\"bank_debit_failed\":null,\"bank_debit_processing\":null,\"bank_debit_queued\":null,\"bank_debit_returned\":null,\"bank_debit_succeeded\":null}]}],\"next_page_url\":null,\"previous_page_url\":null}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.InboundTransfers; - Stripe.V2.StripeList inboundTransfers = service - .List(); - this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/inbound_transfers"); - } - [Fact] public void TestV2MoneyManagementInboundTransferGet2() { @@ -6900,321 +7000,304 @@ public void TestV2MoneyManagementInboundTransferGet2() } [Fact] - public void TestV2MoneyManagementOutboundPaymentPost() - { - this.StubRequest( - HttpMethod.Post, - "/v2/money_management/outbound_payments/id_123/cancel", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundPayments; - Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service - .Cancel("id_123"); - this.AssertRequest( - HttpMethod.Post, - "/v2/money_management/outbound_payments/id_123/cancel"); - } - - [Fact] - public void TestV2MoneyManagementOutboundPaymentPost2() + public void TestV2MoneyManagementOutboundPaymentQuotePost() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_payments", + "/v2/money_management/outbound_payment_quotes", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); - var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"undefined\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}"); + var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions { Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, - From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions + From = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateFromOptions { - Currency = "currency", + Currency = "usd", FinancialAccount = "financial_account", }, - To = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToOptions + To = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateToOptions { - Currency = "currency", + Currency = "usd", PayoutMethod = "payout_method", Recipient = "recipient", }, }; var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundPayments; - Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service + var service = client.V2.MoneyManagement.OutboundPaymentQuotes; + Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service .Create(options); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_payments"); + "/v2/money_management/outbound_payment_quotes"); } [Fact] - public void TestV2MoneyManagementOutboundPaymentGet() + public void TestV2MoneyManagementOutboundPaymentQuoteGet() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/outbound_payments", + "/v2/money_management/outbound_payment_quotes/id_123", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"undefined\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"usd\"},\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundPayments; - Stripe.V2.StripeList outboundPayments = service - .List(); + var service = client.V2.MoneyManagement.OutboundPaymentQuotes; + Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service + .Get("id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/outbound_payments"); + "/v2/money_management/outbound_payment_quotes/id_123"); } [Fact] - public void TestV2MoneyManagementOutboundPaymentGet2() + public void TestV2MoneyManagementOutboundPaymentGet() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/outbound_payments/id_123", + "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; - Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service - .Get("id_123"); + Stripe.V2.StripeList outboundPayments = service + .List(); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/outbound_payments/id_123"); + "/v2/money_management/outbound_payments"); } [Fact] - public void TestV2MoneyManagementOutboundPaymentQuotePost() + public void TestV2MoneyManagementOutboundPaymentPost() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_payment_quotes", + "/v2/money_management/outbound_payments", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"undefined\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"to_currency\"},\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}"); - var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); + var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, - From = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateFromOptions + From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { - Currency = "currency", + Currency = "usd", FinancialAccount = "financial_account", }, - To = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateToOptions + To = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToOptions { - Currency = "currency", + Currency = "usd", PayoutMethod = "payout_method", Recipient = "recipient", }, }; var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundPaymentQuotes; - Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service + var service = client.V2.MoneyManagement.OutboundPayments; + Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service .Create(options); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_payment_quotes"); + "/v2/money_management/outbound_payments"); } [Fact] - public void TestV2MoneyManagementOutboundPaymentQuoteGet() + public void TestV2MoneyManagementOutboundPaymentGet2() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/outbound_payment_quotes/id_123", + "/v2/money_management/outbound_payments/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"cross_border_payout_fee\"}],\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"fx_quote\":{\"lock_duration\":\"five_minutes\",\"lock_expires_at\":\"1970-01-18T15:15:29.586Z\",\"lock_status\":\"active\",\"rates\":{\"undefined\":{\"exchange_rate\":\"exchange_rate\"}},\"to_currency\":\"to_currency\"},\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundPaymentQuotes; - Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service + var service = client.V2.MoneyManagement.OutboundPayments; + Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service .Get("id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/outbound_payment_quotes/id_123"); + "/v2/money_management/outbound_payments/id_123"); } [Fact] - public void TestV2MoneyManagementOutboundTransferPost() + public void TestV2MoneyManagementOutboundPaymentPost2() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_transfers/id_123/cancel", + "/v2/money_management/outbound_payments/id_123/cancel", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_payment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"outbound_payment_quote\":null,\"receipt_url\":null,\"recipient_notification\":{\"setting\":\"configured\"},\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundTransfers; - Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service + var service = client.V2.MoneyManagement.OutboundPayments; + Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service .Cancel("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_transfers/id_123/cancel"); + "/v2/money_management/outbound_payments/id_123/cancel"); } [Fact] - public void TestV2MoneyManagementOutboundTransferPost2() + public void TestV2MoneyManagementOutboundSetupIntentGet() { this.StubRequest( - HttpMethod.Post, - "/v2/money_management/outbound_transfers", + HttpMethod.Get, + "/v2/money_management/outbound_setup_intents", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); - var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions - { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, - From = new Stripe.V2.MoneyManagement.OutboundTransferCreateFromOptions - { - Currency = "currency", - FinancialAccount = "financial_account", - }, - To = new Stripe.V2.MoneyManagement.OutboundTransferCreateToOptions - { - Currency = "currency", - PayoutMethod = "payout_method", - }, - }; + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundTransfers; - Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service - .Create(options); + var service = client.V2.MoneyManagement.OutboundSetupIntents; + Stripe.V2.StripeList outboundSetupIntents = service + .List(); this.AssertRequest( - HttpMethod.Post, - "/v2/money_management/outbound_transfers"); + HttpMethod.Get, + "/v2/money_management/outbound_setup_intents"); } [Fact] - public void TestV2MoneyManagementOutboundTransferGet() + public void TestV2MoneyManagementOutboundSetupIntentPost() { this.StubRequest( - HttpMethod.Get, - "/v2/money_management/outbound_transfers", + HttpMethod.Post, + "/v2/money_management/outbound_setup_intents", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); + var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentCreateOptions(); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundTransfers; - Stripe.V2.StripeList outboundTransfers = service - .List(); + var service = client.V2.MoneyManagement.OutboundSetupIntents; + Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service + .Create(options); this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/outbound_transfers"); + HttpMethod.Post, + "/v2/money_management/outbound_setup_intents"); } [Fact] - public void TestV2MoneyManagementOutboundTransferGet2() + public void TestV2MoneyManagementOutboundSetupIntentGet2() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/outbound_transfers/id_123", + "/v2/money_management/outbound_setup_intents/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundTransfers; - Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service + var service = client.V2.MoneyManagement.OutboundSetupIntents; + Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service .Get("id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/outbound_transfers/id_123"); + "/v2/money_management/outbound_setup_intents/id_123"); } [Fact] - public void TestV2MoneyManagementOutboundSetupIntentPost() + public void TestV2MoneyManagementOutboundSetupIntentPost2() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents/id_123/cancel", + "/v2/money_management/outbound_setup_intents/id_123", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); + var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service - .Cancel("id_123"); + .Update("id_123", options); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents/id_123/cancel"); + "/v2/money_management/outbound_setup_intents/id_123"); } [Fact] - public void TestV2MoneyManagementOutboundSetupIntentPost2() + public void TestV2MoneyManagementOutboundSetupIntentPost3() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents", + "/v2/money_management/outbound_setup_intents/id_123/cancel", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); - var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service - .Create(options); + .Cancel("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents"); + "/v2/money_management/outbound_setup_intents/id_123/cancel"); } [Fact] - public void TestV2MoneyManagementOutboundSetupIntentGet() + public void TestV2MoneyManagementOutboundTransferGet() { this.StubRequest( HttpMethod.Get, - "/v2/money_management/outbound_setup_intents", + "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundSetupIntents; - Stripe.V2.StripeList outboundSetupIntents = service + var service = client.V2.MoneyManagement.OutboundTransfers; + Stripe.V2.StripeList outboundTransfers = service .List(); this.AssertRequest( HttpMethod.Get, - "/v2/money_management/outbound_setup_intents"); + "/v2/money_management/outbound_transfers"); } [Fact] - public void TestV2MoneyManagementOutboundSetupIntentGet2() + public void TestV2MoneyManagementOutboundTransferPost() { this.StubRequest( - HttpMethod.Get, - "/v2/money_management/outbound_setup_intents/id_123", + HttpMethod.Post, + "/v2/money_management/outbound_transfers", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); + var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions + { + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + From = new Stripe.V2.MoneyManagement.OutboundTransferCreateFromOptions + { + Currency = "usd", + FinancialAccount = "financial_account", + }, + To = new Stripe.V2.MoneyManagement.OutboundTransferCreateToOptions + { + Currency = "usd", + PayoutMethod = "payout_method", + }, + }; var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundSetupIntents; - Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service - .Get("id_123"); + var service = client.V2.MoneyManagement.OutboundTransfers; + Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service + .Create(options); this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/outbound_setup_intents/id_123"); + HttpMethod.Post, + "/v2/money_management/outbound_transfers"); } [Fact] - public void TestV2MoneyManagementOutboundSetupIntentPost3() + public void TestV2MoneyManagementOutboundTransferGet2() { this.StubRequest( - HttpMethod.Post, - "/v2/money_management/outbound_setup_intents/id_123", + HttpMethod.Get, + "/v2/money_management/outbound_transfers/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"next_action\":null,\"payout_method\":{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); - var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentUpdateOptions(); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundSetupIntents; - Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service - .Update("id_123", options); + var service = client.V2.MoneyManagement.OutboundTransfers; + Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service + .Get("id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/money_management/outbound_setup_intents/id_123"); + HttpMethod.Get, + "/v2/money_management/outbound_transfers/id_123"); } [Fact] - public void TestV2MoneyManagementPayoutMethodPost() + public void TestV2MoneyManagementOutboundTransferPost2() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/payout_methods/id_123/archive", + "/v2/money_management/outbound_transfers/id_123/cancel", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_transfer\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"cancelable\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"delivery_options\":null,\"description\":null,\"expected_arrival_date\":null,\"from\":{\"debited\":{\"currency\":\"USD\",\"value\":55},\"financial_account\":\"financial_account\"},\"livemode\":true,\"metadata\":null,\"receipt_url\":null,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\",\"value\":null}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.PayoutMethods; - Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service - .Archive("id_123"); + var service = client.V2.MoneyManagement.OutboundTransfers; + Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service + .Cancel("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/payout_methods/id_123/archive"); + "/v2/money_management/outbound_transfers/id_123/cancel"); } [Fact] @@ -7251,6 +7334,23 @@ public void TestV2MoneyManagementPayoutMethodGet2() "/v2/money_management/payout_methods/id_123"); } + [Fact] + public void TestV2MoneyManagementPayoutMethodPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_methods/id_123/archive", + (HttpStatusCode)200, + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"bank_account\":null,\"card\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"latest_outbound_setup_intent\":null,\"livemode\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutMethods; + Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service + .Archive("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_methods/id_123/archive"); + } + [Fact] public void TestV2MoneyManagementPayoutMethodPost2() { @@ -7342,246 +7442,107 @@ public void TestV2MoneyManagementReceivedDebitGet() [Fact] public void TestV2MoneyManagementReceivedDebitGet2() { - this.StubRequest( - HttpMethod.Get, - "/v2/money_management/received_debits/id_123", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"bank_transfer\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"livemode\":true,\"receipt_url\":null,\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"type\":\"bank_transfer\"}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.ReceivedDebits; - Stripe.V2.MoneyManagement.ReceivedDebit receivedDebit = service.Get( - "id_123"); - this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/received_debits/id_123"); - } - - [Fact] - public void TestV2MoneyManagementTransactionGet() - { - this.StubRequest( - HttpMethod.Get, - "/v2/money_management/transactions", - (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"return\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null},\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{\"posted_at\":null,\"void_at\":null}}],\"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 - .List(); - this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/transactions"); - } - - [Fact] - public void TestV2MoneyManagementTransactionGet2() - { - this.StubRequest( - HttpMethod.Get, - "/v2/money_management/transactions/id_123", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"return\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null},\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{\"posted_at\":null,\"void_at\":null}}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.Transactions; - Stripe.V2.MoneyManagement.Transaction transaction = service.Get( - "id_123"); - this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/transactions/id_123"); - } - - [Fact] - public void TestV2MoneyManagementTransactionEntryGet() - { - this.StubRequest( - HttpMethod.Get, - "/v2/money_management/transaction_entries", - (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"return\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null}}}],\"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 - .List(); - this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/transaction_entries"); - } - - [Fact] - public void TestV2MoneyManagementTransactionEntryGet2() - { - this.StubRequest( - HttpMethod.Get, - "/v2/money_management/transaction_entries/id_123", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"return\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null}}}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.TransactionEntries; - Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service - .Get("id_123"); - this.AssertRequest( - HttpMethod.Get, - "/v2/money_management/transaction_entries/id_123"); - } - - [Fact] - public void TestV2BillingMeterEventSessionPost() - { - this.StubRequest( - HttpMethod.Post, - "/v2/billing/meter_event_session", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}"); - var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions(); - var client = new StripeClient(this.Requestor); - var service = client.V2.Billing.MeterEventSession; - Stripe.V2.Billing.MeterEventSession meterEventSession = service - .Create(options); - this.AssertRequest( - HttpMethod.Post, - "/v2/billing/meter_event_session"); - } - - [Fact] - public void TestV2BillingMeterEventAdjustmentPost() - { - this.StubRequest( - HttpMethod.Post, - "/v2/billing/meter_event_adjustments", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_adjustment\",\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"livemode\":true,\"status\":\"complete\",\"type\":\"cancel\"}"); - var options = new Stripe.V2.Billing.MeterEventAdjustmentCreateOptions - { - Cancel = new Stripe.V2.Billing.MeterEventAdjustmentCreateCancelOptions - { - Identifier = "identifier", - }, - EventName = "event_name", - Type = "cancel", - }; + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/received_debits/id_123", + (HttpStatusCode)200, + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.received_debit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"bank_transfer\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":null,\"financial_account\":\"financial_account\",\"livemode\":true,\"receipt_url\":null,\"status\":\"canceled\",\"status_details\":null,\"status_transitions\":null,\"type\":\"bank_transfer\"}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Billing.MeterEventAdjustments; - Stripe.V2.Billing.MeterEventAdjustment meterEventAdjustment = service - .Create(options); + var service = client.V2.MoneyManagement.ReceivedDebits; + Stripe.V2.MoneyManagement.ReceivedDebit receivedDebit = service.Get( + "id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/billing/meter_event_adjustments"); + HttpMethod.Get, + "/v2/money_management/received_debits/id_123"); } [Fact] - public void TestV2BillingMeterEventStreamPost() + public void TestV2MoneyManagementTransactionEntryGet() { this.StubRequest( - HttpMethod.Post, - "/v2/billing/meter_event_stream", + HttpMethod.Get, + "/v2/money_management/transaction_entries", (HttpStatusCode)200, - "{}"); - var options = new Stripe.V2.Billing.MeterEventStreamCreateOptions - { - Events = new List - { - new Stripe.V2.Billing.MeterEventStreamCreateEventOptions - { - EventName = "event_name", - Identifier = "identifier", - Payload = new Dictionary - { - { "undefined", "payload" }, - }, - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - }, - }; + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"return\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null}}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Billing.MeterEventStream; - service.Create(options); + var service = client.V2.MoneyManagement.TransactionEntries; + Stripe.V2.StripeList transactionEntries = service + .List(); this.AssertRequest( - HttpMethod.Post, - "/v2/billing/meter_event_stream"); + HttpMethod.Get, + "/v2/money_management/transaction_entries"); } [Fact] - public void TestV2BillingMeterEventPost() + public void TestV2MoneyManagementTransactionEntryGet2() { this.StubRequest( - HttpMethod.Post, - "/v2/billing/meter_events", + HttpMethod.Get, + "/v2/money_management/transaction_entries/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.billing.meter_event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"livemode\":true,\"payload\":{\"undefined\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\"}"); - var options = new Stripe.V2.Billing.MeterEventCreateOptions - { - EventName = "event_name", - Payload = new Dictionary - { - { "undefined", "payload" }, - }, - }; + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"return\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null}}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.Billing.MeterEvents; - Stripe.V2.Billing.MeterEvent meterEvent = service.Create(options); - this.AssertRequest(HttpMethod.Post, "/v2/billing/meter_events"); + var service = client.V2.MoneyManagement.TransactionEntries; + Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service + .Get("id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/transaction_entries/id_123"); } [Fact] - public void TestV2TestHelpersFinancialAddressPost() + public void TestV2MoneyManagementTransactionGet() { this.StubRequest( - HttpMethod.Post, - "/v2/test_helpers/financial_addresses/id_123/credit", + HttpMethod.Get, + "/v2/money_management/transactions", (HttpStatusCode)200, - "{\"object\":\"financial_address_credit_simulation\",\"livemode\":true,\"status\":\"status\"}"); - var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions - { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, - Network = "rtp", - }; + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"return\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null},\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{\"posted_at\":null,\"void_at\":null}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); - var service = client.V2.TestHelpers.FinancialAddresses; - Stripe.V2.FinancialAddressCreditSimulation financialAddressCreditSimulation = service - .Credit("id_123", options); + var service = client.V2.MoneyManagement.Transactions; + Stripe.V2.StripeList transactions = service + .List(); this.AssertRequest( - HttpMethod.Post, - "/v2/test_helpers/financial_addresses/id_123/credit"); + HttpMethod.Get, + "/v2/money_management/transactions"); } [Fact] - public void TestV2TestHelpersFinancialAddressPost2() + public void TestV2MoneyManagementTransactionGet2() { this.StubRequest( - HttpMethod.Post, - "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits", + HttpMethod.Get, + "/v2/money_management/transactions/id_123", (HttpStatusCode)200, - "{\"object\":\"financial_address_generated_microdeposits\",\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"livemode\":true,\"status\":\"accepted\"}"); + "{\"id\":\"obj_123\",\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"return\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"flow\":{\"type\":\"outbound_payment\",\"adjustment\":null,\"fee_transaction\":null,\"inbound_transfer\":null,\"outbound_payment\":null,\"outbound_transfer\":null,\"received_credit\":null,\"received_debit\":null},\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{\"posted_at\":null,\"void_at\":null}}"); var client = new StripeClient(this.Requestor); - var service = client.V2.TestHelpers.FinancialAddresses; - Stripe.V2.FinancialAddressGeneratedMicrodeposits financialAddressGeneratedMicrodeposits = service - .GenerateMicrodeposits("id_123"); + var service = client.V2.MoneyManagement.Transactions; + Stripe.V2.MoneyManagement.Transaction transaction = service.Get( + "id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits"); + HttpMethod.Get, + "/v2/money_management/transactions/id_123"); } [Fact] - public void TestV2PaymentsOffSessionPaymentPost() + public void TestV2PaymentsOffSessionPaymentGet() { this.StubRequest( - HttpMethod.Post, - "/v2/payments/off_session_payments/id_123/cancel", + HttpMethod.Get, + "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"undefined\":\"metadata\"},\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}"); + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"undefined\":\"metadata\"},\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; - Stripe.V2.Payments.OffSessionPayment offSessionPayment = service - .Cancel("id_123"); + Stripe.V2.StripeList offSessionPayments = service + .List(); this.AssertRequest( - HttpMethod.Post, - "/v2/payments/off_session_payments/id_123/cancel"); + HttpMethod.Get, + "/v2/payments/off_session_payments"); } [Fact] - public void TestV2PaymentsOffSessionPaymentPost2() + public void TestV2PaymentsOffSessionPaymentPost() { this.StubRequest( HttpMethod.Post, @@ -7609,37 +7570,76 @@ public void TestV2PaymentsOffSessionPaymentPost2() } [Fact] - public void TestV2PaymentsOffSessionPaymentGet() + public void TestV2PaymentsOffSessionPaymentGet2() { this.StubRequest( HttpMethod.Get, - "/v2/payments/off_session_payments", + "/v2/payments/off_session_payments/id_123", (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"undefined\":\"metadata\"},\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"id\":\"obj_123\",\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"undefined\":\"metadata\"},\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; - Stripe.V2.StripeList offSessionPayments = service - .List(); + Stripe.V2.Payments.OffSessionPayment offSessionPayment = service + .Get("id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/payments/off_session_payments"); + "/v2/payments/off_session_payments/id_123"); } [Fact] - public void TestV2PaymentsOffSessionPaymentGet2() + public void TestV2PaymentsOffSessionPaymentPost2() { this.StubRequest( - HttpMethod.Get, - "/v2/payments/off_session_payments/id_123", + HttpMethod.Post, + "/v2/payments/off_session_payments/id_123/cancel", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"compartment_id\":\"compartment_id\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"failure_reason\":null,\"last_authorization_attempt_error\":null,\"latest_payment_attempt_record\":null,\"livemode\":true,\"metadata\":{\"undefined\":\"metadata\"},\"on_behalf_of\":null,\"payment_method\":\"payment_method\",\"payment_record\":null,\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"none\"},\"statement_descriptor\":null,\"statement_descriptor_suffix\":null,\"status\":\"pending\",\"test_clock\":null,\"transfer_data\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service - .Get("id_123"); + .Cancel("id_123"); this.AssertRequest( - HttpMethod.Get, - "/v2/payments/off_session_payments/id_123"); + HttpMethod.Post, + "/v2/payments/off_session_payments/id_123/cancel"); + } + + [Fact] + public void TestV2TestHelpersFinancialAddressPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/test_helpers/financial_addresses/id_123/credit", + (HttpStatusCode)200, + "{\"object\":\"financial_address_credit_simulation\",\"livemode\":true,\"status\":\"status\"}"); + var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions + { + Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, + Network = "rtp", + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.TestHelpers.FinancialAddresses; + Stripe.V2.FinancialAddressCreditSimulation financialAddressCreditSimulation = service + .Credit("id_123", options); + this.AssertRequest( + HttpMethod.Post, + "/v2/test_helpers/financial_addresses/id_123/credit"); + } + + [Fact] + public void TestV2TestHelpersFinancialAddressPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits", + (HttpStatusCode)200, + "{\"object\":\"financial_address_generated_microdeposits\",\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"livemode\":true,\"status\":\"accepted\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.TestHelpers.FinancialAddresses; + Stripe.V2.FinancialAddressGeneratedMicrodeposits financialAddressGeneratedMicrodeposits = service + .GenerateMicrodeposits("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/test_helpers/financial_addresses/id_123/generate_microdeposits"); } [Fact] @@ -7702,6 +7702,32 @@ public void TestFinancialAccountNotOpenError() "/v2/money_management/financial_addresses"); } + [Fact] + public void TestFeatureNotEnabledError() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/financial_addresses", + (HttpStatusCode)400, + "{\"error\":{\"type\":\"feature_not_enabled\",\"code\":\"storer_capability_missing\"}}"); + var exception = Assert.Throws( + () => + { + var options = new Stripe.V2.MoneyManagement.FinancialAddressCreateOptions + { + Currency = "stn", + FinancialAccount = "financial_account", + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.FinancialAddresses; + Stripe.V2.MoneyManagement.FinancialAddress financialAddress = service + .Create(options); + }); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/financial_addresses"); + } + [Fact] public void TestBlockedByStripeError() { @@ -7776,7 +7802,7 @@ public void TestInsufficientFundsError() HttpMethod.Post, "/v2/money_management/outbound_payments", (HttpStatusCode)400, - "{\"error\":{\"type\":\"insufficient_funds\",\"code\":\"outbound_payment_insufficient_funds\"}}"); + "{\"error\":{\"type\":\"insufficient_funds\",\"code\":\"insufficient_funds\"}}"); var exception = Assert.Throws( () => { @@ -7785,7 +7811,7 @@ public void TestInsufficientFundsError() Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { - Currency = "currency", + Currency = "usd", FinancialAccount = "financial_account", }, To = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToOptions @@ -7810,7 +7836,7 @@ public void TestQuotaExceededError() HttpMethod.Post, "/v2/core/vault/us_bank_accounts", (HttpStatusCode)400, - "{\"error\":{\"type\":\"quota_exceeded\",\"code\":\"outbound_payment_recipient_amount_limit_exceeded\"}}"); + "{\"error\":{\"type\":\"quota_exceeded\",\"code\":\"recipient_amount_limit_exceeded\"}}"); var exception = Assert.Throws( () => { @@ -7835,7 +7861,7 @@ public void TestRecipientNotNotifiableError() HttpMethod.Post, "/v2/money_management/outbound_payments", (HttpStatusCode)400, - "{\"error\":{\"type\":\"recipient_not_notifiable\",\"code\":\"outbound_payment_recipient_email_does_not_exist\"}}"); + "{\"error\":{\"type\":\"recipient_not_notifiable\",\"code\":\"recipient_email_does_not_exist\"}}"); var exception = Assert.Throws( () => { @@ -7844,41 +7870,7 @@ public void TestRecipientNotNotifiableError() Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions { - Currency = "currency", - FinancialAccount = "financial_account", - }, - To = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToOptions - { - Recipient = "recipient", - }, - }; - var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundPayments; - Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service - .Create(options); - }); - this.AssertRequest( - HttpMethod.Post, - "/v2/money_management/outbound_payments"); - } - - [Fact] - public void TestFeatureNotEnabledError() - { - this.StubRequest( - HttpMethod.Post, - "/v2/money_management/outbound_payments", - (HttpStatusCode)400, - "{\"error\":{\"type\":\"feature_not_enabled\",\"code\":\"outbound_payment_recipient_feature_not_active\"}}"); - var exception = Assert.Throws( - () => - { - var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions - { - Amount = new Stripe.V2.Amount { Currency = "USD", Value = 96 }, - From = new Stripe.V2.MoneyManagement.OutboundPaymentCreateFromOptions - { - Currency = "currency", + Currency = "usd", FinancialAccount = "financial_account", }, To = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToOptions