diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index bce7797ff9..308e72af1a 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -161b2a6978a9cd8c0c376d83ae012fd5a7da2fe1 \ No newline at end of file +088388aa159596ba4e240aeb0bb65d5bb4a562ab \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5a83b26fd1..c22138244c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2315 \ No newline at end of file +v2323 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 51c65a3e5f..740e4bc93e 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,6 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-06-10.preview"; + public const string Current = "2026-06-24.preview"; } } \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs index a791561aee..11a1b1408a 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -88,6 +88,24 @@ public class AccountSessionComponents : StripeEntity [STJS.JsonPropertyName("financial_account_transactions")] public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; } + /// + /// Configuration for the financial + /// accounts embedded component. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountSessionComponentsFinancialAccounts FinancialAccounts { get; set; } + + /// + /// Configuration for the financial + /// accounts transactions embedded component. + /// + [JsonProperty("financial_accounts_transactions")] + [STJS.JsonPropertyName("financial_accounts_transactions")] + public AccountSessionComponentsFinancialAccountsTransactions FinancialAccountsTransactions { get; set; } + [JsonProperty("instant_payouts_promotion")] [STJS.JsonPropertyName("instant_payouts_promotion")] public AccountSessionComponentsInstantPayoutsPromotion InstantPayoutsPromotion { get; set; } @@ -150,6 +168,15 @@ public class AccountSessionComponents : StripeEntity [STJS.JsonPropertyName("payouts_list")] public AccountSessionComponentsPayoutsList PayoutsList { get; set; } + /// + /// Configuration for the recipients + /// list embedded component. + /// + [JsonProperty("recipients_list")] + [STJS.JsonPropertyName("recipients_list")] + public AccountSessionComponentsRecipientsList RecipientsList { get; set; } + [JsonProperty("tax_registrations")] [STJS.JsonPropertyName("tax_registrations")] public AccountSessionComponentsTaxRegistrations TaxRegistrations { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccounts.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccounts.cs new file mode 100644 index 0000000000..f461d448d2 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccounts.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsFinancialAccounts : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsFinancialAccountsFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsFeatures.cs new file mode 100644 index 0000000000..079181f745 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsFeatures.cs @@ -0,0 +1,51 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsFinancialAccountsFeatures : StripeEntity + { + /// + /// Whether to allow bill management features. + /// + [JsonProperty("bill_management")] + [STJS.JsonPropertyName("bill_management")] + public bool BillManagement { get; set; } + + /// + /// Whether to allow card management features. + /// + [JsonProperty("card_management")] + [STJS.JsonPropertyName("card_management")] + public bool CardManagement { get; set; } + + /// + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. This is false by default. + /// + [JsonProperty("disable_stripe_user_authentication")] + [STJS.JsonPropertyName("disable_stripe_user_authentication")] + public bool DisableStripeUserAuthentication { get; set; } + + /// + /// 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")] + [STJS.JsonPropertyName("edit_payout_schedule")] + public bool EditPayoutSchedule { get; set; } + + /// + /// Whether to enable the send money feature that grants access to the v2 + /// CreateOutboundPayment API. + /// + [JsonProperty("send_money")] + [STJS.JsonPropertyName("send_money")] + public bool SendMoney { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsTransactions.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsTransactions.cs new file mode 100644 index 0000000000..2890100f05 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsTransactions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsFinancialAccountsTransactions : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsFinancialAccountsTransactionsFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeatures.cs new file mode 100644 index 0000000000..ae3dca474e --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeatures.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsFinancialAccountsTransactionsFeatures : StripeEntity + { + /// + /// Whether to allow capturing and cancelling payment intents. This is true by + /// default. + /// + [JsonProperty("capture_payments")] + [STJS.JsonPropertyName("capture_payments")] + public bool CapturePayments { get; set; } + + /// + /// Whether to allow card management features. + /// + [JsonProperty("card_management")] + [STJS.JsonPropertyName("card_management")] + public bool CardManagement { get; set; } + + /// + /// Whether to allow card spend dispute management features. + /// + [JsonProperty("card_spend_dispute_management")] + [STJS.JsonPropertyName("card_spend_dispute_management")] + public bool CardSpendDisputeManagement { get; set; } + + /// + /// 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")] + [STJS.JsonPropertyName("destination_on_behalf_of_charge_management")] + public bool DestinationOnBehalfOfChargeManagement { get; set; } + + /// + /// Whether responding to disputes is enabled, including submitting evidence and accepting + /// disputes. This is true by default. + /// + [JsonProperty("dispute_management")] + [STJS.JsonPropertyName("dispute_management")] + public bool DisputeManagement { get; set; } + + /// + /// Whether sending refunds is enabled. This is true by default. + /// + [JsonProperty("refund_management")] + [STJS.JsonPropertyName("refund_management")] + public bool RefundManagement { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsRecipientsList.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsRecipientsList.cs new file mode 100644 index 0000000000..a110667b24 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsRecipientsList.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsRecipientsList : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsRecipientsListFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsRecipientsListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsRecipientsListFeatures.cs new file mode 100644 index 0000000000..70547523b9 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsRecipientsListFeatures.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsRecipientsListFeatures : StripeEntity + { + /// + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. This is false by default. + /// + [JsonProperty("disable_stripe_user_authentication")] + [STJS.JsonPropertyName("disable_stripe_user_authentication")] + public bool DisableStripeUserAuthentication { get; set; } + + /// + /// Whether to allow sending money. + /// + [JsonProperty("send_money")] + [STJS.JsonPropertyName("send_money")] + public bool SendMoney { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs index 92cce5da20..9f2b19bcf1 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsGiftCard.cs @@ -48,6 +48,22 @@ public class ChargePaymentMethodDetailsGiftCard : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } + /// /// The transaction ID from the gift card processor. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index eee4aac5fa..3c84fa91ca 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -376,6 +376,13 @@ public Invoice Invoice [STJS.JsonPropertyName("invoice_creation")] public SessionInvoiceCreation InvoiceCreation { get; set; } + /// + /// The items to be purchased by the customer. + /// + [JsonProperty("items")] + [STJS.JsonPropertyName("items")] + public List Items { get; set; } + /// /// The line items purchased by the customer. /// diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs index 3ca3af03e4..169b32dee9 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCurrentAttemptPaymentMethodDetailsCard.cs @@ -8,6 +8,13 @@ namespace Stripe.Checkout [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class SessionCurrentAttemptPaymentMethodDetailsCard : StripeEntity { + /// + /// The brand of the card, accounting for customer's brand choice on dual-branded cards. + /// + [JsonProperty("brand")] + [STJS.JsonPropertyName("brand")] + public string Brand { get; set; } + /// /// Two-letter ISO code representing the country of the card. You could use this attribute /// to get a sense of the international breakdown of cards you've collected. diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionItem.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionItem.cs new file mode 100644 index 0000000000..969dbbcf43 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionItem.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionItem : StripeEntity + { + /// + /// The key of the item. Guaranteed to be a unique ID within this checkout session's items. + /// + [JsonProperty("key")] + [STJS.JsonPropertyName("key")] + public string Key { get; set; } + + /// + /// The type of the item. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index aa5a8e3e8b..37bbadbe6b 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -124,8 +124,9 @@ public class Event : StripeEntity, IHasId, IHasObject /// account_notice.created, account_notice.updated, /// application_fee.created, application_fee.refund.updated, /// application_fee.refunded, balance.available, - /// balance_settings.updated, billing.alert.triggered, - /// billing.credit_grant.created, billing_portal.configuration.created, + /// balance_settings.updated, billing.alert.recovered, + /// billing.alert.triggered, billing.credit_grant.created, + /// billing_portal.configuration.created, /// billing_portal.configuration.updated, billing_portal.session.created, /// capability.updated, capital.financing_offer.accepted, /// capital.financing_offer.accepted_other_offer, @@ -207,16 +208,17 @@ public class Event : StripeEntity, IHasId, IHasObject /// issuing_transaction.purchase_details_receipt_updated, /// issuing_transaction.updated, mandate.updated, /// payment_intent.amount_capturable_updated, payment_intent.canceled, - /// payment_intent.created, payment_intent.partially_funded, - /// payment_intent.payment_failed, payment_intent.processing, - /// payment_intent.requires_action, payment_intent.succeeded, - /// payment_link.created, payment_link.updated, - /// payment_method.attached, payment_method.automatically_updated, - /// payment_method.detached, payment_method.updated, payout.canceled, - /// payout.created, payout.failed, payout.paid, - /// payout.reconciliation_completed, payout.updated, person.created, - /// person.deleted, person.updated, plan.created, plan.deleted, - /// plan.updated, price.created, price.deleted, price.updated, + /// payment_intent.created, payment_intent.expired, + /// payment_intent.partially_funded, payment_intent.payment_failed, + /// payment_intent.processing, payment_intent.requires_action, + /// payment_intent.succeeded, payment_link.created, + /// payment_link.updated, payment_method.attached, + /// payment_method.automatically_updated, payment_method.detached, + /// payment_method.updated, payout.canceled, payout.created, + /// payout.failed, payout.paid, payout.reconciliation_completed, + /// payout.updated, person.created, person.deleted, + /// person.updated, plan.created, plan.deleted, plan.updated, + /// price.created, price.deleted, price.updated, /// privacy.redaction_job.canceled, privacy.redaction_job.created, /// privacy.redaction_job.ready, privacy.redaction_job.succeeded, /// privacy.redaction_job.validation_error, product.created, @@ -269,8 +271,7 @@ public class Event : StripeEntity, IHasId, IHasObject /// treasury.outbound_transfer.tracking_details_updated, /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, - /// invoice_payment.detached, billing.alert.recovered, - /// payment_intent.expired, billing.credit_balance_transaction.created, + /// invoice_payment.detached, billing.credit_balance_transaction.created, /// billing.credit_grant.updated, billing.meter.created, /// billing.meter.deactivated, billing.meter.reactivated, /// billing.meter.updated, or ping. diff --git a/src/Stripe.net/Entities/GiftCardOperations/GiftCardOperation.cs b/src/Stripe.net/Entities/GiftCardOperations/GiftCardOperation.cs index becce638db..57fc9642a1 100644 --- a/src/Stripe.net/Entities/GiftCardOperations/GiftCardOperation.cs +++ b/src/Stripe.net/Entities/GiftCardOperations/GiftCardOperation.cs @@ -144,6 +144,13 @@ public GiftCard GiftCard [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// ID of the location that this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + /// /// The connected account whose credentials were used to perform this operation. /// @@ -151,6 +158,13 @@ public GiftCard GiftCard [STJS.JsonPropertyName("on_behalf_of")] public string OnBehalfOf { get; set; } + /// + /// ID of the reader this transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } + /// /// Details about a gift card reload operation. /// diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs index 9af8c03835..6297b9fba5 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/Authorization.cs @@ -157,6 +157,13 @@ public Cardholder Cardholder [STJS.JsonPropertyName("currency")] public string Currency { get; set; } + /// + /// Enriched merchant data for this authorization. + /// + [JsonProperty("enriched_merchant_data")] + [STJS.JsonPropertyName("enriched_merchant_data")] + public AuthorizationEnrichedMerchantData EnrichedMerchantData { get; set; } + /// /// Fleet-specific information for authorizations using Fleet cards. /// diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationBalanceResponse.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationBalanceResponse.cs index 0e277e73e3..8cb12c5d50 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationBalanceResponse.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationBalanceResponse.cs @@ -18,19 +18,27 @@ public class AuthorizationBalanceResponse : StripeEntity - /// The remaining balance in the cardholder's account after the authorization, in the - /// smallest currency unit. + /// The available balance or credit limit in the cardholder's account after the + /// authorization, in the smallest currency unit. /// - [JsonProperty("amount")] - [STJS.JsonPropertyName("amount")] - public long Amount { get; set; } + [JsonProperty("available_balance")] + [STJS.JsonPropertyName("available_balance")] + public long AvailableBalance { get; set; } /// - /// The currency of the remaining balance in the cardholder's account after the + /// The currency of the remaining balances in the cardholder's account after the /// authorization. /// [JsonProperty("currency")] [STJS.JsonPropertyName("currency")] public string Currency { get; set; } + + /// + /// The current ledger balance or remaining credit amount in the cardholder's account after + /// the authorization, in the smallest currency unit. + /// + [JsonProperty("current_balance")] + [STJS.JsonPropertyName("current_balance")] + public long CurrentBalance { get; set; } } } diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantData.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantData.cs new file mode 100644 index 0000000000..b0bd2f140e --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantData.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantData : StripeEntity + { + /// + /// Additional details about the seller (grocery store, e-commerce website, and so on) where + /// the card authorization happened. + /// + [JsonProperty("merchant")] + [STJS.JsonPropertyName("merchant")] + public AuthorizationEnrichedMerchantDataMerchant Merchant { get; set; } + + /// + /// An array of third parties involved in the card authorization, when applicable. + /// + [JsonProperty("third_parties")] + [STJS.JsonPropertyName("third_parties")] + public List ThirdParties { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchant.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchant.cs new file mode 100644 index 0000000000..465bf7ca60 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchant.cs @@ -0,0 +1,62 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataMerchant : StripeEntity + { + [JsonProperty("data_sources")] + [STJS.JsonPropertyName("data_sources")] + public List DataSources { get; set; } + + [JsonProperty("industry")] + [STJS.JsonPropertyName("industry")] + public AuthorizationEnrichedMerchantDataMerchantIndustry Industry { get; set; } + + /// + /// Location data of the seller. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public AuthorizationEnrichedMerchantDataMerchantLocation Location { get; set; } + + /// + /// Image link to the seller's logo. + /// + [JsonProperty("logo")] + [STJS.JsonPropertyName("logo")] + public string Logo { get; set; } + + /// + /// The name of the seller. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number of the seller. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + + /// + /// If spade is a data source, this hash contains details provided by Spade. + /// + [JsonProperty("spade")] + [STJS.JsonPropertyName("spade")] + public AuthorizationEnrichedMerchantDataMerchantSpade Spade { get; set; } + + /// + /// URL of the seller's website. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantIndustry.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantIndustry.cs new file mode 100644 index 0000000000..73a78ab28a --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantIndustry.cs @@ -0,0 +1,115 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataMerchantIndustry : StripeEntity, IHasId + { + /// + /// Most specific value of the seller's category. + /// One of: accessories, accounting_and_bookkeeping, acupuncture, + /// administrative_services, adult_entertainment, adult_retail, + /// advertising_and_marketing, advertising_technology, + /// agricultural_technology, agriculture_and_forestry, + /// airlines_and_aviation, alternative_medicine, alternative_rentals, + /// anesthesiologists, antiques, aquatic_transportation, + /// arcades_and_amusement_parks, art_dealers_and_galleries, + /// arts_and_hobbies, atms, auctions, auto_parts_and_supplies, + /// auto_smog_checks, auto_tires, auto_transmission, + /// automotive_dealerships, automotive_retail, automotive_services, + /// bakeries, banking_and_finance, bars, beauty_spas_and_salons, + /// beer_wine_and_spirits, benefits, bicycles, + /// billiards_and_pool, biotechnology, blood_banks_and_centers, + /// boat_dealers, bookstores, bowling, + /// breweries_distilleries_and_wineries, business_brokers_and_franchises, + /// business_services, butchers, buy_now_pay_later, cafes, + /// candy_shops, cannabis_dispensary, car_appraisers, + /// car_wash_and_detail, cardiologists, cards_and_stationery, + /// casinos_and_gambling, catering, charity, childcare, + /// children_s_clothing, children_s_retail, chiropractors, + /// circuses_and_carnivals, cleaning, clothing_and_accessories, + /// clothing_services, commercial_supplies, communication_software, + /// computers_and_electronics, construction_and_home_improvement, + /// construction_supplies, contractors, convenience_stores, + /// cosmetics, costumes, counseling_and_therapy, couriers, + /// coworking_spaces, creative, creative_software, + /// credit_reporting, crm, crowdfunding, cryptocurrency, + /// dance_halls_and_saloons, delivery_services, dentists, + /// department_stores, dermatologists, design_technology, + /// developer_tools, digital_money_movement, discount_stores, + /// education, educational_technology, electric_vehicle_charging, + /// emergency_services, employment_services, enterprise_software, + /// entertainment, ents, environmental_technology, + /// equipment_rentals, events_and_event_planning, eyewear, + /// fairgrounds_and_rodeos, family_medicine, fast_food, + /// fertility, financial_management_software, + /// financial_planning_and_investments, financial_technology, + /// fishmongers, flea_markets, fleet, florists, + /// food_and_drink, food_delivery_services, food_trucks, + /// fuel_dealers, funeral_services, furniture, gas_stations, + /// gastroenterologists, general_goods, general_surgery, + /// gift_and_novelty, government, grocery_delivery_services, + /// gyms_health_and_fitness_centers, hair_removal, + /// hair_salons_and_barbers, hardware, hardware_and_home_improvement, + /// hospitals_clinics_and_medical_centers, household_services, + /// hr_platform, immigration, import_and_export, + /// industrial_and_energy, inflight_internet_and_entertainment, + /// insurance, internal_medicine, internet, jewelry_and_watches, + /// landmarks, laundry_and_garment_services, lawn_and_garden, + /// legal_services, legal_technology, lending, lingerie, + /// lodging, luggage, maintenance_and_repair, + /// manicures_and_pedicures, manufacturing, marina, + /// marine_supplies, marketing_software, + /// massage_clinics_and_therapists, media, + /// medical_and_healthcare_services, medical_supplies_and_labs, + /// men_s_clothing, mental_health_professionals, mobile_applications, + /// motorcycle_moped_and_scooter_repair, museums, musical_instruments, + /// neurologists, news_and_magazines, newsstands, nutritionists, + /// obstetricians_and_gynecologists, office_supplies, oil_and_gas, + /// oncologists, online_marketplace, ophthalmologists, + /// optometrists, organizations, orthopedic_surgeons, other, + /// outlets, packaging, paper, parking, + /// parks_and_outdoors, party_centers, pathologists, pawn_shops, + /// pediatricians, pet_grooming, pet_services, pets, + /// pharmacies, photography, physical_therapy, piercings, + /// plastic_surgeons, podiatrists, pregnancy_and_sexual_health, + /// professional_services, property_management, psychiatrists, + /// psychics_and_astrologers, psychologists, public_services, + /// public_transportation, publishing_software, radiologists, + /// rails, real_estate, recreation, religious, + /// renewable_energy, respiratory, restaurants, retail, + /// ride_shares, sales_enablement_software, security_and_privacy, + /// security_and_safety, services, shipping_and_freight, shoes, + /// skin_care, social_clubs, software, software_engineering, + /// spas, specialist_physicans, specialty_clothing_and_accessories, + /// specialty_foods, specialty_groceries, specialty_retail, + /// sporting_goods, storage, streaming_services, + /// supermarkets_and_grocery_stores, swimwear, tailors, + /// tanning_salons, tattoos, taxes, taxi_and_limousines, + /// technology, telecommunications, television, textiles, + /// theater_and_cinema, tickets_and_reservations, + /// tobacco_smoke_and_vape_shops, tolls_and_fees, + /// tourist_information_and_services, towing_and_roadside_assistance, + /// toy_stores, transportation, travel, travel_services, + /// travel_software, urologists, utilities, vehicle_rentals, + /// vending_machine, venues, veterinarians, video_games, + /// vintage_and_thrift, warehouses_and_wholesale_stores, + /// water_and_waste_management_services, web_infrastructure, + /// wedding_and_bridal, women_s_clothing, or zoos_and_aquariums. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// Increasingly specific textual representations of the seller's category. + /// + [JsonProperty("names")] + [STJS.JsonPropertyName("names")] + public List Names { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocation.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocation.cs new file mode 100644 index 0000000000..cb00cbd754 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocation.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataMerchantLocation : StripeEntity + { + /// + /// Address details of the seller. + /// + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public AuthorizationEnrichedMerchantDataMerchantLocationAddress Address { get; set; } + + /// + /// Coordinates of the seller. + /// + [JsonProperty("coordinates")] + [STJS.JsonPropertyName("coordinates")] + public AuthorizationEnrichedMerchantDataMerchantLocationCoordinates Coordinates { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocationAddress.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocationAddress.cs new file mode 100644 index 0000000000..52fb003766 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocationAddress.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataMerchantLocationAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1, such as the street, PO Box, or company name. + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2, such as the apartment, suite, unit, or building. + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// State, county, province, or region (ISO 3166-2). + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocationCoordinates.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocationCoordinates.cs new file mode 100644 index 0000000000..fe77393b16 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantLocationCoordinates.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataMerchantLocationCoordinates : StripeEntity + { + /// + /// Latitude of the seller's location. + /// + [JsonProperty("latitude")] + [STJS.JsonPropertyName("latitude")] + public decimal? Latitude { get; set; } + + /// + /// Longitude of the seller's location. + /// + [JsonProperty("longitude")] + [STJS.JsonPropertyName("longitude")] + public decimal? Longitude { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantSpade.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantSpade.cs new file mode 100644 index 0000000000..f05e969a58 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataMerchantSpade.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataMerchantSpade : StripeEntity + { + /// + /// Unified identifier for the seller. + /// + [JsonProperty("counterparty_id")] + [STJS.JsonPropertyName("counterparty_id")] + public string CounterpartyId { get; set; } + + /// + /// Unified identifier for the seller's location. + /// + [JsonProperty("location_id")] + [STJS.JsonPropertyName("location_id")] + public string LocationId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataThirdParty.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataThirdParty.cs new file mode 100644 index 0000000000..2803a68455 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataThirdParty.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataThirdParty : StripeEntity + { + [JsonProperty("data_sources")] + [STJS.JsonPropertyName("data_sources")] + public List DataSources { get; set; } + + /// + /// Image link to the third party's logo. + /// + [JsonProperty("logo")] + [STJS.JsonPropertyName("logo")] + public string Logo { get; set; } + + /// + /// Name of the third party. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// If spade is a data source, this hash contains details provided by Spade. + /// + [JsonProperty("spade")] + [STJS.JsonPropertyName("spade")] + public AuthorizationEnrichedMerchantDataThirdPartySpade Spade { get; set; } + + /// + /// Category of the third party. + /// One of: buy_now_pay_later, delivery_service, marketplace, + /// other, payment_processor, or platform. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataThirdPartySpade.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataThirdPartySpade.cs new file mode 100644 index 0000000000..37860f0f36 --- /dev/null +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationEnrichedMerchantDataThirdPartySpade.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationEnrichedMerchantDataThirdPartySpade : StripeEntity + { + /// + /// Unified identifier for the third party. + /// + [JsonProperty("third_party_id")] + [STJS.JsonPropertyName("third_party_id")] + public string ThirdPartyId { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs b/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs index f00c69d037..6ab7ea0f38 100644 --- a/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs +++ b/src/Stripe.net/Entities/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecord.cs @@ -88,6 +88,15 @@ public class CreditUnderwritingRecord : StripeEntity, [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] public DateTime? DecisionDeadline { get; set; } + /// + /// Time at which the decision deadline was last updated. + /// + [JsonProperty("decision_deadline_updated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("decision_deadline_updated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? DecisionDeadlineUpdatedAt { get; set; } + /// /// If the object exists in live mode, the value is true. If the object exists in /// test mode, the value is false. diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs index 084d51bf84..493e4a8cf6 100644 --- a/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs @@ -8,6 +8,15 @@ namespace Stripe.Issuing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class TransactionNetworkData : StripeEntity { + /// + /// The network-provided acquirer reference number for this transaction, if available. Use + /// this value for downstream operational workflows such as filing disputes with the card + /// network. + /// + [JsonProperty("acquirer_reference_number")] + [STJS.JsonPropertyName("acquirer_reference_number")] + public string AcquirerReferenceNumber { get; set; } + /// /// A code created by Stripe which is shared with the merchant to validate the /// authorization. This field will be populated if the authorization message was approved. diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs index 7cdf5bcc06..46669ea4b2 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsGiftCard.cs @@ -51,6 +51,22 @@ public class PaymentAttemptRecordPaymentMethodDetailsGiftCard : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } + /// /// The transaction ID from the gift card processor. /// diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs index e2e9ee5c00..865655bee9 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs @@ -12,9 +12,6 @@ public class PaymentIntentPaymentDetailsMoneyServices : StripeEntity - /// ID of the Account representing the beneficiary in this account funding transaction. - /// [JsonProperty("beneficiary_account")] [STJS.JsonPropertyName("beneficiary_account")] public string BeneficiaryAccount { get; set; } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs index 4d9f20d805..76fd4fb00a 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs @@ -8,9 +8,6 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentIntentPaymentDetailsMoneyServicesAccountFunding : StripeEntity { - /// - /// ID of the Account representing the sender in this account funding transaction. - /// [JsonProperty("sender_account")] [STJS.JsonPropertyName("sender_account")] public string SenderAccount { get; set; } diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs index ec1323d2bb..173777a03b 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsGiftCard.cs @@ -51,6 +51,22 @@ public class PaymentRecordPaymentMethodDetailsGiftCard : StripeEntity + /// ID of the location that + /// this transaction's reader is assigned to. + /// + [JsonProperty("location")] + [STJS.JsonPropertyName("location")] + public string Location { get; set; } + + /// + /// ID of the reader this + /// transaction was made on. + /// + [JsonProperty("reader")] + [STJS.JsonPropertyName("reader")] + public string Reader { get; set; } + /// /// The transaction ID from the gift card processor. /// diff --git a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs index 95ca7cc784..25127f6836 100644 --- a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs +++ b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItem.cs @@ -58,18 +58,6 @@ public class TransactionLineItem : StripeEntity, IHasId, IH [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } - /// - /// The address of the location where this line item's event or service takes place. - /// Depending on the tax code, providing a - /// performance location is required, optional, or not supported. Use this to provide the - /// address inline without pre-creating a TaxLocation object. Can't be used with - /// performance_location. - /// - [JsonProperty("performance_location_details")] - [STJS.JsonPropertyName("performance_location_details")] - public TransactionLineItemPerformanceLocationDetails PerformanceLocationDetails { get; set; } - /// /// The ID of an existing Product. /// diff --git a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItemPerformanceLocationDetails.cs b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItemPerformanceLocationDetails.cs deleted file mode 100644 index 081725b977..0000000000 --- a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItemPerformanceLocationDetails.cs +++ /dev/null @@ -1,15 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Tax -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class TransactionLineItemPerformanceLocationDetails : StripeEntity - { - [JsonProperty("address")] - [STJS.JsonPropertyName("address")] - public TransactionLineItemPerformanceLocationDetailsAddress Address { get; set; } - } -} diff --git a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItemPerformanceLocationDetailsAddress.cs b/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItemPerformanceLocationDetailsAddress.cs deleted file mode 100644 index 2bb0826d37..0000000000 --- a/src/Stripe.net/Entities/Tax/TransactionLineItems/TransactionLineItemPerformanceLocationDetailsAddress.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Tax -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class TransactionLineItemPerformanceLocationDetailsAddress : StripeEntity - { - /// - /// City, district, suburb, town, or village. - /// - [JsonProperty("city")] - [STJS.JsonPropertyName("city")] - public string City { get; set; } - - /// - /// Two-letter country code (ISO - /// 3166-1 alpha-2). - /// - [JsonProperty("country")] - [STJS.JsonPropertyName("country")] - public string Country { get; set; } - - /// - /// Address line 1, such as the street, PO Box, or company name. - /// - [JsonProperty("line1")] - [STJS.JsonPropertyName("line1")] - public string Line1 { get; set; } - - /// - /// Address line 2, such as the apartment, suite, unit, or building. - /// - [JsonProperty("line2")] - [STJS.JsonPropertyName("line2")] - public string Line2 { get; set; } - - /// - /// ZIP or postal code. - /// - [JsonProperty("postal_code")] - [STJS.JsonPropertyName("postal_code")] - public string PostalCode { get; set; } - - /// - /// State/province as an ISO 3166-2 - /// subdivision code, without country prefix, such as "NY" or "TX". - /// - [JsonProperty("state")] - [STJS.JsonPropertyName("state")] - public string State { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/ContractLicensePricingQuantityChanges/ContractLicensePricingQuantityChange.cs b/src/Stripe.net/Entities/V2/Billing/ContractLicensePricingQuantityChanges/ContractLicensePricingQuantityChange.cs deleted file mode 100644 index 230e74e630..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/ContractLicensePricingQuantityChanges/ContractLicensePricingQuantityChange.cs +++ /dev/null @@ -1,81 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - /// - /// A license pricing quantity change object returned by ListContractLicenseQuantityChanges. - /// - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractLicensePricingQuantityChange : StripeEntity, IHasId, IHasObject - { - /// - /// The ID of the quantity change object. - /// - [JsonProperty("id")] - [STJS.JsonPropertyName("id")] - public string Id { get; set; } - - /// - /// String representing the object's type. Objects of the same type share the same value of - /// the object field. - /// - [JsonProperty("object")] - [STJS.JsonPropertyName("object")] - public string Object { get; set; } - - /// - /// The timestamp when this quantity change object was created. - /// - [JsonProperty("created")] - [STJS.JsonPropertyName("created")] - public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// The timestamp when this quantity change takes effect. - /// - [JsonProperty("effective_at")] - [STJS.JsonPropertyName("effective_at")] - public DateTime EffectiveAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// The ID of the license pricing. - /// - [JsonProperty("license_pricing_id")] - [STJS.JsonPropertyName("license_pricing_id")] - public string LicensePricingId { get; set; } - - /// - /// The type of the license pricing. - /// One of: license_fee, or price. - /// - [JsonProperty("license_pricing_type")] - [STJS.JsonPropertyName("license_pricing_type")] - public string LicensePricingType { get; set; } - - /// - /// Has the value true if the object exists in live mode or the value false if - /// the object exists in test mode. - /// - [JsonProperty("livemode")] - [STJS.JsonPropertyName("livemode")] - public bool Livemode { get; set; } - - /// - /// The ID of the pricing line associated with this quantity change. - /// - [JsonProperty("pricing_line")] - [STJS.JsonPropertyName("pricing_line")] - public string PricingLine { get; set; } - - /// - /// The quantity at the effective time. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long Quantity { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/ContractPricingLineQuantityChanges/ContractPricingLineQuantityChange.cs b/src/Stripe.net/Entities/V2/Billing/ContractPricingLineQuantityChanges/ContractPricingLineQuantityChange.cs new file mode 100644 index 0000000000..579374e799 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/ContractPricingLineQuantityChanges/ContractPricingLineQuantityChange.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// A quantity change object for a pricing line, returned by + /// ListContractPricingLineQuantityChanges. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLineQuantityChange : StripeEntity, IHasId, IHasObject + { + /// + /// The ID of the quantity change object. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The timestamp when this quantity change object was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The timestamp when this quantity change takes effect. + /// + [JsonProperty("effective_at")] + [STJS.JsonPropertyName("effective_at")] + public DateTime EffectiveAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// The pricing configuration for the associated pricing line. + /// + [JsonProperty("pricing")] + [STJS.JsonPropertyName("pricing")] + public ContractPricingLineQuantityChangePricing Pricing { get; set; } + + /// + /// The ID of the pricing line associated with this quantity change. + /// + [JsonProperty("pricing_line")] + [STJS.JsonPropertyName("pricing_line")] + public string PricingLine { get; set; } + + /// + /// The quantity at the effective time. + /// + [JsonProperty("quantity")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("quantity")] + public decimal Quantity { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/ContractPricingLineQuantityChanges/ContractPricingLineQuantityChangePricing.cs b/src/Stripe.net/Entities/V2/Billing/ContractPricingLineQuantityChanges/ContractPricingLineQuantityChangePricing.cs new file mode 100644 index 0000000000..dd46dcccd7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/ContractPricingLineQuantityChanges/ContractPricingLineQuantityChangePricing.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLineQuantityChangePricing : StripeEntity + { + /// + /// The ID of the V1 price. Present when type is price. + /// + [JsonProperty("price")] + [STJS.JsonPropertyName("price")] + public string Price { get; set; } + + /// + /// The type of pricing. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/Contract.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/Contract.cs index c4878663df..273e8251cb 100644 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/Contract.cs +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/Contract.cs @@ -28,6 +28,13 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("object")] public string Object { get; set; } + /// + /// The billing cycle anchor for the contract. + /// + [JsonProperty("billing_cycle_anchor")] + [STJS.JsonPropertyName("billing_cycle_anchor")] + public ContractBillingCycleAnchor BillingCycleAnchor { get; set; } + /// /// The billing settings for the contract. /// @@ -35,14 +42,6 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("billing_settings")] public ContractBillingSettings BillingSettings { get; set; } - /// - /// The contract line details of the contract. Only populated when - /// contract_line_details is passed in the include parameter. - /// - [JsonProperty("contract_line_details")] - [STJS.JsonPropertyName("contract_line_details")] - public List ContractLineDetails { get; set; } - /// /// A unique user-provided contract number e.g. C-2026-0001. /// @@ -50,13 +49,6 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("contract_number")] public string ContractNumber { get; set; } - /// - /// The computed total value of all contract lines. - /// - [JsonProperty("contract_value_details")] - [STJS.JsonPropertyName("contract_value_details")] - public ContractContractValueDetails ContractValueDetails { get; set; } - /// /// Timestamp of when the object was created. /// @@ -78,14 +70,6 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("customer")] public string Customer { get; set; } - /// - /// The license quantities of the contract. Only populated when license_quantities is - /// passed in the include parameter. - /// - [JsonProperty("license_quantities")] - [STJS.JsonPropertyName("license_quantities")] - public List LicenseQuantities { get; set; } - /// /// Has the value true if the object exists in live mode or the value false if /// the object exists in test mode. @@ -107,7 +91,7 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject /// [JsonProperty("one_time_fees")] [STJS.JsonPropertyName("one_time_fees")] - public List OneTimeFees { get; set; } + public ContractOneTimeFees OneTimeFees { get; set; } /// /// The pricing lines of the contract. Only populated when pricing_lines is passed in @@ -115,7 +99,7 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject /// [JsonProperty("pricing_lines")] [STJS.JsonPropertyName("pricing_lines")] - public List PricingLines { get; set; } + public ContractPricingLines PricingLines { get; set; } /// /// The pricing overrides of the contract. Only populated when pricing_overrides is @@ -123,7 +107,7 @@ public class Contract : StripeEntity, IHasId, IHasMetadata, IHasObject /// [JsonProperty("pricing_overrides")] [STJS.JsonPropertyName("pricing_overrides")] - public List PricingOverrides { get; set; } + public ContractPricingOverrides PricingOverrides { get; set; } /// /// The current status of the contract. diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingCycleAnchor.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingCycleAnchor.cs new file mode 100644 index 0000000000..022d96fdb9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingCycleAnchor.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingCycleAnchor : StripeEntity + { + /// + /// The billing cycle anchor as a UTC timestamp. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettings.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettings.cs index be89c8c9c7..9d434ffb93 100644 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettings.cs +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettings.cs @@ -9,10 +9,24 @@ namespace Stripe.V2.Billing public class ContractBillingSettings : StripeEntity { /// - /// Billing settings details for the contract. + /// The bill settings details configures invoice and tax settings for the contract. /// - [JsonProperty("contract_billing_details")] - [STJS.JsonPropertyName("contract_billing_details")] - public ContractBillingSettingsContractBillingDetails ContractBillingDetails { get; set; } + [JsonProperty("bill_settings_details")] + [STJS.JsonPropertyName("bill_settings_details")] + public ContractBillingSettingsBillSettingsDetails BillSettingsDetails { get; set; } + + /// + /// The billing profile details configures who is charged for the contract. + /// + [JsonProperty("billing_profile_details")] + [STJS.JsonPropertyName("billing_profile_details")] + public ContractBillingSettingsBillingProfileDetails BillingProfileDetails { get; set; } + + /// + /// The collection settings details configures how payments are collected on the contract. + /// + [JsonProperty("collection_settings_details")] + [STJS.JsonPropertyName("collection_settings_details")] + public ContractBillingSettingsCollectionSettingsDetails CollectionSettingsDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetails.cs new file mode 100644 index 0000000000..58fe647429 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetails.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsBillSettingsDetails : StripeEntity + { + /// + /// Calculation settings. + /// + [JsonProperty("calculation")] + [STJS.JsonPropertyName("calculation")] + public ContractBillingSettingsBillSettingsDetailsCalculation Calculation { get; set; } + + /// + /// Invoice settings. + /// + [JsonProperty("invoice")] + [STJS.JsonPropertyName("invoice")] + public ContractBillingSettingsBillSettingsDetailsInvoice Invoice { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsCalculation.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsCalculation.cs new file mode 100644 index 0000000000..2aa687ca79 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsCalculation.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsBillSettingsDetailsCalculation : StripeEntity + { + /// + /// Tax calculation settings. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public ContractBillingSettingsBillSettingsDetailsCalculationTax Tax { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsCalculationTax.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsCalculationTax.cs new file mode 100644 index 0000000000..c307dd40dd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsCalculationTax.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsBillSettingsDetailsCalculationTax : StripeEntity + { + /// + /// The type of tax calculation. + /// One of: automatic, or manual. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsInvoice.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsInvoice.cs new file mode 100644 index 0000000000..aa2315d558 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsInvoice.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsBillSettingsDetailsInvoice : StripeEntity + { + /// + /// The number of time units before the invoice is past due. + /// + [JsonProperty("time_until_due")] + [STJS.JsonPropertyName("time_until_due")] + public ContractBillingSettingsBillSettingsDetailsInvoiceTimeUntilDue TimeUntilDue { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsInvoiceTimeUntilDue.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsInvoiceTimeUntilDue.cs new file mode 100644 index 0000000000..98d4cf25df --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillSettingsDetailsInvoiceTimeUntilDue.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsBillSettingsDetailsInvoiceTimeUntilDue : StripeEntity + { + /// + /// The interval unit. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] + [STJS.JsonPropertyName("interval")] + public string Interval { get; set; } + + /// + /// The number of intervals. + /// + [JsonProperty("interval_count")] + [STJS.JsonPropertyName("interval_count")] + public long IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillingProfileDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillingProfileDetails.cs new file mode 100644 index 0000000000..240eca6d11 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsBillingProfileDetails.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsBillingProfileDetails : StripeEntity + { + /// + /// The customer who pays for the contract invoice. + /// + [JsonProperty("customer")] + [STJS.JsonPropertyName("customer")] + public string Customer { get; set; } + + /// + /// The default payment method for the contract. + /// + [JsonProperty("default_payment_method")] + [STJS.JsonPropertyName("default_payment_method")] + public string DefaultPaymentMethod { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsCollectionSettingsDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsCollectionSettingsDetails.cs new file mode 100644 index 0000000000..6e8777f8fd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsCollectionSettingsDetails.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractBillingSettingsCollectionSettingsDetails : StripeEntity + { + /// + /// The collection method. + /// One of: charge_automatically, or send_invoice. + /// + [JsonProperty("collection_method")] + [STJS.JsonPropertyName("collection_method")] + public string CollectionMethod { get; set; } + + /// + /// The payment method configuration. + /// + [JsonProperty("payment_method_configuration")] + [STJS.JsonPropertyName("payment_method_configuration")] + public string PaymentMethodConfiguration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetails.cs deleted file mode 100644 index 26c1ea48c4..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetails.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetails : StripeEntity - { - /// - /// The bill settings details. - /// - [JsonProperty("bill_settings_details")] - [STJS.JsonPropertyName("bill_settings_details")] - public ContractBillingSettingsContractBillingDetailsBillSettingsDetails BillSettingsDetails { get; set; } - - /// - /// The billing profile details. - /// - [JsonProperty("billing_profile_details")] - [STJS.JsonPropertyName("billing_profile_details")] - public ContractBillingSettingsContractBillingDetailsBillingProfileDetails BillingProfileDetails { get; set; } - - /// - /// The collection settings details. - /// - [JsonProperty("collection_settings_details")] - [STJS.JsonPropertyName("collection_settings_details")] - public ContractBillingSettingsContractBillingDetailsCollectionSettingsDetails CollectionSettingsDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetails.cs deleted file mode 100644 index c9e0bf0bb4..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetails.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsBillSettingsDetails : StripeEntity - { - /// - /// Calculation settings. - /// - [JsonProperty("calculation")] - [STJS.JsonPropertyName("calculation")] - public ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculation Calculation { get; set; } - - /// - /// Invoice settings. - /// - [JsonProperty("invoice")] - [STJS.JsonPropertyName("invoice")] - public ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoice Invoice { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculation.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculation.cs deleted file mode 100644 index abc97e93cf..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculation.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculation : StripeEntity - { - /// - /// Tax calculation settings. - /// - [JsonProperty("tax")] - [STJS.JsonPropertyName("tax")] - public ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTax Tax { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTax.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTax.cs deleted file mode 100644 index 42a64c96fe..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTax.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTax : StripeEntity - { - /// - /// The type of tax calculation. - /// One of: automatic, or manual. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoice.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoice.cs deleted file mode 100644 index e898507314..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoice.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoice : StripeEntity - { - /// - /// The number of time units before the invoice is past due. - /// - [JsonProperty("time_until_due")] - [STJS.JsonPropertyName("time_until_due")] - public ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDue TimeUntilDue { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDue.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDue.cs deleted file mode 100644 index c70ecdc1e2..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDue.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDue : StripeEntity - { - /// - /// The interval unit. - /// One of: day, month, week, or year. - /// - [JsonProperty("interval")] - [STJS.JsonPropertyName("interval")] - public string Interval { get; set; } - - /// - /// The number of intervals. - /// - [JsonProperty("interval_count")] - [STJS.JsonPropertyName("interval_count")] - public long IntervalCount { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillingProfileDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillingProfileDetails.cs deleted file mode 100644 index e36d668af9..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsBillingProfileDetails.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsBillingProfileDetails : StripeEntity - { - /// - /// The customer who pays for the contract invoice. - /// - [JsonProperty("customer")] - [STJS.JsonPropertyName("customer")] - public string Customer { get; set; } - - /// - /// The default payment method for the contract. - /// - [JsonProperty("default_payment_method")] - [STJS.JsonPropertyName("default_payment_method")] - public string DefaultPaymentMethod { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsCollectionSettingsDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsCollectionSettingsDetails.cs deleted file mode 100644 index 76cd270d97..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractBillingSettingsContractBillingDetailsCollectionSettingsDetails.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractBillingSettingsContractBillingDetailsCollectionSettingsDetails : StripeEntity - { - /// - /// The collection method. - /// One of: charge_automatically, or send_invoice. - /// - [JsonProperty("collection_method")] - [STJS.JsonPropertyName("collection_method")] - public string CollectionMethod { get; set; } - - /// - /// The payment method configuration. - /// - [JsonProperty("payment_method_configuration")] - [STJS.JsonPropertyName("payment_method_configuration")] - public string PaymentMethodConfiguration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetail.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetail.cs deleted file mode 100644 index 3fe5a525b1..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetail.cs +++ /dev/null @@ -1,69 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetail : StripeEntity, IHasMetadata - { - /// - /// The ID of the contract line. - /// - [JsonProperty("contract_line")] - [STJS.JsonPropertyName("contract_line")] - public string ContractLine { get; set; } - - /// - /// The computed value details for the contract line. - /// - [JsonProperty("contract_line_value_details")] - [STJS.JsonPropertyName("contract_line_value_details")] - public ContractContractLineDetailContractLineValueDetails ContractLineValueDetails { get; set; } - - /// - /// Timestamp of when the object was created. - /// - [JsonProperty("created")] - [STJS.JsonPropertyName("created")] - public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// Timestamp to indicate when the contract line ends. - /// - [JsonProperty("ends_at")] - [STJS.JsonPropertyName("ends_at")] - public ContractContractLineDetailEndsAt EndsAt { get; set; } - - /// - /// Set of key-value pairs that you can attach to an object. - /// - [JsonProperty("metadata")] - [STJS.JsonPropertyName("metadata")] - public Dictionary Metadata { get; set; } - - /// - /// List of overrides applied to the contract line. - /// - [JsonProperty("overrides")] - [STJS.JsonPropertyName("overrides")] - public List Overrides { get; set; } - - /// - /// The pricing configuration for the contract line. - /// - [JsonProperty("pricing")] - [STJS.JsonPropertyName("pricing")] - public ContractContractLineDetailPricing Pricing { get; set; } - - /// - /// Timestamp to indicate when the contract line starts. - /// - [JsonProperty("starts_at")] - [STJS.JsonPropertyName("starts_at")] - public ContractContractLineDetailStartsAt StartsAt { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailContractLineValueDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailContractLineValueDetails.cs deleted file mode 100644 index e5fd9809e9..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailContractLineValueDetails.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailContractLineValueDetails : StripeEntity - { - /// - /// Computed sum of all licensed fees. Represented as a decimal string in minor currency - /// units. - /// - [JsonProperty("total")] - [STJS.JsonPropertyName("total")] - public string Total { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailEndsAt.cs deleted file mode 100644 index 37855b04a5..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailEndsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailEndsAt : StripeEntity - { - /// - /// The timestamp when the item ends. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverride.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverride.cs deleted file mode 100644 index 847feca4e3..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverride.cs +++ /dev/null @@ -1,39 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverride : StripeEntity - { - /// - /// Timestamp to indicate when the override ends. - /// - [JsonProperty("ends_at")] - [STJS.JsonPropertyName("ends_at")] - public ContractContractLineDetailOverrideEndsAt EndsAt { get; set; } - - /// - /// Service action override details. - /// - [JsonProperty("service_action")] - [STJS.JsonPropertyName("service_action")] - public ContractContractLineDetailOverrideServiceAction ServiceAction { get; set; } - - /// - /// Timestamp to indicate when the override starts. - /// - [JsonProperty("starts_at")] - [STJS.JsonPropertyName("starts_at")] - public ContractContractLineDetailOverrideStartsAt StartsAt { get; set; } - - /// - /// The type of the override. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideEndsAt.cs deleted file mode 100644 index cd59b61462..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideEndsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideEndsAt : StripeEntity - { - /// - /// The timestamp when the item ends. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceAction.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceAction.cs deleted file mode 100644 index 42f319ce6e..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceAction.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceAction : StripeEntity - { - /// - /// Parameters for adding a new service action. - /// - [JsonProperty("add")] - [STJS.JsonPropertyName("add")] - public ContractContractLineDetailOverrideServiceActionAdd Add { get; set; } - - /// - /// Parameters for replacing an existing service action. - /// - [JsonProperty("replace")] - [STJS.JsonPropertyName("replace")] - public ContractContractLineDetailOverrideServiceActionReplace Replace { get; set; } - - /// - /// The type of service action override. - /// One of: add, or replace. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAdd.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAdd.cs deleted file mode 100644 index 345ed6e986..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAdd.cs +++ /dev/null @@ -1,40 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionAdd : StripeEntity - { - /// - /// Details for the credit grant. Required if type is credit_grant. - /// - [JsonProperty("credit_grant")] - [STJS.JsonPropertyName("credit_grant")] - public ContractContractLineDetailOverrideServiceActionAddCreditGrant CreditGrant { get; set; } - - /// - /// The interval for assessing service. - /// One of: day, month, week, or year. - /// - [JsonProperty("service_interval")] - [STJS.JsonPropertyName("service_interval")] - public string ServiceInterval { get; set; } - - /// - /// The length of the interval for assessing service. - /// - [JsonProperty("service_interval_count")] - [STJS.JsonPropertyName("service_interval_count")] - public long ServiceIntervalCount { get; set; } - - /// - /// The type of the service action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrant.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrant.cs deleted file mode 100644 index f68feabf36..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrant.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionAddCreditGrant : StripeEntity - { - /// - /// The amount of the credit grant. - /// - [JsonProperty("amount")] - [STJS.JsonPropertyName("amount")] - public ContractContractLineDetailOverrideServiceActionAddCreditGrantAmount Amount { get; set; } - - /// - /// Defines the scope where the credit grant is applicable. - /// - [JsonProperty("applicability_config")] - [STJS.JsonPropertyName("applicability_config")] - public ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfig ApplicabilityConfig { get; set; } - - /// - /// The category of the credit grant. - /// One of: paid, or promotional. - /// - [JsonProperty("category")] - [STJS.JsonPropertyName("category")] - public string Category { get; set; } - - /// - /// The expiry configuration for the credit grant. - /// - [JsonProperty("expiry_config")] - [STJS.JsonPropertyName("expiry_config")] - public ContractContractLineDetailOverrideServiceActionAddCreditGrantExpiryConfig ExpiryConfig { get; set; } - - /// - /// A descriptive name. - /// - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - /// - /// The desired priority for applying this credit grant. The highest priority is 0 and the - /// lowest is 100. - /// - [JsonProperty("priority")] - [STJS.JsonPropertyName("priority")] - public long? Priority { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantAmount.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantAmount.cs deleted file mode 100644 index 7913cc0846..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantAmount.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionAddCreditGrantAmount : StripeEntity - { - /// - /// The monetary amount of the credit grant. Required if type is monetary. - /// - [JsonProperty("monetary")] - [STJS.JsonPropertyName("monetary")] - public V2.Amount Monetary { get; set; } - - /// - /// The type of the credit grant amount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfig.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfig.cs deleted file mode 100644 index ba131bd6c9..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfig.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfig : StripeEntity - { - /// - /// The applicability scope of the credit grant. - /// - [JsonProperty("scope")] - [STJS.JsonPropertyName("scope")] - public ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfigScope Scope { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfigScope.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfigScope.cs deleted file mode 100644 index ded290a7d5..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfigScope.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionAddCreditGrantApplicabilityConfigScope : StripeEntity - { - /// - /// The billable items to apply the credit grant to. - /// - [JsonProperty("billable_items")] - [STJS.JsonPropertyName("billable_items")] - public List BillableItems { get; set; } - - /// - /// The price type that credit grants can apply to. - /// - [JsonProperty("price_type")] - [STJS.JsonPropertyName("price_type")] - public string PriceType { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantExpiryConfig.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantExpiryConfig.cs deleted file mode 100644 index 90b0e46b38..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionAddCreditGrantExpiryConfig.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionAddCreditGrantExpiryConfig : StripeEntity - { - /// - /// The type of the expiry configuration. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplace.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplace.cs deleted file mode 100644 index 88ee7e5863..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplace.cs +++ /dev/null @@ -1,54 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionReplace : StripeEntity, IHasId - { - /// - /// Details for the credit grant. Required if type is credit_grant. - /// - [JsonProperty("credit_grant")] - [STJS.JsonPropertyName("credit_grant")] - public ContractContractLineDetailOverrideServiceActionReplaceCreditGrant CreditGrant { get; set; } - - /// - /// The ID of the service action to replace. - /// - [JsonProperty("id")] - [STJS.JsonPropertyName("id")] - public string Id { get; set; } - - /// - /// The lookup key for the service action to replace. - /// - [JsonProperty("lookup_key")] - [STJS.JsonPropertyName("lookup_key")] - public string LookupKey { get; set; } - - /// - /// The interval for assessing service. - /// One of: day, month, week, or year. - /// - [JsonProperty("service_interval")] - [STJS.JsonPropertyName("service_interval")] - public string ServiceInterval { get; set; } - - /// - /// The length of the interval for assessing service. - /// - [JsonProperty("service_interval_count")] - [STJS.JsonPropertyName("service_interval_count")] - public long ServiceIntervalCount { get; set; } - - /// - /// The type of the service action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrant.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrant.cs deleted file mode 100644 index 395dd84a93..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrant.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionReplaceCreditGrant : StripeEntity - { - /// - /// The amount of the credit grant. - /// - [JsonProperty("amount")] - [STJS.JsonPropertyName("amount")] - public ContractContractLineDetailOverrideServiceActionReplaceCreditGrantAmount Amount { get; set; } - - /// - /// Defines the scope where the credit grant is applicable. - /// - [JsonProperty("applicability_config")] - [STJS.JsonPropertyName("applicability_config")] - public ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfig ApplicabilityConfig { get; set; } - - /// - /// The category of the credit grant. - /// One of: paid, or promotional. - /// - [JsonProperty("category")] - [STJS.JsonPropertyName("category")] - public string Category { get; set; } - - /// - /// The expiry configuration for the credit grant. - /// - [JsonProperty("expiry_config")] - [STJS.JsonPropertyName("expiry_config")] - public ContractContractLineDetailOverrideServiceActionReplaceCreditGrantExpiryConfig ExpiryConfig { get; set; } - - /// - /// A descriptive name. - /// - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - /// - /// The desired priority for applying this credit grant. The highest priority is 0 and the - /// lowest is 100. - /// - [JsonProperty("priority")] - [STJS.JsonPropertyName("priority")] - public long? Priority { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantAmount.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantAmount.cs deleted file mode 100644 index 64e862150f..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantAmount.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionReplaceCreditGrantAmount : StripeEntity - { - /// - /// The monetary amount of the credit grant. Required if type is monetary. - /// - [JsonProperty("monetary")] - [STJS.JsonPropertyName("monetary")] - public V2.Amount Monetary { get; set; } - - /// - /// The type of the credit grant amount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfig.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfig.cs deleted file mode 100644 index fdb4f71ae2..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfig.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfig : StripeEntity - { - /// - /// The applicability scope of the credit grant. - /// - [JsonProperty("scope")] - [STJS.JsonPropertyName("scope")] - public ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfigScope Scope { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfigScope.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfigScope.cs deleted file mode 100644 index 9b2ebfd5db..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfigScope.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionReplaceCreditGrantApplicabilityConfigScope : StripeEntity - { - /// - /// The billable items to apply the credit grant to. - /// - [JsonProperty("billable_items")] - [STJS.JsonPropertyName("billable_items")] - public List BillableItems { get; set; } - - /// - /// The price type that credit grants can apply to. - /// - [JsonProperty("price_type")] - [STJS.JsonPropertyName("price_type")] - public string PriceType { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantExpiryConfig.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantExpiryConfig.cs deleted file mode 100644 index 897bbbfe7e..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideServiceActionReplaceCreditGrantExpiryConfig.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideServiceActionReplaceCreditGrantExpiryConfig : StripeEntity - { - /// - /// The type of the expiry configuration. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideStartsAt.cs deleted file mode 100644 index a911d5a4fd..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailOverrideStartsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailOverrideStartsAt : StripeEntity - { - /// - /// The timestamp when the item starts. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailPricing.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailPricing.cs deleted file mode 100644 index 03947ca690..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailPricing.cs +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailPricing : StripeEntity - { - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailStartsAt.cs deleted file mode 100644 index d780244bc9..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractLineDetailStartsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractLineDetailStartsAt : StripeEntity - { - /// - /// The timestamp when the item starts. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractValueDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractValueDetails.cs deleted file mode 100644 index 58f1e089cd..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractContractValueDetails.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractContractValueDetails : StripeEntity - { - /// - /// The total value represented as a decimal string in minor currency units. - /// - [JsonProperty("total")] - [STJS.JsonPropertyName("total")] - public string Total { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractLicenseQuantity.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractLicenseQuantity.cs deleted file mode 100644 index 524e8017a2..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractLicenseQuantity.cs +++ /dev/null @@ -1,40 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractLicenseQuantity : StripeEntity - { - /// - /// The ID of the license pricing. - /// - [JsonProperty("license_pricing_id")] - [STJS.JsonPropertyName("license_pricing_id")] - public string LicensePricingId { get; set; } - - /// - /// The type of the license pricing. - /// One of: license_fee, or price. - /// - [JsonProperty("license_pricing_type")] - [STJS.JsonPropertyName("license_pricing_type")] - public string LicensePricingType { get; set; } - - /// - /// The ID of the pricing line associated with this license quantity. - /// - [JsonProperty("pricing_line")] - [STJS.JsonPropertyName("pricing_line")] - public string PricingLine { get; set; } - - /// - /// The current quantity of the license. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long Quantity { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFee.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFee.cs deleted file mode 100644 index 5332f8bdd8..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFee.cs +++ /dev/null @@ -1,34 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractOneTimeFee : StripeEntity - { - /// - /// The resolved bill schedule for the fee. - /// - [JsonProperty("bill_schedule")] - [STJS.JsonPropertyName("bill_schedule")] - public List BillSchedule { get; set; } - - /// - /// The type of billable item that this fee references. - /// - [JsonProperty("billable_item_type")] - [STJS.JsonPropertyName("billable_item_type")] - public string BillableItemType { get; set; } - - /// - /// Details for a product billable target. Set when billable_item_type is - /// product. - /// - [JsonProperty("product_details")] - [STJS.JsonPropertyName("product_details")] - public ContractOneTimeFeeProductDetails ProductDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeBillSchedule.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeBillSchedule.cs deleted file mode 100644 index 1e7bb90ad7..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeBillSchedule.cs +++ /dev/null @@ -1,27 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractOneTimeFeeBillSchedule : StripeEntity - { - /// - /// When this entry will be billed. - /// - [JsonProperty("bill_at")] - [STJS.JsonPropertyName("bill_at")] - public ContractOneTimeFeeBillScheduleBillAt BillAt { get; set; } - - /// - /// The amount to bill for this entry, in the smallest currency unit. - /// - [JsonProperty("value")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("value")] - public long Value { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeBillScheduleBillAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeBillScheduleBillAt.cs deleted file mode 100644 index 7648a74396..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeBillScheduleBillAt.cs +++ /dev/null @@ -1,27 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractOneTimeFeeBillScheduleBillAt : StripeEntity - { - /// - /// The datetime at which the entry will be billed. Set when type is datetime. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// The type of the bill_at. - /// One of: contract_start, or datetime. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeProductDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeProductDetails.cs deleted file mode 100644 index d6fddc2867..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeeProductDetails.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractOneTimeFeeProductDetails : StripeEntity - { - /// - /// The ID of the v1 Product. - /// - [JsonProperty("product")] - [STJS.JsonPropertyName("product")] - public string Product { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFees.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFees.cs new file mode 100644 index 0000000000..6f1f303259 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFees.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractOneTimeFees : StripeEntity + { + /// + /// The one-time fees for this page. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public List Data { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeesData.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeesData.cs new file mode 100644 index 0000000000..53ec2df1d3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeesData.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractOneTimeFeesData : StripeEntity, IHasId + { + /// + /// The amount billed for this fee. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public V2.Amount Amount { get; set; } + + /// + /// When this fee will be billed. Always contains a concrete timestamp. + /// + [JsonProperty("bill_at")] + [STJS.JsonPropertyName("bill_at")] + public ContractOneTimeFeesDataBillAt BillAt { get; set; } + + /// + /// The ID of the one-time fee. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The user-provided lookup key. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// The ID of the v1 Product for this fee. + /// + [JsonProperty("product")] + [STJS.JsonPropertyName("product")] + public string Product { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeesDataBillAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeesDataBillAt.cs new file mode 100644 index 0000000000..67f97dcdd0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractOneTimeFeesDataBillAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractOneTimeFeesDataBillAt : StripeEntity + { + /// + /// The timestamp at which the fee will be billed. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLine.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLine.cs deleted file mode 100644 index ba2283d31c..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLine.cs +++ /dev/null @@ -1,54 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingLine : StripeEntity, IHasMetadata - { - /// - /// Resolved timestamp when the pricing line ends. - /// - [JsonProperty("ends_at")] - [STJS.JsonPropertyName("ends_at")] - public ContractPricingLineEndsAt EndsAt { get; set; } - - /// - /// The user-provided lookup key for the pricing line. - /// - [JsonProperty("lookup_key")] - [STJS.JsonPropertyName("lookup_key")] - public string LookupKey { get; set; } - - /// - /// Set of key-value pairs that you can attach to an object. - /// - [JsonProperty("metadata")] - [STJS.JsonPropertyName("metadata")] - public Dictionary Metadata { get; set; } - - /// - /// The pricing configuration for the pricing line. - /// - [JsonProperty("pricing")] - [STJS.JsonPropertyName("pricing")] - public ContractPricingLinePricing Pricing { get; set; } - - /// - /// The ID of the pricing line. - /// - [JsonProperty("pricing_line")] - [STJS.JsonPropertyName("pricing_line")] - public string PricingLine { get; set; } - - /// - /// Resolved timestamp when the pricing line starts. - /// - [JsonProperty("starts_at")] - [STJS.JsonPropertyName("starts_at")] - public ContractPricingLineStartsAt StartsAt { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLineEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLineEndsAt.cs deleted file mode 100644 index 08e39719ba..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLineEndsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingLineEndsAt : StripeEntity - { - /// - /// The timestamp when the item ends. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinePricing.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinePricing.cs deleted file mode 100644 index 24d875ccb7..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinePricing.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingLinePricing : StripeEntity - { - /// - /// V1 price details. Present when type is price. - /// - [JsonProperty("price_details")] - [STJS.JsonPropertyName("price_details")] - public ContractPricingLinePricingPriceDetails PriceDetails { get; set; } - - /// - /// The type of pricing. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinePricingPriceDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinePricingPriceDetails.cs deleted file mode 100644 index 67f684a44c..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinePricingPriceDetails.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingLinePricingPriceDetails : StripeEntity - { - /// - /// The ID of the V1 price. - /// - [JsonProperty("price")] - [STJS.JsonPropertyName("price")] - public string Price { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLineStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLineStartsAt.cs deleted file mode 100644 index e1c252c708..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLineStartsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingLineStartsAt : StripeEntity - { - /// - /// The timestamp when the item starts. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLines.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLines.cs new file mode 100644 index 0000000000..dc5949410a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLines.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLines : StripeEntity + { + /// + /// The pricing lines for this page. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public List Data { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesData.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesData.cs new file mode 100644 index 0000000000..90e7bdb8c4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesData.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesData : StripeEntity, IHasId, IHasMetadata + { + /// + /// Resolved timestamp when the pricing line ends. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractPricingLinesDataEndsAt EndsAt { get; set; } + + /// + /// The ID of the pricing line. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The user-provided lookup key for the pricing line. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// The pricing configuration for the pricing line. + /// + [JsonProperty("pricing")] + [STJS.JsonPropertyName("pricing")] + public ContractPricingLinesDataPricing Pricing { get; set; } + + /// + /// Resolved timestamp when the pricing line starts. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractPricingLinesDataStartsAt StartsAt { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataEndsAt.cs new file mode 100644 index 0000000000..c8dccf5501 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataEndsAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataEndsAt : StripeEntity + { + /// + /// The timestamp when the item ends. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricing.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricing.cs new file mode 100644 index 0000000000..f2db745b4d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricing.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricing : StripeEntity + { + /// + /// V1 price details. Present when type is price. + /// + [JsonProperty("price_details")] + [STJS.JsonPropertyName("price_details")] + public ContractPricingLinesDataPricingPriceDetails PriceDetails { get; set; } + + /// + /// The type of pricing. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetails.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetails.cs new file mode 100644 index 0000000000..9953cfabbb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetails.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetails : StripeEntity + { + /// + /// The current quantity on this pricing line. + /// + [JsonProperty("current_quantity")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("current_quantity")] + public decimal CurrentQuantity { get; set; } + + /// + /// The ID of the V1 price. + /// + [JsonProperty("price")] + [STJS.JsonPropertyName("price")] + public string Price { get; set; } + + /// + /// The overwrite_price overrides embedded directly on this pricing line. + /// + [JsonProperty("pricing_overrides")] + [STJS.JsonPropertyName("pricing_overrides")] + public ContractPricingLinesDataPricingPriceDetailsPricingOverrides PricingOverrides { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverrides.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverrides.cs new file mode 100644 index 0000000000..b1a9756112 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverrides.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetailsPricingOverrides : StripeEntity + { + /// + /// The pricing line overrides. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public List Data { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesData.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesData.cs new file mode 100644 index 0000000000..467759dc7c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesData.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetailsPricingOverridesData : StripeEntity + { + /// + /// Resolved timestamp when this override ends. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataEndsAt EndsAt { get; set; } + + /// + /// The user-provided lookup key for this override. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Details for an overwrite_price override. + /// + [JsonProperty("overwrite_price")] + [STJS.JsonPropertyName("overwrite_price")] + public ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePrice OverwritePrice { get; set; } + + /// + /// The ID of the pricing line override. + /// + [JsonProperty("pricing_override")] + [STJS.JsonPropertyName("pricing_override")] + public string PricingOverride { get; set; } + + /// + /// Resolved timestamp when this override starts. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataStartsAt StartsAt { get; set; } + + /// + /// The type of override. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataEndsAt.cs new file mode 100644 index 0000000000..0ae6e7a97b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataEndsAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataEndsAt : StripeEntity + { + /// + /// The timestamp when the item ends. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePrice.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePrice.cs new file mode 100644 index 0000000000..bde83189d0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePrice.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePrice : StripeEntity + { + /// + /// Defines whether the tiered price should be graduated or volume-based. + /// One of: graduated, or volume. + /// + [JsonProperty("tiering_mode")] + [STJS.JsonPropertyName("tiering_mode")] + public string TieringMode { get; set; } + + /// + /// Each element represents a pricing tier. + /// + [JsonProperty("tiers")] + [STJS.JsonPropertyName("tiers")] + public List Tiers { get; set; } + + /// + /// The per-unit amount to be charged, represented as a decimal string in minor currency + /// units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePriceTier.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePriceTier.cs new file mode 100644 index 0000000000..f79e8fca63 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePriceTier.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataOverwritePriceTier : StripeEntity + { + /// + /// Price for the entire tier, represented as a decimal string in minor currency units. + /// + [JsonProperty("flat_amount")] + [STJS.JsonPropertyName("flat_amount")] + public string FlatAmount { get; set; } + + /// + /// Per-unit price for units included in this tier, represented as a decimal string in minor + /// currency units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + + /// + /// Up to and including this quantity will be contained in the tier. + /// + [JsonProperty("up_to_decimal")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("up_to_decimal")] + public decimal? UpToDecimal { get; set; } + + /// + /// No upper bound to this tier. + /// + [JsonProperty("up_to_inf")] + [STJS.JsonPropertyName("up_to_inf")] + public string UpToInf { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataStartsAt.cs new file mode 100644 index 0000000000..fe3050453c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataStartsAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataPricingPriceDetailsPricingOverridesDataStartsAt : StripeEntity + { + /// + /// The timestamp when the item starts. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataStartsAt.cs new file mode 100644 index 0000000000..5b5f02bab4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingLinesDataStartsAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingLinesDataStartsAt : StripeEntity + { + /// + /// The timestamp when the item starts. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverride.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverride.cs deleted file mode 100644 index eba45d0ab5..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverride.cs +++ /dev/null @@ -1,68 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverride : StripeEntity - { - /// - /// Resolved timestamp when the pricing override ends. - /// - [JsonProperty("ends_at")] - [STJS.JsonPropertyName("ends_at")] - public ContractPricingOverrideEndsAt EndsAt { get; set; } - - /// - /// The user-provided lookup key for the pricing override. - /// - [JsonProperty("lookup_key")] - [STJS.JsonPropertyName("lookup_key")] - public string LookupKey { get; set; } - - /// - /// Details for a multiplier override. - /// - [JsonProperty("multiplier")] - [STJS.JsonPropertyName("multiplier")] - public ContractPricingOverrideMultiplier Multiplier { get; set; } - - /// - /// Details for an overwrite_price override. - /// - [JsonProperty("overwrite_price")] - [STJS.JsonPropertyName("overwrite_price")] - public ContractPricingOverrideOverwritePrice OverwritePrice { get; set; } - - /// - /// The ID of the pricing override. - /// - [JsonProperty("pricing_override")] - [STJS.JsonPropertyName("pricing_override")] - public string PricingOverride { get; set; } - - /// - /// The priority of this override relative to others. Lower number = higher priority. - /// - [JsonProperty("priority")] - [STJS.JsonPropertyName("priority")] - public long Priority { get; set; } - - /// - /// Resolved timestamp when the pricing override starts. - /// - [JsonProperty("starts_at")] - [STJS.JsonPropertyName("starts_at")] - public ContractPricingOverrideStartsAt StartsAt { get; set; } - - /// - /// The type of pricing override. - /// One of: multiplier, or overwrite_price. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideEndsAt.cs deleted file mode 100644 index 254ed20f2a..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideEndsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideEndsAt : StripeEntity - { - /// - /// The timestamp when the item ends. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplier.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplier.cs deleted file mode 100644 index f26d991c45..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplier.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideMultiplier : StripeEntity - { - /// - /// Criteria determining which rates the multiplier applies to. - /// - [JsonProperty("criteria")] - [STJS.JsonPropertyName("criteria")] - public List Criteria { get; set; } - - /// - /// The multiplier factor, represented as a decimal string. e.g. "0.8" for a 20% reduction. - /// - [JsonProperty("factor")] - [STJS.JsonPropertyName("factor")] - public string Factor { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterion.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterion.cs deleted file mode 100644 index a4334c7c12..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterion.cs +++ /dev/null @@ -1,56 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideMultiplierCriterion : StripeEntity - { - /// - /// Filter by billable item IDs. - /// - [JsonProperty("billable_item_ids")] - [STJS.JsonPropertyName("billable_item_ids")] - public List BillableItemIds { get; set; } - - /// - /// Filter by billable item lookup keys. - /// - [JsonProperty("billable_item_lookup_keys")] - [STJS.JsonPropertyName("billable_item_lookup_keys")] - public List BillableItemLookupKeys { get; set; } - - /// - /// Filter by billable item type. - /// One of: licensed, or metered. - /// - [JsonProperty("billable_item_types")] - [STJS.JsonPropertyName("billable_item_types")] - public List BillableItemTypes { get; set; } - - /// - /// Filter by metadata conditions. - /// - [JsonProperty("metadata_conditions")] - [STJS.JsonPropertyName("metadata_conditions")] - public List MetadataConditions { get; set; } - - /// - /// Filter by rate card IDs. Only applicable for multiplier overrides. - /// - [JsonProperty("rate_card_ids")] - [STJS.JsonPropertyName("rate_card_ids")] - public List RateCardIds { get; set; } - - /// - /// Whether to include or exclude items matching these criteria. - /// One of: exclude, or include. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterionMetadataCondition.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterionMetadataCondition.cs deleted file mode 100644 index eb3b2910ca..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterionMetadataCondition.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideMultiplierCriterionMetadataCondition : StripeEntity - { - /// - /// All of these key-value conditions must match. - /// - [JsonProperty("all_of")] - [STJS.JsonPropertyName("all_of")] - public List AllOf { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterionMetadataConditionAllOf.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterionMetadataConditionAllOf.cs deleted file mode 100644 index 8958943ee0..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideMultiplierCriterionMetadataConditionAllOf.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideMultiplierCriterionMetadataConditionAllOf : StripeEntity - { - /// - /// The metadata key. - /// - [JsonProperty("key")] - [STJS.JsonPropertyName("key")] - public string Key { get; set; } - - /// - /// The metadata value. - /// - [JsonProperty("value")] - [STJS.JsonPropertyName("value")] - public string Value { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideOverwritePrice.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideOverwritePrice.cs deleted file mode 100644 index 2f628b9c92..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideOverwritePrice.cs +++ /dev/null @@ -1,42 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideOverwritePrice : StripeEntity - { - /// - /// The ID of the V1 price to overwrite. - /// - [JsonProperty("price")] - [STJS.JsonPropertyName("price")] - public string Price { get; set; } - - /// - /// Defines whether the tiered price should be graduated or volume-based. - /// One of: graduated, or volume. - /// - [JsonProperty("tiering_mode")] - [STJS.JsonPropertyName("tiering_mode")] - public string TieringMode { get; set; } - - /// - /// Each element represents a pricing tier. - /// - [JsonProperty("tiers")] - [STJS.JsonPropertyName("tiers")] - public List Tiers { get; set; } - - /// - /// The per-unit amount to be charged, represented as a decimal string in minor currency - /// units. - /// - [JsonProperty("unit_amount")] - [STJS.JsonPropertyName("unit_amount")] - public string UnitAmount { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideOverwritePriceTier.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideOverwritePriceTier.cs deleted file mode 100644 index fda80c3ad3..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideOverwritePriceTier.cs +++ /dev/null @@ -1,42 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideOverwritePriceTier : StripeEntity - { - /// - /// Price for the entire tier, represented as a decimal string in minor currency units. - /// - [JsonProperty("flat_amount")] - [STJS.JsonPropertyName("flat_amount")] - public string FlatAmount { get; set; } - - /// - /// Per-unit price for units included in this tier, represented as a decimal string in minor - /// currency units. - /// - [JsonProperty("unit_amount")] - [STJS.JsonPropertyName("unit_amount")] - public string UnitAmount { get; set; } - - /// - /// Up to and including this quantity will be contained in the tier. - /// - [JsonProperty("up_to_decimal")] - [JsonConverter(typeof(DecimalStringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("up_to_decimal")] - public decimal? UpToDecimal { get; set; } - - /// - /// No upper bound to this tier. - /// - [JsonProperty("up_to_inf")] - [STJS.JsonPropertyName("up_to_inf")] - public string UpToInf { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideStartsAt.cs deleted file mode 100644 index ae535d8317..0000000000 --- a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrideStartsAt.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class ContractPricingOverrideStartsAt : StripeEntity - { - /// - /// The timestamp when the item starts. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - } -} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrides.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrides.cs new file mode 100644 index 0000000000..04313591d8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverrides.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingOverrides : StripeEntity + { + /// + /// The pricing overrides for this page. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public List Data { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesData.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesData.cs new file mode 100644 index 0000000000..8abe6cf8e9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesData.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingOverridesData : StripeEntity, IHasId + { + /// + /// Resolved timestamp when the pricing override ends. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractPricingOverridesDataEndsAt EndsAt { get; set; } + + /// + /// The ID of the pricing override. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The user-provided lookup key for the pricing override. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Details for a multiplier override. + /// + [JsonProperty("multiplier")] + [STJS.JsonPropertyName("multiplier")] + public ContractPricingOverridesDataMultiplier Multiplier { get; set; } + + /// + /// The priority of this override relative to others. Lower number = higher priority. + /// + [JsonProperty("priority")] + [STJS.JsonPropertyName("priority")] + public long Priority { get; set; } + + /// + /// Resolved timestamp when the pricing override starts. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractPricingOverridesDataStartsAt StartsAt { get; set; } + + /// + /// The type of pricing override. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataEndsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataEndsAt.cs new file mode 100644 index 0000000000..584065b0dd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataEndsAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingOverridesDataEndsAt : StripeEntity + { + /// + /// The timestamp when the item ends. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataMultiplier.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataMultiplier.cs new file mode 100644 index 0000000000..91d3619779 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataMultiplier.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingOverridesDataMultiplier : StripeEntity + { + /// + /// Criteria determining which rates the multiplier applies to. + /// + [JsonProperty("criteria")] + [STJS.JsonPropertyName("criteria")] + public List Criteria { get; set; } + + /// + /// The multiplier factor, represented as a decimal string. e.g. "0.8" for a 20% reduction. + /// + [JsonProperty("factor")] + [STJS.JsonPropertyName("factor")] + public string Factor { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataMultiplierCriterion.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataMultiplierCriterion.cs new file mode 100644 index 0000000000..26e44f2e29 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataMultiplierCriterion.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingOverridesDataMultiplierCriterion : StripeEntity + { + /// + /// Filter by pricing line IDs. + /// + [JsonProperty("pricing_line_ids")] + [STJS.JsonPropertyName("pricing_line_ids")] + public List PricingLineIds { get; set; } + + /// + /// Filter by pricing line lookup keys. + /// + [JsonProperty("pricing_line_lookup_keys")] + [STJS.JsonPropertyName("pricing_line_lookup_keys")] + public List PricingLineLookupKeys { get; set; } + + /// + /// Whether to include or exclude items matching these criteria. + /// One of: exclude, or include. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataStartsAt.cs b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataStartsAt.cs new file mode 100644 index 0000000000..9ee4351a1d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Billing/Contracts/ContractPricingOverridesDataStartsAt.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ContractPricingOverridesDataStartsAt : StripeEntity + { + /// + /// The timestamp when the item starts. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime Timestamp { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs index 5d6dfe316d..0d2ed61d25 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs @@ -59,7 +59,7 @@ public class MeterEventAdjustment : StripeEntity, IHasId, public bool Livemode { get; set; } /// - /// Open Enum. The meter event adjustment’s status. + /// Open Enum. The meter event adjustment's status. /// One of: complete, or pending. /// [JsonProperty("status")] diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs index 4d6c7ea5c3..d0482e161c 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs @@ -39,7 +39,7 @@ public class MeterEvent : StripeEntity, IHasObject /// /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We’ll enforce uniqueness within a rolling + /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling /// 24 hour period. /// [JsonProperty("identifier")] @@ -55,7 +55,7 @@ public class MeterEvent : StripeEntity, IHasObject public bool Livemode { get; set; } /// - /// The payload of the event. This must contain the fields corresponding to a meter’s + /// The payload of the event. This must contain the fields corresponding to a meter's /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// , IHasId, [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// The import strategy for handling existing catalog data. + /// One of: replace, or upsert. + /// + [JsonProperty("mode")] + [STJS.JsonPropertyName("mode")] + public string Mode { get; set; } + /// /// The current status of this ProductCatalogImport. /// One of: awaiting_upload, failed, processing, succeeded, or diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs index 7266ea6e5d..59adbaa6df 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountOnboarding.cs @@ -21,7 +21,8 @@ public class AccountLinkUseCaseAccountOnboarding : StripeEntitycustomer, merchant, recipient, or storer. + /// One of: customer, merchant, money_manager, recipient, or + /// storer. /// [JsonProperty("configurations")] [STJS.JsonPropertyName("configurations")] diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs index 565241b678..333168a300 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCaseAccountUpdate.cs @@ -21,7 +21,8 @@ public class AccountLinkUseCaseAccountUpdate : StripeEntitycustomer, merchant, recipient, or storer. + /// One of: customer, merchant, money_manager, recipient, or + /// storer. /// [JsonProperty("configurations")] [STJS.JsonPropertyName("configurations")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs index 1d8390beed..585e3ce920 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/Account.cs @@ -36,7 +36,7 @@ public class Account : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The configurations that have been applied to this account. /// One of: card_creator, customer, merchant, recipient, or - /// storer. + /// money_manager. /// [JsonProperty("applied_configurations")] [STJS.JsonPropertyName("applied_configurations")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs index fe3f00cac0..92d442b9e4 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfiguration.cs @@ -34,6 +34,14 @@ public class AccountConfiguration : StripeEntity [STJS.JsonPropertyName("merchant")] public AccountConfigurationMerchant Merchant { get; set; } + /// + /// The Money Manager Configuration allows the Account to store and move funds using + /// FinancialAccounts. + /// + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountConfigurationMoneyManager MoneyManager { get; set; } + /// /// The Recipient Configuration allows the Account to receive funds. Utilize this /// configuration if the Account will not be the Merchant of Record, like with Separate @@ -42,13 +50,5 @@ public class AccountConfiguration : StripeEntity [JsonProperty("recipient")] [STJS.JsonPropertyName("recipient")] public AccountConfigurationRecipient Recipient { get; set; } - - /// - /// The Storer Configuration allows the Account to store and move funds using stored-value - /// FinancialAccounts. - /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountConfigurationStorer Storer { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs index 30e9654e15..b3bf2271aa 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilities.cs @@ -295,6 +295,13 @@ public class AccountConfigurationMerchantCapabilities : StripeEntity + /// Allow the merchant to process Sunbit payments. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountConfigurationMerchantCapabilitiesSunbitPayments SunbitPayments { get; set; } + /// /// Allow the merchant to process Swish payments. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPayments.cs new file mode 100644 index 0000000000..9656ac71fa --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPayments.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMerchantCapabilitiesSunbitPayments : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtections.cs new file mode 100644 index 0000000000..11fe41943b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigration.cs new file mode 100644 index 0000000000..295396662e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail.cs new file mode 100644 index 0000000000..40f79cb7d7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMerchantCapabilitiesSunbitPaymentsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManager.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManager.cs new file mode 100644 index 0000000000..d37344e383 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManager.cs @@ -0,0 +1,115 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManager : StripeEntity + { + /// + /// Indicates whether the money manager configuration is active. You cannot deactivate (or + /// reactivate) the money manager configuration by updating this property. + /// + [JsonProperty("applied")] + [STJS.JsonPropertyName("applied")] + public bool Applied { get; set; } + + /// + /// Capabilities that have been requested on the Money Manager Configuration. + /// + [JsonProperty("capabilities")] + [STJS.JsonPropertyName("capabilities")] + public AccountConfigurationMoneyManagerCapabilities Capabilities { get; set; } + + /// + /// List of high-risk activities the business is involved in. + /// One of: adult_entertainment, gambling, hold_client_funds, + /// investment_services, lending_banking, + /// marijuana_or_related_services, money_services, + /// nicotine_tobacco_or_related_services, none, + /// operate_foreign_exchange_virtual_currencies_brokerage_otc, + /// pharmaceuticals, precious_metals_precious_stones_jewelry, + /// safe_deposit_box_rentals, third_party_payment_processing, or + /// weapons_firearms_and_explosives. + /// + [JsonProperty("high_risk_activities")] + [STJS.JsonPropertyName("high_risk_activities")] + public List HighRiskActivities { get; set; } + + /// + /// Description of the high-risk activities the business offers. + /// + [JsonProperty("high_risk_activities_description")] + [STJS.JsonPropertyName("high_risk_activities_description")] + public string HighRiskActivitiesDescription { get; set; } + + /// + /// Description of the money services offered by the business. + /// + [JsonProperty("money_services_description")] + [STJS.JsonPropertyName("money_services_description")] + public string MoneyServicesDescription { get; set; } + + /// + /// Indicates whether the business operates in any prohibited countries. + /// + [JsonProperty("operates_in_prohibited_countries")] + [STJS.JsonPropertyName("operates_in_prohibited_countries")] + public bool? OperatesInProhibitedCountries { get; set; } + + /// + /// Does the business participate in any regulated activity. + /// + [JsonProperty("participates_in_regulated_activity")] + [STJS.JsonPropertyName("participates_in_regulated_activity")] + public bool? ParticipatesInRegulatedActivity { get; set; } + + /// + /// Primary purpose of the stored funds. + /// One of: charitable_donations, ecommerce_retail_payments, + /// investment_purposes, other, payments_to_friends_or_family_abroad, + /// payroll, personal_or_living_expenses, protect_wealth, + /// purchase_goods_and_services, receive_payments_for_goods_and_services, + /// tax_optimization, third_party_money_transmission, or + /// treasury_management. + /// + [JsonProperty("purpose_of_funds")] + [STJS.JsonPropertyName("purpose_of_funds")] + public string PurposeOfFunds { get; set; } + + /// + /// Description of the purpose of the stored funds. + /// + [JsonProperty("purpose_of_funds_description")] + [STJS.JsonPropertyName("purpose_of_funds_description")] + public string PurposeOfFundsDescription { get; set; } + + /// + /// Details of the regulated activity if the business participates in one. + /// + [JsonProperty("regulated_activity")] + [STJS.JsonPropertyName("regulated_activity")] + public AccountConfigurationMoneyManagerRegulatedActivity RegulatedActivity { get; set; } + + /// + /// The source of funds for the business, e.g. profits, income, venture capital, etc. + /// One of: business_loans, grants, inter_company_funds, + /// investment_proceeds, legal_settlement, owners_capital, + /// pension_retirement, sales_of_assets, sales_of_goods_and_services, + /// tax_refund, third_party_funds, or treasury_reserves. + /// + [JsonProperty("source_of_funds")] + [STJS.JsonPropertyName("source_of_funds")] + public string SourceOfFunds { get; set; } + + /// + /// Description of the source of funds for the business' account. + /// + [JsonProperty("source_of_funds_description")] + [STJS.JsonPropertyName("source_of_funds_description")] + public string SourceOfFundsDescription { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilities.cs new file mode 100644 index 0000000000..06595a2531 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilities.cs @@ -0,0 +1,62 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilities : StripeEntity + { + /// + /// Can send or receive business storage-type funds on Stripe. + /// + [JsonProperty("business_storage")] + [STJS.JsonPropertyName("business_storage")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorage BusinessStorage { get; set; } + + /// + /// Can send or receive consumer storage-type funds on Stripe. + /// + [JsonProperty("consumer_storage")] + [STJS.JsonPropertyName("consumer_storage")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorage ConsumerStorage { get; set; } + + /// + /// Hash containing capabilities related to InboundTransfers. + /// + [JsonProperty("inbound_transfers")] + [STJS.JsonPropertyName("inbound_transfers")] + public AccountConfigurationMoneyManagerCapabilitiesInboundTransfers InboundTransfers { get; set; } + + /// + /// Hash containing capabilities related to OutboundPayments. + /// + [JsonProperty("outbound_payments")] + [STJS.JsonPropertyName("outbound_payments")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPayments OutboundPayments { get; set; } + + /// + /// Hash containing capabilities related to OutboundTransfers. + /// + [JsonProperty("outbound_transfers")] + [STJS.JsonPropertyName("outbound_transfers")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfers OutboundTransfers { get; set; } + + /// + /// Hash containing capabilities related to ReceivedCredits. + /// + [JsonProperty("received_credits")] + [STJS.JsonPropertyName("received_credits")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCredits ReceivedCredits { get; set; } + + /// + /// Hash containing capabilities related to ReceivedDebits. + /// + [JsonProperty("received_debits")] + [STJS.JsonPropertyName("received_debits")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedDebits ReceivedDebits { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorage.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorage.cs new file mode 100644 index 0000000000..be474ae01e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorage.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorage : StripeEntity + { + /// + /// Can receive business storage-type funds on Stripe. + /// + [JsonProperty("inbound")] + [STJS.JsonPropertyName("inbound")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInbound Inbound { get; set; } + + /// + /// Can send business storage-type funds on Stripe. + /// + [JsonProperty("outbound")] + [STJS.JsonPropertyName("outbound")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound Outbound { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInbound.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInbound.cs new file mode 100644 index 0000000000..95f8dc1a8d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInbound.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInbound : StripeEntity + { + /// + /// Can receive business storage-type funds on Stripe in AUD. + /// + [JsonProperty("aud")] + [STJS.JsonPropertyName("aud")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud Aud { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in CAD. + /// + [JsonProperty("cad")] + [STJS.JsonPropertyName("cad")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad Cad { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in EUR. + /// + [JsonProperty("eur")] + [STJS.JsonPropertyName("eur")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur Eur { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in GBP. + /// + [JsonProperty("gbp")] + [STJS.JsonPropertyName("gbp")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp Gbp { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd Usd { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdc Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud.cs new file mode 100644 index 0000000000..b39c8ccc04 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAud : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtections.cs new file mode 100644 index 0000000000..0a600f6345 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigration.cs new file mode 100644 index 0000000000..0cc882cefc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudStatusDetail.cs new file mode 100644 index 0000000000..5214d87221 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad.cs new file mode 100644 index 0000000000..6bd1052d40 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCad : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtections.cs new file mode 100644 index 0000000000..23548b64b3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigration.cs new file mode 100644 index 0000000000..9844174c83 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadStatusDetail.cs new file mode 100644 index 0000000000..12b92c6ace --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur.cs new file mode 100644 index 0000000000..9817ceabae --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEur : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtections.cs new file mode 100644 index 0000000000..57a9713460 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigration.cs new file mode 100644 index 0000000000..03e3d3dca2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurStatusDetail.cs new file mode 100644 index 0000000000..7abd992a74 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp.cs new file mode 100644 index 0000000000..096bc2470a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbp : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtections.cs new file mode 100644 index 0000000000..908948a0b1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigration.cs new file mode 100644 index 0000000000..f8521526d5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpStatusDetail.cs new file mode 100644 index 0000000000..3636e57a19 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd.cs new file mode 100644 index 0000000000..5fca552941 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsd : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtections.cs new file mode 100644 index 0000000000..b4c6ef31c7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigration.cs new file mode 100644 index 0000000000..8d016ded54 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdStatusDetail.cs new file mode 100644 index 0000000000..d47210b097 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdc.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdc.cs new file mode 100644 index 0000000000..46b467cd64 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdc.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdc : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtections.cs new file mode 100644 index 0000000000..df8b51207d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigration.cs new file mode 100644 index 0000000000..6e29a60aad --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcStatusDetail.cs new file mode 100644 index 0000000000..d2145b04e4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound.cs new file mode 100644 index 0000000000..0dfc01dd4d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutbound : StripeEntity + { + /// + /// Can send business storage-type funds on Stripe in AUD. + /// + [JsonProperty("aud")] + [STJS.JsonPropertyName("aud")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud Aud { get; set; } + + /// + /// Can send business storage-type funds on Stripe in CAD. + /// + [JsonProperty("cad")] + [STJS.JsonPropertyName("cad")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad Cad { get; set; } + + /// + /// Can send business storage-type funds on Stripe in EUR. + /// + [JsonProperty("eur")] + [STJS.JsonPropertyName("eur")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur Eur { get; set; } + + /// + /// Can send business storage-type funds on Stripe in GBP. + /// + [JsonProperty("gbp")] + [STJS.JsonPropertyName("gbp")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp Gbp { get; set; } + + /// + /// Can send business storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd Usd { get; set; } + + /// + /// Can send business storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdc Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud.cs new file mode 100644 index 0000000000..2bd2574a2c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAud : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtections.cs new file mode 100644 index 0000000000..d94f8d1e01 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigration.cs new file mode 100644 index 0000000000..dedac89f53 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudStatusDetail.cs new file mode 100644 index 0000000000..6ceb6fa7d0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad.cs new file mode 100644 index 0000000000..f3f31653ab --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCad : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtections.cs new file mode 100644 index 0000000000..09cc149cb3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigration.cs new file mode 100644 index 0000000000..0ac46a1eb6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadStatusDetail.cs new file mode 100644 index 0000000000..87c139e58c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur.cs new file mode 100644 index 0000000000..fb9f5bb61f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEur : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtections.cs new file mode 100644 index 0000000000..fb4c371f28 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigration.cs new file mode 100644 index 0000000000..69ba6c4deb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurStatusDetail.cs new file mode 100644 index 0000000000..d4846a27b4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp.cs new file mode 100644 index 0000000000..9cd27770f8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbp : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtections.cs new file mode 100644 index 0000000000..33f3752e7e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigration.cs new file mode 100644 index 0000000000..c965b1fdb5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpStatusDetail.cs new file mode 100644 index 0000000000..141cdfe542 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd.cs new file mode 100644 index 0000000000..6a40ac1687 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsd : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtections.cs new file mode 100644 index 0000000000..1cbc202acf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigration.cs new file mode 100644 index 0000000000..8b479647fb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdStatusDetail.cs new file mode 100644 index 0000000000..c5599ee701 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdc.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdc.cs new file mode 100644 index 0000000000..234d35c2a9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdc.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdc : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtections.cs new file mode 100644 index 0000000000..928ed5bbe5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigration.cs new file mode 100644 index 0000000000..5b237bcd1d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcStatusDetail.cs new file mode 100644 index 0000000000..eed73f2fbe --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorage.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorage.cs new file mode 100644 index 0000000000..57ed896b7d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorage.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorage : StripeEntity + { + /// + /// Can receive consumer storage-type funds on Stripe. + /// + [JsonProperty("inbound")] + [STJS.JsonPropertyName("inbound")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInbound Inbound { get; set; } + + /// + /// Can send consumer storage-type funds on Stripe. + /// + [JsonProperty("outbound")] + [STJS.JsonPropertyName("outbound")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutbound Outbound { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInbound.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInbound.cs new file mode 100644 index 0000000000..3ef5a0cde9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInbound.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInbound : StripeEntity + { + /// + /// Can receive consumer storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsd Usd { get; set; } + + /// + /// Can receive consumer storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdc Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsd.cs new file mode 100644 index 0000000000..870c278cf0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsd.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsd : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtections.cs new file mode 100644 index 0000000000..e2e3136930 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigration.cs new file mode 100644 index 0000000000..495a082138 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdStatusDetail.cs new file mode 100644 index 0000000000..972cb77a18 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdc.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdc.cs new file mode 100644 index 0000000000..ada08397de --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdc.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdc : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtections.cs new file mode 100644 index 0000000000..5ba092c447 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigration.cs new file mode 100644 index 0000000000..0a5649c8e3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcStatusDetail.cs new file mode 100644 index 0000000000..afa889ab76 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutbound.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutbound.cs new file mode 100644 index 0000000000..9e5ca35639 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutbound.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutbound : StripeEntity + { + /// + /// Can send consumer storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsd Usd { get; set; } + + /// + /// Can send consumer storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdc Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsd.cs new file mode 100644 index 0000000000..50bb91cead --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsd.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsd : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtections.cs new file mode 100644 index 0000000000..5032ca2d01 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigration.cs new file mode 100644 index 0000000000..585d4c8644 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdStatusDetail.cs new file mode 100644 index 0000000000..d85f3cae71 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdc.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdc.cs new file mode 100644 index 0000000000..ce3e1669ed --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdc.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdc : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtections.cs new file mode 100644 index 0000000000..b1ad416da6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigration.cs new file mode 100644 index 0000000000..6d38a2f32c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcStatusDetail.cs new file mode 100644 index 0000000000..76aa4e62d2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfers.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfers.cs new file mode 100644 index 0000000000..8a61e0b728 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfers.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesInboundTransfers : StripeEntity + { + /// + /// Can pull funds into a FinancialAccount from an external bank account owned by the user. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts BankAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts.cs new file mode 100644 index 0000000000..8963e14267 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtections.cs new file mode 100644 index 0000000000..6bfd3dda0f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..c532ac595d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsStatusDetail.cs new file mode 100644 index 0000000000..7e608c3fd5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPayments.cs new file mode 100644 index 0000000000..7b45349842 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPayments.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPayments : StripeEntity + { + /// + /// Can send funds from a FinancialAccount to a bank account owned by a different entity. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts BankAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to a debit card owned by a different entity. + /// + [JsonProperty("cards")] + [STJS.JsonPropertyName("cards")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards Cards { get; set; } + + /// + /// Can send funds from a FinancialAccount to a crypto wallet owned by a different entity. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWallets CryptoWallets { get; set; } + + /// + /// Can send funds from a FinancialAccount to a FinancialAccount owned by a different + /// entity. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts FinancialAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to someone else via paper check. + /// + [JsonProperty("paper_checks")] + [STJS.JsonPropertyName("paper_checks")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecks PaperChecks { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts.cs new file mode 100644 index 0000000000..16f0878441 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtections.cs new file mode 100644 index 0000000000..1df2476ae3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..9b0b2307b6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsStatusDetail.cs new file mode 100644 index 0000000000..b6f7a71e63 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards.cs new file mode 100644 index 0000000000..38cc691bf2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCards : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtections.cs new file mode 100644 index 0000000000..0b3f317f88 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration.cs new file mode 100644 index 0000000000..bbd64c784c --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsStatusDetail.cs new file mode 100644 index 0000000000..766cdce203 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWallets.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWallets.cs new file mode 100644 index 0000000000..023a514412 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWallets.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWallets : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtections.cs new file mode 100644 index 0000000000..632bfe92c0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration.cs new file mode 100644 index 0000000000..4d5f13ce4f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail.cs new file mode 100644 index 0000000000..26356a6bda --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts.cs new file mode 100644 index 0000000000..c1fd9bbfa3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtections.cs new file mode 100644 index 0000000000..4169347e9f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..f38515206d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail.cs new file mode 100644 index 0000000000..84b5682a7e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecks.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecks.cs new file mode 100644 index 0000000000..a71bb3d1f6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecks.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecks : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtections.cs new file mode 100644 index 0000000000..fb68d8d870 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration.cs new file mode 100644 index 0000000000..90210130dd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksStatusDetail.cs new file mode 100644 index 0000000000..cd8ef484d1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfers.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfers.cs new file mode 100644 index 0000000000..861c02a742 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfers.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfers : StripeEntity + { + /// + /// Can send funds from a FinancialAccount to a bank account belonging to the same user. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts BankAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to a crypto wallet belonging to the same user. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWallets CryptoWallets { get; set; } + + /// + /// Can send funds from a FinancialAccount to another FinancialAccount belonging to the same + /// user. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts FinancialAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts.cs new file mode 100644 index 0000000000..946f3454b1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtections.cs new file mode 100644 index 0000000000..6060fe43aa --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..4ecaa8e3d9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsStatusDetail.cs new file mode 100644 index 0000000000..f541b11108 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWallets.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWallets.cs new file mode 100644 index 0000000000..c98d951b6a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWallets.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWallets : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtections.cs new file mode 100644 index 0000000000..e4676b3fb0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration.cs new file mode 100644 index 0000000000..7feda7a763 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail.cs new file mode 100644 index 0000000000..8375f8b8a5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts.cs new file mode 100644 index 0000000000..3a9806cb10 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtections.cs new file mode 100644 index 0000000000..c06509a7fc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..c4a32d1252 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail.cs new file mode 100644 index 0000000000..3493dd5b0a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCredits.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCredits.cs new file mode 100644 index 0000000000..22635a780d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCredits.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCredits : StripeEntity + { + /// + /// Can receive credits to a bank-account like financial address to credit a + /// FinancialAccount. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts BankAccounts { get; set; } + + /// + /// Can receive credits to a crypto wallet like financial address to credit a + /// FinancialAccount. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWallets CryptoWallets { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts.cs new file mode 100644 index 0000000000..824409579f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtections.cs new file mode 100644 index 0000000000..2d757dfc94 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..b909bf0d14 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsStatusDetail.cs new file mode 100644 index 0000000000..5ee46f9c8a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWallets.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWallets.cs new file mode 100644 index 0000000000..4c148b26a8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWallets.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWallets : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtections.cs new file mode 100644 index 0000000000..8eb13d7cfd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigration.cs new file mode 100644 index 0000000000..aff468c763 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsStatusDetail.cs new file mode 100644 index 0000000000..483dbf754d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebits.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebits.cs new file mode 100644 index 0000000000..716c0b9667 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebits.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedDebits : StripeEntity + { + /// + /// Can receive debits to a FinancialAccount from a bank account. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts BankAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts.cs new file mode 100644 index 0000000000..6444ca1386 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccounts : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtections.cs new file mode 100644 index 0000000000..98f25af485 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigration.cs new file mode 100644 index 0000000000..316e0b77db --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsStatusDetail.cs new file mode 100644 index 0000000000..5786e5762b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerRegulatedActivity.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerRegulatedActivity.cs new file mode 100644 index 0000000000..0a8450ad72 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationMoneyManagerRegulatedActivity.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationMoneyManagerRegulatedActivity : StripeEntity + { + /// + /// A detailed description of the regulated activities the business is licensed to conduct. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The license number or registration number assigned by the business's primary regulator. + /// + [JsonProperty("license_number")] + [STJS.JsonPropertyName("license_number")] + public string LicenseNumber { get; set; } + + /// + /// The country of the primary regulatory authority that oversees the business's regulated + /// activities. + /// + [JsonProperty("primary_regulatory_authority_country")] + [STJS.JsonPropertyName("primary_regulatory_authority_country")] + public string PrimaryRegulatoryAuthorityCountry { get; set; } + + /// + /// The name of the primary regulatory authority that oversees the business's regulated + /// activities. + /// + [JsonProperty("primary_regulatory_authority_name")] + [STJS.JsonPropertyName("primary_regulatory_authority_name")] + public string PrimaryRegulatoryAuthorityName { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccounts.cs index 834a22d4d3..6f0bec4ddf 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccounts.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccounts.cs @@ -8,6 +8,43 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class AccountConfigurationRecipientCapabilitiesBankAccounts : StripeEntity { + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over ACH rails. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public AccountConfigurationRecipientCapabilitiesBankAccountsAch Ach { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over BECS + /// rails. + /// + [JsonProperty("becs")] + [STJS.JsonPropertyName("becs")] + public AccountConfigurationRecipientCapabilitiesBankAccountsBecs Becs { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over EFT rails. + /// + [JsonProperty("eft")] + [STJS.JsonPropertyName("eft")] + public AccountConfigurationRecipientCapabilitiesBankAccountsEft Eft { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over Fedwire or + /// CHIPS. + /// + [JsonProperty("fedwire")] + [STJS.JsonPropertyName("fedwire")] + public AccountConfigurationRecipientCapabilitiesBankAccountsFedwire Fedwire { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over FPS rails. + /// + [JsonProperty("fps")] + [STJS.JsonPropertyName("fps")] + public AccountConfigurationRecipientCapabilitiesBankAccountsFps Fps { get; set; } + /// /// Enables this Account to receive OutboundPayments to linked bank accounts over real time /// rails. @@ -24,6 +61,44 @@ public class AccountConfigurationRecipientCapabilitiesBankAccounts : StripeEntit [STJS.JsonPropertyName("local")] public AccountConfigurationRecipientCapabilitiesBankAccountsLocal Local { get; set; } + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over NPP (real + /// time) rails. + /// + [JsonProperty("npp")] + [STJS.JsonPropertyName("npp")] + public AccountConfigurationRecipientCapabilitiesBankAccountsNpp Npp { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over RTP rails. + /// + [JsonProperty("rtp")] + [STJS.JsonPropertyName("rtp")] + public AccountConfigurationRecipientCapabilitiesBankAccountsRtp Rtp { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SEPA + /// credit rails. + /// + [JsonProperty("sepa_credit")] + [STJS.JsonPropertyName("sepa_credit")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSepaCredit SepaCredit { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SEPA + /// instant (real time) rails. + /// + [JsonProperty("sepa_instant")] + [STJS.JsonPropertyName("sepa_instant")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstant SepaInstant { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SWIFT. + /// + [JsonProperty("swift")] + [STJS.JsonPropertyName("swift")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSwift Swift { get; set; } + /// /// Enables this Account to receive OutboundPayments to linked bank accounts over wire. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAch.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAch.cs new file mode 100644 index 0000000000..977516f045 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAch.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsAch : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsAchProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchProtections.cs new file mode 100644 index 0000000000..a89a6549a2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsAchProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigration.cs new file mode 100644 index 0000000000..2958f31218 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchStatusDetail.cs new file mode 100644 index 0000000000..92b33259a0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsAchStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsAchStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecs.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecs.cs new file mode 100644 index 0000000000..0944d63ea9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecs.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsBecs : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtections.cs new file mode 100644 index 0000000000..05c0d46dbf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigration.cs new file mode 100644 index 0000000000..86e45182c2 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsStatusDetail.cs new file mode 100644 index 0000000000..3d0d7775e7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsBecsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsBecsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEft.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEft.cs new file mode 100644 index 0000000000..095222ca85 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEft.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsEft : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsEftProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftProtections.cs new file mode 100644 index 0000000000..c843d7cee7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsEftProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigration.cs new file mode 100644 index 0000000000..e7349a7bf8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftStatusDetail.cs new file mode 100644 index 0000000000..45e04e1221 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsEftStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsEftStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwire.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwire.cs new file mode 100644 index 0000000000..39cf4f5a4b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwire.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFedwire : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtections.cs new file mode 100644 index 0000000000..297ea859dd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigration.cs new file mode 100644 index 0000000000..22c3bd5266 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireStatusDetail.cs new file mode 100644 index 0000000000..8ac6de3c21 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFedwireStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFedwireStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFps.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFps.cs new file mode 100644 index 0000000000..722e9f2d63 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFps.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFps : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtections.cs new file mode 100644 index 0000000000..983d39dcd5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigration.cs new file mode 100644 index 0000000000..2ad6fdbae9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsStatusDetail.cs new file mode 100644 index 0000000000..75413952ac --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsFpsStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsFpsStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNpp.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNpp.cs new file mode 100644 index 0000000000..860748086a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNpp.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsNpp : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsNppProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppProtections.cs new file mode 100644 index 0000000000..d142ebfc4a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsNppProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigration.cs new file mode 100644 index 0000000000..d90ef1580f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppStatusDetail.cs new file mode 100644 index 0000000000..cf8cf7632d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsNppStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsNppStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtp.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtp.cs new file mode 100644 index 0000000000..adf7d59256 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtp.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsRtp : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtections.cs new file mode 100644 index 0000000000..1fe787d61e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigration.cs new file mode 100644 index 0000000000..885793734d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpStatusDetail.cs new file mode 100644 index 0000000000..b9221520b5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsRtpStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsRtpStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCredit.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCredit.cs new file mode 100644 index 0000000000..317aeae4dd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCredit.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaCredit : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtections.cs new file mode 100644 index 0000000000..216b19f9cb --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigration.cs new file mode 100644 index 0000000000..4d9133fc12 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditStatusDetail.cs new file mode 100644 index 0000000000..9d883ba9cf --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaCreditStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstant.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstant.cs new file mode 100644 index 0000000000..9d31907323 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstant.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstant : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtections.cs new file mode 100644 index 0000000000..e955e15a5f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigration.cs new file mode 100644 index 0000000000..7e51d514f4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantStatusDetail.cs new file mode 100644 index 0000000000..c6bb1b79ba --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSepaInstantStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwift.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwift.cs new file mode 100644 index 0000000000..3abe7ccf48 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwift.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSwift : StripeEntity + { + /// + /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtections Protections { get; set; } + + /// + /// The status of the Capability. + /// One of: active, pending, restricted, or unsupported. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Additional details about the capability's status. This value is empty when status + /// is active. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public List StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtections.cs new file mode 100644 index 0000000000..e82ade81ba --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtections.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtections : StripeEntity + { + /// + /// Protection details for PSP migration. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigration PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigration.cs new file mode 100644 index 0000000000..6d43217301 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigration.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigration : StripeEntity + { + /// + /// The time until which the protection will expire, as a Unix timestamp. + /// + [JsonProperty("expires_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("expires_at")] + public long? ExpiresAt { get; set; } + + /// + /// The time at which the protection was requested, as a Unix timestamp. + /// + [JsonProperty("requested_at")] + [JsonConverter(typeof(Int64StringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("requested_at")] + public long RequestedAt { get; set; } + + /// + /// The current status of the protection. + /// One of: active, disrupted, expired, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftStatusDetail.cs new file mode 100644 index 0000000000..b5779796e5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientCapabilitiesBankAccountsSwiftStatusDetail.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountConfigurationRecipientCapabilitiesBankAccountsSwiftStatusDetail : StripeEntity + { + /// + /// Machine-readable code explaining the reason for the Capability to be in its current + /// status. + /// One of: determining_status, requirements_past_due, + /// requirements_pending_verification, restricted_other, + /// unsupported_business, unsupported_country, or + /// unsupported_entity_type. + /// + [JsonProperty("code")] + [STJS.JsonPropertyName("code")] + public string Code { get; set; } + + /// + /// Machine-readable code explaining how to make the Capability active. + /// One of: contact_stripe, no_resolution, or provide_info. + /// + [JsonProperty("resolution")] + [STJS.JsonPropertyName("resolution")] + public string Resolution { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorer.cs deleted file mode 100644 index b78a9b3b90..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorer.cs +++ /dev/null @@ -1,115 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorer : StripeEntity - { - /// - /// Indicates whether the storer configuration is active. You cannot deactivate (or - /// reactivate) the storer configuration by updating this property. - /// - [JsonProperty("applied")] - [STJS.JsonPropertyName("applied")] - public bool Applied { get; set; } - - /// - /// Capabilities that have been requested on the Storer Configuration. - /// - [JsonProperty("capabilities")] - [STJS.JsonPropertyName("capabilities")] - public AccountConfigurationStorerCapabilities Capabilities { get; set; } - - /// - /// List of high-risk activities the business is involved in. - /// One of: adult_entertainment, gambling, hold_client_funds, - /// investment_services, lending_banking, - /// marijuana_or_related_services, money_services, - /// nicotine_tobacco_or_related_services, none, - /// operate_foreign_exchange_virtual_currencies_brokerage_otc, - /// pharmaceuticals, precious_metals_precious_stones_jewelry, - /// safe_deposit_box_rentals, third_party_payment_processing, or - /// weapons_firearms_and_explosives. - /// - [JsonProperty("high_risk_activities")] - [STJS.JsonPropertyName("high_risk_activities")] - public List HighRiskActivities { get; set; } - - /// - /// Description of the high-risk activities the business offers. - /// - [JsonProperty("high_risk_activities_description")] - [STJS.JsonPropertyName("high_risk_activities_description")] - public string HighRiskActivitiesDescription { get; set; } - - /// - /// Description of the money services offered by the business. - /// - [JsonProperty("money_services_description")] - [STJS.JsonPropertyName("money_services_description")] - public string MoneyServicesDescription { get; set; } - - /// - /// Indicates whether the business operates in any prohibited countries. - /// - [JsonProperty("operates_in_prohibited_countries")] - [STJS.JsonPropertyName("operates_in_prohibited_countries")] - public bool? OperatesInProhibitedCountries { get; set; } - - /// - /// Does the business participate in any regulated activity. - /// - [JsonProperty("participates_in_regulated_activity")] - [STJS.JsonPropertyName("participates_in_regulated_activity")] - public bool? ParticipatesInRegulatedActivity { get; set; } - - /// - /// Primary purpose of the stored funds. - /// One of: charitable_donations, ecommerce_retail_payments, - /// investment_purposes, other, payments_to_friends_or_family_abroad, - /// payroll, personal_or_living_expenses, protect_wealth, - /// purchase_goods_and_services, receive_payments_for_goods_and_services, - /// tax_optimization, third_party_money_transmission, or - /// treasury_management. - /// - [JsonProperty("purpose_of_funds")] - [STJS.JsonPropertyName("purpose_of_funds")] - public string PurposeOfFunds { get; set; } - - /// - /// Description of the purpose of the stored funds. - /// - [JsonProperty("purpose_of_funds_description")] - [STJS.JsonPropertyName("purpose_of_funds_description")] - public string PurposeOfFundsDescription { get; set; } - - /// - /// Details of the regulated activity if the business participates in one. - /// - [JsonProperty("regulated_activity")] - [STJS.JsonPropertyName("regulated_activity")] - public AccountConfigurationStorerRegulatedActivity RegulatedActivity { get; set; } - - /// - /// The source of funds for the business, e.g. profits, income, venture capital, etc. - /// One of: business_loans, grants, inter_company_funds, - /// investment_proceeds, legal_settlement, owners_capital, - /// pension_retirement, sales_of_assets, sales_of_goods_and_services, - /// tax_refund, third_party_funds, or treasury_reserves. - /// - [JsonProperty("source_of_funds")] - [STJS.JsonPropertyName("source_of_funds")] - public string SourceOfFunds { get; set; } - - /// - /// Description of the source of funds for the business' account. - /// - [JsonProperty("source_of_funds_description")] - [STJS.JsonPropertyName("source_of_funds_description")] - public string SourceOfFundsDescription { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs deleted file mode 100644 index 6ac5e46685..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilities.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilities : StripeEntity - { - /// - /// Hash containing capabilities related to consumer financial accounts. - /// - [JsonProperty("consumer")] - [STJS.JsonPropertyName("consumer")] - public AccountConfigurationStorerCapabilitiesConsumer Consumer { get; set; } - - /// - /// Can provision a financial address to credit/debit a FinancialAccount. - /// - [JsonProperty("financial_addresses")] - [STJS.JsonPropertyName("financial_addresses")] - public AccountConfigurationStorerCapabilitiesFinancialAddresses FinancialAddresses { get; set; } - - /// - /// Can hold storage-type funds on Stripe. - /// - [JsonProperty("holds_currencies")] - [STJS.JsonPropertyName("holds_currencies")] - public AccountConfigurationStorerCapabilitiesHoldsCurrencies HoldsCurrencies { get; set; } - - /// - /// Hash containing capabilities related to InboundTransfers. - /// - [JsonProperty("inbound_transfers")] - [STJS.JsonPropertyName("inbound_transfers")] - public AccountConfigurationStorerCapabilitiesInboundTransfers InboundTransfers { get; set; } - - /// - /// Hash containing capabilities related to OutboundPayments. - /// - [JsonProperty("outbound_payments")] - [STJS.JsonPropertyName("outbound_payments")] - public AccountConfigurationStorerCapabilitiesOutboundPayments OutboundPayments { get; set; } - - /// - /// Hash containing capabilities related to OutboundTransfers. - /// - [JsonProperty("outbound_transfers")] - [STJS.JsonPropertyName("outbound_transfers")] - public AccountConfigurationStorerCapabilitiesOutboundTransfers OutboundTransfers { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumer.cs deleted file mode 100644 index f77e4343c4..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumer.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesConsumer : StripeEntity - { - /// - /// Can hold storage-type funds on Stripe consumer FAs in USD. - /// - [JsonProperty("holds_currencies")] - [STJS.JsonPropertyName("holds_currencies")] - public AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies HoldsCurrencies { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies.cs deleted file mode 100644 index 5090d04389..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrencies : StripeEntity - { - /// - /// Can hold storage-type funds on Stripe consumer FAs in USD. - /// - [JsonProperty("usd")] - [STJS.JsonPropertyName("usd")] - public AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd Usd { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd.cs deleted file mode 100644 index 01775fbf7d..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsd : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtections.cs deleted file mode 100644 index c369d3ff70..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigration.cs deleted file mode 100644 index 48592904c3..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail.cs deleted file mode 100644 index ca8e1ebf77..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddresses.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddresses.cs deleted file mode 100644 index fbcd03cdb6..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddresses.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddresses : StripeEntity - { - /// - /// Can provision a bank-account like financial address (VBAN) to credit/debit a - /// FinancialAccount. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccounts BankAccounts { get; set; } - - /// - /// Can provision a crypto wallet like financial address to credit a FinancialAccount. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWallets CryptoWallets { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccounts.cs deleted file mode 100644 index 2c74d5db9f..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccounts.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccounts : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtections.cs deleted file mode 100644 index 63011d6de5..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigration.cs deleted file mode 100644 index 1cdedf9a44..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsStatusDetail.cs deleted file mode 100644 index 49e79820a0..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesBankAccountsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWallets.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWallets.cs deleted file mode 100644 index 0545e2d530..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWallets.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWallets : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtections.cs deleted file mode 100644 index 7a78b88e89..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigration.cs deleted file mode 100644 index 37994c4687..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsStatusDetail.cs deleted file mode 100644 index 15232d95ac..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrencies.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrencies.cs deleted file mode 100644 index 2a4d84f04f..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrencies.cs +++ /dev/null @@ -1,39 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrencies : StripeEntity - { - /// - /// Can hold storage-type funds on Stripe in EUR. - /// - [JsonProperty("eur")] - [STJS.JsonPropertyName("eur")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesEur Eur { get; set; } - - /// - /// Can hold storage-type funds on Stripe in GBP. - /// - [JsonProperty("gbp")] - [STJS.JsonPropertyName("gbp")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbp Gbp { get; set; } - - /// - /// Can hold storage-type funds on Stripe in USD. - /// - [JsonProperty("usd")] - [STJS.JsonPropertyName("usd")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsd Usd { get; set; } - - /// - /// Can hold storage-type funds on Stripe in USDC. - /// - [JsonProperty("usdc")] - [STJS.JsonPropertyName("usdc")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdc Usdc { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEur.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEur.cs deleted file mode 100644 index a610d8c7eb..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEur.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesEur : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtections.cs deleted file mode 100644 index 42b44e6968..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigration.cs deleted file mode 100644 index 8411b2c63f..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurStatusDetail.cs deleted file mode 100644 index 2bc89805c2..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesEurStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbp.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbp.cs deleted file mode 100644 index a17a4c3a9d..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbp.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbp : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtections.cs deleted file mode 100644 index ba6d4c7c88..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigration.cs deleted file mode 100644 index a4bd524de2..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpStatusDetail.cs deleted file mode 100644 index 609eb07516..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesGbpStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsd.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsd.cs deleted file mode 100644 index 43dd38ba26..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsd.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsd : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtections.cs deleted file mode 100644 index c856d70346..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigration.cs deleted file mode 100644 index ea20d20988..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdStatusDetail.cs deleted file mode 100644 index edc61c113d..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdc.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdc.cs deleted file mode 100644 index 72765c5032..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdc.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdc : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtections.cs deleted file mode 100644 index 76a98bc66a..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigration.cs deleted file mode 100644 index 6825790c8b..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcStatusDetail.cs deleted file mode 100644 index e793ba26fd..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesHoldsCurrenciesUsdcStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfers.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfers.cs deleted file mode 100644 index 0a5696d927..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfers.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesInboundTransfers : StripeEntity - { - /// - /// Can pull funds into a FinancialAccount from an external bank account owned by the user. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountConfigurationStorerCapabilitiesInboundTransfersBankAccounts BankAccounts { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccounts.cs deleted file mode 100644 index 3546cdb389..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccounts.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesInboundTransfersBankAccounts : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtections.cs deleted file mode 100644 index 4aa7649cd1..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration.cs deleted file mode 100644 index f691e10e1e..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsStatusDetail.cs deleted file mode 100644 index 5d362edbcf..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesInboundTransfersBankAccountsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPayments.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPayments.cs deleted file mode 100644 index 33f707cde9..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPayments.cs +++ /dev/null @@ -1,47 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPayments : StripeEntity - { - /// - /// Can send funds from a FinancialAccount to a bank account owned by a different entity. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts BankAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to a debit card owned by a different entity. - /// - [JsonProperty("cards")] - [STJS.JsonPropertyName("cards")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsCards Cards { get; set; } - - /// - /// Can send funds from a FinancialAccount to a crypto wallet owned by a different entity. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWallets CryptoWallets { get; set; } - - /// - /// Can send funds from a FinancialAccount to a FinancialAccount owned by a different - /// entity. - /// - [JsonProperty("financial_accounts")] - [STJS.JsonPropertyName("financial_accounts")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts FinancialAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to someone else via paper check. - /// - [JsonProperty("paper_checks")] - [STJS.JsonPropertyName("paper_checks")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecks PaperChecks { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts.cs deleted file mode 100644 index c507b1ddbe..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtections.cs deleted file mode 100644 index 277109218f..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration.cs deleted file mode 100644 index 5f59cccc2f..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsStatusDetail.cs deleted file mode 100644 index 330250e38b..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCards.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCards.cs deleted file mode 100644 index 707adc8d01..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCards.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCards : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtections.cs deleted file mode 100644 index fb7164f824..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration.cs deleted file mode 100644 index f1ff71e8bd..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsStatusDetail.cs deleted file mode 100644 index 0edb8fe3fc..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCardsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWallets.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWallets.cs deleted file mode 100644 index d2d2486e7c..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWallets.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWallets : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtections.cs deleted file mode 100644 index 9a6fa05af7..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration.cs deleted file mode 100644 index d412f0e60b..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail.cs deleted file mode 100644 index 80f4e25bfe..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts.cs deleted file mode 100644 index 0423cbf6b7..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtections.cs deleted file mode 100644 index 556dcb9f45..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration.cs deleted file mode 100644 index 6780d0833c..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail.cs deleted file mode 100644 index 79b43390cd..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecks.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecks.cs deleted file mode 100644 index d53800cad6..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecks.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecks : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtections.cs deleted file mode 100644 index e2848598ea..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration.cs deleted file mode 100644 index ecc19e4efa..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksStatusDetail.cs deleted file mode 100644 index b2aedc8371..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfers.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfers.cs deleted file mode 100644 index d48a18414d..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfers.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfers : StripeEntity - { - /// - /// Can send funds from a FinancialAccount to a bank account belonging to the same user. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccounts BankAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to a crypto wallet belonging to the same user. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWallets CryptoWallets { get; set; } - - /// - /// Can send funds from a FinancialAccount to another FinancialAccount belonging to the same - /// user. - /// - [JsonProperty("financial_accounts")] - [STJS.JsonPropertyName("financial_accounts")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts FinancialAccounts { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccounts.cs deleted file mode 100644 index 1bb40bae6a..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccounts.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccounts : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtections.cs deleted file mode 100644 index 1ce21535bb..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration.cs deleted file mode 100644 index f06bcc9d0d..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsStatusDetail.cs deleted file mode 100644 index e82824f8ac..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersBankAccountsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWallets.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWallets.cs deleted file mode 100644 index 35535b58b4..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWallets.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWallets : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtections.cs deleted file mode 100644 index 9873227468..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration.cs deleted file mode 100644 index 16afe370ba..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail.cs deleted file mode 100644 index 0d2520b9b8..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts.cs deleted file mode 100644 index 5fa331230b..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts.cs +++ /dev/null @@ -1,35 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts : StripeEntity - { - /// - /// Protections applied to this capability, keyed by protection type (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtections Protections { get; set; } - - /// - /// The status of the Capability. - /// One of: active, pending, restricted, or unsupported. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - - /// - /// Additional details about the capability's status. This value is empty when status - /// is active. - /// - [JsonProperty("status_details")] - [STJS.JsonPropertyName("status_details")] - public List StatusDetails { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtections.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtections.cs deleted file mode 100644 index ddb61bb602..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtections.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtections : StripeEntity - { - /// - /// Protection details for PSP migration. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration.cs deleted file mode 100644 index 423bb1861c..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration.cs +++ /dev/null @@ -1,37 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigration : StripeEntity - { - /// - /// The time until which the protection will expire, as a Unix timestamp. - /// - [JsonProperty("expires_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("expires_at")] - public long? ExpiresAt { get; set; } - - /// - /// The time at which the protection was requested, as a Unix timestamp. - /// - [JsonProperty("requested_at")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("requested_at")] - public long RequestedAt { get; set; } - - /// - /// The current status of the protection. - /// One of: active, disrupted, expired, or inactive. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail.cs deleted file mode 100644 index d43e246ed1..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail.cs +++ /dev/null @@ -1,31 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsStatusDetail : StripeEntity - { - /// - /// Machine-readable code explaining the reason for the Capability to be in its current - /// status. - /// One of: determining_status, requirements_past_due, - /// requirements_pending_verification, restricted_other, - /// unsupported_business, unsupported_country, or - /// unsupported_entity_type. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// Machine-readable code explaining how to make the Capability active. - /// One of: contact_stripe, no_resolution, or provide_info. - /// - [JsonProperty("resolution")] - [STJS.JsonPropertyName("resolution")] - public string Resolution { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerRegulatedActivity.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerRegulatedActivity.cs deleted file mode 100644 index a1b4a09fd8..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationStorerRegulatedActivity.cs +++ /dev/null @@ -1,41 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountConfigurationStorerRegulatedActivity : StripeEntity - { - /// - /// A detailed description of the regulated activities the business is licensed to conduct. - /// - [JsonProperty("description")] - [STJS.JsonPropertyName("description")] - public string Description { get; set; } - - /// - /// The license number or registration number assigned by the business's primary regulator. - /// - [JsonProperty("license_number")] - [STJS.JsonPropertyName("license_number")] - public string LicenseNumber { get; set; } - - /// - /// The country of the primary regulatory authority that oversees the business's regulated - /// activities. - /// - [JsonProperty("primary_regulatory_authority_country")] - [STJS.JsonPropertyName("primary_regulatory_authority_country")] - public string PrimaryRegulatoryAuthorityCountry { get; set; } - - /// - /// The name of the primary regulatory authority that oversees the business's regulated - /// activities. - /// - [JsonProperty("primary_regulatory_authority_name")] - [STJS.JsonPropertyName("primary_regulatory_authority_name")] - public string PrimaryRegulatoryAuthorityName { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs index a8b7074734..6d77b1ccf7 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountFutureRequirementsEntryImpactRestrictsCapability.cs @@ -13,12 +13,18 @@ public class AccountFutureRequirementsEntryImpactRestrictsCapability : StripeEnt /// One of: ach_debit_payments, acss_debit_payments, affirm_payments, /// afterpay_clearpay_payments, alma_payments, amazon_pay_payments, /// automatic_indirect_tax, au_becs_debit_payments, - /// bacs_debit_payments, bancontact_payments, bank_accounts.instant, - /// bank_accounts.local, bank_accounts.wire, blik_payments, - /// boleto_payments, cards, card_payments, - /// cartes_bancaires_payments, cashapp_payments, - /// commercial.celtic.charge_card, commercial.celtic.spend_card, - /// commercial.cross_river_bank.charge_card, + /// bacs_debit_payments, bancontact_payments, bank_accounts.ach, + /// bank_accounts.becs, bank_accounts.eft, bank_accounts.fedwire, + /// bank_accounts.fps, bank_accounts.instant, bank_accounts.local, + /// bank_accounts.npp, bank_accounts.rtp, bank_accounts.sepa_credit, + /// bank_accounts.sepa_instant, bank_accounts.swift, + /// bank_accounts.wire, blik_payments, boleto_payments, + /// business_storage.inbound.eur, business_storage.inbound.gbp, + /// business_storage.inbound.usd, business_storage.outbound.eur, + /// business_storage.outbound.gbp, business_storage.outbound.usd, + /// cards, card_payments, cartes_bancaires_payments, + /// cashapp_payments, commercial.celtic.charge_card, + /// commercial.celtic.spend_card, commercial.cross_river_bank.charge_card, /// commercial.cross_river_bank.prepaid_card, /// commercial.cross_river_bank.spend_card, /// commercial.fifth_third.charge_card, commercial.lead.prepaid_card, @@ -26,6 +32,7 @@ public class AccountFutureRequirementsEntryImpactRestrictsCapability : StripeEnt /// consumer.celtic.revolving_credit_card, /// consumer.cross_river_bank.prepaid_card, consumer.holds_currencies.usd, /// consumer.lead.debit_card, consumer.lead.prepaid_card, + /// consumer_storage.inbound.usd, consumer_storage.outbound.usd, /// crypto_wallets, eps_payments, financial_addresses.bank_accounts, /// fpx_payments, gb_bank_transfer_payments, grabpay_payments, /// holds_currencies.eur, holds_currencies.gbp, holds_currencies.usd, @@ -38,11 +45,13 @@ public class AccountFutureRequirementsEntryImpactRestrictsCapability : StripeEnt /// outbound_payments.paper_checks, outbound_transfers.bank_accounts, /// outbound_transfers.financial_accounts, oxxo_payments, p24_payments, /// paper_checks, payco_payments, paynow_payments, - /// pay_by_bank_payments, promptpay_payments, revolut_pay_payments, - /// samsung_pay_payments, sepa_bank_transfer_payments, - /// sepa_debit_payments, stripe_balance.payouts, - /// stripe_balance.stripe_transfers, swish_payments, twint_payments, - /// us_bank_transfer_payments, or zip_payments. + /// pay_by_bank_payments, promptpay_payments, + /// received_credits.bank_accounts, received_debits.bank_accounts, + /// revolut_pay_payments, samsung_pay_payments, + /// sepa_bank_transfer_payments, sepa_debit_payments, + /// stripe_balance.payouts, stripe_balance.stripe_transfers, + /// swish_payments, twint_payments, us_bank_transfer_payments, or + /// zip_payments. /// [JsonProperty("capability")] [STJS.JsonPropertyName("capability")] @@ -50,8 +59,8 @@ public class AccountFutureRequirementsEntryImpactRestrictsCapability : StripeEnt /// /// The configuration which specifies the Capability which will be restricted. - /// One of: card_creator, customer, merchant, recipient, or - /// storer. + /// One of: card_creator, customer, merchant, money_manager, + /// recipient, or storer. /// [JsonProperty("configuration")] [STJS.JsonPropertyName("configuration")] diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs index 4c1607af3a..a34ece0c2e 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfService.cs @@ -24,6 +24,13 @@ public class AccountIdentityAttestationsTermsOfService : StripeEntity + /// Details on the Account's acceptance of Consumer-specific terms of service. + /// + [JsonProperty("consumer_money_manager")] + [STJS.JsonPropertyName("consumer_money_manager")] + public AccountIdentityAttestationsTermsOfServiceConsumerMoneyManager ConsumerMoneyManager { get; set; } + /// /// Details on the Account's acceptance of Consumer-privacy-disclosures-specific terms of /// service. @@ -33,24 +40,17 @@ public class AccountIdentityAttestationsTermsOfService : StripeEntity - /// Details on the Account's acceptance of Consumer-storer-specific terms of service. - /// - [JsonProperty("consumer_storer")] - [STJS.JsonPropertyName("consumer_storer")] - public AccountIdentityAttestationsTermsOfServiceConsumerStorer ConsumerStorer { get; set; } - - /// - /// Details on the Account's acceptance of Crypto-storer-specific terms of service. + /// Details on the Account's acceptance of Crypto-specific terms of service. /// - [JsonProperty("crypto_storer")] - [STJS.JsonPropertyName("crypto_storer")] - public AccountIdentityAttestationsTermsOfServiceCryptoStorer CryptoStorer { get; set; } + [JsonProperty("crypto_money_manager")] + [STJS.JsonPropertyName("crypto_money_manager")] + public AccountIdentityAttestationsTermsOfServiceCryptoMoneyManager CryptoMoneyManager { get; set; } /// /// Details on the Account's acceptance of Treasury-specific terms of service. /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountIdentityAttestationsTermsOfServiceStorer Storer { get; set; } + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountIdentityAttestationsTermsOfServiceMoneyManager MoneyManager { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerMoneyManager.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerMoneyManager.cs new file mode 100644 index 0000000000..f37324bb82 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerMoneyManager.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountIdentityAttestationsTermsOfServiceConsumerMoneyManager : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerStorer.cs deleted file mode 100644 index 77073fecc5..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceConsumerStorer.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountIdentityAttestationsTermsOfServiceConsumerStorer : StripeEntity - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCryptoMoneyManager.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCryptoMoneyManager.cs new file mode 100644 index 0000000000..1a930b6cb5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCryptoMoneyManager.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountIdentityAttestationsTermsOfServiceCryptoMoneyManager : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCryptoStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCryptoStorer.cs deleted file mode 100644 index c31f4a05eb..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceCryptoStorer.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountIdentityAttestationsTermsOfServiceCryptoStorer : StripeEntity - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceMoneyManager.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceMoneyManager.cs new file mode 100644 index 0000000000..48aae944f3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceMoneyManager.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountIdentityAttestationsTermsOfServiceMoneyManager : StripeEntity + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs deleted file mode 100644 index 820bfebdf8..0000000000 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityAttestationsTermsOfServiceStorer.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class AccountIdentityAttestationsTermsOfServiceStorer : StripeEntity - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs index fbcf73b4b3..bcdd876c1a 100644 --- a/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountRequirementsEntryImpactRestrictsCapability.cs @@ -13,12 +13,18 @@ public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntityach_debit_payments, acss_debit_payments, affirm_payments, /// afterpay_clearpay_payments, alma_payments, amazon_pay_payments, /// automatic_indirect_tax, au_becs_debit_payments, - /// bacs_debit_payments, bancontact_payments, bank_accounts.instant, - /// bank_accounts.local, bank_accounts.wire, blik_payments, - /// boleto_payments, cards, card_payments, - /// cartes_bancaires_payments, cashapp_payments, - /// commercial.celtic.charge_card, commercial.celtic.spend_card, - /// commercial.cross_river_bank.charge_card, + /// bacs_debit_payments, bancontact_payments, bank_accounts.ach, + /// bank_accounts.becs, bank_accounts.eft, bank_accounts.fedwire, + /// bank_accounts.fps, bank_accounts.instant, bank_accounts.local, + /// bank_accounts.npp, bank_accounts.rtp, bank_accounts.sepa_credit, + /// bank_accounts.sepa_instant, bank_accounts.swift, + /// bank_accounts.wire, blik_payments, boleto_payments, + /// business_storage.inbound.eur, business_storage.inbound.gbp, + /// business_storage.inbound.usd, business_storage.outbound.eur, + /// business_storage.outbound.gbp, business_storage.outbound.usd, + /// cards, card_payments, cartes_bancaires_payments, + /// cashapp_payments, commercial.celtic.charge_card, + /// commercial.celtic.spend_card, commercial.cross_river_bank.charge_card, /// commercial.cross_river_bank.prepaid_card, /// commercial.cross_river_bank.spend_card, /// commercial.fifth_third.charge_card, commercial.lead.prepaid_card, @@ -26,6 +32,7 @@ public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntityconsumer.celtic.revolving_credit_card, /// consumer.cross_river_bank.prepaid_card, consumer.holds_currencies.usd, /// consumer.lead.debit_card, consumer.lead.prepaid_card, + /// consumer_storage.inbound.usd, consumer_storage.outbound.usd, /// crypto_wallets, eps_payments, financial_addresses.bank_accounts, /// fpx_payments, gb_bank_transfer_payments, grabpay_payments, /// holds_currencies.eur, holds_currencies.gbp, holds_currencies.usd, @@ -38,11 +45,13 @@ public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntityoutbound_payments.paper_checks, outbound_transfers.bank_accounts, /// outbound_transfers.financial_accounts, oxxo_payments, p24_payments, /// paper_checks, payco_payments, paynow_payments, - /// pay_by_bank_payments, promptpay_payments, revolut_pay_payments, - /// samsung_pay_payments, sepa_bank_transfer_payments, - /// sepa_debit_payments, stripe_balance.payouts, - /// stripe_balance.stripe_transfers, swish_payments, twint_payments, - /// us_bank_transfer_payments, or zip_payments. + /// pay_by_bank_payments, promptpay_payments, + /// received_credits.bank_accounts, received_debits.bank_accounts, + /// revolut_pay_payments, samsung_pay_payments, + /// sepa_bank_transfer_payments, sepa_debit_payments, + /// stripe_balance.payouts, stripe_balance.stripe_transfers, + /// swish_payments, twint_payments, us_bank_transfer_payments, or + /// zip_payments. /// [JsonProperty("capability")] [STJS.JsonPropertyName("capability")] @@ -50,8 +59,8 @@ public class AccountRequirementsEntryImpactRestrictsCapability : StripeEntity /// The configuration which specifies the Capability which will be restricted. - /// One of: card_creator, customer, merchant, recipient, or - /// storer. + /// One of: card_creator, customer, merchant, money_manager, + /// recipient, or storer. /// [JsonProperty("configuration")] [STJS.JsonPropertyName("configuration")] diff --git a/src/Stripe.net/Entities/V2/Core/BatchJobs/BatchJob.cs b/src/Stripe.net/Entities/V2/Core/BatchJobs/BatchJob.cs index 19f2bd6331..ed8afdae6f 100644 --- a/src/Stripe.net/Entities/V2/Core/BatchJobs/BatchJob.cs +++ b/src/Stripe.net/Entities/V2/Core/BatchJobs/BatchJob.cs @@ -44,13 +44,6 @@ public class BatchJob : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } - /// - /// The maximum requests per second defined for the batch_job. - /// - [JsonProperty("maximum_rps")] - [STJS.JsonPropertyName("maximum_rps")] - public long MaximumRps { get; set; } - /// /// The metadata of the batch_job. /// diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntry.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntry.cs new file mode 100644 index 0000000000..7904f4bcb7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntry.cs @@ -0,0 +1,171 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// An alert history entry representing a state transition of a health alert. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntry : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the alert history entry. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// Populated when type is api_error. + /// + [JsonProperty("api_error")] + [STJS.JsonPropertyName("api_error")] + public AlertHistoryEntryApiError ApiError { get; set; } + + /// + /// Populated when type is api_latency. + /// + [JsonProperty("api_latency")] + [STJS.JsonPropertyName("api_latency")] + public AlertHistoryEntryApiLatency ApiLatency { get; set; } + + /// + /// The time at which this transition occurred. + /// + [JsonProperty("at")] + [STJS.JsonPropertyName("at")] + public DateTime At { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Populated when type is authorization_rate_drop. + /// + [JsonProperty("authorization_rate_drop")] + [STJS.JsonPropertyName("authorization_rate_drop")] + public AlertHistoryEntryAuthorizationRateDrop AuthorizationRateDrop { get; set; } + + /// + /// Populated when type is elements_error. + /// + [JsonProperty("elements_error")] + [STJS.JsonPropertyName("elements_error")] + public AlertHistoryEntryElementsError ElementsError { get; set; } + + /// + /// Populated when type is event_generation_failure. + /// + [JsonProperty("event_generation_failure")] + [STJS.JsonPropertyName("event_generation_failure")] + public AlertHistoryEntryEventGenerationFailure EventGenerationFailure { get; set; } + + /// + /// Populated when type is fraud_rate. + /// + [JsonProperty("fraud_rate")] + [STJS.JsonPropertyName("fraud_rate")] + public AlertHistoryEntryFraudRate FraudRate { get; set; } + + /// + /// Populated when type is invoice_count_dropped. + /// + [JsonProperty("invoice_count_dropped")] + [STJS.JsonPropertyName("invoice_count_dropped")] + public AlertHistoryEntryInvoiceCountDropped InvoiceCountDropped { get; set; } + + /// + /// Populated when type is issuing_authorization_request_errors. + /// + [JsonProperty("issuing_authorization_request_errors")] + [STJS.JsonPropertyName("issuing_authorization_request_errors")] + public AlertHistoryEntryIssuingAuthorizationRequestErrors IssuingAuthorizationRequestErrors { get; set; } + + /// + /// Populated when type is issuing_authorization_request_timeout. + /// + [JsonProperty("issuing_authorization_request_timeout")] + [STJS.JsonPropertyName("issuing_authorization_request_timeout")] + public AlertHistoryEntryIssuingAuthorizationRequestTimeout IssuingAuthorizationRequestTimeout { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Populated when type is meter_event_summaries_delayed. + /// + [JsonProperty("meter_event_summaries_delayed")] + [STJS.JsonPropertyName("meter_event_summaries_delayed")] + public AlertHistoryEntryMeterEventSummariesDelayed MeterEventSummariesDelayed { get; set; } + + /// + /// Populated when type is metronome_notification_latency. + /// + [JsonProperty("metronome_notification_latency")] + [STJS.JsonPropertyName("metronome_notification_latency")] + public AlertHistoryEntryMetronomeNotificationLatency MetronomeNotificationLatency { get; set; } + + /// + /// Populated when type is payment_method_error. + /// + [JsonProperty("payment_method_error")] + [STJS.JsonPropertyName("payment_method_error")] + public AlertHistoryEntryPaymentMethodError PaymentMethodError { get; set; } + + /// + /// Populated when type is sepa_debit_delayed. + /// + [JsonProperty("sepa_debit_delayed")] + [STJS.JsonPropertyName("sepa_debit_delayed")] + public AlertHistoryEntrySepaDebitDelayed SepaDebitDelayed { get; set; } + + /// + /// Populated when type is traffic_volume_drop. + /// + [JsonProperty("traffic_volume_drop")] + [STJS.JsonPropertyName("traffic_volume_drop")] + public AlertHistoryEntryTrafficVolumeDrop TrafficVolumeDrop { get; set; } + + /// + /// The type of transition that occurred. + /// One of: impact_updated, opened, or resolved. + /// + [JsonProperty("transition")] + [STJS.JsonPropertyName("transition")] + public string Transition { get; set; } + + /// + /// The type of the alert. Determines which sub-hash field is populated. + /// One of: api_error, api_latency, authorization_rate_drop, + /// elements_error, event_generation_failure, fraud_rate, + /// invoice_count_dropped, issuing_authorization_request_errors, + /// issuing_authorization_request_timeout, meter_event_summaries_delayed, + /// metronome_notification_latency, payment_method_error, + /// sepa_debit_delayed, traffic_volume_drop, or webhook_latency. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Populated when type is webhook_latency. + /// + [JsonProperty("webhook_latency")] + [STJS.JsonPropertyName("webhook_latency")] + public AlertHistoryEntryWebhookLatency WebhookLatency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiError.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiError.cs new file mode 100644 index 0000000000..875e68e515 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiError.cs @@ -0,0 +1,64 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryApiError : StripeEntity + { + /// + /// The canonical path. + /// + [JsonProperty("canonical_path")] + [STJS.JsonPropertyName("canonical_path")] + public string CanonicalPath { get; set; } + + /// + /// The error code. + /// + [JsonProperty("error_code")] + [STJS.JsonPropertyName("error_code")] + public string ErrorCode { get; set; } + + /// + /// The HTTP method. + /// One of: DELETE, GET, POST, or PUT. + /// + [JsonProperty("http_method")] + [STJS.JsonPropertyName("http_method")] + public string HttpMethod { get; set; } + + /// + /// The HTTP status. + /// + [JsonProperty("http_status")] + [STJS.JsonPropertyName("http_status")] + public string HttpStatus { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + + /// + /// The top impacted connected accounts (only for platforms). + /// + [JsonProperty("top_impacted_accounts")] + [STJS.JsonPropertyName("top_impacted_accounts")] + public List TopImpactedAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiErrorTopImpactedAccount.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiErrorTopImpactedAccount.cs new file mode 100644 index 0000000000..d0c7704c11 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiErrorTopImpactedAccount.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryApiErrorTopImpactedAccount : StripeEntity + { + /// + /// The account ID of the impacted connected account. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiLatency.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiLatency.cs new file mode 100644 index 0000000000..e6631d1bdd --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiLatency.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryApiLatency : StripeEntity + { + /// + /// The canonical path. + /// + [JsonProperty("canonical_path")] + [STJS.JsonPropertyName("canonical_path")] + public string CanonicalPath { get; set; } + + /// + /// The HTTP method. + /// One of: DELETE, GET, POST, or PUT. + /// + [JsonProperty("http_method")] + [STJS.JsonPropertyName("http_method")] + public string HttpMethod { get; set; } + + /// + /// The HTTP status. + /// + [JsonProperty("http_status")] + [STJS.JsonPropertyName("http_status")] + public string HttpStatus { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + + /// + /// The top impacted connected accounts (only for platforms). + /// + [JsonProperty("top_impacted_accounts")] + [STJS.JsonPropertyName("top_impacted_accounts")] + public List TopImpactedAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiLatencyTopImpactedAccount.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiLatencyTopImpactedAccount.cs new file mode 100644 index 0000000000..7b318e3d6a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryApiLatencyTopImpactedAccount.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryApiLatencyTopImpactedAccount : StripeEntity + { + /// + /// The account ID of the impacted connected account. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryAuthorizationRateDrop.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryAuthorizationRateDrop.cs new file mode 100644 index 0000000000..6e1cc33968 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryAuthorizationRateDrop.cs @@ -0,0 +1,67 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryAuthorizationRateDrop : StripeEntity + { + /// + /// The type of the charge. + /// One of: money_moving, or validation. + /// + [JsonProperty("charge_type")] + [STJS.JsonPropertyName("charge_type")] + public string ChargeType { get; set; } + + /// + /// The current authorization rate percentage. + /// + [JsonProperty("current_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("current_percentage")] + public decimal CurrentPercentage { get; set; } + + /// + /// Dimensions that describe what subset of payments are impacted. + /// + [JsonProperty("dimensions")] + [STJS.JsonPropertyName("dimensions")] + public List Dimensions { get; set; } + + /// + /// The type of the payment method. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, apple_pay, au_becs_debit, + /// bacs_debit, bancontact, billie, blik, boleto, + /// card, card_present, cartes_bancaires, cashapp, + /// crypto, dummy_passthrough_card, eps, fpx, giropay, + /// grabpay, ideal, interac_present, kakao_pay, klarna, + /// konbini, kriya, kr_card, link, mb_way, + /// mobilepay, mondu, multibanco, naver_pay, ng_bank, + /// ng_bank_transfer, ng_card, ng_market, ng_ussd, + /// ng_wallet, oxxo, p24, paper_check, payco, + /// paynow, paypal, paypay, payto, pay_by_bank, + /// pix, promptpay, rechnung, revolut_pay, samsung_pay, + /// satispay, scalapay, sepa_debit, sequra, sofort, + /// sunbit, swish, twint, upi, us_bank_account, + /// vipps, wechat_pay, or zip. + /// + [JsonProperty("payment_method_type")] + [STJS.JsonPropertyName("payment_method_type")] + public string PaymentMethodType { get; set; } + + /// + /// The previous authorization rate percentage. + /// + [JsonProperty("previous_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("previous_percentage")] + public decimal PreviousPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryAuthorizationRateDropDimension.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryAuthorizationRateDropDimension.cs new file mode 100644 index 0000000000..11929b359d --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryAuthorizationRateDropDimension.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryAuthorizationRateDropDimension : StripeEntity + { + /// + /// Populated when type is issuer. + /// + [JsonProperty("issuer")] + [STJS.JsonPropertyName("issuer")] + public string Issuer { get; set; } + + /// + /// The type of the dimension. Determines which field in dimension_details is populated. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryElementsError.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryElementsError.cs new file mode 100644 index 0000000000..556f5c1053 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryElementsError.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryElementsError : StripeEntity + { + /// + /// The type of the element. + /// One of: expressCheckout, or payment. + /// + [JsonProperty("element_type")] + [STJS.JsonPropertyName("element_type")] + public string ElementType { get; set; } + + /// + /// The number of impacted sessions. + /// + [JsonProperty("impacted_sessions")] + [STJS.JsonPropertyName("impacted_sessions")] + public long ImpactedSessions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryEventGenerationFailure.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryEventGenerationFailure.cs new file mode 100644 index 0000000000..fc3addc2d7 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryEventGenerationFailure.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryEventGenerationFailure : StripeEntity + { + /// + /// The context the event should have been generated for. Only present when the account is a + /// connected account. + /// + [JsonProperty("context")] + [STJS.JsonPropertyName("context")] + public string Context { get; set; } + + /// + /// The type of event that Stripe failed to generate. + /// + [JsonProperty("event_type")] + [STJS.JsonPropertyName("event_type")] + public string EventType { get; set; } + + /// + /// The related object details. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + public AlertHistoryEntryEventGenerationFailureRelatedObject RelatedObject { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryEventGenerationFailureRelatedObject.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryEventGenerationFailureRelatedObject.cs new file mode 100644 index 0000000000..261fddc081 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryEventGenerationFailureRelatedObject.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryEventGenerationFailureRelatedObject : StripeEntity, IHasId + { + /// + /// The ID of the related object (e.g., "pi_..."). + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The type of the related object (e.g., "payment_intent"). + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryFraudRate.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryFraudRate.cs new file mode 100644 index 0000000000..6dc11616ee --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryFraudRate.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryFraudRate : StripeEntity + { + /// + /// Fraud attack type. + /// One of: spike, or sustained_attack. + /// + [JsonProperty("attack_type")] + [STJS.JsonPropertyName("attack_type")] + public string AttackType { get; set; } + + /// + /// The number of impacted requests which are detected. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// Estimated aggregated amount for the impacted requests. + /// + [JsonProperty("realized_fraud_amount")] + [STJS.JsonPropertyName("realized_fraud_amount")] + public V2.Amount RealizedFraudAmount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryInvoiceCountDropped.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryInvoiceCountDropped.cs new file mode 100644 index 0000000000..f95632e345 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryInvoiceCountDropped.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryInvoiceCountDropped : StripeEntity + { + /// + /// The observed number of invoices within the time window. + /// + [JsonProperty("observed_count")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("observed_count")] + public decimal ObservedCount { get; set; } + + /// + /// The expected threshold number of invoices within the time window. + /// + [JsonProperty("threshold_count")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("threshold_count")] + public decimal ThresholdCount { get; set; } + + /// + /// The size of the observation time window. + /// + [JsonProperty("time_window")] + [STJS.JsonPropertyName("time_window")] + public string TimeWindow { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryIssuingAuthorizationRequestErrors.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryIssuingAuthorizationRequestErrors.cs new file mode 100644 index 0000000000..2a6306903e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryIssuingAuthorizationRequestErrors.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryIssuingAuthorizationRequestErrors : StripeEntity + { + /// + /// Estimated aggregated amount for the approved requests. + /// + [JsonProperty("approved_amount")] + [STJS.JsonPropertyName("approved_amount")] + public V2.Amount ApprovedAmount { get; set; } + + /// + /// The number of approved requests which are impacted. + /// + [JsonProperty("approved_impacted_requests")] + [STJS.JsonPropertyName("approved_impacted_requests")] + public long? ApprovedImpactedRequests { get; set; } + + /// + /// Estimated aggregated amount for the declined requests. + /// + [JsonProperty("declined_amount")] + [STJS.JsonPropertyName("declined_amount")] + public V2.Amount DeclinedAmount { get; set; } + + /// + /// The number of declined requests which are impacted. + /// + [JsonProperty("declined_impacted_requests")] + [STJS.JsonPropertyName("declined_impacted_requests")] + public long? DeclinedImpactedRequests { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryIssuingAuthorizationRequestTimeout.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryIssuingAuthorizationRequestTimeout.cs new file mode 100644 index 0000000000..613819880b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryIssuingAuthorizationRequestTimeout.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryIssuingAuthorizationRequestTimeout : StripeEntity + { + /// + /// Estimated aggregated amount for the approved requests. + /// + [JsonProperty("approved_amount")] + [STJS.JsonPropertyName("approved_amount")] + public V2.Amount ApprovedAmount { get; set; } + + /// + /// The number of approved requests which are impacted. + /// + [JsonProperty("approved_impacted_requests")] + [STJS.JsonPropertyName("approved_impacted_requests")] + public long? ApprovedImpactedRequests { get; set; } + + /// + /// Estimated aggregated amount for the declined requests. + /// + [JsonProperty("declined_amount")] + [STJS.JsonPropertyName("declined_amount")] + public V2.Amount DeclinedAmount { get; set; } + + /// + /// The number of declined requests which are impacted. + /// + [JsonProperty("declined_impacted_requests")] + [STJS.JsonPropertyName("declined_impacted_requests")] + public long? DeclinedImpactedRequests { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryMeterEventSummariesDelayed.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryMeterEventSummariesDelayed.cs new file mode 100644 index 0000000000..96fbd57407 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryMeterEventSummariesDelayed.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryMeterEventSummariesDelayed : StripeEntity + { + /// + /// The ingestion method. + /// + [JsonProperty("ingestion_method")] + [STJS.JsonPropertyName("ingestion_method")] + public string IngestionMethod { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryMetronomeNotificationLatency.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryMetronomeNotificationLatency.cs new file mode 100644 index 0000000000..7797e39855 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryMetronomeNotificationLatency.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryMetronomeNotificationLatency : StripeEntity + { + /// + /// The impacted Metronome billing pipeline. + /// One of: configuration_triggered, high_cardinality_usage_triggered, + /// standard_usage_triggered, or time_triggered. + /// + [JsonProperty("pipeline")] + [STJS.JsonPropertyName("pipeline")] + public string Pipeline { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryPaymentMethodError.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryPaymentMethodError.cs new file mode 100644 index 0000000000..9c6ba71205 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryPaymentMethodError.cs @@ -0,0 +1,64 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryPaymentMethodError : StripeEntity + { + /// + /// The returned error code. + /// + [JsonProperty("error_code")] + [STJS.JsonPropertyName("error_code")] + public string ErrorCode { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + + /// + /// The type of the payment method. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, apple_pay, au_becs_debit, + /// bacs_debit, bancontact, billie, blik, boleto, + /// card, card_present, cartes_bancaires, cashapp, + /// crypto, dummy_passthrough_card, eps, fpx, giropay, + /// grabpay, ideal, interac_present, kakao_pay, klarna, + /// konbini, kriya, kr_card, link, mb_way, + /// mobilepay, mondu, multibanco, naver_pay, ng_bank, + /// ng_bank_transfer, ng_card, ng_market, ng_ussd, + /// ng_wallet, oxxo, p24, paper_check, payco, + /// paynow, paypal, paypay, payto, pay_by_bank, + /// pix, promptpay, rechnung, revolut_pay, samsung_pay, + /// satispay, scalapay, sepa_debit, sequra, sofort, + /// sunbit, swish, twint, upi, us_bank_account, + /// vipps, wechat_pay, or zip. + /// + [JsonProperty("payment_method_type")] + [STJS.JsonPropertyName("payment_method_type")] + public string PaymentMethodType { get; set; } + + /// + /// The top impacted connected accounts (only for platforms). + /// + [JsonProperty("top_impacted_accounts")] + [STJS.JsonPropertyName("top_impacted_accounts")] + public List TopImpactedAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryPaymentMethodErrorTopImpactedAccount.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryPaymentMethodErrorTopImpactedAccount.cs new file mode 100644 index 0000000000..898d66bd7f --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryPaymentMethodErrorTopImpactedAccount.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryPaymentMethodErrorTopImpactedAccount : StripeEntity + { + /// + /// The account ID of the impacted connected account. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntrySepaDebitDelayed.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntrySepaDebitDelayed.cs new file mode 100644 index 0000000000..9976628f07 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntrySepaDebitDelayed.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntrySepaDebitDelayed : StripeEntity + { + /// + /// The number of impacted payments. + /// + [JsonProperty("impacted_payments")] + [STJS.JsonPropertyName("impacted_payments")] + public long ImpactedPayments { get; set; } + + /// + /// The percentage of impacted payments. + /// + [JsonProperty("impacted_payments_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_payments_percentage")] + public decimal ImpactedPaymentsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryTrafficVolumeDrop.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryTrafficVolumeDrop.cs new file mode 100644 index 0000000000..04906d4212 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryTrafficVolumeDrop.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryTrafficVolumeDrop : StripeEntity + { + /// + /// The total volume of payment requests within the latest observation time window. + /// + [JsonProperty("actual_traffic")] + [STJS.JsonPropertyName("actual_traffic")] + public long ActualTraffic { get; set; } + + /// + /// The canonical path. + /// + [JsonProperty("canonical_path")] + [STJS.JsonPropertyName("canonical_path")] + public string CanonicalPath { get; set; } + + /// + /// The expected volume of payment requests within the latest observation time window. + /// + [JsonProperty("expected_traffic")] + [STJS.JsonPropertyName("expected_traffic")] + public long? ExpectedTraffic { get; set; } + + /// + /// The size of the observation time window. + /// + [JsonProperty("time_window")] + [STJS.JsonPropertyName("time_window")] + public string TimeWindow { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryWebhookLatency.cs b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryWebhookLatency.cs new file mode 100644 index 0000000000..5e16537954 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/AlertHistoryEntries/AlertHistoryEntryWebhookLatency.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertHistoryEntryWebhookLatency : StripeEntity + { + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/Alert.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/Alert.cs new file mode 100644 index 0000000000..69b829455a --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/Alert.cs @@ -0,0 +1,224 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// A health alert represents a detected problem affecting a merchant's Stripe integration. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class Alert : StripeEntity, IHasId, IHasObject + { + /// + /// Unique identifier for the health alert. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// Populated when type is api_error. + /// + [JsonProperty("api_error")] + [STJS.JsonPropertyName("api_error")] + public AlertApiError ApiError { get; set; } + + /// + /// Populated when type is api_latency. + /// + [JsonProperty("api_latency")] + [STJS.JsonPropertyName("api_latency")] + public AlertApiLatency ApiLatency { get; set; } + + /// + /// Populated when type is authorization_rate_drop. + /// + [JsonProperty("authorization_rate_drop")] + [STJS.JsonPropertyName("authorization_rate_drop")] + public AlertAuthorizationRateDrop AuthorizationRateDrop { get; set; } + + /// + /// Time at which the health alert was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Links to relevant documentation for diagnosing and resolving the alert. + /// + [JsonProperty("documentation_links")] + [STJS.JsonPropertyName("documentation_links")] + public List DocumentationLinks { get; set; } + + /// + /// Populated when type is elements_error. + /// + [JsonProperty("elements_error")] + [STJS.JsonPropertyName("elements_error")] + public AlertElementsError ElementsError { get; set; } + + /// + /// Populated when type is event_generation_failure. + /// + [JsonProperty("event_generation_failure")] + [STJS.JsonPropertyName("event_generation_failure")] + public AlertEventGenerationFailure EventGenerationFailure { get; set; } + + /// + /// Populated when type is fraud_rate. + /// + [JsonProperty("fraud_rate")] + [STJS.JsonPropertyName("fraud_rate")] + public AlertFraudRate FraudRate { get; set; } + + /// + /// The grouping key for the alert. + /// + [JsonProperty("grouping_key")] + [STJS.JsonPropertyName("grouping_key")] + public string GroupingKey { get; set; } + + /// + /// Whether the alert is linked to an incident or is a self-contained problem. + /// One of: incident, or standalone. + /// + [JsonProperty("grouping_type")] + [STJS.JsonPropertyName("grouping_type")] + public string GroupingType { get; set; } + + /// + /// Populated when type is invoice_count_dropped. + /// + [JsonProperty("invoice_count_dropped")] + [STJS.JsonPropertyName("invoice_count_dropped")] + public AlertInvoiceCountDropped InvoiceCountDropped { get; set; } + + /// + /// Populated when type is issuing_authorization_request_errors. + /// + [JsonProperty("issuing_authorization_request_errors")] + [STJS.JsonPropertyName("issuing_authorization_request_errors")] + public AlertIssuingAuthorizationRequestErrors IssuingAuthorizationRequestErrors { get; set; } + + /// + /// Populated when type is issuing_authorization_request_timeout. + /// + [JsonProperty("issuing_authorization_request_timeout")] + [STJS.JsonPropertyName("issuing_authorization_request_timeout")] + public AlertIssuingAuthorizationRequestTimeout IssuingAuthorizationRequestTimeout { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Populated when type is meter_event_summaries_delayed. + /// + [JsonProperty("meter_event_summaries_delayed")] + [STJS.JsonPropertyName("meter_event_summaries_delayed")] + public AlertMeterEventSummariesDelayed MeterEventSummariesDelayed { get; set; } + + /// + /// Populated when type is metronome_notification_latency. + /// + [JsonProperty("metronome_notification_latency")] + [STJS.JsonPropertyName("metronome_notification_latency")] + public AlertMetronomeNotificationLatency MetronomeNotificationLatency { get; set; } + + /// + /// Populated when type is payment_method_error. + /// + [JsonProperty("payment_method_error")] + [STJS.JsonPropertyName("payment_method_error")] + public AlertPaymentMethodError PaymentMethodError { get; set; } + + /// + /// The time when the user experience has returned to expected levels. Null if the alert is + /// still open. + /// + [JsonProperty("resolved_at")] + [STJS.JsonPropertyName("resolved_at")] + public DateTime? ResolvedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Populated when type is sepa_debit_delayed. + /// + [JsonProperty("sepa_debit_delayed")] + [STJS.JsonPropertyName("sepa_debit_delayed")] + public AlertSepaDebitDelayed SepaDebitDelayed { get; set; } + + /// + /// The severity of the alert. + /// One of: critical, or non_critical. + /// + [JsonProperty("severity")] + [STJS.JsonPropertyName("severity")] + public string Severity { get; set; } + + /// + /// The time when impact on the user experience was first detected. + /// + [JsonProperty("started_at")] + [STJS.JsonPropertyName("started_at")] + public DateTime StartedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// The current status of the alert. + /// One of: open, or resolved. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// A short description of the alert. + /// + [JsonProperty("summary")] + [STJS.JsonPropertyName("summary")] + public string Summary { get; set; } + + /// + /// Populated when type is traffic_volume_drop. + /// + [JsonProperty("traffic_volume_drop")] + [STJS.JsonPropertyName("traffic_volume_drop")] + public AlertTrafficVolumeDrop TrafficVolumeDrop { get; set; } + + /// + /// The type of the alert. Determines which sub-hash field is populated. + /// One of: api_error, api_latency, authorization_rate_drop, + /// elements_error, event_generation_failure, fraud_rate, + /// invoice_count_dropped, issuing_authorization_request_errors, + /// issuing_authorization_request_timeout, meter_event_summaries_delayed, + /// metronome_notification_latency, payment_method_error, + /// sepa_debit_delayed, traffic_volume_drop, or webhook_latency. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Populated when type is webhook_latency. + /// + [JsonProperty("webhook_latency")] + [STJS.JsonPropertyName("webhook_latency")] + public AlertWebhookLatency WebhookLatency { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiError.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiError.cs new file mode 100644 index 0000000000..adaafb1be0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiError.cs @@ -0,0 +1,64 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertApiError : StripeEntity + { + /// + /// The canonical path. + /// + [JsonProperty("canonical_path")] + [STJS.JsonPropertyName("canonical_path")] + public string CanonicalPath { get; set; } + + /// + /// The error code. + /// + [JsonProperty("error_code")] + [STJS.JsonPropertyName("error_code")] + public string ErrorCode { get; set; } + + /// + /// The HTTP method. + /// One of: DELETE, GET, POST, or PUT. + /// + [JsonProperty("http_method")] + [STJS.JsonPropertyName("http_method")] + public string HttpMethod { get; set; } + + /// + /// The HTTP status. + /// + [JsonProperty("http_status")] + [STJS.JsonPropertyName("http_status")] + public string HttpStatus { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + + /// + /// The top impacted connected accounts (only for platforms). + /// + [JsonProperty("top_impacted_accounts")] + [STJS.JsonPropertyName("top_impacted_accounts")] + public List TopImpactedAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiErrorTopImpactedAccount.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiErrorTopImpactedAccount.cs new file mode 100644 index 0000000000..bac419c0e1 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiErrorTopImpactedAccount.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertApiErrorTopImpactedAccount : StripeEntity + { + /// + /// The account ID of the impacted connected account. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiLatency.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiLatency.cs new file mode 100644 index 0000000000..8e6d42e13b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiLatency.cs @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertApiLatency : StripeEntity + { + /// + /// The canonical path. + /// + [JsonProperty("canonical_path")] + [STJS.JsonPropertyName("canonical_path")] + public string CanonicalPath { get; set; } + + /// + /// The HTTP method. + /// One of: DELETE, GET, POST, or PUT. + /// + [JsonProperty("http_method")] + [STJS.JsonPropertyName("http_method")] + public string HttpMethod { get; set; } + + /// + /// The HTTP status. + /// + [JsonProperty("http_status")] + [STJS.JsonPropertyName("http_status")] + public string HttpStatus { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + + /// + /// The top impacted connected accounts (only for platforms). + /// + [JsonProperty("top_impacted_accounts")] + [STJS.JsonPropertyName("top_impacted_accounts")] + public List TopImpactedAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiLatencyTopImpactedAccount.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiLatencyTopImpactedAccount.cs new file mode 100644 index 0000000000..767a78c6d0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertApiLatencyTopImpactedAccount.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertApiLatencyTopImpactedAccount : StripeEntity + { + /// + /// The account ID of the impacted connected account. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertAuthorizationRateDrop.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertAuthorizationRateDrop.cs new file mode 100644 index 0000000000..778e7ae7d9 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertAuthorizationRateDrop.cs @@ -0,0 +1,67 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertAuthorizationRateDrop : StripeEntity + { + /// + /// The type of the charge. + /// One of: money_moving, or validation. + /// + [JsonProperty("charge_type")] + [STJS.JsonPropertyName("charge_type")] + public string ChargeType { get; set; } + + /// + /// The current authorization rate percentage. + /// + [JsonProperty("current_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("current_percentage")] + public decimal CurrentPercentage { get; set; } + + /// + /// Dimensions that describe what subset of payments are impacted. + /// + [JsonProperty("dimensions")] + [STJS.JsonPropertyName("dimensions")] + public List Dimensions { get; set; } + + /// + /// The type of the payment method. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, apple_pay, au_becs_debit, + /// bacs_debit, bancontact, billie, blik, boleto, + /// card, card_present, cartes_bancaires, cashapp, + /// crypto, dummy_passthrough_card, eps, fpx, giropay, + /// grabpay, ideal, interac_present, kakao_pay, klarna, + /// konbini, kriya, kr_card, link, mb_way, + /// mobilepay, mondu, multibanco, naver_pay, ng_bank, + /// ng_bank_transfer, ng_card, ng_market, ng_ussd, + /// ng_wallet, oxxo, p24, paper_check, payco, + /// paynow, paypal, paypay, payto, pay_by_bank, + /// pix, promptpay, rechnung, revolut_pay, samsung_pay, + /// satispay, scalapay, sepa_debit, sequra, sofort, + /// sunbit, swish, twint, upi, us_bank_account, + /// vipps, wechat_pay, or zip. + /// + [JsonProperty("payment_method_type")] + [STJS.JsonPropertyName("payment_method_type")] + public string PaymentMethodType { get; set; } + + /// + /// The previous authorization rate percentage. + /// + [JsonProperty("previous_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("previous_percentage")] + public decimal PreviousPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertAuthorizationRateDropDimension.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertAuthorizationRateDropDimension.cs new file mode 100644 index 0000000000..5370ab3841 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertAuthorizationRateDropDimension.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertAuthorizationRateDropDimension : StripeEntity + { + /// + /// Populated when type is issuer. + /// + [JsonProperty("issuer")] + [STJS.JsonPropertyName("issuer")] + public string Issuer { get; set; } + + /// + /// The type of the dimension. Determines which field in dimension_details is populated. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertDocumentationLink.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertDocumentationLink.cs new file mode 100644 index 0000000000..1656f05432 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertDocumentationLink.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertDocumentationLink : StripeEntity + { + /// + /// A human-readable label for the link. + /// + [JsonProperty("label")] + [STJS.JsonPropertyName("label")] + public string Label { get; set; } + + /// + /// The URL of the documentation. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertElementsError.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertElementsError.cs new file mode 100644 index 0000000000..798f1a1e9b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertElementsError.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertElementsError : StripeEntity + { + /// + /// The type of the element. + /// One of: expressCheckout, or payment. + /// + [JsonProperty("element_type")] + [STJS.JsonPropertyName("element_type")] + public string ElementType { get; set; } + + /// + /// The number of impacted sessions. + /// + [JsonProperty("impacted_sessions")] + [STJS.JsonPropertyName("impacted_sessions")] + public long ImpactedSessions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertEventGenerationFailure.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertEventGenerationFailure.cs new file mode 100644 index 0000000000..18c3d008e3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertEventGenerationFailure.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertEventGenerationFailure : StripeEntity + { + /// + /// The context the event should have been generated for. Only present when the account is a + /// connected account. + /// + [JsonProperty("context")] + [STJS.JsonPropertyName("context")] + public string Context { get; set; } + + /// + /// The type of event that Stripe failed to generate. + /// + [JsonProperty("event_type")] + [STJS.JsonPropertyName("event_type")] + public string EventType { get; set; } + + /// + /// The related object details. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + public AlertEventGenerationFailureRelatedObject RelatedObject { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertEventGenerationFailureRelatedObject.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertEventGenerationFailureRelatedObject.cs new file mode 100644 index 0000000000..5ac09bdfd4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertEventGenerationFailureRelatedObject.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertEventGenerationFailureRelatedObject : StripeEntity, IHasId + { + /// + /// The ID of the related object (e.g., "pi_..."). + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The type of the related object (e.g., "payment_intent"). + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// The API URL for the related object (e.g., "/v1/payment_intents/pi_..."). + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertFraudRate.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertFraudRate.cs new file mode 100644 index 0000000000..6471bc4125 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertFraudRate.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertFraudRate : StripeEntity + { + /// + /// Fraud attack type. + /// One of: spike, or sustained_attack. + /// + [JsonProperty("attack_type")] + [STJS.JsonPropertyName("attack_type")] + public string AttackType { get; set; } + + /// + /// The number of impacted requests which are detected. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// Estimated aggregated amount for the impacted requests. + /// + [JsonProperty("realized_fraud_amount")] + [STJS.JsonPropertyName("realized_fraud_amount")] + public V2.Amount RealizedFraudAmount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertInvoiceCountDropped.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertInvoiceCountDropped.cs new file mode 100644 index 0000000000..94b77197ad --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertInvoiceCountDropped.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertInvoiceCountDropped : StripeEntity + { + /// + /// The observed number of invoices within the time window. + /// + [JsonProperty("observed_count")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("observed_count")] + public decimal ObservedCount { get; set; } + + /// + /// The expected threshold number of invoices within the time window. + /// + [JsonProperty("threshold_count")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("threshold_count")] + public decimal ThresholdCount { get; set; } + + /// + /// The size of the observation time window. + /// + [JsonProperty("time_window")] + [STJS.JsonPropertyName("time_window")] + public string TimeWindow { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertIssuingAuthorizationRequestErrors.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertIssuingAuthorizationRequestErrors.cs new file mode 100644 index 0000000000..eaff7a2b0b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertIssuingAuthorizationRequestErrors.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertIssuingAuthorizationRequestErrors : StripeEntity + { + /// + /// Estimated aggregated amount for the approved requests. + /// + [JsonProperty("approved_amount")] + [STJS.JsonPropertyName("approved_amount")] + public V2.Amount ApprovedAmount { get; set; } + + /// + /// The number of approved requests which are impacted. + /// + [JsonProperty("approved_impacted_requests")] + [STJS.JsonPropertyName("approved_impacted_requests")] + public long? ApprovedImpactedRequests { get; set; } + + /// + /// Estimated aggregated amount for the declined requests. + /// + [JsonProperty("declined_amount")] + [STJS.JsonPropertyName("declined_amount")] + public V2.Amount DeclinedAmount { get; set; } + + /// + /// The number of declined requests which are impacted. + /// + [JsonProperty("declined_impacted_requests")] + [STJS.JsonPropertyName("declined_impacted_requests")] + public long? DeclinedImpactedRequests { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertIssuingAuthorizationRequestTimeout.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertIssuingAuthorizationRequestTimeout.cs new file mode 100644 index 0000000000..8b3dbcacae --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertIssuingAuthorizationRequestTimeout.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertIssuingAuthorizationRequestTimeout : StripeEntity + { + /// + /// Estimated aggregated amount for the approved requests. + /// + [JsonProperty("approved_amount")] + [STJS.JsonPropertyName("approved_amount")] + public V2.Amount ApprovedAmount { get; set; } + + /// + /// The number of approved requests which are impacted. + /// + [JsonProperty("approved_impacted_requests")] + [STJS.JsonPropertyName("approved_impacted_requests")] + public long? ApprovedImpactedRequests { get; set; } + + /// + /// Estimated aggregated amount for the declined requests. + /// + [JsonProperty("declined_amount")] + [STJS.JsonPropertyName("declined_amount")] + public V2.Amount DeclinedAmount { get; set; } + + /// + /// The number of declined requests which are impacted. + /// + [JsonProperty("declined_impacted_requests")] + [STJS.JsonPropertyName("declined_impacted_requests")] + public long? DeclinedImpactedRequests { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertMeterEventSummariesDelayed.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertMeterEventSummariesDelayed.cs new file mode 100644 index 0000000000..92928bbec5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertMeterEventSummariesDelayed.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertMeterEventSummariesDelayed : StripeEntity + { + /// + /// The ingestion method. + /// + [JsonProperty("ingestion_method")] + [STJS.JsonPropertyName("ingestion_method")] + public string IngestionMethod { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertMetronomeNotificationLatency.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertMetronomeNotificationLatency.cs new file mode 100644 index 0000000000..1f7464c624 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertMetronomeNotificationLatency.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertMetronomeNotificationLatency : StripeEntity + { + /// + /// The impacted Metronome billing pipeline. + /// One of: configuration_triggered, high_cardinality_usage_triggered, + /// standard_usage_triggered, or time_triggered. + /// + [JsonProperty("pipeline")] + [STJS.JsonPropertyName("pipeline")] + public string Pipeline { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertPaymentMethodError.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertPaymentMethodError.cs new file mode 100644 index 0000000000..4828682540 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertPaymentMethodError.cs @@ -0,0 +1,64 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertPaymentMethodError : StripeEntity + { + /// + /// The returned error code. + /// + [JsonProperty("error_code")] + [STJS.JsonPropertyName("error_code")] + public string ErrorCode { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + + /// + /// The type of the payment method. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, apple_pay, au_becs_debit, + /// bacs_debit, bancontact, billie, blik, boleto, + /// card, card_present, cartes_bancaires, cashapp, + /// crypto, dummy_passthrough_card, eps, fpx, giropay, + /// grabpay, ideal, interac_present, kakao_pay, klarna, + /// konbini, kriya, kr_card, link, mb_way, + /// mobilepay, mondu, multibanco, naver_pay, ng_bank, + /// ng_bank_transfer, ng_card, ng_market, ng_ussd, + /// ng_wallet, oxxo, p24, paper_check, payco, + /// paynow, paypal, paypay, payto, pay_by_bank, + /// pix, promptpay, rechnung, revolut_pay, samsung_pay, + /// satispay, scalapay, sepa_debit, sequra, sofort, + /// sunbit, swish, twint, upi, us_bank_account, + /// vipps, wechat_pay, or zip. + /// + [JsonProperty("payment_method_type")] + [STJS.JsonPropertyName("payment_method_type")] + public string PaymentMethodType { get; set; } + + /// + /// The top impacted connected accounts (only for platforms). + /// + [JsonProperty("top_impacted_accounts")] + [STJS.JsonPropertyName("top_impacted_accounts")] + public List TopImpactedAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertPaymentMethodErrorTopImpactedAccount.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertPaymentMethodErrorTopImpactedAccount.cs new file mode 100644 index 0000000000..c5f01a10dc --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertPaymentMethodErrorTopImpactedAccount.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertPaymentMethodErrorTopImpactedAccount : StripeEntity + { + /// + /// The account ID of the impacted connected account. + /// + [JsonProperty("account")] + [STJS.JsonPropertyName("account")] + public string Account { get; set; } + + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + + /// + /// The percentage of impacted requests. + /// + [JsonProperty("impacted_requests_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_requests_percentage")] + public decimal? ImpactedRequestsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertSepaDebitDelayed.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertSepaDebitDelayed.cs new file mode 100644 index 0000000000..8b66a368f5 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertSepaDebitDelayed.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertSepaDebitDelayed : StripeEntity + { + /// + /// The number of impacted payments. + /// + [JsonProperty("impacted_payments")] + [STJS.JsonPropertyName("impacted_payments")] + public long ImpactedPayments { get; set; } + + /// + /// The percentage of impacted payments. + /// + [JsonProperty("impacted_payments_percentage")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("impacted_payments_percentage")] + public decimal ImpactedPaymentsPercentage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertTrafficVolumeDrop.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertTrafficVolumeDrop.cs new file mode 100644 index 0000000000..fdfb3a4525 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertTrafficVolumeDrop.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertTrafficVolumeDrop : StripeEntity + { + /// + /// The total volume of payment requests within the latest observation time window. + /// + [JsonProperty("actual_traffic")] + [STJS.JsonPropertyName("actual_traffic")] + public long ActualTraffic { get; set; } + + /// + /// The canonical path. + /// + [JsonProperty("canonical_path")] + [STJS.JsonPropertyName("canonical_path")] + public string CanonicalPath { get; set; } + + /// + /// The expected volume of payment requests within the latest observation time window. + /// + [JsonProperty("expected_traffic")] + [STJS.JsonPropertyName("expected_traffic")] + public long? ExpectedTraffic { get; set; } + + /// + /// The size of the observation time window. + /// + [JsonProperty("time_window")] + [STJS.JsonPropertyName("time_window")] + public string TimeWindow { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertWebhookLatency.cs b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertWebhookLatency.cs new file mode 100644 index 0000000000..ab0f1a7d73 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Health/Alerts/AlertWebhookLatency.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AlertWebhookLatency : StripeEntity + { + /// + /// The number of impacted requests. + /// + [JsonProperty("impacted_requests")] + [STJS.JsonPropertyName("impacted_requests")] + public long ImpactedRequests { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddressDebitSimulations/FinancialAddressDebitSimulation.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddressDebitSimulations/FinancialAddressDebitSimulation.cs new file mode 100644 index 0000000000..049f273cd8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddressDebitSimulations/FinancialAddressDebitSimulation.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// Debit Simulations represent a simulated debit transaction applied to financial addresses + /// for testing purposes. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class FinancialAddressDebitSimulation : StripeEntity, IHasObject + { + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// The status of the request, signifying whether a simulated debit was initiated. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsUsBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsUsBankAccount.cs index 645b3d82ba..c05839ec11 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsUsBankAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentialsUsBankAccount.cs @@ -36,6 +36,13 @@ public class FinancialAddressCredentialsUsBankAccount : StripeEntity + /// The BIC of the bank or financial institution. + /// + [JsonProperty("bic")] + [STJS.JsonPropertyName("bic")] + public string Bic { get; set; } + /// /// The last four digits of the US Bank Account number. This will always be returned. To /// view the full account number when retrieving or listing FinancialAddresses, use the @@ -51,12 +58,5 @@ public class FinancialAddressCredentialsUsBankAccount : StripeEntity - /// The swift code of the bank or financial institution. - /// - [JsonProperty("swift_code")] - [STJS.JsonPropertyName("swift_code")] - public string SwiftCode { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs index b0cff9816a..edbbcfd6c6 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPayment.cs @@ -162,7 +162,8 @@ public class OutboundPayment : StripeEntity, IHasId, IHasMetada public string Status { get; set; } /// - /// Status details for an OutboundPayment in a failed or returned state. + /// Status details for an OutboundPayment in a processing, failed, or + /// returned state. /// [JsonProperty("status_details")] [STJS.JsonPropertyName("status_details")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptionsPaperCheck.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptionsPaperCheck.cs index e2b7f2cc8f..66115d570a 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptionsPaperCheck.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptionsPaperCheck.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class OutboundPaymentDeliveryOptionsPaperCheck : StripeEntity { + /// + /// The ID of a file to include as an attachment with the paper check. + /// + [JsonProperty("attachment")] + [STJS.JsonPropertyName("attachment")] + public string Attachment { get; set; } + /// /// Memo printed on the memo field of the check. /// diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetails.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetails.cs index aaa14e28dd..9678848167 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetails.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetails.cs @@ -15,6 +15,13 @@ public class OutboundPaymentStatusDetails : StripeEntity + /// The processing status details. + /// + [JsonProperty("processing")] + [STJS.JsonPropertyName("processing")] + public OutboundPaymentStatusDetailsProcessing Processing { get; set; } + /// /// The returned status reason. /// diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsFailed.cs index 468efb2129..0e3050da6f 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsFailed.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsFailed.cs @@ -10,11 +10,13 @@ public class OutboundPaymentStatusDetailsFailed : StripeEntity /// Open Enum. The failed status reason. - /// One of: paper_check_attachment_too_large, paper_check_expired, + /// One of: fx_rate_drift_exceeded_after_review, + /// paper_check_attachment_too_large, paper_check_expired, /// paper_check_undeliverable, payout_method_amount_limit_exceeded, /// payout_method_declined, payout_method_does_not_exist, /// payout_method_expired, payout_method_unsupported, - /// payout_method_usage_frequency_limit_exceeded, or unknown_failure. + /// payout_method_usage_frequency_limit_exceeded, review_rejected, or + /// unknown_failure. /// [JsonProperty("reason")] [STJS.JsonPropertyName("reason")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsProcessing.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsProcessing.cs new file mode 100644 index 0000000000..eeac1a0480 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentStatusDetailsProcessing.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundPaymentStatusDetailsProcessing : StripeEntity + { + /// + /// Open Enum. The processing status reason. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs index bfe5379c05..528e735159 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentTo.cs @@ -22,6 +22,13 @@ public class OutboundPaymentTo : StripeEntity [STJS.JsonPropertyName("payout_method")] public string PayoutMethod { get; set; } + /// + /// Payout method options for the OutboundPayment. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public OutboundPaymentToPayoutMethodOptions PayoutMethodOptions { get; set; } + /// /// To which account the OutboundPayment is sent. /// diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptions.cs new file mode 100644 index 0000000000..0798d012ec --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundPaymentToPayoutMethodOptions : StripeEntity + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public OutboundPaymentToPayoutMethodOptionsBankAccount BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccount.cs new file mode 100644 index 0000000000..6e49cf8fb4 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccount.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundPaymentToPayoutMethodOptionsBankAccount : StripeEntity + { + /// + /// Per-network configuration options. + /// + [JsonProperty("preferred_network_options")] + [STJS.JsonPropertyName("preferred_network_options")] + public OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptions PreferredNetworkOptions { get; set; } + + /// + /// The preferred networks to use for this OutboundPayment. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptions.cs new file mode 100644 index 0000000000..3deb228bbb --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptions : StripeEntity + { + /// + /// ACH-specific network options. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch Ach { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch.cs new file mode 100644 index 0000000000..7eedc20532 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundPaymentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch : StripeEntity + { + /// + /// Open Enum. ACH submission timing. + /// One of: next_day, or same_day. + /// + [JsonProperty("submission")] + [STJS.JsonPropertyName("submission")] + public string Submission { get; set; } + + /// + /// The transaction purpose for this ACH payment. + /// + [JsonProperty("transaction_purpose")] + [STJS.JsonPropertyName("transaction_purpose")] + public string TransactionPurpose { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs index 994fdfccc7..be783aa749 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransfer.cs @@ -140,7 +140,8 @@ public class OutboundTransfer : StripeEntity, IHasId, IHasMeta public string Status { get; set; } /// - /// Status details for an OutboundTransfer in a failed or returned state. + /// Status details for an OutboundTransfer in a processing, failed, or + /// returned state. /// [JsonProperty("status_details")] [STJS.JsonPropertyName("status_details")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetails.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetails.cs index 55ff10a6b7..545ade4028 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetails.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetails.cs @@ -15,6 +15,13 @@ public class OutboundTransferStatusDetails : StripeEntity + /// The processing status details. + /// + [JsonProperty("processing")] + [STJS.JsonPropertyName("processing")] + public OutboundTransferStatusDetailsProcessing Processing { get; set; } + /// /// The returned status reason. /// diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsFailed.cs index 949047d69d..3241f1c7d4 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsFailed.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsFailed.cs @@ -10,10 +10,11 @@ public class OutboundTransferStatusDetailsFailed : StripeEntity /// Open Enum. The failed status reason. - /// One of: payout_method_amount_limit_exceeded, payout_method_declined, + /// One of: fx_rate_drift_exceeded_after_review, + /// payout_method_amount_limit_exceeded, payout_method_declined, /// payout_method_does_not_exist, payout_method_expired, /// payout_method_unsupported, payout_method_usage_frequency_limit_exceeded, - /// or unknown_failure. + /// review_rejected, or unknown_failure. /// [JsonProperty("reason")] [STJS.JsonPropertyName("reason")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsProcessing.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsProcessing.cs new file mode 100644 index 0000000000..89b151a94a --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferStatusDetailsProcessing.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundTransferStatusDetailsProcessing : StripeEntity + { + /// + /// Open Enum. The processing status reason. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs index b8c3cb864d..42f6c0926e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferTo.cs @@ -21,5 +21,12 @@ public class OutboundTransferTo : StripeEntity [JsonProperty("payout_method")] [STJS.JsonPropertyName("payout_method")] public string PayoutMethod { get; set; } + + /// + /// Payout method options for the OutboundTransfer. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public OutboundTransferToPayoutMethodOptions PayoutMethodOptions { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToPayoutMethodOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToPayoutMethodOptions.cs new file mode 100644 index 0000000000..3f00acca36 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToPayoutMethodOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundTransferToPayoutMethodOptions : StripeEntity + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public OutboundTransferToPayoutMethodOptionsBankAccount BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToPayoutMethodOptionsBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToPayoutMethodOptionsBankAccount.cs new file mode 100644 index 0000000000..bb1f14ef9d --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundTransfers/OutboundTransferToPayoutMethodOptionsBankAccount.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class OutboundTransferToPayoutMethodOptionsBankAccount : StripeEntity + { + /// + /// The preferred networks to use for this OutboundTransfer. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntent.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntent.cs new file mode 100644 index 0000000000..9e6959d7ec --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntent.cs @@ -0,0 +1,139 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// PayoutIntent represents an intent to send funds from a Financial Account to a payout + /// method. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntent : StripeEntity, IHasId, IHasMetadata, IHasObject + { + /// + /// Unique identifier for the PayoutIntent. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// The monetary amount to be sent. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public V2.Amount Amount { get; set; } + + /// + /// Time at which the PayoutIntent was created. Represented as a RFC 3339 date & time + /// UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// An arbitrary string attached to the PayoutIntent. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The FinancialAccount that funds are pulled from. + /// + [JsonProperty("from")] + [STJS.JsonPropertyName("from")] + public PayoutIntentFrom From { get; set; } + + /// + /// Details about the latest payout associated with this PayoutIntent. + /// + [JsonProperty("latest_payout")] + [STJS.JsonPropertyName("latest_payout")] + public PayoutIntentLatestPayout LatestPayout { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Next action required for a PayoutIntent in the requires_action state. Populated when + /// status is requires_action. + /// + [JsonProperty("next_action")] + [STJS.JsonPropertyName("next_action")] + public PayoutIntentNextAction NextAction { get; set; } + + /// + /// Details about the OutboundPayment notification settings for recipient. Only applicable + /// to OutboundPayment. + /// + [JsonProperty("recipient_notification")] + [STJS.JsonPropertyName("recipient_notification")] + public PayoutIntentRecipientNotification RecipientNotification { get; set; } + + /// + /// Scheduling options for the payout. If this is nil, we assume immediate execution. + /// + [JsonProperty("schedule_options")] + [STJS.JsonPropertyName("schedule_options")] + public PayoutIntentScheduleOptions ScheduleOptions { get; set; } + + /// + /// The description that appears on the receiving end for the payout (for example, on a bank + /// statement). + /// + [JsonProperty("statement_descriptor")] + [STJS.JsonPropertyName("statement_descriptor")] + public string StatementDescriptor { get; set; } + + /// + /// Open Enum. Current status of the PayoutIntent: pending, processing, + /// posted, canceled, requires_action. + /// One of: canceled, pending, posted, processing, or + /// requires_action. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Hash containing timestamps of when transitioned to a particular status. + /// + [JsonProperty("status_transitions")] + [STJS.JsonPropertyName("status_transitions")] + public PayoutIntentStatusTransitions StatusTransitions { get; set; } + + /// + /// To which payout method the payout is sent. + /// + [JsonProperty("to")] + [STJS.JsonPropertyName("to")] + public PayoutIntentTo To { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentFrom.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentFrom.cs new file mode 100644 index 0000000000..47a37670c0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentFrom.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentFrom : StripeEntity + { + /// + /// The currency of the financial account. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The FinancialAccount that funds are pulled from. + /// + [JsonProperty("financial_account")] + [STJS.JsonPropertyName("financial_account")] + public string FinancialAccount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentLatestPayout.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentLatestPayout.cs new file mode 100644 index 0000000000..3b534d204e --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentLatestPayout.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentLatestPayout : StripeEntity + { + /// + /// The ID of the OutboundPayment, if applicable. + /// + [JsonProperty("outbound_payment")] + [STJS.JsonPropertyName("outbound_payment")] + public string OutboundPayment { get; set; } + + /// + /// The ID of the OutboundTransfer, if applicable. + /// + [JsonProperty("outbound_transfer")] + [STJS.JsonPropertyName("outbound_transfer")] + public string OutboundTransfer { get; set; } + + /// + /// The type of payout. + /// One of: outbound_payment, or outbound_transfer. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentNextAction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentNextAction.cs new file mode 100644 index 0000000000..3dabde08b8 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentNextAction.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentNextAction : StripeEntity + { + /// + /// Details about a failure that requires user action. Populated when type is + /// handle_failure. + /// + [JsonProperty("handle_failure")] + [STJS.JsonPropertyName("handle_failure")] + public PayoutIntentNextActionHandleFailure HandleFailure { get; set; } + + /// + /// Open Enum. The type of next action required. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentNextActionHandleFailure.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentNextActionHandleFailure.cs new file mode 100644 index 0000000000..5e250b9573 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentNextActionHandleFailure.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentNextActionHandleFailure : StripeEntity + { + /// + /// Open Enum. The reason for the failure. + /// One of: account_not_configured_as_recipient, + /// currency_not_supported_for_financial_account_balance, + /// feature_not_active_for_recipient, fx_rate_drift_exceeded_after_review, + /// insufficient_funds, payout_method_account_type_incorrect, + /// payout_method_amount_limit_exceeded, payout_method_canceled_by_customer, + /// payout_method_closed, payout_method_currency_unsupported, + /// payout_method_declined, payout_method_does_not_exist, + /// payout_method_expired, payout_method_holder_address_incorrect, + /// payout_method_holder_details_incorrect, + /// payout_method_holder_name_incorrect, payout_method_invalid_account_number, + /// payout_method_restricted, payout_method_unsupported, + /// payout_method_usage_frequency_limit_exceeded, recalled, + /// review_rejected, to_destination_invalid, or unknown_failure. + /// + [JsonProperty("failure_reason")] + [STJS.JsonPropertyName("failure_reason")] + public string FailureReason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentRecipientNotification.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentRecipientNotification.cs new file mode 100644 index 0000000000..20d82190be --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentRecipientNotification.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentRecipientNotification : StripeEntity + { + /// + /// Closed Enum. Configuration option to enable or disable notifications to recipients. Do + /// not send notifications when setting is NONE. Default to account setting when setting is + /// CONFIGURED or not set. + /// One of: configured, or none. + /// + [JsonProperty("setting")] + [STJS.JsonPropertyName("setting")] + public string Setting { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentScheduleOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentScheduleOptions.cs new file mode 100644 index 0000000000..7b25930bad --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentScheduleOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentScheduleOptions : StripeEntity + { + /// + /// The date when the payout should be executed, in YYYY-MM-DD format. + /// + [JsonProperty("execute_on")] + [STJS.JsonPropertyName("execute_on")] + public string ExecuteOn { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentStatusTransitions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentStatusTransitions.cs new file mode 100644 index 0000000000..0fd100321c --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentStatusTransitions.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentStatusTransitions : StripeEntity + { + /// + /// Timestamp describing when a PayoutIntent changed status to canceled. Represented + /// as a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("canceled_at")] + [STJS.JsonPropertyName("canceled_at")] + public DateTime? CanceledAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp describing when a PayoutIntent changed status to posted. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("posted_at")] + [STJS.JsonPropertyName("posted_at")] + public DateTime? PostedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp describing when a PayoutIntent changed status to processing. + /// Represented as a RFC 3339 date & time UTC value in millisecond precision, for + /// example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("processing_at")] + [STJS.JsonPropertyName("processing_at")] + public DateTime? ProcessingAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Timestamp describing when a PayoutIntent changed status to requires_action. + /// Represented as a RFC 3339 date & time UTC value in millisecond precision, for + /// example: 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("requires_action_at")] + [STJS.JsonPropertyName("requires_action_at")] + public DateTime? RequiresActionAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentTo.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentTo.cs new file mode 100644 index 0000000000..75df9b5e53 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentTo.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentTo : StripeEntity + { + /// + /// The currency to send to the recipient. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The payout method ID. Optional for OutboundPayment if recipient has default payment + /// method. Required for OutboundTransfer. + /// + [JsonProperty("payout_method")] + [STJS.JsonPropertyName("payout_method")] + public string PayoutMethod { get; set; } + + /// + /// Payout method options for the PayoutIntent. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public PayoutIntentToPayoutMethodOptions PayoutMethodOptions { get; set; } + + /// + /// The recipient ID. Only relevant for OutboundPayment. + /// + [JsonProperty("recipient")] + [STJS.JsonPropertyName("recipient")] + public string Recipient { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptions.cs new file mode 100644 index 0000000000..9b7c7457a6 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentToPayoutMethodOptions : StripeEntity + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public PayoutIntentToPayoutMethodOptionsBankAccount BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccount.cs new file mode 100644 index 0000000000..3301794463 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccount.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentToPayoutMethodOptionsBankAccount : StripeEntity + { + /// + /// Per-network configuration options. + /// + [JsonProperty("preferred_network_options")] + [STJS.JsonPropertyName("preferred_network_options")] + public PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptions PreferredNetworkOptions { get; set; } + + /// + /// The preferred networks to use for this PayoutIntent. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptions.cs new file mode 100644 index 0000000000..dea0c0197d --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptions : StripeEntity + { + /// + /// ACH-specific network options. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch Ach { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch.cs b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch.cs new file mode 100644 index 0000000000..2005660bcd --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/PayoutIntents/PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PayoutIntentToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAch : StripeEntity + { + /// + /// Open Enum. ACH submission timing. + /// One of: next_day, or same_day. + /// + [JsonProperty("submission")] + [STJS.JsonPropertyName("submission")] + public string Submission { get; set; } + + /// + /// The transaction purpose for this ACH payment. + /// + [JsonProperty("transaction_purpose")] + [STJS.JsonPropertyName("transaction_purpose")] + public string TransactionPurpose { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferUsBankAccount.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferUsBankAccount.cs index 2222b42c5d..720c17aecf 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferUsBankAccount.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransferUsBankAccount.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ReceivedCreditBankTransferUsBankAccount : StripeEntity { + /// + /// The name of the account holder that sent the payment. + /// + [JsonProperty("account_holder_name")] + [STJS.JsonPropertyName("account_holder_name")] + public string AccountHolderName { get; set; } + /// /// The bank name the transfer was received from. /// diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetails.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetails.cs index 22ec983ead..2ac554e3bd 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetails.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetails.cs @@ -15,5 +15,13 @@ public class ReceivedDebitStatusDetails : StripeEntity + /// Information that elaborates on the returned status of a ReceivedDebit. It is only + /// present when the ReceivedDebit status is returned. + /// + [JsonProperty("returned")] + [STJS.JsonPropertyName("returned")] + public ReceivedDebitStatusDetailsReturned Returned { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsFailed.cs index 170e571866..9407f081fd 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsFailed.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsFailed.cs @@ -10,8 +10,8 @@ public class ReceivedDebitStatusDetailsFailed : StripeEntity /// Open Enum. The reason for the failure of the ReceivedDebit. - /// One of: financial_address_inactive, insufficient_funds, or - /// stripe_rejected. + /// One of: capability_inactive, financial_address_inactive, + /// insufficient_funds, or stripe_rejected. /// [JsonProperty("reason")] [STJS.JsonPropertyName("reason")] diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsReturned.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsReturned.cs new file mode 100644 index 0000000000..1d63aa9d06 --- /dev/null +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusDetailsReturned.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ReceivedDebitStatusDetailsReturned : StripeEntity + { + /// + /// Open Enum. The reason the ReceivedDebit was returned. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusTransitions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusTransitions.cs index 2011a06309..af0c38644b 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusTransitions.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitStatusTransitions.cs @@ -27,6 +27,15 @@ public class ReceivedDebitStatusTransitions : StripeEntity + /// The time when the ReceivedDebit was marked as returned. Represented as a RFC 3339 + /// date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("returned_at")] + [STJS.JsonPropertyName("returned_at")] + public DateTime? ReturnedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + /// /// The time when the ReceivedDebit was marked as succeeded. Represented as a RFC /// 3339 date & time UTC value in millisecond precision, for example: diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs index ccd513f90b..54687d8ad7 100644 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData.cs @@ -23,8 +23,9 @@ public class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedE /// oxxo_payments, p24_payments, payco_payments, /// paynow_payments, stripe_balance.payouts, pay_by_bank_payments, /// promptpay_payments, revolut_pay_payments, samsung_pay_payments, - /// sepa_bank_transfer_payments, sepa_debit_payments, swish_payments, - /// twint_payments, us_bank_transfer_payments, or zip_payments. + /// sepa_bank_transfer_payments, sepa_debit_payments, sunbit_payments, + /// swish_payments, twint_payments, us_bank_transfer_payments, or + /// zip_payments. /// [JsonProperty("updated_capability")] [STJS.JsonPropertyName("updated_capability")] diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.cs new file mode 100644 index 0000000000..727861519d --- /dev/null +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent.cs @@ -0,0 +1,48 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when the status of an Account's money manager configuration capability is + /// updated. + /// + public class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent : V2.Core.Event + { + /// + /// Data for the v2.core.account[configuration.money_manager].capability_status_updated + /// event. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + + public V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData Data { get; set; } + + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.cs new file mode 100644 index 0000000000..7e5457fcaf --- /dev/null +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + public class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventData : StripeEntity + { + /// + /// Open Enum. The capability which had its status updated. + /// One of: business_storage.inbound.cad, business_storage.inbound.eur, + /// business_storage.inbound.gbp, business_storage.inbound.usd, + /// business_storage.inbound.usdc, business_storage.outbound.cad, + /// business_storage.outbound.eur, business_storage.outbound.gbp, + /// business_storage.outbound.usd, business_storage.outbound.usdc, + /// consumer_storage.inbound.usd, consumer_storage.inbound.usdc, + /// consumer_storage.outbound.usd, consumer_storage.outbound.usdc, + /// inbound_transfers.bank_accounts, outbound_payments.bank_accounts, + /// outbound_payments.cards, outbound_payments.crypto_wallets, + /// outbound_payments.financial_accounts, outbound_payments.paper_checks, + /// outbound_transfers.bank_accounts, outbound_transfers.crypto_wallets, + /// outbound_transfers.financial_accounts, received_credits.bank_accounts, + /// received_credits.crypto_wallets, or received_debits.bank_accounts. + /// + [JsonProperty("updated_capability")] + [STJS.JsonPropertyName("updated_capability")] + public string UpdatedCapability { get; set; } + } +} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.cs new file mode 100644 index 0000000000..9aee84d3c8 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when the status of an Account's money manager configuration capability is + /// updated. + /// + public class V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.cs new file mode 100644 index 0000000000..bfc9a7ec29 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a MoneyManager's configuration is updated. + /// + public class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.cs new file mode 100644 index 0000000000..a2c3db3fa1 --- /dev/null +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a MoneyManager's configuration is updated. + /// + public class V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.Core.Account FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData.cs index fb29357938..346bef544d 100644 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData.cs @@ -10,10 +10,13 @@ public class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated { /// /// Open Enum. The capability which had its status updated. - /// One of: bank_accounts.instant, bank_accounts.local, - /// bank_accounts.wire, cards, crypto_wallets_v2, paper_checks, - /// stripe_balance.payouts, stripe_balance.stripe_transfers, or - /// stripe.transfers. + /// One of: bank_accounts.ach, bank_accounts.becs, bank_accounts.eft, + /// bank_accounts.fedwire, bank_accounts.fps, bank_accounts.instant, + /// bank_accounts.local, bank_accounts.npp, bank_accounts.rtp, + /// bank_accounts.sepa_credit, bank_accounts.sepa_instant, + /// bank_accounts.swift, bank_accounts.wire, cards, + /// crypto_wallets_v2, paper_checks, stripe_balance.payouts, + /// stripe_balance.stripe_transfers, or stripe.transfers. /// [JsonProperty("updated_capability")] [STJS.JsonPropertyName("updated_capability")] diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.cs deleted file mode 100644 index 2a4efa874c..0000000000 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.cs +++ /dev/null @@ -1,46 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; - using STJS = System.Text.Json.Serialization; - - /// - /// Occurs when the status of an Account's storer configuration capability is updated. - /// - public class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent : V2.Core.Event - { - /// - /// Data for the v2.core.account[configuration.storer].capability_status_updated event. - /// - [JsonProperty("data")] - [STJS.JsonPropertyName("data")] - - public V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData Data { get; set; } - - /// - /// Object containing the reference to API resource relevant to the event. - /// - [JsonProperty("related_object")] - [STJS.JsonPropertyName("related_object")] - - public V2.Core.EventRelatedObject RelatedObject { get; set; } - - /// - /// Asynchronously retrieves the related object from the API. Make an API request on every - /// call. - /// - public Task FetchRelatedObjectAsync() - { - return this.FetchRelatedObjectAsync(this.RelatedObject); - } - - /// - /// Retrieves the related object from the API. Make an API request on every call. - /// - public V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - } -} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs deleted file mode 100644 index fa0d2ca76a..0000000000 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - public class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData : StripeEntity - { - /// - /// Open Enum. The capability which had its status updated. - /// One of: consumer.holds_currencies.usd, financial_addressses.bank_accounts, - /// financial_addressses.crypto_wallets, holds_currencies.eur, - /// holds_currencies.gbp, holds_currencies.usd, holds_currencies.usdc, - /// inbound_transfers.bank_accounts, outbound_payments.bank_accounts, - /// outbound_payments.cards, outbound_payments.crypto_wallets, - /// outbound_payments.financial_accounts, outbound_payments.paper_checks, - /// outbound_transfers.bank_accounts, outbound_transfers.crypto_wallets, or - /// outbound_transfers.financial_accounts. - /// - [JsonProperty("updated_capability")] - [STJS.JsonPropertyName("updated_capability")] - public string UpdatedCapability { get; set; } - } -} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.cs deleted file mode 100644 index 1a5876c6b7..0000000000 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification.cs +++ /dev/null @@ -1,49 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; - using Stripe.V2; - using STJS = System.Text.Json.Serialization; - - /// - /// Occurs when the status of an Account's storer configuration capability is updated. - /// - public class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification : V2.Core.EventNotification - { - /// - /// Object containing the reference to API resource relevant to the event. - /// - [JsonProperty("related_object")] - [STJS.JsonPropertyName("related_object")] - - public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } - - /// - /// Asynchronously retrieves the related object from the API. Make an API request on every - /// call. - /// - public Task FetchRelatedObjectAsync() - { - return this.FetchRelatedObjectAsync(this.RelatedObject); - } - - /// - /// Retrieves the related object from the API. Make an API request on every call. - /// - public V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent FetchEvent() - { - return this.FetchEvent(); - } - - public Task FetchEventAsync() - { - return this.FetchEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.cs deleted file mode 100644 index 4b2ed6d604..0000000000 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEvent.cs +++ /dev/null @@ -1,38 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; - using STJS = System.Text.Json.Serialization; - - /// - /// Occurs when a Storer's configuration is updated. - /// - public class V2CoreAccountIncludingConfigurationStorerUpdatedEvent : V2.Core.Event - { - /// - /// Object containing the reference to API resource relevant to the event. - /// - [JsonProperty("related_object")] - [STJS.JsonPropertyName("related_object")] - - public V2.Core.EventRelatedObject RelatedObject { get; set; } - - /// - /// Asynchronously retrieves the related object from the API. Make an API request on every - /// call. - /// - public Task FetchRelatedObjectAsync() - { - return this.FetchRelatedObjectAsync(this.RelatedObject); - } - - /// - /// Retrieves the related object from the API. Make an API request on every call. - /// - public V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - } -} diff --git a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.cs b/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.cs deleted file mode 100644 index b09475c201..0000000000 --- a/src/Stripe.net/Events/V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification.cs +++ /dev/null @@ -1,49 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.Events -{ - using System.Threading.Tasks; - using Newtonsoft.Json; - using Stripe.V2; - using STJS = System.Text.Json.Serialization; - - /// - /// Occurs when a Storer's configuration is updated. - /// - public class V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification : V2.Core.EventNotification - { - /// - /// Object containing the reference to API resource relevant to the event. - /// - [JsonProperty("related_object")] - [STJS.JsonPropertyName("related_object")] - - public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } - - /// - /// Asynchronously retrieves the related object from the API. Make an API request on every - /// call. - /// - public Task FetchRelatedObjectAsync() - { - return this.FetchRelatedObjectAsync(this.RelatedObject); - } - - /// - /// Retrieves the related object from the API. Make an API request on every call. - /// - public V2.Core.Account FetchRelatedObject() - { - return this.FetchRelatedObject(this.RelatedObject); - } - - public V2CoreAccountIncludingConfigurationStorerUpdatedEvent FetchEvent() - { - return this.FetchEvent(); - } - - public Task FetchEventAsync() - { - return this.FetchEventAsync(); - } - } -} diff --git a/src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs b/src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs index 5d663ae54a..632be677e1 100644 --- a/src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs +++ b/src/Stripe.net/Events/V2CoreAccountLinkReturnedEventData.cs @@ -18,7 +18,8 @@ public class V2CoreAccountLinkReturnedEventData : StripeEntity /// Configurations on the Account that was onboarded via the account link. - /// One of: customer, merchant, recipient, or storer. + /// One of: customer, merchant, money_manager, recipient, or + /// storer. /// [JsonProperty("configurations")] [STJS.JsonPropertyName("configurations")] diff --git a/src/Stripe.net/Events/V2MoneyManagementDebitDisputeFailedEvent.cs b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeFailedEvent.cs new file mode 100644 index 0000000000..d5745eb40c --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeFailedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a DebitDispute fails. + /// + public class V2MoneyManagementDebitDisputeFailedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.DebitDispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementDebitDisputeFailedEventNotification.cs b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeFailedEventNotification.cs new file mode 100644 index 0000000000..1f23f6737b --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeFailedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a DebitDispute fails. + /// + public class V2MoneyManagementDebitDisputeFailedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.DebitDispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2MoneyManagementDebitDisputeFailedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSubmittedEvent.cs b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSubmittedEvent.cs new file mode 100644 index 0000000000..bd57db4ecd --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSubmittedEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a DebitDispute is submitted. + /// + public class V2MoneyManagementDebitDisputeSubmittedEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.DebitDispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.cs b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.cs new file mode 100644 index 0000000000..bd3995f3e2 --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSubmittedEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a DebitDispute is submitted. + /// + public class V2MoneyManagementDebitDisputeSubmittedEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.DebitDispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2MoneyManagementDebitDisputeSubmittedEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSucceededEvent.cs b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSucceededEvent.cs new file mode 100644 index 0000000000..6ce018e135 --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSucceededEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a DebitDispute succeeds. + /// + public class V2MoneyManagementDebitDisputeSucceededEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.DebitDispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.cs b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.cs new file mode 100644 index 0000000000..ceab33586d --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementDebitDisputeSucceededEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when a DebitDispute succeeds. + /// + public class V2MoneyManagementDebitDisputeSucceededEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.DebitDispute FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2MoneyManagementDebitDisputeSucceededEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementOutboundPaymentUnderReviewEvent.cs b/src/Stripe.net/Events/V2MoneyManagementOutboundPaymentUnderReviewEvent.cs new file mode 100644 index 0000000000..c78db14e70 --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementOutboundPaymentUnderReviewEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an OutboundPayment is placed under review. + /// + public class V2MoneyManagementOutboundPaymentUnderReviewEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.OutboundPayment FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.cs b/src/Stripe.net/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.cs new file mode 100644 index 0000000000..8357d93bfc --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementOutboundPaymentUnderReviewEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an OutboundPayment is placed under review. + /// + public class V2MoneyManagementOutboundPaymentUnderReviewEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.OutboundPayment FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2MoneyManagementOutboundPaymentUnderReviewEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementOutboundTransferUnderReviewEvent.cs b/src/Stripe.net/Events/V2MoneyManagementOutboundTransferUnderReviewEvent.cs new file mode 100644 index 0000000000..6887a00df5 --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementOutboundTransferUnderReviewEvent.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an OutboundTransfer is placed under review. + /// + public class V2MoneyManagementOutboundTransferUnderReviewEvent : V2.Core.Event + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.OutboundTransfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + } +} diff --git a/src/Stripe.net/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.cs b/src/Stripe.net/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.cs new file mode 100644 index 0000000000..d8cf7f8264 --- /dev/null +++ b/src/Stripe.net/Events/V2MoneyManagementOutboundTransferUnderReviewEventNotification.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe.Events +{ + using System.Threading.Tasks; + using Newtonsoft.Json; + using Stripe.V2; + using STJS = System.Text.Json.Serialization; + + /// + /// Occurs when an OutboundTransfer is placed under review. + /// + public class V2MoneyManagementOutboundTransferUnderReviewEventNotification : V2.Core.EventNotification + { + /// + /// Object containing the reference to API resource relevant to the event. + /// + [JsonProperty("related_object")] + [STJS.JsonPropertyName("related_object")] + + public V2.Core.EventNotificationRelatedObject RelatedObject { get; set; } + + /// + /// Asynchronously retrieves the related object from the API. Make an API request on every + /// call. + /// + public Task FetchRelatedObjectAsync() + { + return this.FetchRelatedObjectAsync(this.RelatedObject); + } + + /// + /// Retrieves the related object from the API. Make an API request on every call. + /// + public V2.MoneyManagement.OutboundTransfer FetchRelatedObject() + { + return this.FetchRelatedObject(this.RelatedObject); + } + + public V2MoneyManagementOutboundTransferUnderReviewEvent FetchEvent() + { + return this.FetchEvent(); + } + + public Task FetchEventAsync() + { + return this.FetchEventAsync(); + } + } +} diff --git a/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs b/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs index 70d918a3b5..917504308a 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeEventNotificationHandler.cs @@ -271,10 +271,10 @@ public class StripeEventNotificationHandler private EventHandler> v2CoreAccountIncludingConfigurationCustomerUpdated; private EventHandler> v2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdated; private EventHandler> v2CoreAccountIncludingConfigurationMerchantUpdated; + private EventHandler> v2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdated; + private EventHandler> v2CoreAccountIncludingConfigurationMoneyManagerUpdated; private EventHandler> v2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated; private EventHandler> v2CoreAccountIncludingConfigurationRecipientUpdated; - private EventHandler> v2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdated; - private EventHandler> v2CoreAccountIncludingConfigurationStorerUpdated; private EventHandler> v2CoreAccountIncludingDefaultsUpdated; private EventHandler> v2CoreAccountIncludingFutureRequirementsUpdated; private EventHandler> v2CoreAccountIncludingIdentityUpdated; @@ -354,6 +354,9 @@ public class StripeEventNotificationHandler private EventHandler> v2IamStripeAccessGrantRequested; private EventHandler> v2IamStripeAccessGrantUpdated; private EventHandler> v2MoneyManagementAdjustmentCreated; + private EventHandler> v2MoneyManagementDebitDisputeFailed; + private EventHandler> v2MoneyManagementDebitDisputeSubmitted; + private EventHandler> v2MoneyManagementDebitDisputeSucceeded; private EventHandler> v2MoneyManagementFinancialAccountCreated; private EventHandler> v2MoneyManagementFinancialAccountUpdated; private EventHandler> v2MoneyManagementFinancialAccountStatementCreated; @@ -371,12 +374,14 @@ public class StripeEventNotificationHandler private EventHandler> v2MoneyManagementOutboundPaymentFailed; private EventHandler> v2MoneyManagementOutboundPaymentPosted; private EventHandler> v2MoneyManagementOutboundPaymentReturned; + private EventHandler> v2MoneyManagementOutboundPaymentUnderReview; private EventHandler> v2MoneyManagementOutboundPaymentUpdated; private EventHandler> v2MoneyManagementOutboundTransferCanceled; private EventHandler> v2MoneyManagementOutboundTransferCreated; private EventHandler> v2MoneyManagementOutboundTransferFailed; private EventHandler> v2MoneyManagementOutboundTransferPosted; private EventHandler> v2MoneyManagementOutboundTransferReturned; + private EventHandler> v2MoneyManagementOutboundTransferUnderReview; private EventHandler> v2MoneyManagementOutboundTransferUpdated; private EventHandler> v2MoneyManagementPayoutMethodCreated; private EventHandler> v2MoneyManagementPayoutMethodUpdated; @@ -1995,27 +2000,27 @@ public event EventHandler> V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated + public event EventHandler> V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdated { - add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated, value, "v2.core.account[configuration.recipient].capability_status_updated"); } + add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdated, value, "v2.core.account[configuration.money_manager].capability_status_updated"); } remove { this.RemoveEventHandler(); } } - public event EventHandler> V2CoreAccountIncludingConfigurationRecipientUpdated + public event EventHandler> V2CoreAccountIncludingConfigurationMoneyManagerUpdated { - add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationRecipientUpdated, value, "v2.core.account[configuration.recipient].updated"); } + add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationMoneyManagerUpdated, value, "v2.core.account[configuration.money_manager].updated"); } remove { this.RemoveEventHandler(); } } - public event EventHandler> V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdated + public event EventHandler> V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated { - add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdated, value, "v2.core.account[configuration.storer].capability_status_updated"); } + add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated, value, "v2.core.account[configuration.recipient].capability_status_updated"); } remove { this.RemoveEventHandler(); } } - public event EventHandler> V2CoreAccountIncludingConfigurationStorerUpdated + public event EventHandler> V2CoreAccountIncludingConfigurationRecipientUpdated { - add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationStorerUpdated, value, "v2.core.account[configuration.storer].updated"); } + add { this.AddEventHandler(ref this.v2CoreAccountIncludingConfigurationRecipientUpdated, value, "v2.core.account[configuration.recipient].updated"); } remove { this.RemoveEventHandler(); } } @@ -2493,6 +2498,24 @@ public event EventHandler> V2MoneyManagementDebitDisputeFailed + { + add { this.AddEventHandler(ref this.v2MoneyManagementDebitDisputeFailed, value, "v2.money_management.debit_dispute.failed"); } + remove { this.RemoveEventHandler(); } + } + + public event EventHandler> V2MoneyManagementDebitDisputeSubmitted + { + add { this.AddEventHandler(ref this.v2MoneyManagementDebitDisputeSubmitted, value, "v2.money_management.debit_dispute.submitted"); } + remove { this.RemoveEventHandler(); } + } + + public event EventHandler> V2MoneyManagementDebitDisputeSucceeded + { + add { this.AddEventHandler(ref this.v2MoneyManagementDebitDisputeSucceeded, value, "v2.money_management.debit_dispute.succeeded"); } + remove { this.RemoveEventHandler(); } + } + public event EventHandler> V2MoneyManagementFinancialAccountCreated { add { this.AddEventHandler(ref this.v2MoneyManagementFinancialAccountCreated, value, "v2.money_management.financial_account.created"); } @@ -2595,6 +2618,12 @@ public event EventHandler> V2MoneyManagementOutboundPaymentUnderReview + { + add { this.AddEventHandler(ref this.v2MoneyManagementOutboundPaymentUnderReview, value, "v2.money_management.outbound_payment.under_review"); } + remove { this.RemoveEventHandler(); } + } + public event EventHandler> V2MoneyManagementOutboundPaymentUpdated { add { this.AddEventHandler(ref this.v2MoneyManagementOutboundPaymentUpdated, value, "v2.money_management.outbound_payment.updated"); } @@ -2631,6 +2660,12 @@ public event EventHandler> V2MoneyManagementOutboundTransferUnderReview + { + add { this.AddEventHandler(ref this.v2MoneyManagementOutboundTransferUnderReview, value, "v2.money_management.outbound_transfer.under_review"); } + remove { this.RemoveEventHandler(); } + } + public event EventHandler> V2MoneyManagementOutboundTransferUpdated { add { this.AddEventHandler(ref this.v2MoneyManagementOutboundTransferUpdated, value, "v2.money_management.outbound_transfer.updated"); } @@ -4040,21 +4075,21 @@ private void DispatchEvent(V2.Core.EventNotification eventNotification, StripeCl { this.v2CoreAccountIncludingConfigurationMerchantUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification)eventNotification, client)); } - else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification) + else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification) { - this.v2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification)eventNotification, client)); + this.v2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification)eventNotification, client)); } - else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification) + else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification) { - this.v2CoreAccountIncludingConfigurationRecipientUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification)eventNotification, client)); + this.v2CoreAccountIncludingConfigurationMoneyManagerUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification)eventNotification, client)); } - else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification) + else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification) { - this.v2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification)eventNotification, client)); + this.v2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification)eventNotification, client)); } - else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification) + else if (eventNotification is Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification) { - this.v2CoreAccountIncludingConfigurationStorerUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification)eventNotification, client)); + this.v2CoreAccountIncludingConfigurationRecipientUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification)eventNotification, client)); } else if (eventNotification is Stripe.Events.V2CoreAccountIncludingDefaultsUpdatedEventNotification) { @@ -4372,6 +4407,18 @@ private void DispatchEvent(V2.Core.EventNotification eventNotification, StripeCl { this.v2MoneyManagementAdjustmentCreated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementAdjustmentCreatedEventNotification)eventNotification, client)); } + else if (eventNotification is Stripe.Events.V2MoneyManagementDebitDisputeFailedEventNotification) + { + this.v2MoneyManagementDebitDisputeFailed.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementDebitDisputeFailedEventNotification)eventNotification, client)); + } + else if (eventNotification is Stripe.Events.V2MoneyManagementDebitDisputeSubmittedEventNotification) + { + this.v2MoneyManagementDebitDisputeSubmitted.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementDebitDisputeSubmittedEventNotification)eventNotification, client)); + } + else if (eventNotification is Stripe.Events.V2MoneyManagementDebitDisputeSucceededEventNotification) + { + this.v2MoneyManagementDebitDisputeSucceeded.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementDebitDisputeSucceededEventNotification)eventNotification, client)); + } else if (eventNotification is Stripe.Events.V2MoneyManagementFinancialAccountCreatedEventNotification) { this.v2MoneyManagementFinancialAccountCreated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementFinancialAccountCreatedEventNotification)eventNotification, client)); @@ -4440,6 +4487,10 @@ private void DispatchEvent(V2.Core.EventNotification eventNotification, StripeCl { this.v2MoneyManagementOutboundPaymentReturned.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundPaymentReturnedEventNotification)eventNotification, client)); } + else if (eventNotification is Stripe.Events.V2MoneyManagementOutboundPaymentUnderReviewEventNotification) + { + this.v2MoneyManagementOutboundPaymentUnderReview.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundPaymentUnderReviewEventNotification)eventNotification, client)); + } else if (eventNotification is Stripe.Events.V2MoneyManagementOutboundPaymentUpdatedEventNotification) { this.v2MoneyManagementOutboundPaymentUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundPaymentUpdatedEventNotification)eventNotification, client)); @@ -4464,6 +4515,10 @@ private void DispatchEvent(V2.Core.EventNotification eventNotification, StripeCl { this.v2MoneyManagementOutboundTransferReturned.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundTransferReturnedEventNotification)eventNotification, client)); } + else if (eventNotification is Stripe.Events.V2MoneyManagementOutboundTransferUnderReviewEventNotification) + { + this.v2MoneyManagementOutboundTransferUnderReview.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundTransferUnderReviewEventNotification)eventNotification, client)); + } else if (eventNotification is Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification) { this.v2MoneyManagementOutboundTransferUpdated.Invoke(this, new StripeEventNotificationEventArgs((Stripe.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification)eventNotification, client)); diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index d7f73e84dc..1356284fd7 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -282,8 +282,8 @@ public static class StripeTypeRegistry }, { "v2.billing.contract", typeof(V2.Billing.Contract) }, { - "v2.billing.contract_license_pricing_quantity_change", typeof( - V2.Billing.ContractLicensePricingQuantityChange) + "v2.billing.contract_pricing_line_quantity_change", typeof( + V2.Billing.ContractPricingLineQuantityChange) }, { "v2.billing.custom_pricing_unit", typeof(V2.Billing.CustomPricingUnit) }, { "v2.billing.intent", typeof(V2.Billing.Intent) }, @@ -331,6 +331,11 @@ public static class StripeTypeRegistry { "v2.core.event_destination", typeof(V2.Core.EventDestination) }, { "v2.core.fee_batch", typeof(V2.Core.FeeBatch) }, { "v2.core.fee_entry", typeof(V2.Core.FeeEntry) }, + { "v2.core.health.alert", typeof(V2.Core.Health.Alert) }, + { + "v2.core.health.alert_history_entry", typeof( + V2.Core.Health.AlertHistoryEntry) + }, { "v2.core.vault.gb_bank_account", typeof(V2.Core.Vault.GbBankAccount) }, { "v2.core.vault.us_bank_account", typeof(V2.Core.Vault.UsBankAccount) }, { @@ -360,6 +365,10 @@ public static class StripeTypeRegistry "v2.money_management.financial_address", typeof( V2.MoneyManagement.FinancialAddress) }, + { + "v2.money_management.financial_address_debit_simulation", typeof( + V2.MoneyManagement.FinancialAddressDebitSimulation) + }, { "v2.money_management.inbound_transfer", typeof( V2.MoneyManagement.InboundTransfer) @@ -380,6 +389,7 @@ public static class StripeTypeRegistry "v2.money_management.outbound_transfer", typeof( V2.MoneyManagement.OutboundTransfer) }, + { "v2.money_management.payout_intent", typeof(V2.MoneyManagement.PayoutIntent) }, { "v2.money_management.payout_method", typeof(V2.MoneyManagement.PayoutMethod) }, { "v2.money_management.payout_methods_bank_account_spec", typeof( @@ -1078,20 +1088,20 @@ public static class StripeTypeRegistry Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent) }, { - "v2.core.account[configuration.recipient].capability_status_updated", typeof( - Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent) + "v2.core.account[configuration.money_manager].capability_status_updated", typeof( + Events.V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEvent) }, { - "v2.core.account[configuration.recipient].updated", typeof( - Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent) + "v2.core.account[configuration.money_manager].updated", typeof( + Events.V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEvent) }, { - "v2.core.account[configuration.storer].capability_status_updated", typeof( - Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent) + "v2.core.account[configuration.recipient].capability_status_updated", typeof( + Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent) }, { - "v2.core.account[configuration.storer].updated", typeof( - Events.V2CoreAccountIncludingConfigurationStorerUpdatedEvent) + "v2.core.account[configuration.recipient].updated", typeof( + Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent) }, { "v2.core.account[defaults].updated", typeof( @@ -1379,6 +1389,18 @@ public static class StripeTypeRegistry "v2.money_management.adjustment.created", typeof( Events.V2MoneyManagementAdjustmentCreatedEvent) }, + { + "v2.money_management.debit_dispute.failed", typeof( + Events.V2MoneyManagementDebitDisputeFailedEvent) + }, + { + "v2.money_management.debit_dispute.submitted", typeof( + Events.V2MoneyManagementDebitDisputeSubmittedEvent) + }, + { + "v2.money_management.debit_dispute.succeeded", typeof( + Events.V2MoneyManagementDebitDisputeSucceededEvent) + }, { "v2.money_management.financial_account.created", typeof( Events.V2MoneyManagementFinancialAccountCreatedEvent) @@ -1447,6 +1469,10 @@ public static class StripeTypeRegistry "v2.money_management.outbound_payment.returned", typeof( Events.V2MoneyManagementOutboundPaymentReturnedEvent) }, + { + "v2.money_management.outbound_payment.under_review", typeof( + Events.V2MoneyManagementOutboundPaymentUnderReviewEvent) + }, { "v2.money_management.outbound_payment.updated", typeof( Events.V2MoneyManagementOutboundPaymentUpdatedEvent) @@ -1471,6 +1497,10 @@ public static class StripeTypeRegistry "v2.money_management.outbound_transfer.returned", typeof( Events.V2MoneyManagementOutboundTransferReturnedEvent) }, + { + "v2.money_management.outbound_transfer.under_review", typeof( + Events.V2MoneyManagementOutboundTransferUnderReviewEvent) + }, { "v2.money_management.outbound_transfer.updated", typeof( Events.V2MoneyManagementOutboundTransferUpdatedEvent) @@ -2477,20 +2507,20 @@ public static class StripeTypeRegistry Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification) }, { - "v2.core.account[configuration.recipient].capability_status_updated", typeof( - Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification) + "v2.core.account[configuration.money_manager].capability_status_updated", typeof( + Events.V2CoreAccountIncludingConfigurationMoneyManagerCapabilityStatusUpdatedEventNotification) }, { - "v2.core.account[configuration.recipient].updated", typeof( - Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification) + "v2.core.account[configuration.money_manager].updated", typeof( + Events.V2CoreAccountIncludingConfigurationMoneyManagerUpdatedEventNotification) }, { - "v2.core.account[configuration.storer].capability_status_updated", typeof( - Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification) + "v2.core.account[configuration.recipient].capability_status_updated", typeof( + Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification) }, { - "v2.core.account[configuration.storer].updated", typeof( - Events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification) + "v2.core.account[configuration.recipient].updated", typeof( + Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification) }, { "v2.core.account[defaults].updated", typeof( @@ -2796,6 +2826,18 @@ public static class StripeTypeRegistry "v2.money_management.adjustment.created", typeof( Events.V2MoneyManagementAdjustmentCreatedEventNotification) }, + { + "v2.money_management.debit_dispute.failed", typeof( + Events.V2MoneyManagementDebitDisputeFailedEventNotification) + }, + { + "v2.money_management.debit_dispute.submitted", typeof( + Events.V2MoneyManagementDebitDisputeSubmittedEventNotification) + }, + { + "v2.money_management.debit_dispute.succeeded", typeof( + Events.V2MoneyManagementDebitDisputeSucceededEventNotification) + }, { "v2.money_management.financial_account.created", typeof( Events.V2MoneyManagementFinancialAccountCreatedEventNotification) @@ -2864,6 +2906,10 @@ public static class StripeTypeRegistry "v2.money_management.outbound_payment.returned", typeof( Events.V2MoneyManagementOutboundPaymentReturnedEventNotification) }, + { + "v2.money_management.outbound_payment.under_review", typeof( + Events.V2MoneyManagementOutboundPaymentUnderReviewEventNotification) + }, { "v2.money_management.outbound_payment.updated", typeof( Events.V2MoneyManagementOutboundPaymentUpdatedEventNotification) @@ -2888,6 +2934,10 @@ public static class StripeTypeRegistry "v2.money_management.outbound_transfer.returned", typeof( Events.V2MoneyManagementOutboundTransferReturnedEventNotification) }, + { + "v2.money_management.outbound_transfer.under_review", typeof( + Events.V2MoneyManagementOutboundTransferUnderReviewEventNotification) + }, { "v2.money_management.outbound_transfer.updated", typeof( Events.V2MoneyManagementOutboundTransferUpdatedEventNotification) diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs new file mode 100644 index 0000000000..2ae7047a9c --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsFinancialAccountsFeaturesOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsOptions.cs new file mode 100644 index 0000000000..6bd60072cd --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsFinancialAccountsOptions : INestedOptions + { + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsFinancialAccountsFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions.cs new file mode 100644 index 0000000000..5fed5498e6 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsOptions.cs new file mode 100644 index 0000000000..5756ae36d1 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsFinancialAccountsTransactionsOptions : INestedOptions + { + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index 9250a13d4e..e5f04b5d6f 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -161,6 +161,24 @@ public class AccountSessionComponentsOptions : INestedOptions [STJS.JsonPropertyName("financial_account_transactions")] public AccountSessionComponentsFinancialAccountTransactionsOptions FinancialAccountTransactions { get; set; } + /// + /// Configuration for the financial + /// accounts embedded component. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountSessionComponentsFinancialAccountsOptions FinancialAccounts { get; set; } + + /// + /// Configuration for the financial + /// accounts transactions embedded component. + /// + [JsonProperty("financial_accounts_transactions")] + [STJS.JsonPropertyName("financial_accounts_transactions")] + public AccountSessionComponentsFinancialAccountsTransactionsOptions FinancialAccountsTransactions { get; set; } + /// /// Configuration for the instant @@ -287,6 +305,15 @@ public class AccountSessionComponentsOptions : INestedOptions [STJS.JsonPropertyName("recipients")] public AccountSessionComponentsRecipientsOptions Recipients { get; set; } + /// + /// Configuration for the recipients + /// list embedded component. + /// + [JsonProperty("recipients_list")] + [STJS.JsonPropertyName("recipients_list")] + public AccountSessionComponentsRecipientsListOptions RecipientsList { get; set; } + /// /// Configuration for the reporting diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListFeaturesOptions.cs new file mode 100644 index 0000000000..1d90876d00 --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListFeaturesOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsRecipientsListFeaturesOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListOptions.cs new file mode 100644 index 0000000000..1f96b724ba --- /dev/null +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListOptions.cs @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountSessionComponentsRecipientsListOptions : INestedOptions + { + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsRecipientsListFeaturesOptions Features { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemOptions.cs index 54dcee75b0..4294edb303 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionItemOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.Checkout [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class SessionItemOptions : INestedOptions { + /// + /// Configuration for the subscription item. + /// + [JsonProperty("subscription")] + [STJS.JsonPropertyName("subscription")] + public SessionItemSubscriptionOptions Subscription { get; set; } + /// /// The type of item. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingCycleAnchorConfigOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingCycleAnchorConfigOptions.cs new file mode 100644 index 0000000000..6c4b7dfd7f --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingCycleAnchorConfigOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionBillingCycleAnchorConfigOptions : INestedOptions + { + /// + /// The day of the month the anchor should be. Ranges from 1 to 31. + /// + [JsonProperty("day_of_month")] + [STJS.JsonPropertyName("day_of_month")] + public long? DayOfMonth { get; set; } + + /// + /// The hour of the day the anchor should be. Ranges from 0 to 23. + /// + [JsonProperty("hour")] + [STJS.JsonPropertyName("hour")] + public long? Hour { get; set; } + + /// + /// The minute of the hour the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("minute")] + [STJS.JsonPropertyName("minute")] + public long? Minute { get; set; } + + /// + /// The month to start full cycle periods. Ranges from 1 to 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long? Month { get; set; } + + /// + /// The second of the minute the anchor should be. Ranges from 0 to 59. + /// + [JsonProperty("second")] + [STJS.JsonPropertyName("second")] + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingModeFlexibleOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingModeFlexibleOptions.cs new file mode 100644 index 0000000000..e261d33a88 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingModeFlexibleOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionBillingModeFlexibleOptions : INestedOptions + { + /// + /// Controls how invoices and invoice items display proration amounts and discount amounts. + /// One of: included, or itemized. + /// + [JsonProperty("proration_discounts")] + [STJS.JsonPropertyName("proration_discounts")] + public string ProrationDiscounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingModeOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingModeOptions.cs new file mode 100644 index 0000000000..6826903fdc --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionBillingModeOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionBillingModeOptions : INestedOptions + { + /// + /// Configure behavior for flexible billing mode. + /// + [JsonProperty("flexible")] + [STJS.JsonPropertyName("flexible")] + public SessionItemSubscriptionBillingModeFlexibleOptions Flexible { get; set; } + + /// + /// Controls the calculation and orchestration of prorations and invoices for subscriptions. + /// If no value is passed, the default is flexible. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemOptions.cs new file mode 100644 index 0000000000..6ee82a74ff --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionItemOptions : INestedOptions + { + /// + /// The ID of the price for this subscription item. + /// + [JsonProperty("price")] + [STJS.JsonPropertyName("price")] + public string Price { get; set; } + + /// + /// Data used to generate a new Price object inline. + /// + [JsonProperty("price_data")] + [STJS.JsonPropertyName("price_data")] + public SessionItemSubscriptionItemPriceDataOptions PriceData { get; set; } + + /// + /// Quantity for this item. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataOptions.cs new file mode 100644 index 0000000000..f33de942bb --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataOptions.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionItemPriceDataOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The ID of the Product that this Price will belong to. One of + /// product or product_data is required. + /// + [JsonProperty("product")] + [STJS.JsonPropertyName("product")] + public string Product { get; set; } + + /// + /// Data used to generate a new Product + /// object inline. One of product or product_data is required. + /// + [JsonProperty("product_data")] + [STJS.JsonPropertyName("product_data")] + public SessionItemSubscriptionItemPriceDataProductDataOptions ProductData { get; set; } + + /// + /// The recurring components of a price such as interval and interval_count. + /// + [JsonProperty("recurring")] + [STJS.JsonPropertyName("recurring")] + public SessionItemSubscriptionItemPriceDataRecurringOptions Recurring { get; set; } + + /// + /// Only required if a default + /// tax behavior was not provided in the Stripe Tax settings. Specifies whether the + /// price is considered inclusive of taxes or exclusive of taxes. One of inclusive, + /// exclusive, or unspecified. Once specified as either inclusive or + /// exclusive, it cannot be changed. + /// One of: exclusive, inclusive, or unspecified. + /// + [JsonProperty("tax_behavior")] + [STJS.JsonPropertyName("tax_behavior")] + public string TaxBehavior { get; set; } + + /// + /// A non-negative integer in cents (or local equivalent) representing how much to charge. + /// One of unit_amount or unit_amount_decimal is required. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public long? UnitAmount { get; set; } + + /// + /// Same as unit_amount, but accepts a decimal value in cents (or local equivalent) + /// with at most 12 decimal places. Only one of unit_amount and + /// unit_amount_decimal can be set. + /// + [JsonProperty("unit_amount_decimal")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("unit_amount_decimal")] + public decimal? UnitAmountDecimal { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataProductDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataProductDataOptions.cs new file mode 100644 index 0000000000..ff30e520f1 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataProductDataOptions.cs @@ -0,0 +1,70 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionItemPriceDataProductDataOptions : INestedOptions, IHasMetadata + { + /// + /// The product's description, meant to be displayable to the customer. Use this field to + /// optionally store a long form explanation of the product being sold for your own + /// rendering purposes. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// A list of up to 8 URLs of images for this product, meant to be displayable to the + /// customer. + /// + [JsonProperty("images")] + [STJS.JsonPropertyName("images")] + public List Images { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// The product's name, meant to be displayable to the customer. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// A tax code ID. + /// + [JsonProperty("tax_code")] + [STJS.JsonPropertyName("tax_code")] + public string TaxCode { get; set; } + + /// + /// Tax details for this product, including the tax code and an optional performance + /// location. + /// + [JsonProperty("tax_details")] + [STJS.JsonPropertyName("tax_details")] + public SessionItemSubscriptionItemPriceDataProductDataTaxDetailsOptions TaxDetails { get; set; } + + /// + /// A label that represents units of this product. When set, this will be included in + /// customers' receipts, invoices, Checkout, and the customer portal. + /// + [JsonProperty("unit_label")] + [STJS.JsonPropertyName("unit_label")] + public string UnitLabel { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataProductDataTaxDetailsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataProductDataTaxDetailsOptions.cs new file mode 100644 index 0000000000..33872e9876 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataProductDataTaxDetailsOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionItemPriceDataProductDataTaxDetailsOptions : INestedOptions, IHasSetTracking + { + private string taxCode; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// A tax location ID. Depending on the tax + /// code, this is required, optional, or not supported. + /// + [JsonProperty("performance_location")] + [STJS.JsonPropertyName("performance_location")] + public string PerformanceLocation { get; set; } + + /// + /// A tax code ID. + /// + [JsonProperty("tax_code", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("tax_code")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string TaxCode + { + get => this.taxCode; + set + { + this.taxCode = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataRecurringOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataRecurringOptions.cs new file mode 100644 index 0000000000..fb17997f7d --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionItemPriceDataRecurringOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionItemPriceDataRecurringOptions : INestedOptions + { + /// + /// Specifies billing frequency. Either day, week, month or + /// year. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] + [STJS.JsonPropertyName("interval")] + public string Interval { get; set; } + + /// + /// The number of intervals between subscription billings. For example, + /// interval=month and interval_count=3 bills every 3 months. Maximum of three + /// years interval allowed (3 years, 36 months, or 156 weeks). + /// + [JsonProperty("interval_count")] + [STJS.JsonPropertyName("interval_count")] + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionOptions.cs new file mode 100644 index 0000000000..58b27ac27b --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionOptions.cs @@ -0,0 +1,93 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionOptions : INestedOptions, IHasMetadata + { + /// + /// Configures when the subscription schedule's billing cycle anchors to a specific day of + /// the week or month. + /// + [JsonProperty("billing_cycle_anchor_config")] + [STJS.JsonPropertyName("billing_cycle_anchor_config")] + public SessionItemSubscriptionBillingCycleAnchorConfigOptions BillingCycleAnchorConfig { get; set; } + + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] + [STJS.JsonPropertyName("billing_mode")] + public SessionItemSubscriptionBillingModeOptions BillingMode { get; set; } + + /// + /// The subscription's description, meant to be displayable to the customer. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The list of items for the subscription. + /// + [JsonProperty("items")] + [STJS.JsonPropertyName("items")] + public List Items { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Specifies an interval for how often to bill for any pending invoice items. + /// + [JsonProperty("pending_invoice_item_interval")] + [STJS.JsonPropertyName("pending_invoice_item_interval")] + public SessionItemSubscriptionPendingInvoiceItemIntervalOptions PendingInvoiceItemInterval { get; set; } + + /// + /// Determines how to handle prorations resulting from the billing_cycle_anchor. If + /// no value is passed, the default is create_prorations. + /// One of: create_prorations, or none. + /// + [JsonProperty("proration_behavior")] + [STJS.JsonPropertyName("proration_behavior")] + public string ProrationBehavior { get; set; } + + /// + /// Unix timestamp representing the end of the trial period the customer will get before + /// being charged for the first time. Has to be at least 48 hours in the future. + /// + [JsonProperty("trial_end")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("trial_end")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? TrialEnd { get; set; } + + /// + /// Integer representing the number of trial period days before the customer is charged for + /// the first time. Has to be at least 1. + /// + [JsonProperty("trial_period_days")] + [STJS.JsonPropertyName("trial_period_days")] + public long? TrialPeriodDays { get; set; } + + /// + /// Settings related to subscription trials. + /// + [JsonProperty("trial_settings")] + [STJS.JsonPropertyName("trial_settings")] + public SessionItemSubscriptionTrialSettingsOptions TrialSettings { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionPendingInvoiceItemIntervalOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionPendingInvoiceItemIntervalOptions.cs new file mode 100644 index 0000000000..3c29d2a2bd --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionPendingInvoiceItemIntervalOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionPendingInvoiceItemIntervalOptions : INestedOptions + { + /// + /// Specifies invoicing frequency. Either day, week, month or + /// year. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] + [STJS.JsonPropertyName("interval")] + public string Interval { get; set; } + + /// + /// The number of intervals between invoices. For example, interval=month and + /// interval_count=3 bills every 3 months. Maximum of one year interval allowed (1 + /// year, 12 months, or 52 weeks). + /// + [JsonProperty("interval_count")] + [STJS.JsonPropertyName("interval_count")] + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionTrialSettingsEndBehaviorOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionTrialSettingsEndBehaviorOptions.cs new file mode 100644 index 0000000000..a04e24f916 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionTrialSettingsEndBehaviorOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionTrialSettingsEndBehaviorOptions : INestedOptions + { + /// + /// Indicates how the subscription should change when the trial ends if the user did not + /// provide a payment method. + /// One of: cancel, create_invoice, or pause. + /// + [JsonProperty("missing_payment_method")] + [STJS.JsonPropertyName("missing_payment_method")] + public string MissingPaymentMethod { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionTrialSettingsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionTrialSettingsOptions.cs new file mode 100644 index 0000000000..c5a73091d1 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionItemSubscriptionTrialSettingsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionItemSubscriptionTrialSettingsOptions : INestedOptions + { + /// + /// Defines how the subscription should behave when the user's free trial ends. + /// + [JsonProperty("end_behavior")] + [STJS.JsonPropertyName("end_behavior")] + public SessionItemSubscriptionTrialSettingsEndBehaviorOptions EndBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordReportOfferAcceptanceOptions.cs b/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordReportOfferAcceptanceOptions.cs new file mode 100644 index 0000000000..e8d4966718 --- /dev/null +++ b/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordReportOfferAcceptanceOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class CreditUnderwritingRecordReportOfferAcceptanceOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordService.cs b/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordService.cs index db49d33166..7af8814909 100644 --- a/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordService.cs +++ b/src/Stripe.net/Services/Issuing/CreditUnderwritingRecords/CreditUnderwritingRecordService.cs @@ -151,5 +151,23 @@ public virtual Task ReportDecisionAsync(string id, Cre { return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/issuing/credit_underwriting_records/{WebUtility.UrlEncode(id)}/report_decision", options, requestOptions, cancellationToken); } + + /// + ///

Update a CreditUnderwritingRecord object to report that a credit offer has + /// been accepted.

. + ///
+ public virtual CreditUnderwritingRecord ReportOfferAcceptance(string id, CreditUnderwritingRecordReportOfferAcceptanceOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/issuing/credit_underwriting_records/{WebUtility.UrlEncode(id)}/report_offer_acceptance", options, requestOptions); + } + + /// + ///

Update a CreditUnderwritingRecord object to report that a credit offer has + /// been accepted.

. + ///
+ public virtual Task ReportOfferAcceptanceAsync(string id, CreditUnderwritingRecordReportOfferAcceptanceOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/issuing/credit_underwriting_records/{WebUtility.UrlEncode(id)}/report_offer_acceptance", options, requestOptions, cancellationToken); + } } } diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportEarlyFraudWarningOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportEarlyFraudWarningOptions.cs new file mode 100644 index 0000000000..eec625c830 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportEarlyFraudWarningOptions.cs @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentAttemptRecordReportEarlyFraudWarningOptions : BaseOptions, IHasMetadata + { + private Dictionary metadata; + + /// + /// The type of fraud reported in the early fraud warning. + /// One of: made_with_lost_card, made_with_stolen_card, other, or + /// unauthorized_use_of_card. + /// + [JsonProperty("fraud_type")] + [STJS.JsonPropertyName("fraud_type")] + public string FraudType { get; set; } + + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// + [JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("metadata")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public Dictionary Metadata + { + get => this.metadata; + set + { + this.metadata = value; + this.SetTracker.Track(); + } + } + + /// + /// The time at which the early fraud warning was received. + /// + [JsonProperty("occurred_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("occurred_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? OccurredAt { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs index 0851c71d0e..12c0ec41d1 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs @@ -122,6 +122,22 @@ public virtual Task ReportCanceledAsync(string id, Payment return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_canceled", options, requestOptions, cancellationToken); } + /// + ///

Report that the specified Payment Attempt Record received an early fraud warning.

. + ///
+ public virtual PaymentAttemptRecord ReportEarlyFraudWarning(string id, PaymentAttemptRecordReportEarlyFraudWarningOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_attempt_records/{WebUtility.UrlEncode(id)}/report_early_fraud_warning", options, requestOptions); + } + + /// + ///

Report that the specified Payment Attempt Record received an early fraud warning.

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

Report that the specified Payment Attempt Record failed.

. ///
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs index 6790e3b7e9..05f0d06559 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsOptions.cs @@ -14,6 +14,7 @@ public class PaymentIntentAmountDetailsOptions : INestedOptions, IHasSetTracking private PaymentIntentAmountDetailsShippingOptions shipping; private PaymentIntentAmountDetailsSurchargeOptions surcharge; private PaymentIntentAmountDetailsTaxOptions tax; + private PaymentIntentAmountDetailsTipOptions tip; [JsonIgnore] [STJS.JsonIgnore] @@ -121,6 +122,22 @@ public PaymentIntentAmountDetailsTaxOptions Tax } } + /// + /// Contains information about the tip portion of the amount. + /// + [JsonProperty("tip", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("tip")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public PaymentIntentAmountDetailsTipOptions Tip + { + get => this.tip; + set + { + this.tip = value; + this.SetTracker.Track(); + } + } + bool IHasSetTracking.IsPropertySet(string propertyName) { return this.SetTracker.IsSet(propertyName); diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTipOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTipOptions.cs new file mode 100644 index 0000000000..a1df3c3933 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentAmountDetailsTipOptions.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentIntentAmountDetailsTipOptions : INestedOptions, IHasSetTracking + { + private long? amount; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// Portion of the amount that corresponds to a tip. + /// + [JsonProperty("amount", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("amount")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public long? Amount + { + get => this.amount; + set + { + this.amount = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordSearchOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordSearchOptions.cs new file mode 100644 index 0000000000..9c2f910778 --- /dev/null +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordSearchOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentRecordSearchOptions : SearchOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs index 40ec2ab842..1d503b91dc 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs @@ -2,13 +2,15 @@ namespace Stripe { using System; + using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; public class PaymentRecordService : Service, - IRetrievable + IRetrievable, + ISearchable { public PaymentRecordService() { @@ -165,5 +167,57 @@ public virtual Task ReportRefundAsync(string id, PaymentRecordRep { return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_records/{WebUtility.UrlEncode(id)}/report_refund", options, requestOptions, cancellationToken); } + + /// + ///

Search for PaymentRecords you’ve previously created using Stripe’s Search Query Language. + /// Don’t use search in read-after-write flows where strict consistency is necessary. Under + /// normal operating conditions, data is searchable in less than a minute. Occasionally, + /// propagation of new or updated data can be up to an hour behind during outages. Search + /// functionality is not available to merchants in India.

. + ///
+ public virtual StripeSearchResult Search(PaymentRecordSearchOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v1/payment_records/search", options, requestOptions); + } + + /// + ///

Search for PaymentRecords you’ve previously created using Stripe’s Search Query Language. + /// Don’t use search in read-after-write flows where strict consistency is necessary. Under + /// normal operating conditions, data is searchable in less than a minute. Occasionally, + /// propagation of new or updated data can be up to an hour behind during outages. Search + /// functionality is not available to merchants in India.

. + ///
+ public virtual Task> SearchAsync(PaymentRecordSearchOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v1/payment_records/search", options, requestOptions, cancellationToken); + } + + /// + ///

Search for PaymentRecords you’ve previously created using Stripe’s Search Query Language. + /// Don’t use search in read-after-write flows where strict consistency is necessary. Under + /// normal operating conditions, data is searchable in less than a minute. Occasionally, + /// propagation of new or updated data can be up to an hour behind during outages. Search + /// functionality is not available to merchants in India.

. + ///
+ public virtual IEnumerable SearchAutoPaging(PaymentRecordSearchOptions options = null, RequestOptions requestOptions = null) + { + return this.SearchRequestAutoPaging($"/v1/payment_records/search", options, requestOptions); + } + + /// + ///

Search for PaymentRecords you’ve previously created using Stripe’s Search Query Language. + /// Don’t use search in read-after-write flows where strict consistency is necessary. Under + /// normal operating conditions, data is searchable in less than a minute. Occasionally, + /// propagation of new or updated data can be up to an hour behind during outages. Search + /// functionality is not available to merchants in India.

. + ///
+ public virtual IAsyncEnumerable SearchAutoPagingAsync(PaymentRecordSearchOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.SearchRequestAutoPagingAsync($"/v1/payment_records/search", options, requestOptions, cancellationToken); + } } } diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs index 4727a70a0c..27bf6cc219 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationCaptureOptions.cs @@ -25,6 +25,13 @@ public class AuthorizationCaptureOptions : BaseOptions [STJS.JsonPropertyName("close_authorization")] public bool? CloseAuthorization { get; set; } + /// + /// Details about the transaction, such as processing dates, set by the card network. + /// + [JsonProperty("network_data")] + [STJS.JsonPropertyName("network_data")] + public AuthorizationNetworkDataOptions NetworkData { get; set; } + /// /// Additional purchase information that is optionally provided by the merchant. /// diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationNetworkDataOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationNetworkDataOptions.cs index 3b55c6bf8a..166d0d8b12 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationNetworkDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationNetworkDataOptions.cs @@ -8,6 +8,16 @@ namespace Stripe.TestHelpers.Issuing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AuthorizationNetworkDataOptions : INestedOptions { + /// + /// Optional. A test value to populate network_data.acquirer_reference_number on the + /// resulting Issuing Transaction. Must contain only digits and be at most 23 characters + /// long. This value is intended only for integration validation in testmode and does not + /// need to correspond to a real network-assigned acquirer reference number. + /// + [JsonProperty("acquirer_reference_number")] + [STJS.JsonPropertyName("acquirer_reference_number")] + public string AcquirerReferenceNumber { get; set; } + /// /// Identifier assigned to the acquirer by the card network. /// diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeProvisionalCreditOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeProvisionalCreditOptions.cs new file mode 100644 index 0000000000..11cff605ec --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeProvisionalCreditOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class DisputeProvisionalCreditOptions : BaseOptions + { + /// + /// Override the deadline by which the platform must grant a provisional credit to the + /// consumer. + /// + [JsonProperty("grant_deadline")] + [STJS.JsonPropertyName("grant_deadline")] + public long? GrantDeadline { get; set; } + + /// + /// Override the earliest time after which the platform may revoke the provisional credit. + /// + [JsonProperty("revocable_after")] + [STJS.JsonPropertyName("revocable_after")] + public long? RevocableAfter { get; set; } + } +} diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeService.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeService.cs index c81f3ba77f..cf7f56fd0a 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeService.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Disputes/DisputeService.cs @@ -40,6 +40,28 @@ public virtual Stripe.Issuing.Dispute Close(string id, DisputeCloseOptions optio return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/disputes/{WebUtility.UrlEncode(id)}/close", options, requestOptions, cancellationToken); } + /// + ///

Test helper: overrides the grant_deadline and revocable_after + /// timestamps on a test-mode Issuing dispute’s provisional credit, allowing tests to + /// simulate timer-driven status transitions without waiting for real regulatory deadlines + /// to pass.

. + ///
+ public virtual Stripe.Issuing.Dispute ProvisionalCredit(string id, DisputeProvisionalCreditOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/disputes/{WebUtility.UrlEncode(id)}/provisional_credit", options, requestOptions); + } + + /// + ///

Test helper: overrides the grant_deadline and revocable_after + /// timestamps on a test-mode Issuing dispute’s provisional credit, allowing tests to + /// simulate timer-driven status transitions without waiting for real regulatory deadlines + /// to pass.

. + ///
+ public virtual Task ProvisionalCreditAsync(string id, DisputeProvisionalCreditOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/test_helpers/issuing/disputes/{WebUtility.UrlEncode(id)}/provisional_credit", options, requestOptions, cancellationToken); + } + /// ///

Test helper: populates network_lifecycle.dispute_response on a test-mode Visa /// Issuing Dispute using placeholder file tokens. Only supported for Visa disputes.

. diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs index 39c70fd89c..919347aa2f 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionCreateForceCaptureOptions.cs @@ -42,6 +42,13 @@ public class TransactionCreateForceCaptureOptions : BaseOptions [STJS.JsonPropertyName("merchant_data")] public TransactionMerchantDataOptions MerchantData { get; set; } + /// + /// Details about the transaction, such as processing dates, set by the card network. + /// + [JsonProperty("network_data")] + [STJS.JsonPropertyName("network_data")] + public TransactionNetworkDataOptions NetworkData { get; set; } + /// /// Additional purchase information that is optionally provided by the merchant. /// diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionNetworkDataOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionNetworkDataOptions.cs new file mode 100644 index 0000000000..38c2701da6 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionNetworkDataOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers.Issuing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class TransactionNetworkDataOptions : INestedOptions + { + /// + /// Optional. A test value to populate network_data.acquirer_reference_number on the + /// resulting Issuing Transaction. Must contain only digits and be at most 23 characters + /// long. This value is intended only for integration validation in testmode and does not + /// need to correspond to a real network-assigned acquirer reference number. + /// + [JsonProperty("acquirer_reference_number")] + [STJS.JsonPropertyName("acquirer_reference_number")] + public string AcquirerReferenceNumber { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractActivateOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractActivateOptions.cs index 236aea5344..a0f2eb82dc 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractActivateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractActivateOptions.cs @@ -11,8 +11,8 @@ public class ContractActivateOptions : BaseOptions { /// /// Additional fields to include in the response. - /// One of: contract_line_details, license_quantities, one_time_fees, - /// pricing_lines, or pricing_overrides. + /// One of: billing_settings, one_time_fees, pricing_lines, or + /// pricing_overrides. /// [JsonProperty("include")] [STJS.JsonPropertyName("include")] diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelCancelPricingLineOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelCancelPricingLineOptions.cs new file mode 100644 index 0000000000..60353fc8dd --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelCancelPricingLineOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCancelCancelPricingLineOptions : INestedOptions, IHasId + { + /// + /// The ID of the pricing line. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The lookup key of the pricing line. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Proration behavior scoped to this pricing line. If not provided, falls back to the + /// top-level proration_behavior on the cancel request. Defaults to prorated. + /// One of: none, or prorated. + /// + [JsonProperty("proration_behavior")] + [STJS.JsonPropertyName("proration_behavior")] + public string ProrationBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelOptions.cs index 8037ec3589..b6022d2ab3 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCancelOptions.cs @@ -9,13 +9,30 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ContractCancelOptions : BaseOptions { + /// + /// Per-pricing-line proration behavior overrides. Falls back to proration_behavior + /// if not specified for a given line. + /// + [JsonProperty("cancel_pricing_lines")] + [STJS.JsonPropertyName("cancel_pricing_lines")] + public List CancelPricingLines { get; set; } + /// /// Additional fields to include in the response. - /// One of: contract_line_details, license_quantities, one_time_fees, - /// pricing_lines, or pricing_overrides. + /// One of: billing_settings, one_time_fees, pricing_lines, or + /// pricing_overrides. /// [JsonProperty("include")] [STJS.JsonPropertyName("include")] public List Include { get; set; } + + /// + /// Top-level proration behavior for the cancellation. Defaults to prorated if not + /// set. + /// One of: none, or prorated. + /// + [JsonProperty("proration_behavior")] + [STJS.JsonPropertyName("proration_behavior")] + public string ProrationBehavior { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingCycleAnchorConfigOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingCycleAnchorConfigOptions.cs new file mode 100644 index 0000000000..b7ace58f3f --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingCycleAnchorConfigOptions.cs @@ -0,0 +1,46 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingCycleAnchorConfigOptions : INestedOptions + { + /// + /// Day of month (1-31). + /// + [JsonProperty("day_of_month")] + [STJS.JsonPropertyName("day_of_month")] + public long? DayOfMonth { get; set; } + + /// + /// Hour of day in UTC (0-23). + /// + [JsonProperty("hour")] + [STJS.JsonPropertyName("hour")] + public long? Hour { get; set; } + + /// + /// Minute of hour (0-59). + /// + [JsonProperty("minute")] + [STJS.JsonPropertyName("minute")] + public long? Minute { get; set; } + + /// + /// Month of year (1-12). + /// + [JsonProperty("month_of_year")] + [STJS.JsonPropertyName("month_of_year")] + public long? MonthOfYear { get; set; } + + /// + /// Second of minute (0-59). + /// + [JsonProperty("second")] + [STJS.JsonPropertyName("second")] + public long? Second { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingCycleAnchorOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingCycleAnchorOptions.cs new file mode 100644 index 0000000000..c049df219c --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingCycleAnchorOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingCycleAnchorOptions : INestedOptions + { + /// + /// Configuration for determining the billing cycle anchor by calendar fields. + /// + [JsonProperty("config")] + [STJS.JsonPropertyName("config")] + public ContractCreateBillingCycleAnchorConfigOptions Config { get; set; } + + /// + /// A specific timestamp to use as the billing cycle anchor. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of billing cycle anchor. + /// One of: config, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsCalculationOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsCalculationOptions.cs new file mode 100644 index 0000000000..2331a7a047 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsCalculationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsBillSettingsDetailsCalculationOptions : INestedOptions + { + /// + /// Tax calculation settings. + /// + [JsonProperty("tax")] + [STJS.JsonPropertyName("tax")] + public ContractCreateBillingSettingsBillSettingsDetailsCalculationTaxOptions Tax { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsCalculationTaxOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsCalculationTaxOptions.cs new file mode 100644 index 0000000000..b52305294c --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsCalculationTaxOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsBillSettingsDetailsCalculationTaxOptions : INestedOptions + { + /// + /// The type of tax calculation. + /// One of: automatic, or manual. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsInvoiceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsInvoiceOptions.cs new file mode 100644 index 0000000000..58e1c95074 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsInvoiceOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsBillSettingsDetailsInvoiceOptions : INestedOptions + { + /// + /// The number of time units before the invoice is past due. + /// + [JsonProperty("time_until_due")] + [STJS.JsonPropertyName("time_until_due")] + public ContractCreateBillingSettingsBillSettingsDetailsInvoiceTimeUntilDueOptions TimeUntilDue { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsInvoiceTimeUntilDueOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsInvoiceTimeUntilDueOptions.cs new file mode 100644 index 0000000000..7e42d898fa --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsInvoiceTimeUntilDueOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsBillSettingsDetailsInvoiceTimeUntilDueOptions : INestedOptions + { + /// + /// The interval unit. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] + [STJS.JsonPropertyName("interval")] + public string Interval { get; set; } + + /// + /// The number of intervals. + /// + [JsonProperty("interval_count")] + [STJS.JsonPropertyName("interval_count")] + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsOptions.cs new file mode 100644 index 0000000000..1d9971a18e --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillSettingsDetailsOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsBillSettingsDetailsOptions : INestedOptions + { + /// + /// Calculation settings. + /// + [JsonProperty("calculation")] + [STJS.JsonPropertyName("calculation")] + public ContractCreateBillingSettingsBillSettingsDetailsCalculationOptions Calculation { get; set; } + + /// + /// Invoice settings. + /// + [JsonProperty("invoice")] + [STJS.JsonPropertyName("invoice")] + public ContractCreateBillingSettingsBillSettingsDetailsInvoiceOptions Invoice { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillingProfileDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillingProfileDetailsOptions.cs new file mode 100644 index 0000000000..8e94d30172 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsBillingProfileDetailsOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsBillingProfileDetailsOptions : INestedOptions + { + /// + /// The customer who pays for the contract invoice. + /// + [JsonProperty("customer")] + [STJS.JsonPropertyName("customer")] + public string Customer { get; set; } + + /// + /// The default payment method for the contract. + /// + [JsonProperty("default_payment_method")] + [STJS.JsonPropertyName("default_payment_method")] + public string DefaultPaymentMethod { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsCollectionSettingsDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsCollectionSettingsDetailsOptions.cs new file mode 100644 index 0000000000..8392b11963 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsCollectionSettingsDetailsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateBillingSettingsCollectionSettingsDetailsOptions : INestedOptions + { + /// + /// The collection method. + /// One of: charge_automatically, or send_invoice. + /// + [JsonProperty("collection_method")] + [STJS.JsonPropertyName("collection_method")] + public string CollectionMethod { get; set; } + + /// + /// The payment method configuration. + /// + [JsonProperty("payment_method_configuration")] + [STJS.JsonPropertyName("payment_method_configuration")] + public string PaymentMethodConfiguration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationOptions.cs deleted file mode 100644 index 7786568a97..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationOptions : INestedOptions - { - /// - /// Tax calculation settings. - /// - [JsonProperty("tax")] - [STJS.JsonPropertyName("tax")] - public ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTaxOptions Tax { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTaxOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTaxOptions.cs deleted file mode 100644 index c1b7dca83a..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTaxOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationTaxOptions : INestedOptions - { - /// - /// The type of tax calculation. - /// One of: automatic, or manual. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceOptions.cs deleted file mode 100644 index 1ee2429ff7..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceOptions : INestedOptions - { - /// - /// The number of time units before the invoice is past due. - /// - [JsonProperty("time_until_due")] - [STJS.JsonPropertyName("time_until_due")] - public ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDueOptions TimeUntilDue { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDueOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDueOptions.cs deleted file mode 100644 index 3da31c46ee..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDueOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceTimeUntilDueOptions : INestedOptions - { - /// - /// The interval unit. - /// One of: day, month, week, or year. - /// - [JsonProperty("interval")] - [STJS.JsonPropertyName("interval")] - public string Interval { get; set; } - - /// - /// The number of intervals. - /// - [JsonProperty("interval_count")] - [STJS.JsonPropertyName("interval_count")] - public long? IntervalCount { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsOptions.cs deleted file mode 100644 index b93ce0c0eb..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsOptions : INestedOptions - { - /// - /// Calculation settings. - /// - [JsonProperty("calculation")] - [STJS.JsonPropertyName("calculation")] - public ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsCalculationOptions Calculation { get; set; } - - /// - /// Invoice settings. - /// - [JsonProperty("invoice")] - [STJS.JsonPropertyName("invoice")] - public ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsInvoiceOptions Invoice { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillingProfileDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillingProfileDetailsOptions.cs deleted file mode 100644 index f78aaa0343..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsBillingProfileDetailsOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsBillingProfileDetailsOptions : INestedOptions - { - /// - /// The customer who pays for the contract invoice. - /// - [JsonProperty("customer")] - [STJS.JsonPropertyName("customer")] - public string Customer { get; set; } - - /// - /// The default payment method for the contract. - /// - [JsonProperty("default_payment_method")] - [STJS.JsonPropertyName("default_payment_method")] - public string DefaultPaymentMethod { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsCollectionSettingsDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsCollectionSettingsDetailsOptions.cs deleted file mode 100644 index fc1462bca6..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsCollectionSettingsDetailsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsCollectionSettingsDetailsOptions : INestedOptions - { - /// - /// The collection method. - /// One of: charge_automatically, or send_invoice. - /// - [JsonProperty("collection_method")] - [STJS.JsonPropertyName("collection_method")] - public string CollectionMethod { get; set; } - - /// - /// The payment method configuration. - /// - [JsonProperty("payment_method_configuration")] - [STJS.JsonPropertyName("payment_method_configuration")] - public string PaymentMethodConfiguration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsOptions.cs deleted file mode 100644 index 65a0e73f5d..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsContractBillingDetailsOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateBillingSettingsContractBillingDetailsOptions : INestedOptions - { - /// - /// The bill settings details. - /// - [JsonProperty("bill_settings_details")] - [STJS.JsonPropertyName("bill_settings_details")] - public ContractCreateBillingSettingsContractBillingDetailsBillSettingsDetailsOptions BillSettingsDetails { get; set; } - - /// - /// The billing profile details. - /// - [JsonProperty("billing_profile_details")] - [STJS.JsonPropertyName("billing_profile_details")] - public ContractCreateBillingSettingsContractBillingDetailsBillingProfileDetailsOptions BillingProfileDetails { get; set; } - - /// - /// The collection settings details. - /// - [JsonProperty("collection_settings_details")] - [STJS.JsonPropertyName("collection_settings_details")] - public ContractCreateBillingSettingsContractBillingDetailsCollectionSettingsDetailsOptions CollectionSettingsDetails { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsOptions.cs index 21c8b1076c..4e9fb98077 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateBillingSettingsOptions.cs @@ -9,10 +9,24 @@ namespace Stripe.V2.Billing public class ContractCreateBillingSettingsOptions : INestedOptions { /// - /// Billing settings details for the contract. + /// The bill settings details configures invoice and tax settings for the contract. /// - [JsonProperty("contract_billing_details")] - [STJS.JsonPropertyName("contract_billing_details")] - public ContractCreateBillingSettingsContractBillingDetailsOptions ContractBillingDetails { get; set; } + [JsonProperty("bill_settings_details")] + [STJS.JsonPropertyName("bill_settings_details")] + public ContractCreateBillingSettingsBillSettingsDetailsOptions BillSettingsDetails { get; set; } + + /// + /// The billing profile details configures who is charged for the contract. + /// + [JsonProperty("billing_profile_details")] + [STJS.JsonPropertyName("billing_profile_details")] + public ContractCreateBillingSettingsBillingProfileDetailsOptions BillingProfileDetails { get; set; } + + /// + /// The collection settings details configures how payments are collected on the contract. + /// + [JsonProperty("collection_settings_details")] + [STJS.JsonPropertyName("collection_settings_details")] + public ContractCreateBillingSettingsCollectionSettingsDetailsOptions CollectionSettingsDetails { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineEndsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineEndsAtOptions.cs deleted file mode 100644 index 38c7abcf69..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineEndsAtOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineEndsAtOptions : INestedOptions - { - /// - /// The timestamp when the item ends. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOptions.cs deleted file mode 100644 index df6dff3a76..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOptions : INestedOptions, IHasMetadata - { - /// - /// Timestamp to indicate when the contract line ends. - /// - [JsonProperty("ends_at")] - [STJS.JsonPropertyName("ends_at")] - public ContractCreateContractLineEndsAtOptions EndsAt { get; set; } - - /// - /// Set of key-value pairs that you can attach to an object. - /// - [JsonProperty("metadata")] - [STJS.JsonPropertyName("metadata")] - public Dictionary Metadata { get; set; } - - /// - /// List of overrides. Later overrides in the list override earlier ones. - /// - [JsonProperty("overrides")] - [STJS.JsonPropertyName("overrides")] - public List Overrides { get; set; } - - /// - /// The pricing configuration for the contract line. - /// - [JsonProperty("pricing")] - [STJS.JsonPropertyName("pricing")] - public ContractCreateContractLinePricingOptions Pricing { get; set; } - - /// - /// Timestamp to indicate when the contract line starts. - /// - [JsonProperty("starts_at")] - [STJS.JsonPropertyName("starts_at")] - public ContractCreateContractLineStartsAtOptions StartsAt { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideEndsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideEndsAtOptions.cs deleted file mode 100644 index 410d2391c4..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideEndsAtOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideEndsAtOptions : INestedOptions - { - /// - /// The timestamp when the item ends. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideOptions.cs deleted file mode 100644 index 1cb7740ff8..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideOptions.cs +++ /dev/null @@ -1,39 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideOptions : INestedOptions - { - /// - /// Timestamp to indicate when the override ends. - /// - [JsonProperty("ends_at")] - [STJS.JsonPropertyName("ends_at")] - public ContractCreateContractLineOverrideEndsAtOptions EndsAt { get; set; } - - /// - /// Service action override parameters. Required if type is service_action. - /// - [JsonProperty("service_action")] - [STJS.JsonPropertyName("service_action")] - public ContractCreateContractLineOverrideServiceActionOptions ServiceAction { get; set; } - - /// - /// Timestamp to indicate when the override starts. - /// - [JsonProperty("starts_at")] - [STJS.JsonPropertyName("starts_at")] - public ContractCreateContractLineOverrideStartsAtOptions StartsAt { get; set; } - - /// - /// The type of the override. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions.cs deleted file mode 100644 index a4ed239972..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions : INestedOptions - { - /// - /// The monetary amount of the credit grant. Required if type is monetary. - /// - [JsonProperty("monetary")] - [STJS.JsonPropertyName("monetary")] - public V2.Amount Monetary { get; set; } - - /// - /// The type of the credit grant amount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions.cs deleted file mode 100644 index 50470c10dc..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions : INestedOptions - { - /// - /// The applicability scope of the credit grant. - /// - [JsonProperty("scope")] - [STJS.JsonPropertyName("scope")] - public ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions Scope { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions.cs deleted file mode 100644 index 102a1be8d8..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions : INestedOptions - { - /// - /// The billable items to apply the credit grant to. - /// - [JsonProperty("billable_items")] - [STJS.JsonPropertyName("billable_items")] - public List BillableItems { get; set; } - - /// - /// The price type that credit grants can apply to. - /// - [JsonProperty("price_type")] - [STJS.JsonPropertyName("price_type")] - public string PriceType { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions.cs deleted file mode 100644 index 2551b4b842..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions : INestedOptions - { - /// - /// The type of the expiry configuration. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions.cs deleted file mode 100644 index 24dc6b83e6..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions : INestedOptions - { - /// - /// The amount of the credit grant. - /// - [JsonProperty("amount")] - [STJS.JsonPropertyName("amount")] - public ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions Amount { get; set; } - - /// - /// Defines the scope where the credit grant is applicable. - /// - [JsonProperty("applicability_config")] - [STJS.JsonPropertyName("applicability_config")] - public ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions ApplicabilityConfig { get; set; } - - /// - /// The category of the credit grant. - /// One of: paid, or promotional. - /// - [JsonProperty("category")] - [STJS.JsonPropertyName("category")] - public string Category { get; set; } - - /// - /// The expiry configuration for the credit grant. - /// - [JsonProperty("expiry_config")] - [STJS.JsonPropertyName("expiry_config")] - public ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions ExpiryConfig { get; set; } - - /// - /// A descriptive name. - /// - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - /// - /// The desired priority for applying this credit grant. The highest priority is 0 and the - /// lowest is 100. - /// - [JsonProperty("priority")] - [STJS.JsonPropertyName("priority")] - public long? Priority { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddOptions.cs deleted file mode 100644 index f0bf482d21..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionAddOptions.cs +++ /dev/null @@ -1,40 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionAddOptions : INestedOptions - { - /// - /// Details for the credit grant. Required if type is credit_grant. - /// - [JsonProperty("credit_grant")] - [STJS.JsonPropertyName("credit_grant")] - public ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions CreditGrant { get; set; } - - /// - /// The interval for assessing service. - /// One of: day, month, week, or year. - /// - [JsonProperty("service_interval")] - [STJS.JsonPropertyName("service_interval")] - public string ServiceInterval { get; set; } - - /// - /// The length of the interval for assessing service. - /// - [JsonProperty("service_interval_count")] - [STJS.JsonPropertyName("service_interval_count")] - public long? ServiceIntervalCount { get; set; } - - /// - /// The type of the service action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionOptions.cs deleted file mode 100644 index 4842d66ee7..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionOptions : INestedOptions - { - /// - /// Parameters for adding a new service action. - /// - [JsonProperty("add")] - [STJS.JsonPropertyName("add")] - public ContractCreateContractLineOverrideServiceActionAddOptions Add { get; set; } - - /// - /// Parameters for replacing an existing service action. - /// - [JsonProperty("replace")] - [STJS.JsonPropertyName("replace")] - public ContractCreateContractLineOverrideServiceActionReplaceOptions Replace { get; set; } - - /// - /// The type of service action override. - /// One of: add, or replace. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions.cs deleted file mode 100644 index a34c523669..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions : INestedOptions - { - /// - /// The monetary amount of the credit grant. Required if type is monetary. - /// - [JsonProperty("monetary")] - [STJS.JsonPropertyName("monetary")] - public V2.Amount Monetary { get; set; } - - /// - /// The type of the credit grant amount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions.cs deleted file mode 100644 index 4b6a9e3555..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions : INestedOptions - { - /// - /// The applicability scope of the credit grant. - /// - [JsonProperty("scope")] - [STJS.JsonPropertyName("scope")] - public ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions Scope { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions.cs deleted file mode 100644 index 84869718a7..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions : INestedOptions - { - /// - /// The billable items to apply the credit grant to. - /// - [JsonProperty("billable_items")] - [STJS.JsonPropertyName("billable_items")] - public List BillableItems { get; set; } - - /// - /// The price type that credit grants can apply to. - /// - [JsonProperty("price_type")] - [STJS.JsonPropertyName("price_type")] - public string PriceType { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions.cs deleted file mode 100644 index 6571b41efb..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions : INestedOptions - { - /// - /// The type of the expiry configuration. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions.cs deleted file mode 100644 index 89014acbea..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions : INestedOptions - { - /// - /// The amount of the credit grant. - /// - [JsonProperty("amount")] - [STJS.JsonPropertyName("amount")] - public ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions Amount { get; set; } - - /// - /// Defines the scope where the credit grant is applicable. - /// - [JsonProperty("applicability_config")] - [STJS.JsonPropertyName("applicability_config")] - public ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions ApplicabilityConfig { get; set; } - - /// - /// The category of the credit grant. - /// One of: paid, or promotional. - /// - [JsonProperty("category")] - [STJS.JsonPropertyName("category")] - public string Category { get; set; } - - /// - /// The expiry configuration for the credit grant. - /// - [JsonProperty("expiry_config")] - [STJS.JsonPropertyName("expiry_config")] - public ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions ExpiryConfig { get; set; } - - /// - /// A descriptive name. - /// - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - /// - /// The desired priority for applying this credit grant. The highest priority is 0 and the - /// lowest is 100. - /// - [JsonProperty("priority")] - [STJS.JsonPropertyName("priority")] - public long? Priority { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceOptions.cs deleted file mode 100644 index fdeb39c6e1..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideServiceActionReplaceOptions.cs +++ /dev/null @@ -1,54 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideServiceActionReplaceOptions : INestedOptions, IHasId - { - /// - /// Details for the credit grant. Required if type is credit_grant. - /// - [JsonProperty("credit_grant")] - [STJS.JsonPropertyName("credit_grant")] - public ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions CreditGrant { get; set; } - - /// - /// The ID of the service action to replace. - /// - [JsonProperty("id")] - [STJS.JsonPropertyName("id")] - public string Id { get; set; } - - /// - /// The lookup key for the service action to replace. - /// - [JsonProperty("lookup_key")] - [STJS.JsonPropertyName("lookup_key")] - public string LookupKey { get; set; } - - /// - /// The interval for assessing service. - /// One of: day, month, week, or year. - /// - [JsonProperty("service_interval")] - [STJS.JsonPropertyName("service_interval")] - public string ServiceInterval { get; set; } - - /// - /// The length of the interval for assessing service. - /// - [JsonProperty("service_interval_count")] - [STJS.JsonPropertyName("service_interval_count")] - public long? ServiceIntervalCount { get; set; } - - /// - /// The type of the service action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideStartsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideStartsAtOptions.cs deleted file mode 100644 index 13d897a518..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineOverrideStartsAtOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineOverrideStartsAtOptions : INestedOptions - { - /// - /// The timestamp when the item starts. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLinePricingOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLinePricingOptions.cs deleted file mode 100644 index a07d236224..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLinePricingOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLinePricingOptions : INestedOptions - { - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineStartsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineStartsAtOptions.cs deleted file mode 100644 index 58509f3e57..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateContractLineStartsAtOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateContractLineStartsAtOptions : INestedOptions - { - /// - /// The timestamp when the item starts. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionEffectiveAtOptions.cs deleted file mode 100644 index b1f7bf00d1..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionEffectiveAtOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateLicenseQuantityActionEffectiveAtOptions : INestedOptions - { - /// - /// The timestamp for the effective at. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - - /// - /// The type of the effective at. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionOptions.cs deleted file mode 100644 index a4e912f324..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionOptions.cs +++ /dev/null @@ -1,61 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateLicenseQuantityActionOptions : INestedOptions - { - /// - /// The effective at for the license quantity action. - /// - [JsonProperty("effective_at")] - [STJS.JsonPropertyName("effective_at")] - public ContractCreateLicenseQuantityActionEffectiveAtOptions EffectiveAt { get; set; } - - /// - /// The ID of the license pricing. - /// - [JsonProperty("license_pricing_id")] - [STJS.JsonPropertyName("license_pricing_id")] - public string LicensePricingId { get; set; } - - /// - /// The lookup key for the license pricing. - /// - [JsonProperty("license_pricing_lookup_key")] - [STJS.JsonPropertyName("license_pricing_lookup_key")] - public string LicensePricingLookupKey { get; set; } - - /// - /// The type of the license pricing. - /// One of: license_fee, or price. - /// - [JsonProperty("license_pricing_type")] - [STJS.JsonPropertyName("license_pricing_type")] - public string LicensePricingType { get; set; } - - /// - /// The pricing line for the license quantity action. - /// - [JsonProperty("pricing_line")] - [STJS.JsonPropertyName("pricing_line")] - public string PricingLine { get; set; } - - /// - /// The set quantity for the license quantity action. - /// - [JsonProperty("set")] - [STJS.JsonPropertyName("set")] - public ContractCreateLicenseQuantityActionSetOptions Set { get; set; } - - /// - /// The type of the license quantity action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionSetOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionSetOptions.cs deleted file mode 100644 index 4900e36643..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateLicenseQuantityActionSetOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateLicenseQuantityActionSetOptions : INestedOptions - { - /// - /// The quantity to set. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillAtOptions.cs new file mode 100644 index 0000000000..c46cb5b0b8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillAtOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreateOneTimeFeeBillAtOptions : INestedOptions + { + /// + /// The timestamp at which the entry should be billed. Required if type is + /// timestamp. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the bill_at. + /// One of: now, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillScheduleBillAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillScheduleBillAtOptions.cs deleted file mode 100644 index ff782acd72..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillScheduleBillAtOptions.cs +++ /dev/null @@ -1,28 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateOneTimeFeeBillScheduleBillAtOptions : INestedOptions - { - /// - /// The datetime at which the entry should be billed. Required if type is - /// datetime. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - - /// - /// The type of the bill_at. - /// One of: contract_start, or datetime. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillScheduleOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillScheduleOptions.cs deleted file mode 100644 index 849c5d158e..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeBillScheduleOptions.cs +++ /dev/null @@ -1,27 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateOneTimeFeeBillScheduleOptions : INestedOptions - { - /// - /// When this entry should be billed. - /// - [JsonProperty("bill_at")] - [STJS.JsonPropertyName("bill_at")] - public ContractCreateOneTimeFeeBillScheduleBillAtOptions BillAt { get; set; } - - /// - /// The amount to bill for this entry, in the smallest currency unit. - /// - [JsonProperty("value")] - [JsonConverter(typeof(Int64StringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("value")] - public long? Value { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeOptions.cs index 6f3dd51c15..cc933355a3 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeOptions.cs @@ -1,7 +1,6 @@ // File generated from our OpenAPI spec namespace Stripe.V2.Billing { - using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -10,26 +9,31 @@ namespace Stripe.V2.Billing public class ContractCreateOneTimeFeeOptions : INestedOptions { /// - /// The bill schedule for the fee. Each entry produces an individual invoice item billed at - /// bill_at. + /// The amount to bill. /// - [JsonProperty("bill_schedule")] - [STJS.JsonPropertyName("bill_schedule")] - public List BillSchedule { get; set; } + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public V2.Amount Amount { get; set; } /// - /// The type of billable item that this fee references. + /// When this fee should be billed. /// - [JsonProperty("billable_item_type")] - [STJS.JsonPropertyName("billable_item_type")] - public string BillableItemType { get; set; } + [JsonProperty("bill_at")] + [STJS.JsonPropertyName("bill_at")] + public ContractCreateOneTimeFeeBillAtOptions BillAt { get; set; } /// - /// Details for a product billable target. Required when billable_item_type is - /// product. + /// A user-provided lookup key. /// - [JsonProperty("product_details")] - [STJS.JsonPropertyName("product_details")] - public ContractCreateOneTimeFeeProductDetailsOptions ProductDetails { get; set; } + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// The ID of the v1 Product for this fee. + /// + [JsonProperty("product")] + [STJS.JsonPropertyName("product")] + public string Product { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeProductDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeProductDetailsOptions.cs deleted file mode 100644 index cc30d1507c..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOneTimeFeeProductDetailsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreateOneTimeFeeProductDetailsOptions : INestedOptions - { - /// - /// The ID of the v1 Product. - /// - [JsonProperty("product")] - [STJS.JsonPropertyName("product")] - public string Product { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOptions.cs index d78588c668..b3468a62a6 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreateOptions.cs @@ -9,6 +9,15 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ContractCreateOptions : BaseOptions, IHasMetadata { + /// + /// The billing cycle anchor for the contract. If not provided, defaults to the pricing line + /// start time. It is only at the top-level of the contract with no option to override at + /// the pricing line level. + /// + [JsonProperty("billing_cycle_anchor")] + [STJS.JsonPropertyName("billing_cycle_anchor")] + public ContractCreateBillingCycleAnchorOptions BillingCycleAnchor { get; set; } + /// /// The billing settings for the contract. /// @@ -16,13 +25,6 @@ public class ContractCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("billing_settings")] public ContractCreateBillingSettingsOptions BillingSettings { get; set; } - /// - /// A list of contract lines to create with the contract. - /// - [JsonProperty("contract_lines")] - [STJS.JsonPropertyName("contract_lines")] - public List ContractLines { get; set; } - /// /// A unique user-provided contract number e.g. C-2026-0001. /// @@ -39,20 +41,13 @@ public class ContractCreateOptions : BaseOptions, IHasMetadata /// /// Additional fields to include in the response. - /// One of: contract_line_details, license_quantities, one_time_fees, - /// pricing_lines, or pricing_overrides. + /// One of: billing_settings, one_time_fees, pricing_lines, or + /// pricing_overrides. /// [JsonProperty("include")] [STJS.JsonPropertyName("include")] public List Include { get; set; } - /// - /// A list of license quantity actions to create with the contract. - /// - [JsonProperty("license_quantity_actions")] - [STJS.JsonPropertyName("license_quantity_actions")] - public List LicenseQuantityActions { get; set; } - /// /// Set of key-value pairs that you can attach to an object. /// diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsOptions.cs index 7f4c5e536d..46a51990de 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.V2.Billing { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -16,10 +17,18 @@ public class ContractCreatePricingLinePricingPriceDetailsOptions : INestedOption public string Price { get; set; } /// - /// The quantity for the price. Only applicable for licensed prices. + /// Pricing overrides embedded directly on this pricing line. /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } + [JsonProperty("pricing_overrides")] + [STJS.JsonPropertyName("pricing_overrides")] + public List PricingOverrides { get; set; } + + /// + /// Quantity changes for the pricing line. For now, at most one entry is allowed. A quantity + /// change clears all future quantity changes on this pricing line. + /// + [JsonProperty("quantity_changes")] + [STJS.JsonPropertyName("quantity_changes")] + public List QuantityChanges { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions.cs new file mode 100644 index 0000000000..769af7180b --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions : INestedOptions + { + /// + /// The timestamp when the item ends. Required if type is timestamp. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the ends_at. + /// One of: contract_end, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOptions.cs new file mode 100644 index 0000000000..e16d0b6521 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsPricingOverrideOptions : INestedOptions, IHasMetadata + { + /// + /// When the override ends. Defaults to the pricing line's end if not specified. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions EndsAt { get; set; } + + /// + /// A user-provided lookup key to reference this override. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Parameters for the overwrite_price override. Required if type is + /// overwrite_price. + /// + [JsonProperty("overwrite_price")] + [STJS.JsonPropertyName("overwrite_price")] + public ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions OverwritePrice { get; set; } + + /// + /// The priority of this override relative to others. 0 is highest, 100 is lowest. Defaults + /// to 50. + /// + [JsonProperty("priority")] + [STJS.JsonPropertyName("priority")] + public long? Priority { get; set; } + + /// + /// When the override starts. Defaults to the pricing line's start if not specified. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions StartsAt { get; set; } + + /// + /// The type of override. Currently only overwrite_price is supported. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions.cs new file mode 100644 index 0000000000..7386228704 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions : INestedOptions + { + /// + /// Defines whether the tiered price should be graduated or volume-based. + /// One of: graduated, or volume. + /// + [JsonProperty("tiering_mode")] + [STJS.JsonPropertyName("tiering_mode")] + public string TieringMode { get; set; } + + /// + /// Each element represents a pricing tier. + /// + [JsonProperty("tiers")] + [STJS.JsonPropertyName("tiers")] + public List Tiers { get; set; } + + /// + /// The per-unit amount to be charged, represented as a decimal string in minor currency + /// units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceTierOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceTierOptions.cs new file mode 100644 index 0000000000..80ac2aa0b2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceTierOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceTierOptions : INestedOptions + { + /// + /// Price for the entire tier, represented as a decimal string in minor currency units. + /// + [JsonProperty("flat_amount")] + [STJS.JsonPropertyName("flat_amount")] + public string FlatAmount { get; set; } + + /// + /// Per-unit price for units included in this tier, represented as a decimal string in minor + /// currency units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + + /// + /// Up to and including this quantity will be contained in the tier. + /// + [JsonProperty("up_to_decimal")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("up_to_decimal")] + public decimal? UpToDecimal { get; set; } + + /// + /// No upper bound to this tier. + /// + [JsonProperty("up_to_inf")] + [STJS.JsonPropertyName("up_to_inf")] + public string UpToInf { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions.cs new file mode 100644 index 0000000000..3d7d37487c --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions : INestedOptions + { + /// + /// The timestamp when the item starts. Required if type is timestamp. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the starts_at. + /// One of: contract_start, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions.cs new file mode 100644 index 0000000000..e5aecbfd91 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions : INestedOptions + { + /// + /// The timestamp for the effective at. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the effective at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsQuantityChangeOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsQuantityChangeOptions.cs new file mode 100644 index 0000000000..2c52197fc6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingLinePricingPriceDetailsQuantityChangeOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractCreatePricingLinePricingPriceDetailsQuantityChangeOptions : INestedOptions + { + /// + /// When this quantity change takes effect. + /// + [JsonProperty("effective_at")] + [STJS.JsonPropertyName("effective_at")] + public ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions EffectiveAt { get; set; } + + /// + /// The quantity to set. + /// + [JsonProperty("set")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("set")] + public decimal? Set { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionMetadataConditionAllOfOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionMetadataConditionAllOfOptions.cs deleted file mode 100644 index b12324784e..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionMetadataConditionAllOfOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreatePricingOverrideMultiplierCriterionMetadataConditionAllOfOptions : INestedOptions - { - /// - /// The metadata key. - /// - [JsonProperty("key")] - [STJS.JsonPropertyName("key")] - public string Key { get; set; } - - /// - /// The metadata value. - /// - [JsonProperty("value")] - [STJS.JsonPropertyName("value")] - public string Value { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionMetadataConditionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionMetadataConditionOptions.cs deleted file mode 100644 index cd14d90ad1..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionMetadataConditionOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreatePricingOverrideMultiplierCriterionMetadataConditionOptions : INestedOptions - { - /// - /// All of these key-value conditions must match. - /// - [JsonProperty("all_of")] - [STJS.JsonPropertyName("all_of")] - public List AllOf { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionOptions.cs index ce88494d23..a74f0ecbf6 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideMultiplierCriterionOptions.cs @@ -10,40 +10,18 @@ namespace Stripe.V2.Billing public class ContractCreatePricingOverrideMultiplierCriterionOptions : INestedOptions { /// - /// Filter by billable item IDs. + /// Filter by pricing line IDs. /// - [JsonProperty("billable_item_ids")] - [STJS.JsonPropertyName("billable_item_ids")] - public List BillableItemIds { get; set; } + [JsonProperty("pricing_line_ids")] + [STJS.JsonPropertyName("pricing_line_ids")] + public List PricingLineIds { get; set; } /// - /// Filter by billable item lookup keys. + /// Filter by pricing line lookup keys. /// - [JsonProperty("billable_item_lookup_keys")] - [STJS.JsonPropertyName("billable_item_lookup_keys")] - public List BillableItemLookupKeys { get; set; } - - /// - /// Filter by billable item type. - /// One of: licensed, or metered. - /// - [JsonProperty("billable_item_types")] - [STJS.JsonPropertyName("billable_item_types")] - public List BillableItemTypes { get; set; } - - /// - /// Filter by metadata conditions. - /// - [JsonProperty("metadata_conditions")] - [STJS.JsonPropertyName("metadata_conditions")] - public List MetadataConditions { get; set; } - - /// - /// Filter by rate card IDs. Only applicable for multiplier overrides. - /// - [JsonProperty("rate_card_ids")] - [STJS.JsonPropertyName("rate_card_ids")] - public List RateCardIds { get; set; } + [JsonProperty("pricing_line_lookup_keys")] + [STJS.JsonPropertyName("pricing_line_lookup_keys")] + public List PricingLineLookupKeys { get; set; } /// /// Whether to include or exclude items matching these criteria. diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOptions.cs index c3a6fffddb..bf70c2df79 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOptions.cs @@ -29,14 +29,6 @@ public class ContractCreatePricingOverrideOptions : INestedOptions [STJS.JsonPropertyName("multiplier")] public ContractCreatePricingOverrideMultiplierOptions Multiplier { get; set; } - /// - /// Parameters for an overwrite_price override. Required if type is - /// overwrite_price. - /// - [JsonProperty("overwrite_price")] - [STJS.JsonPropertyName("overwrite_price")] - public ContractCreatePricingOverrideOverwritePriceOptions OverwritePrice { get; set; } - /// /// The priority of this override relative to others. The highest priority is 0 and the /// lowest is 100. @@ -54,7 +46,6 @@ public class ContractCreatePricingOverrideOptions : INestedOptions /// /// The type of pricing override. - /// One of: multiplier, or overwrite_price. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOverwritePriceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOverwritePriceOptions.cs deleted file mode 100644 index 91326cb8aa..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOverwritePriceOptions.cs +++ /dev/null @@ -1,42 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreatePricingOverrideOverwritePriceOptions : INestedOptions - { - /// - /// The ID of the V1 price to overwrite. - /// - [JsonProperty("price")] - [STJS.JsonPropertyName("price")] - public string Price { get; set; } - - /// - /// Defines whether the tiered price should be graduated or volume-based. - /// One of: graduated, or volume. - /// - [JsonProperty("tiering_mode")] - [STJS.JsonPropertyName("tiering_mode")] - public string TieringMode { get; set; } - - /// - /// Each element represents a pricing tier. - /// - [JsonProperty("tiers")] - [STJS.JsonPropertyName("tiers")] - public List Tiers { get; set; } - - /// - /// The per-unit amount to be charged, represented as a decimal string in minor currency - /// units. - /// - [JsonProperty("unit_amount")] - [STJS.JsonPropertyName("unit_amount")] - public string UnitAmount { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOverwritePriceTierOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOverwritePriceTierOptions.cs deleted file mode 100644 index d8b6756389..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractCreatePricingOverrideOverwritePriceTierOptions.cs +++ /dev/null @@ -1,42 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractCreatePricingOverrideOverwritePriceTierOptions : INestedOptions - { - /// - /// Price for the entire tier, represented as a decimal string in minor currency units. - /// - [JsonProperty("flat_amount")] - [STJS.JsonPropertyName("flat_amount")] - public string FlatAmount { get; set; } - - /// - /// Per-unit price for units included in this tier, represented as a decimal string in minor - /// currency units. - /// - [JsonProperty("unit_amount")] - [STJS.JsonPropertyName("unit_amount")] - public string UnitAmount { get; set; } - - /// - /// Up to and including this quantity will be contained in the tier. - /// - [JsonProperty("up_to_decimal")] - [JsonConverter(typeof(DecimalStringConverter))] - [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] - [STJS.JsonPropertyName("up_to_decimal")] - public decimal? UpToDecimal { get; set; } - - /// - /// No upper bound to this tier. - /// - [JsonProperty("up_to_inf")] - [STJS.JsonPropertyName("up_to_inf")] - public string UpToInf { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractDeleteOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractDeleteOptions.cs new file mode 100644 index 0000000000..17cdf27a2d --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractDeleteOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractDeleteOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractGetOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractGetOptions.cs index 018e8d40c2..b4b284f6e0 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractGetOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractGetOptions.cs @@ -11,8 +11,8 @@ public class ContractGetOptions : BaseOptions { /// /// Additional fields to include in the response. - /// One of: contract_line_details, license_quantities, one_time_fees, - /// pricing_lines, or pricing_overrides. + /// One of: billing_settings, one_time_fees, pricing_lines, or + /// pricing_overrides. /// [JsonProperty("include")] [STJS.JsonPropertyName("include")] diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractListOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractListOptions.cs index 710c0ad771..ec30b5cec9 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractListOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractListOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.V2.Billing { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -14,5 +15,14 @@ public class ContractListOptions : V2.ListOptions [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] public string Customer { get; set; } + + /// + /// Additional fields to include in the response. + /// One of: billing_settings, one_time_fees, pricing_lines, or + /// pricing_overrides. + /// + [JsonProperty("include")] + [STJS.JsonPropertyName("include")] + public List Include { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractService.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractService.cs index 22675b2b0d..0a497de53f 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractService.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractService.cs @@ -10,7 +10,7 @@ namespace Stripe.V2.Billing public class ContractService : Service { - private V2.Billing.Contracts.LicensePricingService licensePricing; + private V2.Billing.Contracts.PricingLinesService pricingLines; internal ContractService(ApiRequestor requestor) : base(requestor) @@ -22,7 +22,7 @@ internal ContractService(IStripeClient client) { } - public virtual V2.Billing.Contracts.LicensePricingService LicensePricing => this.licensePricing ??= new V2.Billing.Contracts.LicensePricingService( + public virtual V2.Billing.Contracts.PricingLinesService PricingLines => this.pricingLines ??= new V2.Billing.Contracts.PricingLinesService( this.Requestor); /// @@ -73,6 +73,22 @@ public virtual Task CreateAsync(ContractCreateOptions options, Request return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/billing/contracts", options, requestOptions, cancellationToken); } + /// + /// Delete a draft Contract object by ID. + /// + public virtual V2.DeletedObject Delete(string id, ContractDeleteOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/contracts/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Delete a draft Contract object by ID. + /// + public virtual Task DeleteAsync(string id, ContractDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Delete, $"/v2/billing/contracts/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + /// /// Retrieve a Contract object by ID. /// diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionEffectiveAtOptions.cs deleted file mode 100644 index c8a4ee714b..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionEffectiveAtOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractUpdateLicenseQuantityActionEffectiveAtOptions : INestedOptions - { - /// - /// The timestamp for the effective at. - /// - [JsonProperty("timestamp")] - [STJS.JsonPropertyName("timestamp")] - public DateTime? Timestamp { get; set; } - - /// - /// The type of the effective at. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionOptions.cs deleted file mode 100644 index bfaeeeaadd..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionOptions.cs +++ /dev/null @@ -1,68 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractUpdateLicenseQuantityActionOptions : INestedOptions - { - /// - /// The effective at for the license quantity action. - /// - [JsonProperty("effective_at")] - [STJS.JsonPropertyName("effective_at")] - public ContractUpdateLicenseQuantityActionEffectiveAtOptions EffectiveAt { get; set; } - - /// - /// The ID of the license pricing. - /// - [JsonProperty("license_pricing_id")] - [STJS.JsonPropertyName("license_pricing_id")] - public string LicensePricingId { get; set; } - - /// - /// The lookup key for the license pricing. - /// - [JsonProperty("license_pricing_lookup_key")] - [STJS.JsonPropertyName("license_pricing_lookup_key")] - public string LicensePricingLookupKey { get; set; } - - /// - /// The type of the license pricing. - /// One of: license_fee, or price. - /// - [JsonProperty("license_pricing_type")] - [STJS.JsonPropertyName("license_pricing_type")] - public string LicensePricingType { get; set; } - - /// - /// The pricing line ID for the license quantity action. - /// - [JsonProperty("pricing_line")] - [STJS.JsonPropertyName("pricing_line")] - public string PricingLine { get; set; } - - /// - /// The pricing line lookup key for the license quantity action. - /// - [JsonProperty("pricing_line_lookup_key")] - [STJS.JsonPropertyName("pricing_line_lookup_key")] - public string PricingLineLookupKey { get; set; } - - /// - /// The set quantity for the license quantity action. - /// - [JsonProperty("set")] - [STJS.JsonPropertyName("set")] - public ContractUpdateLicenseQuantityActionSetOptions Set { get; set; } - - /// - /// The type of the license quantity action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionSetOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionSetOptions.cs deleted file mode 100644 index 351e52f0a4..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateLicenseQuantityActionSetOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractUpdateLicenseQuantityActionSetOptions : INestedOptions - { - /// - /// The quantity to set. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateOptions.cs index 1f43cdff74..a37290790e 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdateOptions.cs @@ -11,20 +11,13 @@ public class ContractUpdateOptions : BaseOptions { /// /// Additional fields to include in the response. - /// One of: contract_line_details, license_quantities, one_time_fees, - /// pricing_lines, or pricing_overrides. + /// One of: billing_settings, one_time_fees, pricing_lines, or + /// pricing_overrides. /// [JsonProperty("include")] [STJS.JsonPropertyName("include")] public List Include { get; set; } - /// - /// Schema-only: License quantity actions (implementation to follow). - /// - [JsonProperty("license_quantity_actions")] - [STJS.JsonPropertyName("license_quantity_actions")] - public List LicenseQuantityActions { get; set; } - /// /// Pricing line actions to apply. /// diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsOptions.cs index 0f6a67f611..a8cd69d859 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.V2.Billing { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -16,10 +17,18 @@ public class ContractUpdatePricingLineActionAddPricingPriceDetailsOptions : INes public string Price { get; set; } /// - /// The quantity for the price. Only applicable for licensed prices. + /// Pricing overrides embedded directly on this pricing line. /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } + [JsonProperty("pricing_overrides")] + [STJS.JsonPropertyName("pricing_overrides")] + public List PricingOverrides { get; set; } + + /// + /// Quantity changes for the pricing line. For now, at most one entry is allowed. A quantity + /// change clears all future quantity changes on this pricing line. + /// + [JsonProperty("quantity_changes")] + [STJS.JsonPropertyName("quantity_changes")] + public List QuantityChanges { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideEndsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideEndsAtOptions.cs new file mode 100644 index 0000000000..f3f543d304 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideEndsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideEndsAtOptions : INestedOptions + { + /// + /// The timestamp when the item ends. Required if type is timestamp. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the ends_at. + /// One of: contract_end, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOptions.cs new file mode 100644 index 0000000000..99cdca828f --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOptions : INestedOptions, IHasMetadata + { + /// + /// When the override ends. Defaults to the pricing line's end if not specified. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideEndsAtOptions EndsAt { get; set; } + + /// + /// A user-provided lookup key to reference this override. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Parameters for the overwrite_price override. Required if type is + /// overwrite_price. + /// + [JsonProperty("overwrite_price")] + [STJS.JsonPropertyName("overwrite_price")] + public ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceOptions OverwritePrice { get; set; } + + /// + /// The priority of this override relative to others. 0 is highest, 100 is lowest. Defaults + /// to 50. + /// + [JsonProperty("priority")] + [STJS.JsonPropertyName("priority")] + public long? Priority { get; set; } + + /// + /// When the override starts. Defaults to the pricing line's start if not specified. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideStartsAtOptions StartsAt { get; set; } + + /// + /// The type of override. Currently only overwrite_price is supported. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceOptions.cs new file mode 100644 index 0000000000..fde5a93f88 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceOptions : INestedOptions + { + /// + /// Defines whether the tiered price should be graduated or volume-based. + /// One of: graduated, or volume. + /// + [JsonProperty("tiering_mode")] + [STJS.JsonPropertyName("tiering_mode")] + public string TieringMode { get; set; } + + /// + /// Each element represents a pricing tier. + /// + [JsonProperty("tiers")] + [STJS.JsonPropertyName("tiers")] + public List Tiers { get; set; } + + /// + /// The per-unit amount to be charged, represented as a decimal string in minor currency + /// units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceTierOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceTierOptions.cs new file mode 100644 index 0000000000..0354fab71b --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceTierOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideOverwritePriceTierOptions : INestedOptions + { + /// + /// Price for the entire tier, represented as a decimal string in minor currency units. + /// + [JsonProperty("flat_amount")] + [STJS.JsonPropertyName("flat_amount")] + public string FlatAmount { get; set; } + + /// + /// Per-unit price for units included in this tier, represented as a decimal string in minor + /// currency units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + + /// + /// Up to and including this quantity will be contained in the tier. + /// + [JsonProperty("up_to_decimal")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("up_to_decimal")] + public decimal? UpToDecimal { get; set; } + + /// + /// No upper bound to this tier. + /// + [JsonProperty("up_to_inf")] + [STJS.JsonPropertyName("up_to_inf")] + public string UpToInf { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideStartsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideStartsAtOptions.cs new file mode 100644 index 0000000000..a4cb9bb896 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideStartsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsPricingOverrideStartsAtOptions : INestedOptions + { + /// + /// The timestamp when the item starts. Required if type is timestamp. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the starts_at. + /// One of: contract_start, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeEffectiveAtOptions.cs new file mode 100644 index 0000000000..25250b6bab --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeEffectiveAtOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeEffectiveAtOptions : INestedOptions + { + /// + /// The timestamp for the effective at. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the effective at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeOptions.cs new file mode 100644 index 0000000000..c66d99b2b8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeOptions : INestedOptions + { + /// + /// When this quantity change takes effect. + /// + [JsonProperty("effective_at")] + [STJS.JsonPropertyName("effective_at")] + public ContractUpdatePricingLineActionAddPricingPriceDetailsQuantityChangeEffectiveAtOptions EffectiveAt { get; set; } + + /// + /// The quantity to set. + /// + [JsonProperty("set")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("set")] + public decimal? Set { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdateOptions.cs index e12ed3b318..52201c5374 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdateOptions.cs @@ -22,6 +22,13 @@ public class ContractUpdatePricingLineActionUpdateOptions : INestedOptions, IHas [STJS.JsonPropertyName("id")] public string Id { get; set; } + /// + /// Pricing updates for the pricing line (quantity changes and pricing override actions). + /// + [JsonProperty("pricing")] + [STJS.JsonPropertyName("pricing")] + public ContractUpdatePricingLineActionUpdatePricingOptions Pricing { get; set; } + /// /// The updated start time for the pricing line. /// diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingOptions.cs new file mode 100644 index 0000000000..1f2ef0c314 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingOptions : INestedOptions + { + /// + /// V1 price details. Present when the pricing line type is price. + /// + [JsonProperty("price_details")] + [STJS.JsonPropertyName("price_details")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsOptions PriceDetails { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsOptions.cs new file mode 100644 index 0000000000..573d0266f3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsOptions : INestedOptions + { + /// + /// Pricing override actions to apply to the overrides embedded on this pricing line. + /// + [JsonProperty("pricing_override_actions")] + [STJS.JsonPropertyName("pricing_override_actions")] + public List PricingOverrideActions { get; set; } + + /// + /// Quantity changes for the pricing line. Setting this clears all future quantity changes. + /// + [JsonProperty("quantity_changes")] + [STJS.JsonPropertyName("quantity_changes")] + public List QuantityChanges { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddEndsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddEndsAtOptions.cs new file mode 100644 index 0000000000..d543f26cfc --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddEndsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddEndsAtOptions : INestedOptions + { + /// + /// The timestamp when the item ends. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of end time to apply. + /// One of: billing_period_end, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOptions.cs new file mode 100644 index 0000000000..da671b2b82 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOptions.cs @@ -0,0 +1,63 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOptions : INestedOptions, IHasMetadata + { + /// + /// The end time for the override. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddEndsAtOptions EndsAt { get; set; } + + /// + /// A lookup key for the override. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Parameters for an overwrite_price override. Required if type is + /// overwrite_price. + /// + [JsonProperty("overwrite_price")] + [STJS.JsonPropertyName("overwrite_price")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceOptions OverwritePrice { get; set; } + + /// + /// The priority of this override relative to others. 0 is highest, 100 is lowest. Defaults + /// to 50. + /// + [JsonProperty("priority")] + [STJS.JsonPropertyName("priority")] + public long? Priority { get; set; } + + /// + /// The start time for the override. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddStartsAtOptions StartsAt { get; set; } + + /// + /// The type of override to add. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceOptions.cs new file mode 100644 index 0000000000..858a807f60 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceOptions : INestedOptions + { + /// + /// Defines whether the tiered price should be graduated or volume-based. + /// One of: graduated, or volume. + /// + [JsonProperty("tiering_mode")] + [STJS.JsonPropertyName("tiering_mode")] + public string TieringMode { get; set; } + + /// + /// Each element represents a pricing tier. + /// + [JsonProperty("tiers")] + [STJS.JsonPropertyName("tiers")] + public List Tiers { get; set; } + + /// + /// The per-unit amount to be charged, represented as a decimal string in minor currency + /// units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceTierOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceTierOptions.cs new file mode 100644 index 0000000000..9e0db68783 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceTierOptions.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOverwritePriceTierOptions : INestedOptions + { + /// + /// Price for the entire tier, represented as a decimal string in minor currency units. + /// + [JsonProperty("flat_amount")] + [STJS.JsonPropertyName("flat_amount")] + public string FlatAmount { get; set; } + + /// + /// Per-unit price for units included in this tier, represented as a decimal string in minor + /// currency units. + /// + [JsonProperty("unit_amount")] + [STJS.JsonPropertyName("unit_amount")] + public string UnitAmount { get; set; } + + /// + /// Up to and including this quantity will be contained in the tier. + /// + [JsonProperty("up_to_decimal")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("up_to_decimal")] + public decimal? UpToDecimal { get; set; } + + /// + /// No upper bound to this tier. + /// + [JsonProperty("up_to_inf")] + [STJS.JsonPropertyName("up_to_inf")] + public string UpToInf { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddStartsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddStartsAtOptions.cs new file mode 100644 index 0000000000..e5ad261589 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddStartsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddStartsAtOptions : INestedOptions + { + /// + /// The timestamp when the item starts. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of start time to apply. + /// One of: billing_period_start, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionOptions.cs new file mode 100644 index 0000000000..6b9197eb52 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionOptions : INestedOptions + { + /// + /// Parameters for adding a pricing line override. + /// + [JsonProperty("add")] + [STJS.JsonPropertyName("add")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionAddOptions Add { get; set; } + + /// + /// Parameters for removing a pricing line override. + /// + [JsonProperty("remove")] + [STJS.JsonPropertyName("remove")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionRemoveOptions Remove { get; set; } + + /// + /// The type of pricing line override action. + /// One of: add, remove, or update. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Parameters for updating a pricing line override. + /// + [JsonProperty("update")] + [STJS.JsonPropertyName("update")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateOptions Update { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionRemoveOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionRemoveOptions.cs new file mode 100644 index 0000000000..1916345952 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionRemoveOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionRemoveOptions : INestedOptions, IHasId + { + /// + /// The ID of the pricing line override to remove. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// A lookup key for the override to remove. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateEndsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateEndsAtOptions.cs new file mode 100644 index 0000000000..63b169057a --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateEndsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateEndsAtOptions : INestedOptions + { + /// + /// The timestamp when the item ends. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of end time to apply. + /// One of: billing_period_end, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateOptions.cs new file mode 100644 index 0000000000..a90b5f5506 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateOptions : INestedOptions, IHasId, IHasMetadata + { + /// + /// The updated end time for the override. + /// + [JsonProperty("ends_at")] + [STJS.JsonPropertyName("ends_at")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateEndsAtOptions EndsAt { get; set; } + + /// + /// The ID of the pricing line override to update. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// A lookup key for the override to update. + /// + [JsonProperty("lookup_key")] + [STJS.JsonPropertyName("lookup_key")] + public string LookupKey { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// The updated start time for the override. + /// + [JsonProperty("starts_at")] + [STJS.JsonPropertyName("starts_at")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateStartsAtOptions StartsAt { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateStartsAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateStartsAtOptions.cs new file mode 100644 index 0000000000..e50e263366 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateStartsAtOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsPricingOverrideActionUpdateStartsAtOptions : INestedOptions + { + /// + /// The timestamp when the item starts. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of start time to apply. + /// One of: billing_period_start, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeEffectiveAtOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeEffectiveAtOptions.cs new file mode 100644 index 0000000000..fa138ab3bb --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeEffectiveAtOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeEffectiveAtOptions : INestedOptions + { + /// + /// The timestamp for the effective at. + /// + [JsonProperty("timestamp")] + [STJS.JsonPropertyName("timestamp")] + public DateTime? Timestamp { get; set; } + + /// + /// The type of the effective at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeOptions.cs new file mode 100644 index 0000000000..8a60bec9ed --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeOptions : INestedOptions + { + /// + /// When this quantity change takes effect. + /// + [JsonProperty("effective_at")] + [STJS.JsonPropertyName("effective_at")] + public ContractUpdatePricingLineActionUpdatePricingPriceDetailsQuantityChangeEffectiveAtOptions EffectiveAt { get; set; } + + /// + /// The quantity to set. + /// + [JsonProperty("set")] + [JsonConverter(typeof(DecimalStringConverter))] + [STJS.JsonNumberHandling(STJS.JsonNumberHandling.AllowReadingFromString | STJS.JsonNumberHandling.WriteAsString)] + [STJS.JsonPropertyName("set")] + public decimal? Set { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionAllOfOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionAllOfOptions.cs deleted file mode 100644 index 41d9b22ac9..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionAllOfOptions.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionAllOfOptions : INestedOptions - { - /// - /// The metadata key. - /// - [JsonProperty("key")] - [STJS.JsonPropertyName("key")] - public string Key { get; set; } - - /// - /// The metadata value. - /// - [JsonProperty("value")] - [STJS.JsonPropertyName("value")] - public string Value { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionOptions.cs deleted file mode 100644 index 6bc3f69dad..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class ContractUpdatePricingOverrideActionAddMultiplierCriterionMetadataConditionOptions : INestedOptions - { - /// - /// All of these key-value conditions must match. - /// - [JsonProperty("all_of")] - [STJS.JsonPropertyName("all_of")] - public List AllOf { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionOptions.cs index e2c150afe9..75945bde7b 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddMultiplierCriterionOptions.cs @@ -10,40 +10,18 @@ namespace Stripe.V2.Billing public class ContractUpdatePricingOverrideActionAddMultiplierCriterionOptions : INestedOptions { /// - /// Filter by billable item IDs. + /// Filter by pricing line IDs. /// - [JsonProperty("billable_item_ids")] - [STJS.JsonPropertyName("billable_item_ids")] - public List BillableItemIds { get; set; } + [JsonProperty("pricing_line_ids")] + [STJS.JsonPropertyName("pricing_line_ids")] + public List PricingLineIds { get; set; } /// - /// Filter by billable item lookup keys. + /// Filter by pricing line lookup keys. /// - [JsonProperty("billable_item_lookup_keys")] - [STJS.JsonPropertyName("billable_item_lookup_keys")] - public List BillableItemLookupKeys { get; set; } - - /// - /// Filter by billable item type. - /// One of: licensed, or metered. - /// - [JsonProperty("billable_item_types")] - [STJS.JsonPropertyName("billable_item_types")] - public List BillableItemTypes { get; set; } - - /// - /// Filter by metadata conditions. - /// - [JsonProperty("metadata_conditions")] - [STJS.JsonPropertyName("metadata_conditions")] - public List MetadataConditions { get; set; } - - /// - /// Filter by rate card IDs. Only applicable for multiplier overrides. - /// - [JsonProperty("rate_card_ids")] - [STJS.JsonPropertyName("rate_card_ids")] - public List RateCardIds { get; set; } + [JsonProperty("pricing_line_lookup_keys")] + [STJS.JsonPropertyName("pricing_line_lookup_keys")] + public List PricingLineLookupKeys { get; set; } /// /// Whether to include or exclude items matching these criteria. diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOptions.cs index cc6d9a2fed..72b85bb2ca 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOptions.cs @@ -52,7 +52,6 @@ public class ContractUpdatePricingOverrideActionAddOptions : INestedOptions /// /// The type of pricing override to add. - /// One of: multiplier, or overwrite_price. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOverwritePriceOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOverwritePriceOptions.cs index 657d9de388..3b6467f58b 100644 --- a/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOverwritePriceOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Contracts/ContractUpdatePricingOverrideActionAddOverwritePriceOptions.cs @@ -9,13 +9,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ContractUpdatePricingOverrideActionAddOverwritePriceOptions : INestedOptions { - /// - /// The ID of the V1 price to overwrite. - /// - [JsonProperty("price")] - [STJS.JsonPropertyName("price")] - public string Price { get; set; } - /// /// Defines whether the tiered price should be graduated or volume-based. /// One of: graduated, or volume. diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricing/QuantityChanges/QuantityChangeListQuantityChangesOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricing/QuantityChanges/QuantityChangeListQuantityChangesOptions.cs deleted file mode 100644 index ec7adbab8a..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricing/QuantityChanges/QuantityChangeListQuantityChangesOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing.Contracts.LicensePricing -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class QuantityChangeListQuantityChangesOptions : V2.ListOptions - { - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricing/QuantityChanges/QuantityChangeService.cs b/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricing/QuantityChanges/QuantityChangeService.cs deleted file mode 100644 index 1c94c486ac..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricing/QuantityChanges/QuantityChangeService.cs +++ /dev/null @@ -1,55 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing.Contracts.LicensePricing -{ - using System; - using System.Collections.Generic; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - public class QuantityChangeService : Service - { - internal QuantityChangeService(ApiRequestor requestor) - : base(requestor) - { - } - - internal QuantityChangeService(IStripeClient client) - : base(client) - { - } - - /// - /// List license quantity changes for a contract given a license pricing ID. - /// - public virtual V2.StripeList ListQuantityChanges(string parentId, string id, QuantityChangeListQuantityChangesOptions options = null, RequestOptions requestOptions = null) - { - return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/license_pricing/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions); - } - - /// - /// List license quantity changes for a contract given a license pricing ID. - /// - public virtual Task> ListQuantityChangesAsync(string parentId, string id, QuantityChangeListQuantityChangesOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/license_pricing/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions, cancellationToken); - } - - /// - /// List license quantity changes for a contract given a license pricing ID. - /// - public virtual IEnumerable ListQuantityChangesAutoPaging(string parentId, string id, QuantityChangeListQuantityChangesOptions options = null, RequestOptions requestOptions = null) - { - return this.ListRequestAutoPaging($"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/license_pricing/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions); - } - - /// - /// List license quantity changes for a contract given a license pricing ID. - /// - public virtual IAsyncEnumerable ListQuantityChangesAutoPagingAsync(string parentId, string id, QuantityChangeListQuantityChangesOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.ListRequestAutoPagingAsync($"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/license_pricing/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions, cancellationToken); - } - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricingService.cs b/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricingService.cs deleted file mode 100644 index 147ead9ab2..0000000000 --- a/src/Stripe.net/Services/V2/Billing/Contracts/LicensePricingService.cs +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Billing.Contracts -{ - using System; - using System.Threading; - using System.Threading.Tasks; - - public class LicensePricingService : Service - { - private V2.Billing.Contracts.LicensePricing.QuantityChangeService quantityChanges; - - internal LicensePricingService(ApiRequestor requestor) - : base(requestor) - { - } - - internal LicensePricingService(IStripeClient client) - : base(client) - { - } - - public virtual V2.Billing.Contracts.LicensePricing.QuantityChangeService QuantityChanges => this.quantityChanges ??= new V2.Billing.Contracts.LicensePricing.QuantityChangeService( - this.Requestor); - } -} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/PricingLines/QuantityChanges/QuantityChangeListContractPricingLineQuantityChangesOptions.cs b/src/Stripe.net/Services/V2/Billing/Contracts/PricingLines/QuantityChanges/QuantityChangeListContractPricingLineQuantityChangesOptions.cs new file mode 100644 index 0000000000..cf3c57a760 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/PricingLines/QuantityChanges/QuantityChangeListContractPricingLineQuantityChangesOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing.Contracts.PricingLines +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class QuantityChangeListContractPricingLineQuantityChangesOptions : V2.ListOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/PricingLines/QuantityChanges/QuantityChangeService.cs b/src/Stripe.net/Services/V2/Billing/Contracts/PricingLines/QuantityChanges/QuantityChangeService.cs new file mode 100644 index 0000000000..37051e4b87 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/PricingLines/QuantityChanges/QuantityChangeService.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing.Contracts.PricingLines +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class QuantityChangeService : Service + { + internal QuantityChangeService(ApiRequestor requestor) + : base(requestor) + { + } + + internal QuantityChangeService(IStripeClient client) + : base(client) + { + } + + /// + /// List quantity changes for a pricing line on a contract. + /// + public virtual V2.StripeList ListContractPricingLineQuantityChanges(string parentId, string id, QuantityChangeListContractPricingLineQuantityChangesOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/pricing_lines/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions); + } + + /// + /// List quantity changes for a pricing line on a contract. + /// + public virtual Task> ListContractPricingLineQuantityChangesAsync(string parentId, string id, QuantityChangeListContractPricingLineQuantityChangesOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/pricing_lines/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions, cancellationToken); + } + + /// + /// List quantity changes for a pricing line on a contract. + /// + public virtual IEnumerable ListContractPricingLineQuantityChangesAutoPaging(string parentId, string id, QuantityChangeListContractPricingLineQuantityChangesOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/pricing_lines/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions); + } + + /// + /// List quantity changes for a pricing line on a contract. + /// + public virtual IAsyncEnumerable ListContractPricingLineQuantityChangesAutoPagingAsync(string parentId, string id, QuantityChangeListContractPricingLineQuantityChangesOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/billing/contracts/{WebUtility.UrlEncode(parentId)}/pricing_lines/{WebUtility.UrlEncode(id)}/quantity_changes", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Billing/Contracts/PricingLinesService.cs b/src/Stripe.net/Services/V2/Billing/Contracts/PricingLinesService.cs new file mode 100644 index 0000000000..208b923195 --- /dev/null +++ b/src/Stripe.net/Services/V2/Billing/Contracts/PricingLinesService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Billing.Contracts +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class PricingLinesService : Service + { + private V2.Billing.Contracts.PricingLines.QuantityChangeService quantityChanges; + + internal PricingLinesService(ApiRequestor requestor) + : base(requestor) + { + } + + internal PricingLinesService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Billing.Contracts.PricingLines.QuantityChangeService QuantityChanges => this.quantityChanges ??= new V2.Billing.Contracts.PricingLines.QuantityChangeService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs b/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs index 4a963e5d73..94d0113bfb 100644 --- a/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs @@ -19,7 +19,7 @@ public class MeterEventStreamCreateEventOptions : INestedOptions /// /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We’ll enforce uniqueness within a rolling + /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling /// 24 hour period. /// [JsonProperty("identifier")] @@ -27,7 +27,7 @@ public class MeterEventStreamCreateEventOptions : INestedOptions public string Identifier { get; set; } /// - /// The payload of the event. This must contain the fields corresponding to a meter’s + /// The payload of the event. This must contain the fields corresponding to a meter's /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We’ll enforce uniqueness within a rolling + /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling /// 24 hour period. /// [JsonProperty("identifier")] @@ -27,7 +27,7 @@ public class MeterEventCreateOptions : BaseOptions public string Identifier { get; set; } /// - /// The payload of the event. This must contain the fields corresponding to a meter’s + /// The payload of the event. This must contain the fields corresponding to a meter's /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// customer, merchant, recipient, or storer. + /// One of: customer, merchant, money_manager, recipient, or + /// storer. /// [JsonProperty("configurations")] [STJS.JsonPropertyName("configurations")] diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs index a9b3985581..0cea8d4a9f 100644 --- a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseAccountUpdateOptions.cs @@ -21,7 +21,8 @@ public class AccountLinkCreateUseCaseAccountUpdateOptions : INestedOptions /// Open Enum. A v2/account can be configured to enable certain functionality. The /// configuration param targets the v2/account_link to collect information for the specified /// v2/account configuration/s. - /// One of: customer, merchant, recipient, or storer. + /// One of: customer, merchant, money_manager, recipient, or + /// storer. /// [JsonProperty("configurations")] [STJS.JsonPropertyName("configurations")] diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs new file mode 100644 index 0000000000..2c19a5038f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions : INestedOptions + { + /// + /// The boolean value indicating if the terms of service have been accepted. + /// + [JsonProperty("shown_and_accepted")] + [STJS.JsonPropertyName("shown_and_accepted")] + public bool? ShownAndAccepted { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs deleted file mode 100644 index c4faf5b390..0000000000 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions : INestedOptions - { - /// - /// The boolean value indicating if the terms of service have been accepted. - /// - [JsonProperty("shown_and_accepted")] - [STJS.JsonPropertyName("shown_and_accepted")] - public bool? ShownAndAccepted { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs new file mode 100644 index 0000000000..a1ed8abe9a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountTokenCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions : INestedOptions + { + /// + /// The boolean value indicating if the terms of service have been accepted. + /// + [JsonProperty("shown_and_accepted")] + [STJS.JsonPropertyName("shown_and_accepted")] + public bool? ShownAndAccepted { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs index caff950eef..1374aeba47 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceOptions.cs @@ -24,19 +24,19 @@ public class AccountTokenCreateIdentityAttestationsTermsOfServiceOptions : INest public AccountTokenCreateIdentityAttestationsTermsOfServiceCardCreatorOptions CardCreator { get; set; } /// - /// Details on the Account's acceptance of Crypto-storer-specific terms of service; IP, - /// date, and User Agent are expanded by Stripe. + /// Details on the Account's acceptance of Crypto-specific terms of service; IP, date, and + /// User Agent are expanded by Stripe. /// - [JsonProperty("crypto_storer")] - [STJS.JsonPropertyName("crypto_storer")] - public AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions CryptoStorer { get; set; } + [JsonProperty("crypto_money_manager")] + [STJS.JsonPropertyName("crypto_money_manager")] + public AccountTokenCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions CryptoMoneyManager { get; set; } /// /// Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and /// User Agent are expanded by Stripe. /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountTokenCreateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountTokenCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions MoneyManager { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceStorerOptions.cs deleted file mode 100644 index b279c95c50..0000000000 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityAttestationsTermsOfServiceStorerOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountTokenCreateIdentityAttestationsTermsOfServiceStorerOptions : INestedOptions - { - /// - /// The boolean value indicating if the terms of service have been accepted. - /// - [JsonProperty("shown_and_accepted")] - [STJS.JsonPropertyName("shown_and_accepted")] - public bool? ShownAndAccepted { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs index bc1ae685d2..6dd5f7243d 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCloseOptions.cs @@ -13,7 +13,7 @@ public class AccountCloseOptions : BaseOptions /// Configurations on the Account to be closed. All configurations on the Account must be /// passed in for this request to succeed. /// One of: card_creator, customer, merchant, recipient, or - /// storer. + /// money_manager. /// [JsonProperty("applied_configurations")] [STJS.JsonPropertyName("applied_configurations")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs index ae8df2dd74..99c7889e0a 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesOptions.cs @@ -288,6 +288,13 @@ public class AccountCreateConfigurationMerchantCapabilitiesOptions : INestedOpti [STJS.JsonPropertyName("sepa_debit_payments")] public AccountCreateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + /// + /// Allow the merchant to process Sunbit payments. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions SunbitPayments { get; set; } + /// /// Allow the merchant to process Swish payments. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs new file mode 100644 index 0000000000..57b16c3b38 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions.cs new file mode 100644 index 0000000000..2bada76cb8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..f849704f1a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions.cs new file mode 100644 index 0000000000..e871976f29 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions.cs new file mode 100644 index 0000000000..2fb2a78c7f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..519c77c670 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions.cs new file mode 100644 index 0000000000..8186fa5ef5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions.cs new file mode 100644 index 0000000000..6dae8684ae --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..03a075c6ba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions.cs new file mode 100644 index 0000000000..52b3272a31 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions.cs new file mode 100644 index 0000000000..d13cc7d8bb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..721f8617c4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions.cs new file mode 100644 index 0000000000..568394baa4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions.cs new file mode 100644 index 0000000000..fdfbffebd3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1fd70ad8f6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions.cs new file mode 100644 index 0000000000..7019d15fd2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions : INestedOptions + { + /// + /// Can receive business storage-type funds on Stripe in AUD. + /// + [JsonProperty("aud")] + [STJS.JsonPropertyName("aud")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions Aud { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in CAD. + /// + [JsonProperty("cad")] + [STJS.JsonPropertyName("cad")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions Cad { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in EUR. + /// + [JsonProperty("eur")] + [STJS.JsonPropertyName("eur")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions Eur { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in GBP. + /// + [JsonProperty("gbp")] + [STJS.JsonPropertyName("gbp")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions Gbp { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions Usd { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions.cs new file mode 100644 index 0000000000..0f5555e8be --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..2d7b13f376 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1b599c55f3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions.cs new file mode 100644 index 0000000000..89c397a885 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..cbc565e5f9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..ef78afde76 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions.cs new file mode 100644 index 0000000000..1314acaaab --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions : INestedOptions + { + /// + /// Can receive business storage-type funds on Stripe. + /// + [JsonProperty("inbound")] + [STJS.JsonPropertyName("inbound")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions Inbound { get; set; } + + /// + /// Can send business storage-type funds on Stripe. + /// + [JsonProperty("outbound")] + [STJS.JsonPropertyName("outbound")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions Outbound { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions.cs new file mode 100644 index 0000000000..a3510c8dc6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions.cs new file mode 100644 index 0000000000..03d0037fc5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..03d1d8c327 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions.cs new file mode 100644 index 0000000000..7a0f3574be --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions.cs new file mode 100644 index 0000000000..0c6c3df474 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1871fadf76 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions.cs new file mode 100644 index 0000000000..cdd2b46ddb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions.cs new file mode 100644 index 0000000000..50dafedfce --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..893d16115e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions.cs new file mode 100644 index 0000000000..e72668e8b8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions.cs new file mode 100644 index 0000000000..ef8744d56a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..53422b0a16 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions.cs new file mode 100644 index 0000000000..24ba9e4d35 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions : INestedOptions + { + /// + /// Can send business storage-type funds on Stripe in AUD. + /// + [JsonProperty("aud")] + [STJS.JsonPropertyName("aud")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions Aud { get; set; } + + /// + /// Can send business storage-type funds on Stripe in CAD. + /// + [JsonProperty("cad")] + [STJS.JsonPropertyName("cad")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions Cad { get; set; } + + /// + /// Can send business storage-type funds on Stripe in EUR. + /// + [JsonProperty("eur")] + [STJS.JsonPropertyName("eur")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions Eur { get; set; } + + /// + /// Can send business storage-type funds on Stripe in GBP. + /// + [JsonProperty("gbp")] + [STJS.JsonPropertyName("gbp")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions Gbp { get; set; } + + /// + /// Can send business storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions Usd { get; set; } + + /// + /// Can send business storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions.cs new file mode 100644 index 0000000000..4763b25b36 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..3af304ad88 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1ba7dbe2ba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions.cs new file mode 100644 index 0000000000..51b107f90f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..0e480d7fee --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..72496066d6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions.cs new file mode 100644 index 0000000000..ac299bea49 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions : INestedOptions + { + /// + /// Can receive consumer storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions Usd { get; set; } + + /// + /// Can receive consumer storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions.cs new file mode 100644 index 0000000000..d030b5cdfb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..1d22036f11 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..0d748e67c3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions.cs new file mode 100644 index 0000000000..12f1eef2fc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..c513bcc733 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..50d5904fa0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions.cs new file mode 100644 index 0000000000..ba05ba2fc2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions : INestedOptions + { + /// + /// Can receive consumer storage-type funds on Stripe. + /// + [JsonProperty("inbound")] + [STJS.JsonPropertyName("inbound")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions Inbound { get; set; } + + /// + /// Can send consumer storage-type funds on Stripe. + /// + [JsonProperty("outbound")] + [STJS.JsonPropertyName("outbound")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions Outbound { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions.cs new file mode 100644 index 0000000000..d9f2afc88e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions : INestedOptions + { + /// + /// Can send consumer storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions Usd { get; set; } + + /// + /// Can send consumer storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions.cs new file mode 100644 index 0000000000..7a8f957e44 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..422ed6d5d9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1e43358a13 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions.cs new file mode 100644 index 0000000000..969eca03ba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..b8da770286 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..430e31b6a7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions.cs new file mode 100644 index 0000000000..836a0ff07f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..2d2f0b1541 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..d50b27ebcc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions.cs new file mode 100644 index 0000000000..c2b0f972f2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions : INestedOptions + { + /// + /// Can pull funds from an external bank account owned by yourself to a FinancialAccount. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions BankAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOptions.cs new file mode 100644 index 0000000000..643b2e2de1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOptions : INestedOptions + { + /// + /// Can send or receive business storage-type funds on Stripe. + /// + [JsonProperty("business_storage")] + [STJS.JsonPropertyName("business_storage")] + public AccountCreateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions BusinessStorage { get; set; } + + /// + /// Can send or receive consumer storage-type funds on Stripe. + /// + [JsonProperty("consumer_storage")] + [STJS.JsonPropertyName("consumer_storage")] + public AccountCreateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions ConsumerStorage { get; set; } + + /// + /// Can pull funds from an external source, owned by yourself, to a FinancialAccount. + /// + [JsonProperty("inbound_transfers")] + [STJS.JsonPropertyName("inbound_transfers")] + public AccountCreateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions InboundTransfers { get; set; } + + /// + /// Can send funds from a FinancialAccount to a destination owned by someone else. + /// + [JsonProperty("outbound_payments")] + [STJS.JsonPropertyName("outbound_payments")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions OutboundPayments { get; set; } + + /// + /// Can send funds from a FinancialAccount to a destination owned by yourself. + /// + [JsonProperty("outbound_transfers")] + [STJS.JsonPropertyName("outbound_transfers")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions OutboundTransfers { get; set; } + + /// + /// Can receive funds into a FinancialAccount. + /// + [JsonProperty("received_credits")] + [STJS.JsonPropertyName("received_credits")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions ReceivedCredits { get; set; } + + /// + /// Can receive debits to a FinancialAccount. + /// + [JsonProperty("received_debits")] + [STJS.JsonPropertyName("received_debits")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions ReceivedDebits { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions.cs new file mode 100644 index 0000000000..13087d33e6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..c9c06827bc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..45a123159f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions.cs new file mode 100644 index 0000000000..f9cfdc9ef1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs new file mode 100644 index 0000000000..a8e9fb23a5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..0bf5decf41 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs new file mode 100644 index 0000000000..f5fede23bf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs new file mode 100644 index 0000000000..2a23387d70 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..19d12b146f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs new file mode 100644 index 0000000000..b910771373 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..e3f07b3d82 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..aec8725de5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions.cs new file mode 100644 index 0000000000..a2001dbd48 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions : INestedOptions + { + /// + /// Can send funds from a FinancialAccount to a bank account owned by someone else. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions BankAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to a debit card owned by someone else. + /// + [JsonProperty("cards")] + [STJS.JsonPropertyName("cards")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions Cards { get; set; } + + /// + /// Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions CryptoWallets { get; set; } + + /// + /// Can send funds from a FinancialAccount to another FinancialAccount owned by someone + /// else. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions FinancialAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to someone else via paper check. + /// + [JsonProperty("paper_checks")] + [STJS.JsonPropertyName("paper_checks")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions PaperChecks { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions.cs new file mode 100644 index 0000000000..cc66748337 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs new file mode 100644 index 0000000000..3eecbaf3e7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..6938afe593 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions.cs new file mode 100644 index 0000000000..765eab760d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..da1eb89256 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..7fb44409e1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs new file mode 100644 index 0000000000..b72ccb221a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs new file mode 100644 index 0000000000..c0761b938b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..b4aad1a03d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs new file mode 100644 index 0000000000..8e8267b670 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..a0ad5091f8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1655db7cbf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions.cs new file mode 100644 index 0000000000..639353418a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions : INestedOptions + { + /// + /// Can send funds from a FinancialAccount to a bank account owned by yourself. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions BankAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions CryptoWallets { get; set; } + + /// + /// Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions FinancialAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions.cs new file mode 100644 index 0000000000..d49a882eb2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..9d94380cbb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..76b098d2ec --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions.cs new file mode 100644 index 0000000000..ea7e6e128b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions.cs new file mode 100644 index 0000000000..3bbde86fbe --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..eb7d36502e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions.cs new file mode 100644 index 0000000000..f05ddc678c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions : INestedOptions + { + /// + /// Can receive funds on a bank-account-like financial address (VBAN) to credit a + /// FinancialAccount. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions BankAccounts { get; set; } + + /// + /// Can receive funds on a crypto wallet like financial address to credit a + /// FinancialAccount. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions CryptoWallets { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions.cs new file mode 100644 index 0000000000..61d8fa8fbd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..626c5308d3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..c25328a1ba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions.cs new file mode 100644 index 0000000000..24640ba715 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions : INestedOptions + { + /// + /// Can receive debits to a FinancialAccount from a bank account. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountCreateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions BankAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerOptions.cs new file mode 100644 index 0000000000..957fa0001e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerOptions.cs @@ -0,0 +1,107 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerOptions : INestedOptions + { + /// + /// Capabilities to request on the Money Manager Configuration. + /// + [JsonProperty("capabilities")] + [STJS.JsonPropertyName("capabilities")] + public AccountCreateConfigurationMoneyManagerCapabilitiesOptions Capabilities { get; set; } + + /// + /// List of high-risk activities the business is involved in. + /// One of: adult_entertainment, gambling, hold_client_funds, + /// investment_services, lending_banking, + /// marijuana_or_related_services, money_services, + /// nicotine_tobacco_or_related_services, none, + /// operate_foreign_exchange_virtual_currencies_brokerage_otc, + /// pharmaceuticals, precious_metals_precious_stones_jewelry, + /// safe_deposit_box_rentals, third_party_payment_processing, or + /// weapons_firearms_and_explosives. + /// + [JsonProperty("high_risk_activities")] + [STJS.JsonPropertyName("high_risk_activities")] + public List HighRiskActivities { get; set; } + + /// + /// Description of the high-risk activities the business offers. + /// + [JsonProperty("high_risk_activities_description")] + [STJS.JsonPropertyName("high_risk_activities_description")] + public string HighRiskActivitiesDescription { get; set; } + + /// + /// Description of the money services offered by the business. + /// + [JsonProperty("money_services_description")] + [STJS.JsonPropertyName("money_services_description")] + public string MoneyServicesDescription { get; set; } + + /// + /// Indicates whether the business operates in any prohibited countries. + /// + [JsonProperty("operates_in_prohibited_countries")] + [STJS.JsonPropertyName("operates_in_prohibited_countries")] + public bool? OperatesInProhibitedCountries { get; set; } + + /// + /// Indicates whether the business participates in any regulated activity. + /// + [JsonProperty("participates_in_regulated_activity")] + [STJS.JsonPropertyName("participates_in_regulated_activity")] + public bool? ParticipatesInRegulatedActivity { get; set; } + + /// + /// Primary purpose of the stored funds. + /// One of: charitable_donations, ecommerce_retail_payments, + /// investment_purposes, other, payments_to_friends_or_family_abroad, + /// payroll, personal_or_living_expenses, protect_wealth, + /// purchase_goods_and_services, receive_payments_for_goods_and_services, + /// tax_optimization, third_party_money_transmission, or + /// treasury_management. + /// + [JsonProperty("purpose_of_funds")] + [STJS.JsonPropertyName("purpose_of_funds")] + public string PurposeOfFunds { get; set; } + + /// + /// Description of the purpose of the stored funds. + /// + [JsonProperty("purpose_of_funds_description")] + [STJS.JsonPropertyName("purpose_of_funds_description")] + public string PurposeOfFundsDescription { get; set; } + + /// + /// Details of the regulated activity if the business participates in one. + /// + [JsonProperty("regulated_activity")] + [STJS.JsonPropertyName("regulated_activity")] + public AccountCreateConfigurationMoneyManagerRegulatedActivityOptions RegulatedActivity { get; set; } + + /// + /// The source of funds for the business, e.g. profits, income, venture capital, etc. + /// One of: business_loans, grants, inter_company_funds, + /// investment_proceeds, legal_settlement, owners_capital, + /// pension_retirement, sales_of_assets, sales_of_goods_and_services, + /// tax_refund, third_party_funds, or treasury_reserves. + /// + [JsonProperty("source_of_funds")] + [STJS.JsonPropertyName("source_of_funds")] + public string SourceOfFunds { get; set; } + + /// + /// Description of the source of funds for the business' account. + /// + [JsonProperty("source_of_funds_description")] + [STJS.JsonPropertyName("source_of_funds_description")] + public string SourceOfFundsDescription { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerRegulatedActivityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerRegulatedActivityOptions.cs new file mode 100644 index 0000000000..589f483943 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationMoneyManagerRegulatedActivityOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationMoneyManagerRegulatedActivityOptions : INestedOptions + { + /// + /// A detailed description of the regulated activities the business is licensed to conduct. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The license number or registration number assigned by the business's primary regulator. + /// + [JsonProperty("license_number")] + [STJS.JsonPropertyName("license_number")] + public string LicenseNumber { get; set; } + + /// + /// The country of the primary regulatory authority that oversees the business's regulated + /// activities. + /// + [JsonProperty("primary_regulatory_authority_country")] + [STJS.JsonPropertyName("primary_regulatory_authority_country")] + public string PrimaryRegulatoryAuthorityCountry { get; set; } + + /// + /// The name of the primary regulatory authority that oversees the business's regulated + /// activities. + /// + [JsonProperty("primary_regulatory_authority_name")] + [STJS.JsonPropertyName("primary_regulatory_authority_name")] + public string PrimaryRegulatoryAuthorityName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs index fb463f24ba..5d77a91439 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationOptions.cs @@ -34,6 +34,14 @@ public class AccountCreateConfigurationOptions : INestedOptions [STJS.JsonPropertyName("merchant")] public AccountCreateConfigurationMerchantOptions Merchant { get; set; } + /// + /// The Money Manager Configuration allows the Account to store and move funds using + /// FinancialAccounts. + /// + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountCreateConfigurationMoneyManagerOptions MoneyManager { get; set; } + /// /// The Recipient Configuration allows the Account to receive funds. Utilize this /// configuration if the Account will not be the Merchant of Record, like with Separate @@ -42,13 +50,5 @@ public class AccountCreateConfigurationOptions : INestedOptions [JsonProperty("recipient")] [STJS.JsonPropertyName("recipient")] public AccountCreateConfigurationRecipientOptions Recipient { get; set; } - - /// - /// The Storer Configuration allows the Account to store and move funds using stored-value - /// FinancialAccounts. - /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountCreateConfigurationStorerOptions Storer { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchOptions.cs new file mode 100644 index 0000000000..689ed20d6b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions.cs new file mode 100644 index 0000000000..e4a2fc23c4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..37b02b7040 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsOptions.cs new file mode 100644 index 0000000000..c49bd9df3c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions.cs new file mode 100644 index 0000000000..bb1fdbb554 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..0079a06a3a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftOptions.cs new file mode 100644 index 0000000000..1e47c9811e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions.cs new file mode 100644 index 0000000000..57de3cc211 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..49a9cf7a21 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions.cs new file mode 100644 index 0000000000..42de685058 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions.cs new file mode 100644 index 0000000000..2c897661a1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..08d7498818 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsOptions.cs new file mode 100644 index 0000000000..4459b60335 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions.cs new file mode 100644 index 0000000000..54161955ac --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..2327a77580 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppOptions.cs new file mode 100644 index 0000000000..2564db6711 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions.cs new file mode 100644 index 0000000000..18f16eaeba --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..c26d8e1df6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsOptions.cs index 075aed0551..07aad61e20 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsOptions.cs @@ -8,6 +8,43 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsOptions : INestedOptions { + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over ACH rails. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsAchOptions Ach { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over BECS + /// rails. + /// + [JsonProperty("becs")] + [STJS.JsonPropertyName("becs")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsBecsOptions Becs { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over EFT rails. + /// + [JsonProperty("eft")] + [STJS.JsonPropertyName("eft")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsEftOptions Eft { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over Fedwire or + /// CHIPS. + /// + [JsonProperty("fedwire")] + [STJS.JsonPropertyName("fedwire")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions Fedwire { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over FPS rails. + /// + [JsonProperty("fps")] + [STJS.JsonPropertyName("fps")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsFpsOptions Fps { get; set; } + /// /// Enables this Account to receive OutboundPayments to linked bank accounts over real time /// rails. @@ -24,6 +61,44 @@ public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsOptions [STJS.JsonPropertyName("local")] public AccountCreateConfigurationRecipientCapabilitiesBankAccountsLocalOptions Local { get; set; } + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over NPP (real + /// time) rails. + /// + [JsonProperty("npp")] + [STJS.JsonPropertyName("npp")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsNppOptions Npp { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over RTP rails. + /// + [JsonProperty("rtp")] + [STJS.JsonPropertyName("rtp")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpOptions Rtp { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SEPA + /// credit rails. + /// + [JsonProperty("sepa_credit")] + [STJS.JsonPropertyName("sepa_credit")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions SepaCredit { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SEPA + /// instant (real time) rails. + /// + [JsonProperty("sepa_instant")] + [STJS.JsonPropertyName("sepa_instant")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions SepaInstant { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SWIFT. + /// + [JsonProperty("swift")] + [STJS.JsonPropertyName("swift")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions Swift { get; set; } + /// /// Enables this Account to receive OutboundPayments to linked bank accounts over wire. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpOptions.cs new file mode 100644 index 0000000000..08fd6ffdd8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions.cs new file mode 100644 index 0000000000..64cf2b76e4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..b6ab015e2f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions.cs new file mode 100644 index 0000000000..1bedcfab76 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions.cs new file mode 100644 index 0000000000..1573adf957 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..d18b8596fb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions.cs new file mode 100644 index 0000000000..b864eab193 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions.cs new file mode 100644 index 0000000000..9b88226072 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..c703a6bdf5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions.cs new file mode 100644 index 0000000000..991c9a3a9c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions.cs new file mode 100644 index 0000000000..22b61bac53 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..a9b6316e55 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs deleted file mode 100644 index f1dd8f4c2a..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions : INestedOptions - { - /// - /// Can hold storage-type funds on Stripe in USD in a consumer financial account. - /// - [JsonProperty("usd")] - [STJS.JsonPropertyName("usd")] - public AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions Usd { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs deleted file mode 100644 index 2942938e39..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions.cs deleted file mode 100644 index 08a404c28d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs deleted file mode 100644 index 86991e1491..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerOptions.cs deleted file mode 100644 index 2ab6f35fe9..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesConsumerOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesConsumerOptions : INestedOptions - { - /// - /// Can hold storage-type funds on Stripe in a consumer financial account. - /// - [JsonProperty("holds_currencies")] - [STJS.JsonPropertyName("holds_currencies")] - public AccountCreateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions HoldsCurrencies { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions.cs deleted file mode 100644 index 7359380a01..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions.cs deleted file mode 100644 index e53b325a4b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 6ae2df34e0..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions.cs deleted file mode 100644 index d84118cf54..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions.cs deleted file mode 100644 index d5eca6d7db..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 8703c8faf2..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesOptions.cs deleted file mode 100644 index 0883a95e6b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesFinancialAddressesOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesFinancialAddressesOptions : INestedOptions - { - /// - /// Can provision a bank-account-like financial address (VBAN) to credit/debit a - /// FinancialAccount. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions BankAccounts { get; set; } - - /// - /// Can provision a crypto wallet like financial address to credit a FinancialAccount. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions CryptoWallets { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions.cs deleted file mode 100644 index 52f2a96d85..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions.cs deleted file mode 100644 index 6b572b101f..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions.cs deleted file mode 100644 index 10c18e0fc7..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions.cs deleted file mode 100644 index 66d1c33cf4..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions.cs deleted file mode 100644 index eee9b619b5..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions.cs deleted file mode 100644 index b61add7546..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesOptions.cs deleted file mode 100644 index 850783442d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesOptions.cs +++ /dev/null @@ -1,39 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesOptions : INestedOptions - { - /// - /// Can hold storage-type funds on Stripe in EUR. - /// - [JsonProperty("eur")] - [STJS.JsonPropertyName("eur")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions Eur { get; set; } - - /// - /// Can hold storage-type funds on Stripe in GBP. - /// - [JsonProperty("gbp")] - [STJS.JsonPropertyName("gbp")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions Gbp { get; set; } - - /// - /// Can hold storage-type funds on Stripe in USD. - /// - [JsonProperty("usd")] - [STJS.JsonPropertyName("usd")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions Usd { get; set; } - - /// - /// Can hold storage-type funds on Stripe in USDC. - /// - [JsonProperty("usdc")] - [STJS.JsonPropertyName("usdc")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions Usdc { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions.cs deleted file mode 100644 index 5fe202eaff..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions.cs deleted file mode 100644 index 388fff098d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs deleted file mode 100644 index eb7957c727..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions.cs deleted file mode 100644 index 99756057c4..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions.cs deleted file mode 100644 index b7b46ae2c7..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions.cs deleted file mode 100644 index d33f6a9087..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions.cs deleted file mode 100644 index e1b67cd216..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs deleted file mode 100644 index 3d501e6255..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index a89a901568..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersOptions.cs deleted file mode 100644 index d4b2971037..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesInboundTransfersOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesInboundTransfersOptions : INestedOptions - { - /// - /// Can pull funds from an external bank account owned by yourself to a FinancialAccount. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountCreateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions BankAccounts { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs deleted file mode 100644 index f54515bf3b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOptions.cs +++ /dev/null @@ -1,53 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOptions : INestedOptions - { - /// - /// Can provision a consumer financial account on Stripe. - /// - [JsonProperty("consumer")] - [STJS.JsonPropertyName("consumer")] - public AccountCreateConfigurationStorerCapabilitiesConsumerOptions Consumer { get; set; } - - /// - /// Can provision a financial address to credit/debit a FinancialAccount. - /// - [JsonProperty("financial_addresses")] - [STJS.JsonPropertyName("financial_addresses")] - public AccountCreateConfigurationStorerCapabilitiesFinancialAddressesOptions FinancialAddresses { get; set; } - - /// - /// Can hold storage-type funds on Stripe. - /// - [JsonProperty("holds_currencies")] - [STJS.JsonPropertyName("holds_currencies")] - public AccountCreateConfigurationStorerCapabilitiesHoldsCurrenciesOptions HoldsCurrencies { get; set; } - - /// - /// Can pull funds from an external source, owned by yourself, to a FinancialAccount. - /// - [JsonProperty("inbound_transfers")] - [STJS.JsonPropertyName("inbound_transfers")] - public AccountCreateConfigurationStorerCapabilitiesInboundTransfersOptions InboundTransfers { get; set; } - - /// - /// Can send funds from a FinancialAccount to a destination owned by someone else. - /// - [JsonProperty("outbound_payments")] - [STJS.JsonPropertyName("outbound_payments")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsOptions OutboundPayments { get; set; } - - /// - /// Can send funds from a FinancialAccount to a destination owned by yourself. - /// - [JsonProperty("outbound_transfers")] - [STJS.JsonPropertyName("outbound_transfers")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersOptions OutboundTransfers { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions.cs deleted file mode 100644 index 11a2841bfc..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs deleted file mode 100644 index c2ac35592b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 4e0c33ab6b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions.cs deleted file mode 100644 index 324d37f44b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs deleted file mode 100644 index d59074f5a7..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 27fe0140f3..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs deleted file mode 100644 index 0e2a7e0919..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs deleted file mode 100644 index e1b006bd45..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs deleted file mode 100644 index ad41eade35..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs deleted file mode 100644 index 2bd5abadde..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs deleted file mode 100644 index 92539660bf..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 3c620f58bf..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsOptions.cs deleted file mode 100644 index cb2604c626..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsOptions : INestedOptions - { - /// - /// Can send funds from a FinancialAccount to a bank account owned by someone else. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions BankAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to a debit card owned by someone else. - /// - [JsonProperty("cards")] - [STJS.JsonPropertyName("cards")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions Cards { get; set; } - - /// - /// Can send funds from a FinancialAccount to a crypto wallet owned by someone else. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions CryptoWallets { get; set; } - - /// - /// Can send funds from a FinancialAccount to another FinancialAccount owned by someone - /// else. - /// - [JsonProperty("financial_accounts")] - [STJS.JsonPropertyName("financial_accounts")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions FinancialAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to someone else via paper check. - /// - [JsonProperty("paper_checks")] - [STJS.JsonPropertyName("paper_checks")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions PaperChecks { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions.cs deleted file mode 100644 index 86ff02d2a6..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs deleted file mode 100644 index ed445441b8..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs deleted file mode 100644 index f46806b118..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions.cs deleted file mode 100644 index 224aa772a5..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs deleted file mode 100644 index 3fb24a5df3..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index c93925f206..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs deleted file mode 100644 index b5b14d14ca..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs deleted file mode 100644 index 2a7f27aeab..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 4fb2086477..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs deleted file mode 100644 index e7b82e691d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs deleted file mode 100644 index 68b33db65c..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 7a668a0d70..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersOptions.cs deleted file mode 100644 index 9544f973ac..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerCapabilitiesOutboundTransfersOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerCapabilitiesOutboundTransfersOptions : INestedOptions - { - /// - /// Can send funds from a FinancialAccount to a bank account owned by yourself. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions BankAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to a crypto wallet owned by yourself. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions CryptoWallets { get; set; } - - /// - /// Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. - /// - [JsonProperty("financial_accounts")] - [STJS.JsonPropertyName("financial_accounts")] - public AccountCreateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions FinancialAccounts { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerOptions.cs deleted file mode 100644 index 4b9e7460bd..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerOptions.cs +++ /dev/null @@ -1,107 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerOptions : INestedOptions - { - /// - /// Capabilities to request on the Storer Configuration. - /// - [JsonProperty("capabilities")] - [STJS.JsonPropertyName("capabilities")] - public AccountCreateConfigurationStorerCapabilitiesOptions Capabilities { get; set; } - - /// - /// List of high-risk activities the business is involved in. - /// One of: adult_entertainment, gambling, hold_client_funds, - /// investment_services, lending_banking, - /// marijuana_or_related_services, money_services, - /// nicotine_tobacco_or_related_services, none, - /// operate_foreign_exchange_virtual_currencies_brokerage_otc, - /// pharmaceuticals, precious_metals_precious_stones_jewelry, - /// safe_deposit_box_rentals, third_party_payment_processing, or - /// weapons_firearms_and_explosives. - /// - [JsonProperty("high_risk_activities")] - [STJS.JsonPropertyName("high_risk_activities")] - public List HighRiskActivities { get; set; } - - /// - /// Description of the high-risk activities the business offers. - /// - [JsonProperty("high_risk_activities_description")] - [STJS.JsonPropertyName("high_risk_activities_description")] - public string HighRiskActivitiesDescription { get; set; } - - /// - /// Description of the money services offered by the business. - /// - [JsonProperty("money_services_description")] - [STJS.JsonPropertyName("money_services_description")] - public string MoneyServicesDescription { get; set; } - - /// - /// Indicates whether the business operates in any prohibited countries. - /// - [JsonProperty("operates_in_prohibited_countries")] - [STJS.JsonPropertyName("operates_in_prohibited_countries")] - public bool? OperatesInProhibitedCountries { get; set; } - - /// - /// Indicates whether the business participates in any regulated activity. - /// - [JsonProperty("participates_in_regulated_activity")] - [STJS.JsonPropertyName("participates_in_regulated_activity")] - public bool? ParticipatesInRegulatedActivity { get; set; } - - /// - /// Primary purpose of the stored funds. - /// One of: charitable_donations, ecommerce_retail_payments, - /// investment_purposes, other, payments_to_friends_or_family_abroad, - /// payroll, personal_or_living_expenses, protect_wealth, - /// purchase_goods_and_services, receive_payments_for_goods_and_services, - /// tax_optimization, third_party_money_transmission, or - /// treasury_management. - /// - [JsonProperty("purpose_of_funds")] - [STJS.JsonPropertyName("purpose_of_funds")] - public string PurposeOfFunds { get; set; } - - /// - /// Description of the purpose of the stored funds. - /// - [JsonProperty("purpose_of_funds_description")] - [STJS.JsonPropertyName("purpose_of_funds_description")] - public string PurposeOfFundsDescription { get; set; } - - /// - /// Details of the regulated activity if the business participates in one. - /// - [JsonProperty("regulated_activity")] - [STJS.JsonPropertyName("regulated_activity")] - public AccountCreateConfigurationStorerRegulatedActivityOptions RegulatedActivity { get; set; } - - /// - /// The source of funds for the business, e.g. profits, income, venture capital, etc. - /// One of: business_loans, grants, inter_company_funds, - /// investment_proceeds, legal_settlement, owners_capital, - /// pension_retirement, sales_of_assets, sales_of_goods_and_services, - /// tax_refund, third_party_funds, or treasury_reserves. - /// - [JsonProperty("source_of_funds")] - [STJS.JsonPropertyName("source_of_funds")] - public string SourceOfFunds { get; set; } - - /// - /// Description of the source of funds for the business' account. - /// - [JsonProperty("source_of_funds_description")] - [STJS.JsonPropertyName("source_of_funds_description")] - public string SourceOfFundsDescription { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerRegulatedActivityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerRegulatedActivityOptions.cs deleted file mode 100644 index 68e2675877..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateConfigurationStorerRegulatedActivityOptions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateConfigurationStorerRegulatedActivityOptions : INestedOptions - { - /// - /// A detailed description of the regulated activities the business is licensed to conduct. - /// - [JsonProperty("description")] - [STJS.JsonPropertyName("description")] - public string Description { get; set; } - - /// - /// The license number or registration number assigned by the business's primary regulator. - /// - [JsonProperty("license_number")] - [STJS.JsonPropertyName("license_number")] - public string LicenseNumber { get; set; } - - /// - /// The country of the primary regulatory authority that oversees the business's regulated - /// activities. - /// - [JsonProperty("primary_regulatory_authority_country")] - [STJS.JsonPropertyName("primary_regulatory_authority_country")] - public string PrimaryRegulatoryAuthorityCountry { get; set; } - - /// - /// The name of the primary regulatory authority that oversees the business's regulated - /// activities. - /// - [JsonProperty("primary_regulatory_authority_name")] - [STJS.JsonPropertyName("primary_regulatory_authority_name")] - public string PrimaryRegulatoryAuthorityName { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions.cs new file mode 100644 index 0000000000..c758bbb6f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs deleted file mode 100644 index a9fa930325..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions : INestedOptions - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs new file mode 100644 index 0000000000..7512cba7c7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs deleted file mode 100644 index f13c45cf82..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions : INestedOptions - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs new file mode 100644 index 0000000000..d98db0a846 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs index dc95218346..b744bd5c35 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceOptions.cs @@ -24,6 +24,13 @@ public class AccountCreateIdentityAttestationsTermsOfServiceOptions : INestedOpt [STJS.JsonPropertyName("card_creator")] public AccountCreateIdentityAttestationsTermsOfServiceCardCreatorOptions CardCreator { get; set; } + /// + /// Details on the Account's acceptance of Consumer-specific terms of service. + /// + [JsonProperty("consumer_money_manager")] + [STJS.JsonPropertyName("consumer_money_manager")] + public AccountCreateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions ConsumerMoneyManager { get; set; } + /// /// Details on the Account's acceptance of Consumer-privacy-disclosures-specific terms of /// service. @@ -33,24 +40,17 @@ public class AccountCreateIdentityAttestationsTermsOfServiceOptions : INestedOpt public AccountCreateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions ConsumerPrivacyDisclosures { get; set; } /// - /// Details on the Account's acceptance of Consumer-storer-specific terms of service. - /// - [JsonProperty("consumer_storer")] - [STJS.JsonPropertyName("consumer_storer")] - public AccountCreateIdentityAttestationsTermsOfServiceConsumerStorerOptions ConsumerStorer { get; set; } - - /// - /// Details on the Account's acceptance of Crypto-storer-specific terms of service. + /// Details on the Account's acceptance of Crypto-specific terms of service. /// - [JsonProperty("crypto_storer")] - [STJS.JsonPropertyName("crypto_storer")] - public AccountCreateIdentityAttestationsTermsOfServiceCryptoStorerOptions CryptoStorer { get; set; } + [JsonProperty("crypto_money_manager")] + [STJS.JsonPropertyName("crypto_money_manager")] + public AccountCreateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions CryptoMoneyManager { get; set; } /// /// Details on the Account's acceptance of Treasury-specific terms of service. /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountCreateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountCreateIdentityAttestationsTermsOfServiceMoneyManagerOptions MoneyManager { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceStorerOptions.cs deleted file mode 100644 index 2019d1c419..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityAttestationsTermsOfServiceStorerOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountCreateIdentityAttestationsTermsOfServiceStorerOptions : INestedOptions - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs index d48ba85949..bd713bd4d4 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateOptions.cs @@ -73,7 +73,7 @@ public class AccountCreateOptions : BaseOptions, IHasMetadata /// Additional fields to include in the response. /// One of: configuration.card_creator, configuration.customer, /// configuration.merchant, configuration.recipient, - /// configuration.storer, defaults, future_requirements, + /// configuration.money_manager, defaults, future_requirements, /// identity, or requirements. /// [JsonProperty("include")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs index 6cfc1af940..bf1f228f8c 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountGetOptions.cs @@ -13,7 +13,7 @@ public class AccountGetOptions : BaseOptions /// Additional fields to include in the response. /// One of: configuration.card_creator, configuration.customer, /// configuration.merchant, configuration.recipient, - /// configuration.storer, defaults, future_requirements, + /// configuration.money_manager, defaults, future_requirements, /// identity, or requirements. /// [JsonProperty("include")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs index 363d99c498..822f91d441 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountListOptions.cs @@ -13,7 +13,7 @@ public class AccountListOptions : V2.ListOptions /// Filter only accounts that have all of the configurations specified. If omitted, returns /// all accounts regardless of which configurations they have. /// One of: card_creator, customer, merchant, recipient, or - /// storer. + /// money_manager. /// [JsonProperty("applied_configurations")] [STJS.JsonPropertyName("applied_configurations")] diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs index e378d920aa..cddb90345a 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesOptions.cs @@ -288,6 +288,13 @@ public class AccountUpdateConfigurationMerchantCapabilitiesOptions : INestedOpti [STJS.JsonPropertyName("sepa_debit_payments")] public AccountUpdateConfigurationMerchantCapabilitiesSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + /// + /// Allow the merchant to process Sunbit payments. + /// + [JsonProperty("sunbit_payments")] + [STJS.JsonPropertyName("sunbit_payments")] + public AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions SunbitPayments { get; set; } + /// /// Allow the merchant to process Swish payments. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs new file mode 100644 index 0000000000..98ef987c2e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions.cs new file mode 100644 index 0000000000..6e2ab2298b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..7c20689c21 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMerchantCapabilitiesSunbitPaymentsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions.cs new file mode 100644 index 0000000000..5160a79519 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions.cs new file mode 100644 index 0000000000..6ddb77a89a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..a7c108fbe9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions.cs new file mode 100644 index 0000000000..ea15b9e6b1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions.cs new file mode 100644 index 0000000000..dd5bb366a4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..97228864e4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions.cs new file mode 100644 index 0000000000..1d4a5fe6f2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions.cs new file mode 100644 index 0000000000..034095c340 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..60abd65515 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions.cs new file mode 100644 index 0000000000..09dca14413 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions.cs new file mode 100644 index 0000000000..170b51d3fa --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..59fee7067a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions.cs new file mode 100644 index 0000000000..38a9d57796 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions : INestedOptions + { + /// + /// Can receive business storage-type funds on Stripe in AUD. + /// + [JsonProperty("aud")] + [STJS.JsonPropertyName("aud")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundAudOptions Aud { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in CAD. + /// + [JsonProperty("cad")] + [STJS.JsonPropertyName("cad")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundCadOptions Cad { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in EUR. + /// + [JsonProperty("eur")] + [STJS.JsonPropertyName("eur")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundEurOptions Eur { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in GBP. + /// + [JsonProperty("gbp")] + [STJS.JsonPropertyName("gbp")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundGbpOptions Gbp { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions Usd { get; set; } + + /// + /// Can receive business storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions.cs new file mode 100644 index 0000000000..f242361c5a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..a0441c17a9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..767408e0c1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions.cs new file mode 100644 index 0000000000..c5cdd80379 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..6c328143bf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..8439c59b77 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions.cs new file mode 100644 index 0000000000..57840d451e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions : INestedOptions + { + /// + /// Can receive business storage-type funds on Stripe. + /// + [JsonProperty("inbound")] + [STJS.JsonPropertyName("inbound")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageInboundOptions Inbound { get; set; } + + /// + /// Can send business storage-type funds on Stripe. + /// + [JsonProperty("outbound")] + [STJS.JsonPropertyName("outbound")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions Outbound { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions.cs new file mode 100644 index 0000000000..e4cc9187c0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions.cs new file mode 100644 index 0000000000..1664c1e8cf --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..efced8f84c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions.cs new file mode 100644 index 0000000000..56570c7700 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions.cs new file mode 100644 index 0000000000..b176a25d6b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..b6381883bb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions.cs new file mode 100644 index 0000000000..0bf4c146ab --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions.cs new file mode 100644 index 0000000000..a9d48f5d63 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1a9e6f2d71 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions.cs new file mode 100644 index 0000000000..ab545a301e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions.cs new file mode 100644 index 0000000000..1ce7bfbb56 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..15057abced --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions.cs new file mode 100644 index 0000000000..68fdd4592a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions.cs @@ -0,0 +1,53 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundOptions : INestedOptions + { + /// + /// Can send business storage-type funds on Stripe in AUD. + /// + [JsonProperty("aud")] + [STJS.JsonPropertyName("aud")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundAudOptions Aud { get; set; } + + /// + /// Can send business storage-type funds on Stripe in CAD. + /// + [JsonProperty("cad")] + [STJS.JsonPropertyName("cad")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundCadOptions Cad { get; set; } + + /// + /// Can send business storage-type funds on Stripe in EUR. + /// + [JsonProperty("eur")] + [STJS.JsonPropertyName("eur")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundEurOptions Eur { get; set; } + + /// + /// Can send business storage-type funds on Stripe in GBP. + /// + [JsonProperty("gbp")] + [STJS.JsonPropertyName("gbp")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundGbpOptions Gbp { get; set; } + + /// + /// Can send business storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions Usd { get; set; } + + /// + /// Can send business storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions.cs new file mode 100644 index 0000000000..c85a6c181b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..4823a79fd2 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..2ed993ff9b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions.cs new file mode 100644 index 0000000000..4e87a211d9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..02f6966d73 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..ea5159eca7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOutboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions.cs new file mode 100644 index 0000000000..db813a35e9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions : INestedOptions + { + /// + /// Can receive consumer storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions Usd { get; set; } + + /// + /// Can receive consumer storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions.cs new file mode 100644 index 0000000000..e315fc77cd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..e7774f64c7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..0288e6e535 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions.cs new file mode 100644 index 0000000000..a5f8099bd1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..c82f74af30 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..09adcbcea0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions.cs new file mode 100644 index 0000000000..26b514fc46 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions : INestedOptions + { + /// + /// Can receive consumer storage-type funds on Stripe. + /// + [JsonProperty("inbound")] + [STJS.JsonPropertyName("inbound")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageInboundOptions Inbound { get; set; } + + /// + /// Can send consumer storage-type funds on Stripe. + /// + [JsonProperty("outbound")] + [STJS.JsonPropertyName("outbound")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions Outbound { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions.cs new file mode 100644 index 0000000000..8dcbbb2922 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundOptions : INestedOptions + { + /// + /// Can send consumer storage-type funds on Stripe in USD. + /// + [JsonProperty("usd")] + [STJS.JsonPropertyName("usd")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions Usd { get; set; } + + /// + /// Can send consumer storage-type funds on Stripe in USDC. + /// + [JsonProperty("usdc")] + [STJS.JsonPropertyName("usdc")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions Usdc { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions.cs new file mode 100644 index 0000000000..8169cc05b8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions.cs new file mode 100644 index 0000000000..2763d4ac69 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..8f84ac7326 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions.cs new file mode 100644 index 0000000000..211d987669 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions.cs new file mode 100644 index 0000000000..061df16fe3 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..c431f56713 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOutboundUsdcProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions.cs new file mode 100644 index 0000000000..87f4a8a414 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..db5d49d343 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..82521f9d47 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions.cs new file mode 100644 index 0000000000..32aea12282 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions : INestedOptions + { + /// + /// Can pull funds from an external bank account owned by yourself to a FinancialAccount. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersBankAccountsOptions BankAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOptions.cs new file mode 100644 index 0000000000..5589bf7806 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOptions : INestedOptions + { + /// + /// Can send or receive business storage-type funds on Stripe. + /// + [JsonProperty("business_storage")] + [STJS.JsonPropertyName("business_storage")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesBusinessStorageOptions BusinessStorage { get; set; } + + /// + /// Can send or receive consumer storage-type funds on Stripe. + /// + [JsonProperty("consumer_storage")] + [STJS.JsonPropertyName("consumer_storage")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesConsumerStorageOptions ConsumerStorage { get; set; } + + /// + /// Can pull funds from an external source, owned by yourself, to a FinancialAccount. + /// + [JsonProperty("inbound_transfers")] + [STJS.JsonPropertyName("inbound_transfers")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesInboundTransfersOptions InboundTransfers { get; set; } + + /// + /// Can send funds from a FinancialAccount to a destination owned by someone else. + /// + [JsonProperty("outbound_payments")] + [STJS.JsonPropertyName("outbound_payments")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions OutboundPayments { get; set; } + + /// + /// Can send funds from a FinancialAccount to a destination owned by yourself. + /// + [JsonProperty("outbound_transfers")] + [STJS.JsonPropertyName("outbound_transfers")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions OutboundTransfers { get; set; } + + /// + /// Can receive funds on a financial address to credit a FinancialAccount. + /// + [JsonProperty("received_credits")] + [STJS.JsonPropertyName("received_credits")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions ReceivedCredits { get; set; } + + /// + /// Can receive debits to a FinancialAccount. + /// + [JsonProperty("received_debits")] + [STJS.JsonPropertyName("received_debits")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions ReceivedDebits { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions.cs new file mode 100644 index 0000000000..f939e6b091 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..c3c111b927 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..13ace48ffb --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions.cs new file mode 100644 index 0000000000..6754af6650 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs new file mode 100644 index 0000000000..87e619a9f9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..8b5cb1cbec --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs new file mode 100644 index 0000000000..df4c98dc26 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs new file mode 100644 index 0000000000..2d16ff4084 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..1274856e17 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs new file mode 100644 index 0000000000..71c62dd9a8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..389fdbdc52 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..4b1125f7e1 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions.cs new file mode 100644 index 0000000000..0cb5a5e36f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions.cs @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsOptions : INestedOptions + { + /// + /// Can send funds from a FinancialAccount to a bank account owned by someone else. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsBankAccountsOptions BankAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to a debit card owned by someone else. + /// + [JsonProperty("cards")] + [STJS.JsonPropertyName("cards")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCardsOptions Cards { get; set; } + + /// + /// Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsCryptoWalletsOptions CryptoWallets { get; set; } + + /// + /// Can send funds from a FinancialAccount to another FinancialAccount owned by someone + /// else. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsFinancialAccountsOptions FinancialAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to someone else via paper check. + /// + [JsonProperty("paper_checks")] + [STJS.JsonPropertyName("paper_checks")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions PaperChecks { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions.cs new file mode 100644 index 0000000000..a144cbf869 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs new file mode 100644 index 0000000000..510442f2dc --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..06770d4852 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions.cs new file mode 100644 index 0000000000..e43bc3d39b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..5bd6cc252d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..7e61c06719 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs new file mode 100644 index 0000000000..01d796ce71 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs new file mode 100644 index 0000000000..e290f5b390 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..5feeb06d8a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs new file mode 100644 index 0000000000..080f4aaa38 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..6639eb478e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..bc239952b4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions.cs new file mode 100644 index 0000000000..e0d3490326 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersOptions : INestedOptions + { + /// + /// Can send funds from a FinancialAccount to a bank account owned by yourself. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersBankAccountsOptions BankAccounts { get; set; } + + /// + /// Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersCryptoWalletsOptions CryptoWallets { get; set; } + + /// + /// Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. + /// + [JsonProperty("financial_accounts")] + [STJS.JsonPropertyName("financial_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOutboundTransfersFinancialAccountsOptions FinancialAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions.cs new file mode 100644 index 0000000000..2d86e13c53 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..93c121ab35 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..42374d708e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions.cs new file mode 100644 index 0000000000..418a095499 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions.cs new file mode 100644 index 0000000000..b6cdc2b2fe --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..7db3acba2d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions.cs new file mode 100644 index 0000000000..05b20739f8 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsOptions : INestedOptions + { + /// + /// Can receive funds on a bank-account-like financial address (VBAN) to credit a + /// FinancialAccount. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsBankAccountsOptions BankAccounts { get; set; } + + /// + /// Can receive funds on a crypto wallet like financial address to credit a + /// FinancialAccount. + /// + [JsonProperty("crypto_wallets")] + [STJS.JsonPropertyName("crypto_wallets")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedCreditsCryptoWalletsOptions CryptoWallets { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions.cs new file mode 100644 index 0000000000..1e0af30667 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions.cs new file mode 100644 index 0000000000..46ec5115a9 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..486a0ad375 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions.cs new file mode 100644 index 0000000000..e03af407fd --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsOptions : INestedOptions + { + /// + /// Can receive debits to a FinancialAccount from a bank account. + /// + [JsonProperty("bank_accounts")] + [STJS.JsonPropertyName("bank_accounts")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesReceivedDebitsBankAccountsOptions BankAccounts { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerOptions.cs new file mode 100644 index 0000000000..1041bdf5f6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerOptions.cs @@ -0,0 +1,115 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerOptions : INestedOptions + { + /// + /// Represents the state of the configuration, and can be updated to deactivate or re-apply + /// a configuration. + /// + [JsonProperty("applied")] + [STJS.JsonPropertyName("applied")] + public bool? Applied { get; set; } + + /// + /// Capabilities to request on the Money Manager Configuration. + /// + [JsonProperty("capabilities")] + [STJS.JsonPropertyName("capabilities")] + public AccountUpdateConfigurationMoneyManagerCapabilitiesOptions Capabilities { get; set; } + + /// + /// List of high-risk activities the business is involved in. + /// One of: adult_entertainment, gambling, hold_client_funds, + /// investment_services, lending_banking, + /// marijuana_or_related_services, money_services, + /// nicotine_tobacco_or_related_services, none, + /// operate_foreign_exchange_virtual_currencies_brokerage_otc, + /// pharmaceuticals, precious_metals_precious_stones_jewelry, + /// safe_deposit_box_rentals, third_party_payment_processing, or + /// weapons_firearms_and_explosives. + /// + [JsonProperty("high_risk_activities")] + [STJS.JsonPropertyName("high_risk_activities")] + public List HighRiskActivities { get; set; } + + /// + /// Description of the high-risk activities the business offers. + /// + [JsonProperty("high_risk_activities_description")] + [STJS.JsonPropertyName("high_risk_activities_description")] + public string HighRiskActivitiesDescription { get; set; } + + /// + /// Description of the money services offered by the business. + /// + [JsonProperty("money_services_description")] + [STJS.JsonPropertyName("money_services_description")] + public string MoneyServicesDescription { get; set; } + + /// + /// Does the business operate in any prohibited countries. + /// + [JsonProperty("operates_in_prohibited_countries")] + [STJS.JsonPropertyName("operates_in_prohibited_countries")] + public bool? OperatesInProhibitedCountries { get; set; } + + /// + /// Indicates whether the business participates in any regulated activity. + /// + [JsonProperty("participates_in_regulated_activity")] + [STJS.JsonPropertyName("participates_in_regulated_activity")] + public bool? ParticipatesInRegulatedActivity { get; set; } + + /// + /// Primary purpose of the stored funds. + /// One of: charitable_donations, ecommerce_retail_payments, + /// investment_purposes, other, payments_to_friends_or_family_abroad, + /// payroll, personal_or_living_expenses, protect_wealth, + /// purchase_goods_and_services, receive_payments_for_goods_and_services, + /// tax_optimization, third_party_money_transmission, or + /// treasury_management. + /// + [JsonProperty("purpose_of_funds")] + [STJS.JsonPropertyName("purpose_of_funds")] + public string PurposeOfFunds { get; set; } + + /// + /// Description of the purpose of the stored funds. + /// + [JsonProperty("purpose_of_funds_description")] + [STJS.JsonPropertyName("purpose_of_funds_description")] + public string PurposeOfFundsDescription { get; set; } + + /// + /// Details of the regulated activity if the business participates in one. + /// + [JsonProperty("regulated_activity")] + [STJS.JsonPropertyName("regulated_activity")] + public AccountUpdateConfigurationMoneyManagerRegulatedActivityOptions RegulatedActivity { get; set; } + + /// + /// The source of funds for the business, e.g. profits, income, venture capital, etc. + /// One of: business_loans, grants, inter_company_funds, + /// investment_proceeds, legal_settlement, owners_capital, + /// pension_retirement, sales_of_assets, sales_of_goods_and_services, + /// tax_refund, third_party_funds, or treasury_reserves. + /// + [JsonProperty("source_of_funds")] + [STJS.JsonPropertyName("source_of_funds")] + public string SourceOfFunds { get; set; } + + /// + /// Description of the source of funds for the business' account. + /// + [JsonProperty("source_of_funds_description")] + [STJS.JsonPropertyName("source_of_funds_description")] + public string SourceOfFundsDescription { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerRegulatedActivityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerRegulatedActivityOptions.cs new file mode 100644 index 0000000000..715b6c7967 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationMoneyManagerRegulatedActivityOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationMoneyManagerRegulatedActivityOptions : INestedOptions + { + /// + /// A detailed description of the regulated activities the business is licensed to conduct. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The license number or registration number assigned by the business's primary regulator. + /// + [JsonProperty("license_number")] + [STJS.JsonPropertyName("license_number")] + public string LicenseNumber { get; set; } + + /// + /// The country of the primary regulatory authority that oversees the business's regulated + /// activities. + /// + [JsonProperty("primary_regulatory_authority_country")] + [STJS.JsonPropertyName("primary_regulatory_authority_country")] + public string PrimaryRegulatoryAuthorityCountry { get; set; } + + /// + /// The name of the primary regulatory authority that oversees the business's regulated + /// activities. + /// + [JsonProperty("primary_regulatory_authority_name")] + [STJS.JsonPropertyName("primary_regulatory_authority_name")] + public string PrimaryRegulatoryAuthorityName { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs index 7e83fa71b8..33ee620a02 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationOptions.cs @@ -33,6 +33,14 @@ public class AccountUpdateConfigurationOptions : INestedOptions [STJS.JsonPropertyName("merchant")] public AccountUpdateConfigurationMerchantOptions Merchant { get; set; } + /// + /// The Money Manager Configuration allows the Account to store and move funds using + /// FinancialAccounts. + /// + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountUpdateConfigurationMoneyManagerOptions MoneyManager { get; set; } + /// /// The Recipient Configuration allows the Account to receive funds. Utilize this /// configuration if the Account will not be the Merchant of Record, like with Separate @@ -41,13 +49,5 @@ public class AccountUpdateConfigurationOptions : INestedOptions [JsonProperty("recipient")] [STJS.JsonPropertyName("recipient")] public AccountUpdateConfigurationRecipientOptions Recipient { get; set; } - - /// - /// The Storer Configuration allows the Account to store and move funds using stored-value - /// FinancialAccounts. - /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountUpdateConfigurationStorerOptions Storer { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchOptions.cs new file mode 100644 index 0000000000..9df9550c47 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions.cs new file mode 100644 index 0000000000..2d04ac1472 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..db424f3c5b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsOptions.cs new file mode 100644 index 0000000000..91acb6a0ca --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions.cs new file mode 100644 index 0000000000..18e18ae14e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..dffee63bbe --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftOptions.cs new file mode 100644 index 0000000000..e5d54f5b1d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions.cs new file mode 100644 index 0000000000..515cb4415b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..6fb2e4c5d4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions.cs new file mode 100644 index 0000000000..701ea0978d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions.cs new file mode 100644 index 0000000000..331c828446 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..9c0f90198c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsOptions.cs new file mode 100644 index 0000000000..bf25744688 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions.cs new file mode 100644 index 0000000000..333ab41d7e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..32a987f98e --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppOptions.cs new file mode 100644 index 0000000000..0c97feea5a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions.cs new file mode 100644 index 0000000000..2fcd5582ff --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..87104d1b2b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsOptions.cs index 7e78cc138f..17ff7851a6 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsOptions.cs @@ -8,6 +8,43 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsOptions : INestedOptions { + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over ACH rails. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsAchOptions Ach { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over BECS + /// rails. + /// + [JsonProperty("becs")] + [STJS.JsonPropertyName("becs")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsBecsOptions Becs { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over EFT rails. + /// + [JsonProperty("eft")] + [STJS.JsonPropertyName("eft")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsEftOptions Eft { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over Fedwire or + /// CHIPS. + /// + [JsonProperty("fedwire")] + [STJS.JsonPropertyName("fedwire")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFedwireOptions Fedwire { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over FPS rails. + /// + [JsonProperty("fps")] + [STJS.JsonPropertyName("fps")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsFpsOptions Fps { get; set; } + /// /// Enables this Account to receive OutboundPayments to linked bank accounts over real time /// rails. @@ -24,6 +61,44 @@ public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsOptions [STJS.JsonPropertyName("local")] public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsLocalOptions Local { get; set; } + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over NPP (real + /// time) rails. + /// + [JsonProperty("npp")] + [STJS.JsonPropertyName("npp")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsNppOptions Npp { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over RTP rails. + /// + [JsonProperty("rtp")] + [STJS.JsonPropertyName("rtp")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpOptions Rtp { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SEPA + /// credit rails. + /// + [JsonProperty("sepa_credit")] + [STJS.JsonPropertyName("sepa_credit")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions SepaCredit { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SEPA + /// instant (real time) rails. + /// + [JsonProperty("sepa_instant")] + [STJS.JsonPropertyName("sepa_instant")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions SepaInstant { get; set; } + + /// + /// Enables this Account to receive OutboundPayments to linked bank accounts over SWIFT. + /// + [JsonProperty("swift")] + [STJS.JsonPropertyName("swift")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions Swift { get; set; } + /// /// Enables this Account to receive OutboundPayments to linked bank accounts over wire. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpOptions.cs new file mode 100644 index 0000000000..34a9f09186 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions.cs new file mode 100644 index 0000000000..3261b92e43 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..48e316e9d0 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsRtpProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions.cs new file mode 100644 index 0000000000..325670f6c7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions.cs new file mode 100644 index 0000000000..c2c66e1596 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..dfea04747b --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaCreditProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions.cs new file mode 100644 index 0000000000..394cd789f4 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions.cs new file mode 100644 index 0000000000..2494ea8cf7 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..20f9a37a81 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSepaInstantProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions.cs new file mode 100644 index 0000000000..0b511e6fa5 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftOptions : INestedOptions + { + /// + /// Protection types to request for this capability (e.g. "psp_migration"). + /// + [JsonProperty("protections")] + [STJS.JsonPropertyName("protections")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions Protections { get; set; } + + /// + /// To request a new Capability for an account, pass true. There can be a delay before the + /// requested Capability becomes active. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions.cs new file mode 100644 index 0000000000..ca4adba22d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsOptions : INestedOptions + { + /// + /// Parameter to request psp_migration protection. + /// + [JsonProperty("psp_migration")] + [STJS.JsonPropertyName("psp_migration")] + public AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions PspMigration { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions.cs new file mode 100644 index 0000000000..197b316292 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateConfigurationRecipientCapabilitiesBankAccountsSwiftProtectionsPspMigrationOptions : INestedOptions + { + /// + /// To request a protection, pass true. + /// + [JsonProperty("requested")] + [STJS.JsonPropertyName("requested")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs deleted file mode 100644 index 4a9fb24c3f..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions : INestedOptions - { - /// - /// Can hold storage-type funds on Stripe in USD in a consumer financial account. - /// - [JsonProperty("usd")] - [STJS.JsonPropertyName("usd")] - public AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions Usd { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs deleted file mode 100644 index 3ec83a9fbc..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions.cs deleted file mode 100644 index 98e7eb4d19..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs deleted file mode 100644 index 2e1b78176b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesUsdProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerOptions.cs deleted file mode 100644 index 3805264234..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesConsumerOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesConsumerOptions : INestedOptions - { - /// - /// Can hold storage-type funds on Stripe in a consumer financial account. - /// - [JsonProperty("holds_currencies")] - [STJS.JsonPropertyName("holds_currencies")] - public AccountUpdateConfigurationStorerCapabilitiesConsumerHoldsCurrenciesOptions HoldsCurrencies { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions.cs deleted file mode 100644 index 79d2a9c7bf..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions.cs deleted file mode 100644 index 9032552462..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 6201f10aea..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions.cs deleted file mode 100644 index da29f92f38..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions.cs deleted file mode 100644 index 7d804f9fbd..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions.cs deleted file mode 100644 index ca890566b1..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesOptions.cs deleted file mode 100644 index 53be85b5b9..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesOptions : INestedOptions - { - /// - /// Can provision a bank-account-like financial address (VBAN) to credit/debit a - /// FinancialAccount. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesBankAccountsOptions BankAccounts { get; set; } - - /// - /// Can provision a crypto wallet like financial address to credit a FinancialAccount. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesCryptoWalletsOptions CryptoWallets { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions.cs deleted file mode 100644 index 31d346a8a3..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions.cs deleted file mode 100644 index b7fa849d1c..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions.cs deleted file mode 100644 index 027eecb36a..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions.cs deleted file mode 100644 index 9138f3474e..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions.cs deleted file mode 100644 index a63c4cb726..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions.cs deleted file mode 100644 index 3cc63ca5b4..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesOptions.cs deleted file mode 100644 index b5bef8904e..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesOptions.cs +++ /dev/null @@ -1,39 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesOptions : INestedOptions - { - /// - /// Can hold storage-type funds on Stripe in EUR. - /// - [JsonProperty("eur")] - [STJS.JsonPropertyName("eur")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesEurOptions Eur { get; set; } - - /// - /// Can hold storage-type funds on Stripe in GBP. - /// - [JsonProperty("gbp")] - [STJS.JsonPropertyName("gbp")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesGbpOptions Gbp { get; set; } - - /// - /// Can hold storage-type funds on Stripe in USD. - /// - [JsonProperty("usd")] - [STJS.JsonPropertyName("usd")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions Usd { get; set; } - - /// - /// Can hold storage-type funds on Stripe in USDC. - /// - [JsonProperty("usdc")] - [STJS.JsonPropertyName("usdc")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions Usdc { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions.cs deleted file mode 100644 index b12c678a03..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions.cs deleted file mode 100644 index aff1463c27..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs deleted file mode 100644 index 7a0d5f3cf0..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions.cs deleted file mode 100644 index 34c622f2e6..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions.cs deleted file mode 100644 index aeacea0dd0..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions.cs deleted file mode 100644 index e4715997d3..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesUsdcProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions.cs deleted file mode 100644 index 9799997766..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs deleted file mode 100644 index a6755254da..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 6e29a35a63..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersOptions.cs deleted file mode 100644 index 4a72551f4f..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesInboundTransfersOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesInboundTransfersOptions : INestedOptions - { - /// - /// Can pull funds from an external bank account owned by yourself to a FinancialAccount. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountUpdateConfigurationStorerCapabilitiesInboundTransfersBankAccountsOptions BankAccounts { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs deleted file mode 100644 index 83c4c9f1d1..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOptions.cs +++ /dev/null @@ -1,53 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOptions : INestedOptions - { - /// - /// Can provision a consumer financial account. - /// - [JsonProperty("consumer")] - [STJS.JsonPropertyName("consumer")] - public AccountUpdateConfigurationStorerCapabilitiesConsumerOptions Consumer { get; set; } - - /// - /// Can provision a financial address to credit/debit a FinancialAccount. - /// - [JsonProperty("financial_addresses")] - [STJS.JsonPropertyName("financial_addresses")] - public AccountUpdateConfigurationStorerCapabilitiesFinancialAddressesOptions FinancialAddresses { get; set; } - - /// - /// Can hold storage-type funds on Stripe. - /// - [JsonProperty("holds_currencies")] - [STJS.JsonPropertyName("holds_currencies")] - public AccountUpdateConfigurationStorerCapabilitiesHoldsCurrenciesOptions HoldsCurrencies { get; set; } - - /// - /// Can pull funds from an external source, owned by yourself, to a FinancialAccount. - /// - [JsonProperty("inbound_transfers")] - [STJS.JsonPropertyName("inbound_transfers")] - public AccountUpdateConfigurationStorerCapabilitiesInboundTransfersOptions InboundTransfers { get; set; } - - /// - /// Can send funds from a FinancialAccount to a destination owned by someone else. - /// - [JsonProperty("outbound_payments")] - [STJS.JsonPropertyName("outbound_payments")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsOptions OutboundPayments { get; set; } - - /// - /// Can send funds from a FinancialAccount to a destination owned by yourself. - /// - [JsonProperty("outbound_transfers")] - [STJS.JsonPropertyName("outbound_transfers")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersOptions OutboundTransfers { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions.cs deleted file mode 100644 index 3d44479f3f..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs deleted file mode 100644 index 20aa954a0e..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 040aaf75a5..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions.cs deleted file mode 100644 index 82417e3f6a..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs deleted file mode 100644 index 9dcf857978..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs deleted file mode 100644 index d6c0b023ae..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs deleted file mode 100644 index a03033d9f4..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs deleted file mode 100644 index d178474515..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs deleted file mode 100644 index ba1e6aac3b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs deleted file mode 100644 index 6fb8589dc9..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs deleted file mode 100644 index 5cef22e25b..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index e62fd39c10..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsOptions.cs deleted file mode 100644 index 84ea0fde28..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsOptions.cs +++ /dev/null @@ -1,47 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsOptions : INestedOptions - { - /// - /// Can send funds from a FinancialAccount to a bank account owned by someone else. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsBankAccountsOptions BankAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to a debit card owned by someone else. - /// - [JsonProperty("cards")] - [STJS.JsonPropertyName("cards")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCardsOptions Cards { get; set; } - - /// - /// Can send funds from a FinancialAccount to a crypto wallet owned by someone else. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsCryptoWalletsOptions CryptoWallets { get; set; } - - /// - /// Can send funds from a FinancialAccount to another FinancialAccount owned by someone - /// else. - /// - [JsonProperty("financial_accounts")] - [STJS.JsonPropertyName("financial_accounts")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccountsOptions FinancialAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to someone else via paper check. - /// - [JsonProperty("paper_checks")] - [STJS.JsonPropertyName("paper_checks")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions PaperChecks { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions.cs deleted file mode 100644 index 3ff59bac3a..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs deleted file mode 100644 index 723bca1dd9..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs deleted file mode 100644 index 74b8583a24..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundPaymentsPaperChecksProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions.cs deleted file mode 100644 index a5de658391..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs deleted file mode 100644 index c9b016e096..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index d922e29c71..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs deleted file mode 100644 index e18df6e525..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs deleted file mode 100644 index ccef6a259d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 4484107f00..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs deleted file mode 100644 index f76a0caa3e..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions.cs +++ /dev/null @@ -1,26 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions : INestedOptions - { - /// - /// Protection types to request for this capability (e.g. "psp_migration"). - /// - [JsonProperty("protections")] - [STJS.JsonPropertyName("protections")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions Protections { get; set; } - - /// - /// To request a new Capability for an account, pass true. There can be a delay before the - /// requested Capability becomes active. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs deleted file mode 100644 index 3b0f579bce..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsOptions : INestedOptions - { - /// - /// Parameter to request psp_migration protection. - /// - [JsonProperty("psp_migration")] - [STJS.JsonPropertyName("psp_migration")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions PspMigration { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs deleted file mode 100644 index 52d67347e4..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsProtectionsPspMigrationOptions : INestedOptions - { - /// - /// To request a protection, pass true. - /// - [JsonProperty("requested")] - [STJS.JsonPropertyName("requested")] - public bool? Requested { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersOptions.cs deleted file mode 100644 index 820a58dc92..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersOptions.cs +++ /dev/null @@ -1,32 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersOptions : INestedOptions - { - /// - /// Can send funds from a FinancialAccount to a bank account owned by yourself. - /// - [JsonProperty("bank_accounts")] - [STJS.JsonPropertyName("bank_accounts")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersBankAccountsOptions BankAccounts { get; set; } - - /// - /// Can send funds from a FinancialAccount to a crypto wallet owned by yourself. - /// - [JsonProperty("crypto_wallets")] - [STJS.JsonPropertyName("crypto_wallets")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersCryptoWalletsOptions CryptoWallets { get; set; } - - /// - /// Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. - /// - [JsonProperty("financial_accounts")] - [STJS.JsonPropertyName("financial_accounts")] - public AccountUpdateConfigurationStorerCapabilitiesOutboundTransfersFinancialAccountsOptions FinancialAccounts { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerOptions.cs deleted file mode 100644 index c989572160..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerOptions.cs +++ /dev/null @@ -1,115 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerOptions : INestedOptions - { - /// - /// Represents the state of the configuration, and can be updated to deactivate or re-apply - /// a configuration. - /// - [JsonProperty("applied")] - [STJS.JsonPropertyName("applied")] - public bool? Applied { get; set; } - - /// - /// Capabilities to request on the Storer Configuration. - /// - [JsonProperty("capabilities")] - [STJS.JsonPropertyName("capabilities")] - public AccountUpdateConfigurationStorerCapabilitiesOptions Capabilities { get; set; } - - /// - /// List of high-risk activities the business is involved in. - /// One of: adult_entertainment, gambling, hold_client_funds, - /// investment_services, lending_banking, - /// marijuana_or_related_services, money_services, - /// nicotine_tobacco_or_related_services, none, - /// operate_foreign_exchange_virtual_currencies_brokerage_otc, - /// pharmaceuticals, precious_metals_precious_stones_jewelry, - /// safe_deposit_box_rentals, third_party_payment_processing, or - /// weapons_firearms_and_explosives. - /// - [JsonProperty("high_risk_activities")] - [STJS.JsonPropertyName("high_risk_activities")] - public List HighRiskActivities { get; set; } - - /// - /// Description of the high-risk activities the business offers. - /// - [JsonProperty("high_risk_activities_description")] - [STJS.JsonPropertyName("high_risk_activities_description")] - public string HighRiskActivitiesDescription { get; set; } - - /// - /// Description of the money services offered by the business. - /// - [JsonProperty("money_services_description")] - [STJS.JsonPropertyName("money_services_description")] - public string MoneyServicesDescription { get; set; } - - /// - /// Does the business operate in any prohibited countries. - /// - [JsonProperty("operates_in_prohibited_countries")] - [STJS.JsonPropertyName("operates_in_prohibited_countries")] - public bool? OperatesInProhibitedCountries { get; set; } - - /// - /// Indicates whether the business participates in any regulated activity. - /// - [JsonProperty("participates_in_regulated_activity")] - [STJS.JsonPropertyName("participates_in_regulated_activity")] - public bool? ParticipatesInRegulatedActivity { get; set; } - - /// - /// Primary purpose of the stored funds. - /// One of: charitable_donations, ecommerce_retail_payments, - /// investment_purposes, other, payments_to_friends_or_family_abroad, - /// payroll, personal_or_living_expenses, protect_wealth, - /// purchase_goods_and_services, receive_payments_for_goods_and_services, - /// tax_optimization, third_party_money_transmission, or - /// treasury_management. - /// - [JsonProperty("purpose_of_funds")] - [STJS.JsonPropertyName("purpose_of_funds")] - public string PurposeOfFunds { get; set; } - - /// - /// Description of the purpose of the stored funds. - /// - [JsonProperty("purpose_of_funds_description")] - [STJS.JsonPropertyName("purpose_of_funds_description")] - public string PurposeOfFundsDescription { get; set; } - - /// - /// Details of the regulated activity if the business participates in one. - /// - [JsonProperty("regulated_activity")] - [STJS.JsonPropertyName("regulated_activity")] - public AccountUpdateConfigurationStorerRegulatedActivityOptions RegulatedActivity { get; set; } - - /// - /// The source of funds for the business, e.g. profits, income, venture capital, etc. - /// One of: business_loans, grants, inter_company_funds, - /// investment_proceeds, legal_settlement, owners_capital, - /// pension_retirement, sales_of_assets, sales_of_goods_and_services, - /// tax_refund, third_party_funds, or treasury_reserves. - /// - [JsonProperty("source_of_funds")] - [STJS.JsonPropertyName("source_of_funds")] - public string SourceOfFunds { get; set; } - - /// - /// Description of the source of funds for the business' account. - /// - [JsonProperty("source_of_funds_description")] - [STJS.JsonPropertyName("source_of_funds_description")] - public string SourceOfFundsDescription { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerRegulatedActivityOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerRegulatedActivityOptions.cs deleted file mode 100644 index cc280fe585..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateConfigurationStorerRegulatedActivityOptions.cs +++ /dev/null @@ -1,41 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateConfigurationStorerRegulatedActivityOptions : INestedOptions - { - /// - /// A detailed description of the regulated activities the business is licensed to conduct. - /// - [JsonProperty("description")] - [STJS.JsonPropertyName("description")] - public string Description { get; set; } - - /// - /// The license number or registration number assigned by the business's primary regulator. - /// - [JsonProperty("license_number")] - [STJS.JsonPropertyName("license_number")] - public string LicenseNumber { get; set; } - - /// - /// The country of the primary regulatory authority that oversees the business's regulated - /// activities. - /// - [JsonProperty("primary_regulatory_authority_country")] - [STJS.JsonPropertyName("primary_regulatory_authority_country")] - public string PrimaryRegulatoryAuthorityCountry { get; set; } - - /// - /// The name of the primary regulatory authority that oversees the business's regulated - /// activities. - /// - [JsonProperty("primary_regulatory_authority_name")] - [STJS.JsonPropertyName("primary_regulatory_authority_name")] - public string PrimaryRegulatoryAuthorityName { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions.cs new file mode 100644 index 0000000000..61c280b30c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs deleted file mode 100644 index 6efb06b48d..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions : INestedOptions - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs new file mode 100644 index 0000000000..2ca260ee72 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs deleted file mode 100644 index 84ace95c84..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions : INestedOptions - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs new file mode 100644 index 0000000000..7f25a5f753 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions.cs @@ -0,0 +1,36 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions : INestedOptions + { + /// + /// The time when the Account's representative accepted the terms of service. Represented as + /// a RFC 3339 date & time UTC value in millisecond precision, for example: + /// 2022-09-18T13:22:18.123Z. + /// + [JsonProperty("date")] + [STJS.JsonPropertyName("date")] + public DateTime? Date { get; set; } + + /// + /// The IP address from which the Account's representative accepted the terms of service. + /// + [JsonProperty("ip")] + [STJS.JsonPropertyName("ip")] + public string Ip { get; set; } + + /// + /// The user agent of the browser from which the Account's representative accepted the terms + /// of service. + /// + [JsonProperty("user_agent")] + [STJS.JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs index 2b0bb15b28..0f80737ecb 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceOptions.cs @@ -24,6 +24,13 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOpt [STJS.JsonPropertyName("card_creator")] public AccountUpdateIdentityAttestationsTermsOfServiceCardCreatorOptions CardCreator { get; set; } + /// + /// Details on the Account's acceptance of Consumer-specific terms of service. + /// + [JsonProperty("consumer_money_manager")] + [STJS.JsonPropertyName("consumer_money_manager")] + public AccountUpdateIdentityAttestationsTermsOfServiceConsumerMoneyManagerOptions ConsumerMoneyManager { get; set; } + /// /// Details on the Account's acceptance of Consumer-privacy-disclosures-specific terms of /// service. @@ -33,24 +40,17 @@ public class AccountUpdateIdentityAttestationsTermsOfServiceOptions : INestedOpt public AccountUpdateIdentityAttestationsTermsOfServiceConsumerPrivacyDisclosuresOptions ConsumerPrivacyDisclosures { get; set; } /// - /// Details on the Account's acceptance of Consumer-storer-specific terms of service. - /// - [JsonProperty("consumer_storer")] - [STJS.JsonPropertyName("consumer_storer")] - public AccountUpdateIdentityAttestationsTermsOfServiceConsumerStorerOptions ConsumerStorer { get; set; } - - /// - /// Details on the Account's acceptance of Crypto-storer-specific terms of service. + /// Details on the Account's acceptance of Crypto-specific terms of service. /// - [JsonProperty("crypto_storer")] - [STJS.JsonPropertyName("crypto_storer")] - public AccountUpdateIdentityAttestationsTermsOfServiceCryptoStorerOptions CryptoStorer { get; set; } + [JsonProperty("crypto_money_manager")] + [STJS.JsonPropertyName("crypto_money_manager")] + public AccountUpdateIdentityAttestationsTermsOfServiceCryptoMoneyManagerOptions CryptoMoneyManager { get; set; } /// /// Details on the Account's acceptance of Treasury-specific terms of service. /// - [JsonProperty("storer")] - [STJS.JsonPropertyName("storer")] - public AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions Storer { get; set; } + [JsonProperty("money_manager")] + [STJS.JsonPropertyName("money_manager")] + public AccountUpdateIdentityAttestationsTermsOfServiceMoneyManagerOptions MoneyManager { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs deleted file mode 100644 index 4ab18decc3..0000000000 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions.cs +++ /dev/null @@ -1,36 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe.V2.Core -{ - using System; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class AccountUpdateIdentityAttestationsTermsOfServiceStorerOptions : INestedOptions - { - /// - /// The time when the Account's representative accepted the terms of service. Represented as - /// a RFC 3339 date & time UTC value in millisecond precision, for example: - /// 2022-09-18T13:22:18.123Z. - /// - [JsonProperty("date")] - [STJS.JsonPropertyName("date")] - public DateTime? Date { get; set; } - - /// - /// The IP address from which the Account's representative accepted the terms of service. - /// - [JsonProperty("ip")] - [STJS.JsonPropertyName("ip")] - public string Ip { get; set; } - - /// - /// The user agent of the browser from which the Account's representative accepted the terms - /// of service. - /// - [JsonProperty("user_agent")] - [STJS.JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - } -} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs index 34b32f3765..8a6fb0e020 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateOptions.cs @@ -75,7 +75,7 @@ public class AccountUpdateOptions : BaseOptions, IHasMetadata /// Additional fields to include in the response. /// One of: configuration.card_creator, configuration.customer, /// configuration.merchant, configuration.recipient, - /// configuration.storer, defaults, future_requirements, + /// configuration.money_manager, defaults, future_requirements, /// identity, or requirements. /// [JsonProperty("include")] diff --git a/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateOptions.cs b/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateOptions.cs index bfe7bd1750..cf2de23579 100644 --- a/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateOptions.cs +++ b/src/Stripe.net/Services/V2/Core/BatchJobs/BatchJobCreateOptions.cs @@ -16,14 +16,6 @@ public class BatchJobCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("endpoint")] public BatchJobCreateEndpointOptions Endpoint { get; set; } - /// - /// Optional field that allows the user to control how fast they want this batch job to run. - /// Gives them a control over the number of webhooks they receive. - /// - [JsonProperty("maximum_rps")] - [STJS.JsonPropertyName("maximum_rps")] - public long? MaximumRps { get; set; } - /// /// The metadata of the batch_job. /// diff --git a/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertGetOptions.cs b/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertGetOptions.cs new file mode 100644 index 0000000000..e7c7b35b99 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AlertGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertListOptions.cs b/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertListOptions.cs new file mode 100644 index 0000000000..e896977127 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertListOptions.cs @@ -0,0 +1,77 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AlertListOptions : V2.ListOptions + { + /// + /// Filter for alerts created at the specified timestamp. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime? Created { get; set; } + + /// + /// Filter for alerts created after the specified timestamp. + /// + [JsonProperty("created_gt")] + [STJS.JsonPropertyName("created_gt")] + public DateTime? CreatedGt { get; set; } + + /// + /// Filter for alerts created on or after the specified timestamp. + /// + [JsonProperty("created_gte")] + [STJS.JsonPropertyName("created_gte")] + public DateTime? CreatedGte { get; set; } + + /// + /// Filter for alerts created before the specified timestamp. + /// + [JsonProperty("created_lt")] + [STJS.JsonPropertyName("created_lt")] + public DateTime? CreatedLt { get; set; } + + /// + /// Filter for alerts created on or before the specified timestamp. + /// + [JsonProperty("created_lte")] + [STJS.JsonPropertyName("created_lte")] + public DateTime? CreatedLte { get; set; } + + /// + /// Filter by alert severity. + /// One of: critical, or non_critical. + /// + [JsonProperty("severity")] + [STJS.JsonPropertyName("severity")] + public string Severity { get; set; } + + /// + /// Filter by alert status. + /// One of: open, or resolved. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Filter by alert types. + /// One of: api_error, api_latency, authorization_rate_drop, + /// elements_error, event_generation_failure, fraud_rate, + /// invoice_count_dropped, issuing_authorization_request_errors, + /// issuing_authorization_request_timeout, meter_event_summaries_delayed, + /// metronome_notification_latency, payment_method_error, + /// sepa_debit_delayed, traffic_volume_drop, or webhook_latency. + /// + [JsonProperty("types")] + [STJS.JsonPropertyName("types")] + public List Types { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertService.cs b/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertService.cs new file mode 100644 index 0000000000..e6eda6b00f --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Health/Alerts/AlertService.cs @@ -0,0 +1,76 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class AlertService : Service + { + private V2.Core.Health.Alerts.HistoryService history; + + internal AlertService(ApiRequestor requestor) + : base(requestor) + { + } + + internal AlertService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Core.Health.Alerts.HistoryService History => this.history ??= new V2.Core.Health.Alerts.HistoryService( + this.Requestor); + + /// + /// Retrieves a health alert by ID. + /// + public virtual Alert Get(string id, AlertGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/health/alerts/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves a health alert by ID. + /// + public virtual Task GetAsync(string id, AlertGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/health/alerts/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves a list of health alerts. + /// + public virtual V2.StripeList List(AlertListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/health/alerts", options, requestOptions); + } + + /// + /// Retrieves a list of health alerts. + /// + public virtual Task> ListAsync(AlertListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/health/alerts", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves a list of health alerts. + /// + public virtual IEnumerable ListAutoPaging(AlertListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/health/alerts", options, requestOptions); + } + + /// + /// Retrieves a list of health alerts. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(AlertListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/health/alerts", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Health/Alerts/Histories/HistoryListOptions.cs b/src/Stripe.net/Services/V2/Core/Health/Alerts/Histories/HistoryListOptions.cs new file mode 100644 index 0000000000..b53c138686 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Health/Alerts/Histories/HistoryListOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health.Alerts +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class HistoryListOptions : V2.ListOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Health/Alerts/Histories/HistoryService.cs b/src/Stripe.net/Services/V2/Core/Health/Alerts/Histories/HistoryService.cs new file mode 100644 index 0000000000..4a908ebf3c --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Health/Alerts/Histories/HistoryService.cs @@ -0,0 +1,55 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core.Health.Alerts +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class HistoryService : Service + { + internal HistoryService(ApiRequestor requestor) + : base(requestor) + { + } + + internal HistoryService(IStripeClient client) + : base(client) + { + } + + /// + /// Retrieves a list of alert history entries for a health alert. + /// + public virtual V2.StripeList List(string id, HistoryListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/health/alerts/{WebUtility.UrlEncode(id)}/history", options, requestOptions); + } + + /// + /// Retrieves a list of alert history entries for a health alert. + /// + public virtual Task> ListAsync(string id, HistoryListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/health/alerts/{WebUtility.UrlEncode(id)}/history", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves a list of alert history entries for a health alert. + /// + public virtual IEnumerable ListAutoPaging(string id, HistoryListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/health/alerts/{WebUtility.UrlEncode(id)}/history", options, requestOptions); + } + + /// + /// Retrieves a list of alert history entries for a health alert. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(string id, HistoryListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/health/alerts/{WebUtility.UrlEncode(id)}/history", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/HealthService.cs b/src/Stripe.net/Services/V2/Core/HealthService.cs new file mode 100644 index 0000000000..70405324c6 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/HealthService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class HealthService : Service + { + private V2.Core.Health.AlertService alerts; + + internal HealthService(ApiRequestor requestor) + : base(requestor) + { + } + + internal HealthService(IStripeClient client) + : base(client) + { + } + + public virtual V2.Core.Health.AlertService Alerts => this.alerts ??= new V2.Core.Health.AlertService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/CoreService.cs b/src/Stripe.net/Services/V2/CoreService.cs index e8e11589c4..8cac37a1ac 100644 --- a/src/Stripe.net/Services/V2/CoreService.cs +++ b/src/Stripe.net/Services/V2/CoreService.cs @@ -19,6 +19,7 @@ public class CoreService : Service private V2.Core.EventDestinationService eventDestinations; private V2.Core.FeeBatchService feeBatches; private V2.Core.FeeEntryService feeEntries; + private V2.Core.HealthService health; private V2.Core.VaultService vault; internal CoreService(ApiRequestor requestor) @@ -67,6 +68,9 @@ internal CoreService(IStripeClient client) public virtual V2.Core.FeeEntryService FeeEntries => this.feeEntries ??= new V2.Core.FeeEntryService( this.Requestor); + public virtual V2.Core.HealthService Health => this.health ??= new V2.Core.HealthService( + this.Requestor); + public virtual V2.Core.VaultService Vault => this.vault ??= new V2.Core.VaultService( this.Requestor); } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs index dbb1b9ce28..c870e12610 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/FinancialAccounts/FinancialAccountListOptions.cs @@ -17,13 +17,13 @@ public class FinancialAccountListOptions : V2.ListOptions public List Include { get; set; } /// - /// The status of the FinancialAccount to filter by. By default, closed FinancialAccounts - /// are not returned. + /// Filter for FinancialAccount status. By default, closed FinancialAccounts are not + /// returned. /// One of: closed, open, or pending. /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } + [JsonProperty("statuses")] + [STJS.JsonPropertyName("statuses")] + public List Statuses { get; set; } /// /// Filter for FinancialAccount type. By default, FinancialAccounts of any diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsPaperCheckOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsPaperCheckOptions.cs index 032dcac750..88e851b24c 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsPaperCheckOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsPaperCheckOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OutboundPaymentCreateDeliveryOptionsPaperCheckOptions : INestedOptions { + /// + /// The ID of a file to include as an attachment with the paper check. + /// + [JsonProperty("attachment")] + [STJS.JsonPropertyName("attachment")] + public string Attachment { get; set; } + /// /// Memo printed on the memo field of the check. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs index 3bf38d50dc..6e3c6b6d1b 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateOptions.cs @@ -54,6 +54,13 @@ public class OutboundPaymentCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("outbound_payment_quote")] public string OutboundPaymentQuote { get; set; } + /// + /// The PayoutIntent ID that triggered this OutboundPayment. + /// + [JsonProperty("payout_intent")] + [STJS.JsonPropertyName("payout_intent")] + public string PayoutIntent { get; set; } + /// /// The purpose of the OutboundPayment. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToOptions.cs index fc78c242f0..8a82dfbb4c 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToOptions.cs @@ -27,6 +27,13 @@ public class OutboundPaymentCreateToOptions : INestedOptions [STJS.JsonPropertyName("payout_method")] public string PayoutMethod { get; set; } + /// + /// Payout method options for the OutboundPayment. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public OutboundPaymentCreateToPayoutMethodOptionsOptions PayoutMethodOptions { get; set; } + /// /// To which account the OutboundPayment is sent. /// diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions.cs new file mode 100644 index 0000000000..0571c806a0 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions : INestedOptions + { + /// + /// Per-network configuration options. + /// + [JsonProperty("preferred_network_options")] + [STJS.JsonPropertyName("preferred_network_options")] + public OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions PreferredNetworkOptions { get; set; } + + /// + /// The preferred networks to use for this OutboundPayment. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs new file mode 100644 index 0000000000..b55967c4ce --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions : INestedOptions + { + /// + /// Open Enum. ACH submission timing. + /// One of: next_day, or same_day. + /// + [JsonProperty("submission")] + [STJS.JsonPropertyName("submission")] + public string Submission { get; set; } + + /// + /// The transaction purpose for this ACH payment. + /// + [JsonProperty("transaction_purpose")] + [STJS.JsonPropertyName("transaction_purpose")] + public string TransactionPurpose { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs new file mode 100644 index 0000000000..5dc5f71312 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions : INestedOptions + { + /// + /// ACH-specific network options. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions Ach { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsOptions.cs new file mode 100644 index 0000000000..4d5ade1411 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateToPayoutMethodOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OutboundPaymentCreateToPayoutMethodOptionsOptions : INestedOptions + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToOptions.cs index 534ae9d39a..eec0510691 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToOptions.cs @@ -26,5 +26,12 @@ public class OutboundTransferCreateToOptions : INestedOptions [JsonProperty("payout_method")] [STJS.JsonPropertyName("payout_method")] public string PayoutMethod { get; set; } + + /// + /// Payout method options for the OutboundTransfer. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public OutboundTransferCreateToPayoutMethodOptionsOptions PayoutMethodOptions { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions.cs new file mode 100644 index 0000000000..d18fa8cdcf --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions : INestedOptions + { + /// + /// The preferred networks to use for this OutboundTransfer. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToPayoutMethodOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToPayoutMethodOptionsOptions.cs new file mode 100644 index 0000000000..9e054b13b0 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundTransfers/OutboundTransferCreateToPayoutMethodOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class OutboundTransferCreateToPayoutMethodOptionsOptions : INestedOptions + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCancelOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCancelOptions.cs new file mode 100644 index 0000000000..6e14ecb723 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCancelOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCancelOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateFromOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateFromOptions.cs new file mode 100644 index 0000000000..e7b0c16a55 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateFromOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateFromOptions : INestedOptions + { + /// + /// The currency of the financial account. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The FinancialAccount that funds are pulled from. + /// + [JsonProperty("financial_account")] + [STJS.JsonPropertyName("financial_account")] + public string FinancialAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateOptions.cs new file mode 100644 index 0000000000..25828b7cb2 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateOptions.cs @@ -0,0 +1,71 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateOptions : BaseOptions, IHasMetadata + { + /// + /// The monetary amount to be sent. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public V2.Amount Amount { get; set; } + + /// + /// An arbitrary string attached to the PayoutIntent. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// The FinancialAccount that funds are pulled from. + /// + [JsonProperty("from")] + [STJS.JsonPropertyName("from")] + public PayoutIntentCreateFromOptions From { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Details about the OutboundPayment notification settings for recipient. Only applicable + /// to OutboundPayment. + /// + [JsonProperty("recipient_notification")] + [STJS.JsonPropertyName("recipient_notification")] + public PayoutIntentCreateRecipientNotificationOptions RecipientNotification { get; set; } + + /// + /// Scheduling options for the payout. If this is nil, we assume immediate execution. + /// + [JsonProperty("schedule_options")] + [STJS.JsonPropertyName("schedule_options")] + public PayoutIntentCreateScheduleOptionsOptions ScheduleOptions { get; set; } + + /// + /// The description that appears on the receiving end for the payout (for example, on a bank + /// statement). + /// + [JsonProperty("statement_descriptor")] + [STJS.JsonPropertyName("statement_descriptor")] + public string StatementDescriptor { get; set; } + + /// + /// To which payout method the payout is sent. + /// + [JsonProperty("to")] + [STJS.JsonPropertyName("to")] + public PayoutIntentCreateToOptions To { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateRecipientNotificationOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateRecipientNotificationOptions.cs new file mode 100644 index 0000000000..3545f2a3c3 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateRecipientNotificationOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateRecipientNotificationOptions : INestedOptions + { + /// + /// Closed Enum. Configuration option to enable or disable notifications to recipients. Do + /// not send notifications when setting is NONE. Default to account setting when setting is + /// CONFIGURED or not set. + /// One of: configured, or none. + /// + [JsonProperty("setting")] + [STJS.JsonPropertyName("setting")] + public string Setting { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateScheduleOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateScheduleOptionsOptions.cs new file mode 100644 index 0000000000..9d89fb582e --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateScheduleOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateScheduleOptionsOptions : INestedOptions + { + /// + /// The date when the payout should be executed, in YYYY-MM-DD format. + /// + [JsonProperty("execute_on")] + [STJS.JsonPropertyName("execute_on")] + public string ExecuteOn { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToOptions.cs new file mode 100644 index 0000000000..fef8fafe35 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateToOptions : INestedOptions + { + /// + /// The currency to send to the recipient. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The payout method ID. Optional for OutboundPayment if recipient has default payment + /// method. Required for OutboundTransfer. + /// + [JsonProperty("payout_method")] + [STJS.JsonPropertyName("payout_method")] + public string PayoutMethod { get; set; } + + /// + /// Payout method options for the PayoutIntent. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public PayoutIntentCreateToPayoutMethodOptionsOptions PayoutMethodOptions { get; set; } + + /// + /// The recipient ID. Only relevant for OutboundPayment. + /// + [JsonProperty("recipient")] + [STJS.JsonPropertyName("recipient")] + public string Recipient { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions.cs new file mode 100644 index 0000000000..f08db3e1b6 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions : INestedOptions + { + /// + /// Per-network configuration options. + /// + [JsonProperty("preferred_network_options")] + [STJS.JsonPropertyName("preferred_network_options")] + public PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions PreferredNetworkOptions { get; set; } + + /// + /// The preferred networks to use for this PayoutIntent. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs new file mode 100644 index 0000000000..3da2448a3c --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions : INestedOptions + { + /// + /// Open Enum. ACH submission timing. + /// One of: next_day, or same_day. + /// + [JsonProperty("submission")] + [STJS.JsonPropertyName("submission")] + public string Submission { get; set; } + + /// + /// The transaction purpose for this ACH payment. + /// + [JsonProperty("transaction_purpose")] + [STJS.JsonPropertyName("transaction_purpose")] + public string TransactionPurpose { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs new file mode 100644 index 0000000000..116b421a6f --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions : INestedOptions + { + /// + /// ACH-specific network options. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions Ach { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsOptions.cs new file mode 100644 index 0000000000..6eeecca136 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentCreateToPayoutMethodOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentCreateToPayoutMethodOptionsOptions : INestedOptions + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentGetOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentGetOptions.cs new file mode 100644 index 0000000000..07d3c3d27b --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentListOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentListOptions.cs new file mode 100644 index 0000000000..213ae0f0d8 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentListOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentListOptions : V2.ListOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentService.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentService.cs new file mode 100644 index 0000000000..aeed81149c --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentService.cs @@ -0,0 +1,123 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class PayoutIntentService : Service + { + internal PayoutIntentService(ApiRequestor requestor) + : base(requestor) + { + } + + internal PayoutIntentService(IStripeClient client) + : base(client) + { + } + + /// + /// Cancels a PayoutIntent. Only pending PayoutIntents or processing PayoutIntents with + /// cancelable OutboundPayment/Transfer can be canceled. + /// + public virtual PayoutIntent Cancel(string id, PayoutIntentCancelOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/payout_intents/{WebUtility.UrlEncode(id)}/cancel", options, requestOptions); + } + + /// + /// Cancels a PayoutIntent. Only pending PayoutIntents or processing PayoutIntents with + /// cancelable OutboundPayment/Transfer can be canceled. + /// + public virtual Task CancelAsync(string id, PayoutIntentCancelOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/payout_intents/{WebUtility.UrlEncode(id)}/cancel", options, requestOptions, cancellationToken); + } + + /// + /// Creates a PayoutIntent. + /// + public virtual PayoutIntent Create(PayoutIntentCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/payout_intents", options, requestOptions); + } + + /// + /// Creates a PayoutIntent. + /// + public virtual Task CreateAsync(PayoutIntentCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/payout_intents", options, requestOptions, cancellationToken); + } + + /// + /// Retrieves the details of an existing PayoutIntent by passing the unique PayoutIntent ID. + /// + public virtual PayoutIntent Get(string id, PayoutIntentGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/money_management/payout_intents/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves the details of an existing PayoutIntent by passing the unique PayoutIntent ID. + /// + public virtual Task GetAsync(string id, PayoutIntentGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/money_management/payout_intents/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Returns a list of PayoutIntents. + /// + public virtual V2.StripeList List(PayoutIntentListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/money_management/payout_intents", options, requestOptions); + } + + /// + /// Returns a list of PayoutIntents. + /// + public virtual Task> ListAsync(PayoutIntentListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/money_management/payout_intents", options, requestOptions, cancellationToken); + } + + /// + /// Returns a list of PayoutIntents. + /// + public virtual IEnumerable ListAutoPaging(PayoutIntentListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/money_management/payout_intents", options, requestOptions); + } + + /// + /// Returns a list of PayoutIntents. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(PayoutIntentListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/money_management/payout_intents", options, requestOptions, cancellationToken); + } + + /// + /// Updates a PayoutIntent. Only pending or requires_action PayoutIntents that are editable + /// can be updated. + /// + public virtual PayoutIntent Update(string id, PayoutIntentUpdateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/payout_intents/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Updates a PayoutIntent. Only pending or requires_action PayoutIntents that are editable + /// can be updated. + /// + public virtual Task UpdateAsync(string id, PayoutIntentUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/payout_intents/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateFromOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateFromOptions.cs new file mode 100644 index 0000000000..8f247ed30c --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateFromOptions.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateFromOptions : INestedOptions + { + /// + /// The currency of the financial account. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The FinancialAccount that funds are pulled from. + /// + [JsonProperty("financial_account")] + [STJS.JsonPropertyName("financial_account")] + public string FinancialAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateOptions.cs new file mode 100644 index 0000000000..ea13f4ac0d --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateOptions.cs @@ -0,0 +1,71 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateOptions : BaseOptions, IHasMetadata + { + /// + /// The monetary amount to be sent. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public V2.Amount Amount { get; set; } + + /// + /// An arbitrary string attached to the PayoutIntent. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// From which FinancialAccount to pull funds. + /// + [JsonProperty("from")] + [STJS.JsonPropertyName("from")] + public PayoutIntentUpdateFromOptions From { get; set; } + + /// + /// Set of key-value pairs that you can attach to an object. This can be useful for storing + /// additional information about the object in a structured format. + /// + [JsonProperty("metadata")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata { get; set; } + + /// + /// Details about the OutboundPayment notification settings for recipient. Only applicable + /// to OutboundPayment. + /// + [JsonProperty("recipient_notification")] + [STJS.JsonPropertyName("recipient_notification")] + public PayoutIntentUpdateRecipientNotificationOptions RecipientNotification { get; set; } + + /// + /// Scheduling options for the payout. If this is nil, we assume immediate execution. + /// + [JsonProperty("schedule_options")] + [STJS.JsonPropertyName("schedule_options")] + public PayoutIntentUpdateScheduleOptionsOptions ScheduleOptions { get; set; } + + /// + /// The description that appears on the receiving end for the payout (for example, on a bank + /// statement). + /// + [JsonProperty("statement_descriptor")] + [STJS.JsonPropertyName("statement_descriptor")] + public string StatementDescriptor { get; set; } + + /// + /// To which payout method the payout is sent. + /// + [JsonProperty("to")] + [STJS.JsonPropertyName("to")] + public PayoutIntentUpdateToOptions To { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateRecipientNotificationOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateRecipientNotificationOptions.cs new file mode 100644 index 0000000000..e8fe0b31d2 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateRecipientNotificationOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateRecipientNotificationOptions : INestedOptions + { + /// + /// Closed Enum. Configuration option to enable or disable notifications to recipients. Do + /// not send notifications when setting is NONE. Default to account setting when setting is + /// CONFIGURED or not set. + /// One of: configured, or none. + /// + [JsonProperty("setting")] + [STJS.JsonPropertyName("setting")] + public string Setting { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateScheduleOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateScheduleOptionsOptions.cs new file mode 100644 index 0000000000..dc21cb2355 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateScheduleOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateScheduleOptionsOptions : INestedOptions + { + /// + /// The date when the payout should be executed, in YYYY-MM-DD format. + /// + [JsonProperty("execute_on")] + [STJS.JsonPropertyName("execute_on")] + public string ExecuteOn { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToOptions.cs new file mode 100644 index 0000000000..0e69f0be2e --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToOptions.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateToOptions : INestedOptions + { + /// + /// The currency to send to the recipient. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// The payout method ID. Optional for OutboundPayment if recipient has default payment + /// method. Required for OutboundTransfer. + /// + [JsonProperty("payout_method")] + [STJS.JsonPropertyName("payout_method")] + public string PayoutMethod { get; set; } + + /// + /// Payout method options for the PayoutIntent. + /// + [JsonProperty("payout_method_options")] + [STJS.JsonPropertyName("payout_method_options")] + public PayoutIntentUpdateToPayoutMethodOptionsOptions PayoutMethodOptions { get; set; } + + /// + /// The recipient ID. Only relevant for OutboundPayment. + /// + [JsonProperty("recipient")] + [STJS.JsonPropertyName("recipient")] + public string Recipient { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountOptions.cs new file mode 100644 index 0000000000..dec0c9e65c --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateToPayoutMethodOptionsBankAccountOptions : INestedOptions + { + /// + /// Per-network configuration options. + /// + [JsonProperty("preferred_network_options")] + [STJS.JsonPropertyName("preferred_network_options")] + public PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions PreferredNetworkOptions { get; set; } + + /// + /// The preferred networks to use for this PayoutIntent. + /// One of: ach, becs, eft, fedwire, fps, npp, + /// rtp, sepa_credit, sepa_instant, or swift. + /// + [JsonProperty("preferred_networks")] + [STJS.JsonPropertyName("preferred_networks")] + public List PreferredNetworks { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs new file mode 100644 index 0000000000..58ad1f0639 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions : INestedOptions + { + /// + /// Open Enum. ACH submission timing. + /// One of: next_day, or same_day. + /// + [JsonProperty("submission")] + [STJS.JsonPropertyName("submission")] + public string Submission { get; set; } + + /// + /// The transaction purpose for this ACH payment. + /// + [JsonProperty("transaction_purpose")] + [STJS.JsonPropertyName("transaction_purpose")] + public string TransactionPurpose { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs new file mode 100644 index 0000000000..4498167722 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions : INestedOptions + { + /// + /// ACH-specific network options. + /// + [JsonProperty("ach")] + [STJS.JsonPropertyName("ach")] + public PayoutIntentUpdateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions Ach { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsOptions.cs new file mode 100644 index 0000000000..a9e3e47e5d --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/PayoutIntents/PayoutIntentUpdateToPayoutMethodOptionsOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PayoutIntentUpdateToPayoutMethodOptionsOptions : INestedOptions + { + /// + /// Options for bank account payout methods. + /// + [JsonProperty("bank_account")] + [STJS.JsonPropertyName("bank_account")] + public PayoutIntentUpdateToPayoutMethodOptionsBankAccountOptions BankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/TestHelpers/FinancialAddresses/FinancialAddressDebitOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/TestHelpers/FinancialAddresses/FinancialAddressDebitOptions.cs new file mode 100644 index 0000000000..6f9efa37ca --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/TestHelpers/FinancialAddresses/FinancialAddressDebitOptions.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement.TestHelpers +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class FinancialAddressDebitOptions : BaseOptions + { + /// + /// Object containing the amount value and currency to debit. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public V2.Amount Amount { get; set; } + + /// + /// The network to use in simulating the funds flow. This will be reflected in the resulting + /// ReceivedDebit. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + + /// + /// String explaining funds flow. Use this field to populate the statement descriptor of the + /// ReceivedDebit created as an eventual result of this simulation. + /// + [JsonProperty("statement_descriptor")] + [STJS.JsonPropertyName("statement_descriptor")] + public string StatementDescriptor { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/TestHelpers/FinancialAddresses/FinancialAddressService.cs b/src/Stripe.net/Services/V2/MoneyManagement/TestHelpers/FinancialAddresses/FinancialAddressService.cs new file mode 100644 index 0000000000..5736924409 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/TestHelpers/FinancialAddresses/FinancialAddressService.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement.TestHelpers +{ + using System; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class FinancialAddressService : Service + { + internal FinancialAddressService(ApiRequestor requestor) + : base(requestor) + { + } + + internal FinancialAddressService(IStripeClient client) + : base(client) + { + } + + /// + /// Simulate debiting a FinancialAddress in a Sandbox environment. This can be used to + /// remove virtual funds and decrease your balance for testing. + /// + public virtual V2.MoneyManagement.FinancialAddressDebitSimulation Debit(string id, FinancialAddressDebitOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/test_helpers/financial_addresses/{WebUtility.UrlEncode(id)}/debit", options, requestOptions); + } + + /// + /// Simulate debiting a FinancialAddress in a Sandbox environment. This can be used to + /// remove virtual funds and decrease your balance for testing. + /// + public virtual Task DebitAsync(string id, FinancialAddressDebitOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/money_management/test_helpers/financial_addresses/{WebUtility.UrlEncode(id)}/debit", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagement/TestHelpersService.cs b/src/Stripe.net/Services/V2/MoneyManagement/TestHelpersService.cs new file mode 100644 index 0000000000..087e9347d1 --- /dev/null +++ b/src/Stripe.net/Services/V2/MoneyManagement/TestHelpersService.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.MoneyManagement +{ + using System; + using System.Threading; + using System.Threading.Tasks; + + public class TestHelpersService : Service + { + private V2.MoneyManagement.TestHelpers.FinancialAddressService financialAddresses; + + internal TestHelpersService(ApiRequestor requestor) + : base(requestor) + { + } + + internal TestHelpersService(IStripeClient client) + : base(client) + { + } + + public virtual V2.MoneyManagement.TestHelpers.FinancialAddressService FinancialAddresses => this.financialAddresses ??= new V2.MoneyManagement.TestHelpers.FinancialAddressService( + this.Requestor); + } +} diff --git a/src/Stripe.net/Services/V2/MoneyManagementService.cs b/src/Stripe.net/Services/V2/MoneyManagementService.cs index 0a3a71f9b6..19fe3e4d23 100644 --- a/src/Stripe.net/Services/V2/MoneyManagementService.cs +++ b/src/Stripe.net/Services/V2/MoneyManagementService.cs @@ -17,11 +17,13 @@ public class MoneyManagementService : Service private V2.MoneyManagement.OutboundPaymentQuoteService outboundPaymentQuotes; private V2.MoneyManagement.OutboundSetupIntentService outboundSetupIntents; private V2.MoneyManagement.OutboundTransferService outboundTransfers; + private V2.MoneyManagement.PayoutIntentService payoutIntents; private V2.MoneyManagement.PayoutMethodService payoutMethods; private V2.MoneyManagement.PayoutMethodsBankAccountSpecService payoutMethodsBankAccountSpec; private V2.MoneyManagement.ReceivedCreditService receivedCredits; private V2.MoneyManagement.ReceivedDebitService receivedDebits; private V2.MoneyManagement.RecipientVerificationService recipientVerifications; + private V2.MoneyManagement.TestHelpersService testHelpers; private V2.MoneyManagement.TransactionService transactions; private V2.MoneyManagement.TransactionEntryService transactionEntries; @@ -65,6 +67,9 @@ internal MoneyManagementService(IStripeClient client) public virtual V2.MoneyManagement.OutboundTransferService OutboundTransfers => this.outboundTransfers ??= new V2.MoneyManagement.OutboundTransferService( this.Requestor); + public virtual V2.MoneyManagement.PayoutIntentService PayoutIntents => this.payoutIntents ??= new V2.MoneyManagement.PayoutIntentService( + this.Requestor); + public virtual V2.MoneyManagement.PayoutMethodService PayoutMethods => this.payoutMethods ??= new V2.MoneyManagement.PayoutMethodService( this.Requestor); @@ -80,6 +85,9 @@ internal MoneyManagementService(IStripeClient client) public virtual V2.MoneyManagement.RecipientVerificationService RecipientVerifications => this.recipientVerifications ??= new V2.MoneyManagement.RecipientVerificationService( this.Requestor); + public virtual V2.MoneyManagement.TestHelpersService TestHelpers => this.testHelpers ??= new V2.MoneyManagement.TestHelpersService( + this.Requestor); + public virtual V2.MoneyManagement.TransactionService Transactions => this.transactions ??= new V2.MoneyManagement.TransactionService( this.Requestor); diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 6fd1fa69be..749f5e0b08 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -231,8 +231,7 @@ public string Description /// treasury.outbound_transfer.tracking_details_updated, /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, - /// invoice_payment.detached, billing.alert.recovered, - /// payment_intent.expired, billing.credit_balance_transaction.created, + /// invoice_payment.detached, billing.credit_balance_transaction.created, /// billing.credit_grant.updated, billing.meter.created, /// billing.meter.deactivated, billing.meter.reactivated, /// billing.meter.updated, or ping. diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 3402eab983..00a3398645 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -189,8 +189,7 @@ public string Description /// treasury.outbound_transfer.tracking_details_updated, /// treasury.received_credit.created, treasury.received_credit.failed, /// treasury.received_credit.succeeded, treasury.received_debit.created, - /// invoice_payment.detached, billing.alert.recovered, - /// payment_intent.expired, billing.credit_balance_transaction.created, + /// invoice_payment.detached, billing.credit_balance_transaction.created, /// billing.credit_grant.updated, billing.meter.created, /// billing.meter.deactivated, billing.meter.reactivated, /// billing.meter.updated, or ping. diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index dd41bc2251..09df785614 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -16009,7 +16009,7 @@ public void TestV2BillingContractGet() HttpMethod.Get, "/v2/billing/contracts", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.StripeList contracts = service @@ -16024,7 +16024,7 @@ public async Task TestV2BillingContractGetAsync() HttpMethod.Get, "/v2/billing/contracts", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.StripeList contracts = await service @@ -16039,7 +16039,7 @@ public void TestV2BillingContractGetAutoPaging() HttpMethod.Get, "/v2/billing/contracts", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; var contract = service.ListAutoPaging().First(); @@ -16053,7 +16053,7 @@ public async Task TestV2BillingContractGetAutoPagingAsync() HttpMethod.Get, "/v2/billing/contracts", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; var contract = await service.ListAutoPagingAsync().FirstAsync(); @@ -16067,153 +16067,11 @@ public void TestV2BillingContractPost() HttpMethod.Post, "/v2/billing/contracts", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var options = new Stripe.V2.Billing.ContractCreateOptions { - ContractLines = new List - { - new Stripe.V2.Billing.ContractCreateContractLineOptions - { - EndsAt = new Stripe.V2.Billing.ContractCreateContractLineEndsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - Metadata = new Dictionary - { - { "key", "metadata" }, - }, - Overrides = new List - { - new Stripe.V2.Billing.ContractCreateContractLineOverrideOptions - { - EndsAt = new Stripe.V2.Billing.ContractCreateContractLineOverrideEndsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - ServiceAction = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionOptions - { - Add = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddOptions - { - CreditGrant = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions - { - Amount = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions - { - Monetary = new Stripe.V2.Amount - { - Value = 63, - Currency = "USD", - }, - Type = "monetary", - }, - ApplicabilityConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions - { - Scope = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions - { - BillableItems = new List - { - "billable_items", - }, - PriceType = "metered", - }, - }, - Category = "paid", - ExpiryConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions - { - Type = "end_of_service_period", - }, - Name = "name", - Priority = 1165461084, - }, - ServiceInterval = "month", - ServiceIntervalCount = 1375336415, - Type = "credit_grant", - }, - Replace = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceOptions - { - CreditGrant = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions - { - Amount = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions - { - Monetary = new Stripe.V2.Amount - { - Value = 63, - Currency = "USD", - }, - Type = "monetary", - }, - ApplicabilityConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions - { - Scope = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions - { - BillableItems = new List - { - "billable_items", - }, - PriceType = "metered", - }, - }, - Category = "paid", - ExpiryConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions - { - Type = "end_of_service_period", - }, - Name = "name", - Priority = 1165461084, - }, - Id = "obj_123", - LookupKey = "lookup_key", - ServiceInterval = "month", - ServiceIntervalCount = 1375336415, - Type = "credit_grant", - }, - Type = "add", - }, - StartsAt = new Stripe.V2.Billing.ContractCreateContractLineOverrideStartsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - Type = "service_action", - }, - }, - Pricing = new Stripe.V2.Billing.ContractCreateContractLinePricingOptions(), - StartsAt = new Stripe.V2.Billing.ContractCreateContractLineStartsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - }, - }, ContractNumber = "contract_number", Currency = "usd", - LicenseQuantityActions = new List - { - new Stripe.V2.Billing.ContractCreateLicenseQuantityActionOptions - { - EffectiveAt = new Stripe.V2.Billing.ContractCreateLicenseQuantityActionEffectiveAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - Type = "timestamp", - }, - LicensePricingId = "license_pricing_id", - LicensePricingLookupKey = "license_pricing_lookup_key", - LicensePricingType = "price", - PricingLine = "pricing_line", - Set = new Stripe.V2.Billing.ContractCreateLicenseQuantityActionSetOptions - { - Quantity = 1285004149, - }, - Type = "set", - }, - }, PricingLines = new List { new Stripe.V2.Billing.ContractCreatePricingLineOptions @@ -16235,97 +16093,72 @@ public void TestV2BillingContractPost() PriceDetails = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsOptions { Price = "price", - Quantity = 1285004149, - }, - Type = "price", - }, - StartsAt = new Stripe.V2.Billing.ContractCreatePricingLineStartsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - Type = "contract_start", - }, - }, - }, - PricingOverrides = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideOptions - { - EndsAt = new Stripe.V2.Billing.ContractCreatePricingOverrideEndsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - Type = "contract_end", - }, - LookupKey = "lookup_key", - Multiplier = new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierOptions - { - Criteria = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierCriterionOptions + PricingOverrides = new List { - BillableItemIds = new List + new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideOptions { - "billable_item_ids", - }, - BillableItemLookupKeys = new List - { - "billable_item_lookup_keys", - }, - BillableItemTypes = new List - { - "metered", - }, - MetadataConditions = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierCriterionMetadataConditionOptions + EndsAt = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions + { + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + Type = "contract_end", + }, + LookupKey = "lookup_key", + Metadata = new Dictionary + { + { "key", "metadata" }, + }, + OverwritePrice = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions { - AllOf = new List + TieringMode = "graduated", + Tiers = new List { - new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierCriterionMetadataConditionAllOfOptions + new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceTierOptions { - Key = "key", - Value = "value", + FlatAmount = "flat_amount", + UnitAmount = "unit_amount", + UpToDecimal = 1387931359.3333333M, + UpToInf = "inf", }, }, + UnitAmount = "unit_amount", }, + Priority = 1165461084, + StartsAt = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions + { + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + Type = "contract_start", + }, + Type = "overwrite_price", }, - RateCardIds = new List - { - "rate_card_ids", - }, - Type = "exclude", }, - }, - Factor = "factor", - }, - OverwritePrice = new Stripe.V2.Billing.ContractCreatePricingOverrideOverwritePriceOptions - { - Price = "price", - TieringMode = "graduated", - Tiers = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideOverwritePriceTierOptions + QuantityChanges = new List { - FlatAmount = "flat_amount", - UnitAmount = "unit_amount", - UpToDecimal = 1387931359.3333333M, - UpToInf = "inf", + new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsQuantityChangeOptions + { + EffectiveAt = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions + { + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + Type = "timestamp", + }, + Set = 75841.33333333333M, + }, }, }, - UnitAmount = "unit_amount", + Type = "price", }, - Priority = 1165461084, - StartsAt = new Stripe.V2.Billing.ContractCreatePricingOverrideStartsAtOptions + StartsAt = new Stripe.V2.Billing.ContractCreatePricingLineStartsAtOptions { Timestamp = DateTimeOffset.Parse( "1970-01-01T15:18:46.294Z") .UtcDateTime, Type = "contract_start", }, - Type = "multiplier", }, }, }; @@ -16342,153 +16175,11 @@ public async Task TestV2BillingContractPostAsync() HttpMethod.Post, "/v2/billing/contracts", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var options = new Stripe.V2.Billing.ContractCreateOptions { - ContractLines = new List - { - new Stripe.V2.Billing.ContractCreateContractLineOptions - { - EndsAt = new Stripe.V2.Billing.ContractCreateContractLineEndsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - Metadata = new Dictionary - { - { "key", "metadata" }, - }, - Overrides = new List - { - new Stripe.V2.Billing.ContractCreateContractLineOverrideOptions - { - EndsAt = new Stripe.V2.Billing.ContractCreateContractLineOverrideEndsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - ServiceAction = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionOptions - { - Add = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddOptions - { - CreditGrant = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantOptions - { - Amount = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantAmountOptions - { - Monetary = new Stripe.V2.Amount - { - Value = 63, - Currency = "USD", - }, - Type = "monetary", - }, - ApplicabilityConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigOptions - { - Scope = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantApplicabilityConfigScopeOptions - { - BillableItems = new List - { - "billable_items", - }, - PriceType = "metered", - }, - }, - Category = "paid", - ExpiryConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionAddCreditGrantExpiryConfigOptions - { - Type = "end_of_service_period", - }, - Name = "name", - Priority = 1165461084, - }, - ServiceInterval = "month", - ServiceIntervalCount = 1375336415, - Type = "credit_grant", - }, - Replace = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceOptions - { - CreditGrant = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantOptions - { - Amount = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantAmountOptions - { - Monetary = new Stripe.V2.Amount - { - Value = 63, - Currency = "USD", - }, - Type = "monetary", - }, - ApplicabilityConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigOptions - { - Scope = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantApplicabilityConfigScopeOptions - { - BillableItems = new List - { - "billable_items", - }, - PriceType = "metered", - }, - }, - Category = "paid", - ExpiryConfig = new Stripe.V2.Billing.ContractCreateContractLineOverrideServiceActionReplaceCreditGrantExpiryConfigOptions - { - Type = "end_of_service_period", - }, - Name = "name", - Priority = 1165461084, - }, - Id = "obj_123", - LookupKey = "lookup_key", - ServiceInterval = "month", - ServiceIntervalCount = 1375336415, - Type = "credit_grant", - }, - Type = "add", - }, - StartsAt = new Stripe.V2.Billing.ContractCreateContractLineOverrideStartsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - Type = "service_action", - }, - }, - Pricing = new Stripe.V2.Billing.ContractCreateContractLinePricingOptions(), - StartsAt = new Stripe.V2.Billing.ContractCreateContractLineStartsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - }, - }, - }, ContractNumber = "contract_number", Currency = "usd", - LicenseQuantityActions = new List - { - new Stripe.V2.Billing.ContractCreateLicenseQuantityActionOptions - { - EffectiveAt = new Stripe.V2.Billing.ContractCreateLicenseQuantityActionEffectiveAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - Type = "timestamp", - }, - LicensePricingId = "license_pricing_id", - LicensePricingLookupKey = "license_pricing_lookup_key", - LicensePricingType = "price", - PricingLine = "pricing_line", - Set = new Stripe.V2.Billing.ContractCreateLicenseQuantityActionSetOptions - { - Quantity = 1285004149, - }, - Type = "set", - }, - }, PricingLines = new List { new Stripe.V2.Billing.ContractCreatePricingLineOptions @@ -16510,97 +16201,72 @@ public async Task TestV2BillingContractPostAsync() PriceDetails = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsOptions { Price = "price", - Quantity = 1285004149, - }, - Type = "price", - }, - StartsAt = new Stripe.V2.Billing.ContractCreatePricingLineStartsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - Type = "contract_start", - }, - }, - }, - PricingOverrides = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideOptions - { - EndsAt = new Stripe.V2.Billing.ContractCreatePricingOverrideEndsAtOptions - { - Timestamp = DateTimeOffset.Parse( - "1970-01-01T15:18:46.294Z") - .UtcDateTime, - Type = "contract_end", - }, - LookupKey = "lookup_key", - Multiplier = new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierOptions - { - Criteria = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierCriterionOptions + PricingOverrides = new List { - BillableItemIds = new List - { - "billable_item_ids", - }, - BillableItemLookupKeys = new List - { - "billable_item_lookup_keys", - }, - BillableItemTypes = new List + new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideOptions { - "metered", - }, - MetadataConditions = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierCriterionMetadataConditionOptions + EndsAt = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideEndsAtOptions + { + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + Type = "contract_end", + }, + LookupKey = "lookup_key", + Metadata = new Dictionary { - AllOf = new List + { "key", "metadata" }, + }, + OverwritePrice = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceOptions + { + TieringMode = "graduated", + Tiers = new List { - new Stripe.V2.Billing.ContractCreatePricingOverrideMultiplierCriterionMetadataConditionAllOfOptions + new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideOverwritePriceTierOptions { - Key = "key", - Value = "value", + FlatAmount = "flat_amount", + UnitAmount = "unit_amount", + UpToDecimal = 1387931359.3333333M, + UpToInf = "inf", }, }, + UnitAmount = "unit_amount", }, + Priority = 1165461084, + StartsAt = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsPricingOverrideStartsAtOptions + { + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + Type = "contract_start", + }, + Type = "overwrite_price", }, - RateCardIds = new List - { - "rate_card_ids", - }, - Type = "exclude", }, - }, - Factor = "factor", - }, - OverwritePrice = new Stripe.V2.Billing.ContractCreatePricingOverrideOverwritePriceOptions - { - Price = "price", - TieringMode = "graduated", - Tiers = new List - { - new Stripe.V2.Billing.ContractCreatePricingOverrideOverwritePriceTierOptions + QuantityChanges = new List { - FlatAmount = "flat_amount", - UnitAmount = "unit_amount", - UpToDecimal = 1387931359.3333333M, - UpToInf = "inf", + new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsQuantityChangeOptions + { + EffectiveAt = new Stripe.V2.Billing.ContractCreatePricingLinePricingPriceDetailsQuantityChangeEffectiveAtOptions + { + Timestamp = DateTimeOffset.Parse( + "1970-01-01T15:18:46.294Z") + .UtcDateTime, + Type = "timestamp", + }, + Set = 75841.33333333333M, + }, }, }, - UnitAmount = "unit_amount", + Type = "price", }, - Priority = 1165461084, - StartsAt = new Stripe.V2.Billing.ContractCreatePricingOverrideStartsAtOptions + StartsAt = new Stripe.V2.Billing.ContractCreatePricingLineStartsAtOptions { Timestamp = DateTimeOffset.Parse( "1970-01-01T15:18:46.294Z") .UtcDateTime, Type = "contract_start", }, - Type = "multiplier", }, }, }; @@ -16611,6 +16277,39 @@ public async Task TestV2BillingContractPostAsync() this.AssertRequest(HttpMethod.Post, "/v2/billing/contracts"); } + [Fact] + public void TestV2BillingContractDelete() + { + this.StubRequest( + HttpMethod.Delete, + "/v2/billing/contracts/id_123", + (HttpStatusCode)200, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Billing.Contracts; + Stripe.V2.DeletedObject deleted = service.Delete("id_123"); + this.AssertRequest( + HttpMethod.Delete, + "/v2/billing/contracts/id_123"); + } + + [Fact] + public async Task TestV2BillingContractDeleteAsync() + { + this.StubRequest( + HttpMethod.Delete, + "/v2/billing/contracts/id_123", + (HttpStatusCode)200, + "{\"id\":\"abc_123\",\"object\":\"some.object.tag\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Billing.Contracts; + Stripe.V2.DeletedObject deleted = await service.DeleteAsync( + "id_123"); + this.AssertRequest( + HttpMethod.Delete, + "/v2/billing/contracts/id_123"); + } + [Fact] public void TestV2BillingContractGet2() { @@ -16618,7 +16317,7 @@ public void TestV2BillingContractGet2() HttpMethod.Get, "/v2/billing/contracts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.Billing.Contract contract = service.Get("id_123"); @@ -16632,7 +16331,7 @@ public async Task TestV2BillingContractGet2Async() HttpMethod.Get, "/v2/billing/contracts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.Billing.Contract contract = await service.GetAsync( @@ -16647,7 +16346,7 @@ public void TestV2BillingContractPost2() HttpMethod.Post, "/v2/billing/contracts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var options = new Stripe.V2.Billing.ContractUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; @@ -16664,7 +16363,7 @@ public async Task TestV2BillingContractPost2Async() HttpMethod.Post, "/v2/billing/contracts/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var options = new Stripe.V2.Billing.ContractUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; @@ -16681,7 +16380,7 @@ public void TestV2BillingContractPost3() HttpMethod.Post, "/v2/billing/contracts/id_123/activate", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.Billing.Contract contract = service.Activate("id_123"); @@ -16697,7 +16396,7 @@ public async Task TestV2BillingContractPost3Async() HttpMethod.Post, "/v2/billing/contracts/id_123/activate", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.Billing.Contract contract = await service.ActivateAsync( @@ -16714,7 +16413,7 @@ public void TestV2BillingContractPost4() HttpMethod.Post, "/v2/billing/contracts/id_123/cancel", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.Billing.Contract contract = service.Cancel("id_123"); @@ -16730,7 +16429,7 @@ public async Task TestV2BillingContractPost4Async() HttpMethod.Post, "/v2/billing/contracts/id_123/cancel", (HttpStatusCode)200, - "{\"object\":\"v2.billing.contract\",\"contract_line_details\":[{\"contract_line\":\"contract_line\",\"contract_line_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"service_action\"}],\"pricing\":{},\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"contract_number\":\"contract_number\",\"contract_value_details\":{\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"license_quantities\":[{\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"livemode\":true,\"pricing_lines\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"}}],\"pricing_overrides\":[{\"ends_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"pricing_override\":\"pricing_override\",\"priority\":1165461084,\"starts_at\":{\"timestamp\":\"1970-01-01T15:18:46.294Z\"},\"type\":\"multiplier\"}],\"status\":\"draft\",\"status_details\":{}}"); + "{\"object\":\"v2.billing.contract\",\"contract_number\":\"contract_number\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_details\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Contracts; Stripe.V2.Billing.Contract contract = await service.CancelAsync( @@ -16741,101 +16440,101 @@ public async Task TestV2BillingContractPost4Async() } [Fact] - public void TestV2BillingContractsLicensePricingQuantityChangeGet() + public void TestV2BillingContractsPricingLinesQuantityChangeGet() { this.StubRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes", + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract_license_pricing_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"livemode\":true,\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract_pricing_line_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"quantity\":\"856669432.6666666\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client .V2 .Billing .Contracts - .LicensePricing + .PricingLines .QuantityChanges; - Stripe.V2.StripeList contractLicensePricingQuantityChanges = service - .ListQuantityChanges( + Stripe.V2.StripeList contractPricingLineQuantityChanges = service + .ListContractPricingLineQuantityChanges( "contract_id_123", - "license_pricing_id_123"); + "pricing_line_id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes"); + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes"); } [Fact] - public async Task TestV2BillingContractsLicensePricingQuantityChangeGetAsync() + public async Task TestV2BillingContractsPricingLinesQuantityChangeGetAsync() { this.StubRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes", + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract_license_pricing_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"livemode\":true,\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract_pricing_line_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"quantity\":\"856669432.6666666\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client .V2 .Billing .Contracts - .LicensePricing + .PricingLines .QuantityChanges; - Stripe.V2.StripeList contractLicensePricingQuantityChanges = await service - .ListQuantityChangesAsync( + Stripe.V2.StripeList contractPricingLineQuantityChanges = await service + .ListContractPricingLineQuantityChangesAsync( "contract_id_123", - "license_pricing_id_123"); + "pricing_line_id_123"); this.AssertRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes"); + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes"); } [Fact] - public void TestV2BillingContractsLicensePricingQuantityChangeGetAutoPaging() + public void TestV2BillingContractsPricingLinesQuantityChangeGetAutoPaging() { this.StubRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes", + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract_license_pricing_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"livemode\":true,\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract_pricing_line_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"quantity\":\"856669432.6666666\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client .V2 .Billing .Contracts - .LicensePricing + .PricingLines .QuantityChanges; - var contractLicensePricingQuantityChange = service - .ListQuantityChangesAutoPaging( + var contractPricingLineQuantityChange = service + .ListContractPricingLineQuantityChangesAutoPaging( "contract_id_123", - "license_pricing_id_123") + "pricing_line_id_123") .First(); this.AssertRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes"); + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes"); } [Fact] - public async Task TestV2BillingContractsLicensePricingQuantityChangeGetAutoPagingAsync() + public async Task TestV2BillingContractsPricingLinesQuantityChangeGetAutoPagingAsync() { this.StubRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes", + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.billing.contract_license_pricing_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"license_pricing_id\":\"license_pricing_id\",\"license_pricing_type\":\"price\",\"livemode\":true,\"pricing_line\":\"pricing_line\",\"quantity\":1285004149}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.contract_pricing_line_quantity_change\",\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing\":{\"type\":\"price\"},\"pricing_line\":\"pricing_line\",\"quantity\":\"856669432.6666666\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client .V2 .Billing .Contracts - .LicensePricing + .PricingLines .QuantityChanges; - var contractLicensePricingQuantityChange = await service - .ListQuantityChangesAutoPagingAsync( + var contractPricingLineQuantityChange = await service + .ListContractPricingLineQuantityChangesAutoPagingAsync( "contract_id_123", - "license_pricing_id_123") + "pricing_line_id_123") .FirstAsync(); this.AssertRequest( HttpMethod.Get, - "/v2/billing/contracts/contract_id_123/license_pricing/license_pricing_id_123/quantity_changes"); + "/v2/billing/contracts/contract_id_123/pricing_lines/pricing_line_id_123/quantity_changes"); } [Fact] @@ -20833,7 +20532,7 @@ public void TestV2CommerceProductCatalogImportGet() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.StripeList productCatalogImports = service @@ -20850,7 +20549,7 @@ public async Task TestV2CommerceProductCatalogImportGetAsync() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.StripeList productCatalogImports = await service @@ -20867,7 +20566,7 @@ public void TestV2CommerceProductCatalogImportGetAutoPaging() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; var productCatalogImport = service.ListAutoPaging().First(); @@ -20883,7 +20582,7 @@ public async Task TestV2CommerceProductCatalogImportGetAutoPagingAsync() HttpMethod.Get, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; var productCatalogImport = await service.ListAutoPagingAsync() @@ -20900,7 +20599,7 @@ public void TestV2CommerceProductCatalogImportPost() HttpMethod.Post, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var options = new Stripe.V2.Commerce.ProductCatalog.ImportCreateOptions { FeedType = "pricing", @@ -20926,7 +20625,7 @@ public async Task TestV2CommerceProductCatalogImportPostAsync() HttpMethod.Post, "/v2/commerce/product_catalog/imports", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var options = new Stripe.V2.Commerce.ProductCatalog.ImportCreateOptions { FeedType = "pricing", @@ -20952,7 +20651,7 @@ public void TestV2CommerceProductCatalogImportGet2() HttpMethod.Get, "/v2/commerce/product_catalog/imports/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.Commerce.ProductCatalogImport productCatalogImport = service @@ -20969,7 +20668,7 @@ public async Task TestV2CommerceProductCatalogImportGet2Async() HttpMethod.Get, "/v2/commerce/product_catalog/imports/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"status\":\"awaiting_upload\"}"); + "{\"object\":\"v2.commerce.product_catalog_import\",\"created\":\"1970-01-12T21:42:34.472Z\",\"feed_type\":\"pricing\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"mode\":\"upsert\",\"status\":\"awaiting_upload\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Commerce.ProductCatalog.Imports; Stripe.V2.Commerce.ProductCatalogImport productCatalogImport = await service @@ -21504,7 +21203,7 @@ public void TestV2CoreAccountLinkPost() Fields = "eventually_due", FutureRequirements = "include", }, - Configurations = new List { "storer" }, + Configurations = new List { "merchant" }, RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, @@ -21515,7 +21214,7 @@ public void TestV2CoreAccountLinkPost() Fields = "eventually_due", FutureRequirements = "include", }, - Configurations = new List { "storer" }, + Configurations = new List { "merchant" }, RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, @@ -21570,7 +21269,7 @@ public async Task TestV2CoreAccountLinkPostAsync() Fields = "eventually_due", FutureRequirements = "include", }, - Configurations = new List { "storer" }, + Configurations = new List { "merchant" }, RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, @@ -21581,7 +21280,7 @@ public async Task TestV2CoreAccountLinkPostAsync() Fields = "eventually_due", FutureRequirements = "include", }, - Configurations = new List { "storer" }, + Configurations = new List { "merchant" }, RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, @@ -21883,7 +21582,7 @@ public void TestV2CoreBatchJobPost() HttpMethod.Post, "/v2/core/batch_jobs", (HttpStatusCode)200, - "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var options = new Stripe.V2.Core.BatchJobCreateOptions { Endpoint = new Stripe.V2.Core.BatchJobCreateEndpointOptions @@ -21891,10 +21590,6 @@ public void TestV2CoreBatchJobPost() HttpMethod = "delete", Path = BatchJobEndpointPath.V1ProductCreate, }, - Metadata = new Dictionary - { - { "key", "metadata" }, - }, SkipValidation = true, }; var client = new StripeClient(this.Requestor); @@ -21910,7 +21605,7 @@ public async Task TestV2CoreBatchJobPostAsync() HttpMethod.Post, "/v2/core/batch_jobs", (HttpStatusCode)200, - "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var options = new Stripe.V2.Core.BatchJobCreateOptions { Endpoint = new Stripe.V2.Core.BatchJobCreateEndpointOptions @@ -21918,10 +21613,6 @@ public async Task TestV2CoreBatchJobPostAsync() HttpMethod = "delete", Path = BatchJobEndpointPath.V1ProductCreate, }, - Metadata = new Dictionary - { - { "key", "metadata" }, - }, SkipValidation = true, }; var client = new StripeClient(this.Requestor); @@ -21938,7 +21629,7 @@ public void TestV2CoreBatchJobGet() HttpMethod.Get, "/v2/core/batch_jobs/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.BatchJobs; Stripe.V2.Core.BatchJob batchJob = service.Get("id_123"); @@ -21952,7 +21643,7 @@ public async Task TestV2CoreBatchJobGetAsync() HttpMethod.Get, "/v2/core/batch_jobs/id_123", (HttpStatusCode)200, - "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.BatchJobs; Stripe.V2.Core.BatchJob batchJob = await service.GetAsync("id_123"); @@ -21966,7 +21657,7 @@ public void TestV2CoreBatchJobPost2() HttpMethod.Post, "/v2/core/batch_jobs/id_123/cancel", (HttpStatusCode)200, - "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.BatchJobs; Stripe.V2.Core.BatchJob batchJob = service.Cancel("id_123"); @@ -21982,7 +21673,7 @@ public async Task TestV2CoreBatchJobPost2Async() HttpMethod.Post, "/v2/core/batch_jobs/id_123/cancel", (HttpStatusCode)200, - "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.BatchJobs; Stripe.V2.Core.BatchJob batchJob = await service.CancelAsync( @@ -22754,6 +22445,160 @@ public async Task TestV2CoreFeeEntryGet2Async() this.AssertRequest(HttpMethod.Get, "/v2/core/fee_entries/id_123"); } + [Fact] + public void TestV2CoreHealthAlertGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert\",\"created\":\"1970-01-12T21:42:34.472Z\",\"documentation_links\":[{\"label\":\"label\",\"url\":\"url\"}],\"grouping_key\":\"grouping_key\",\"grouping_type\":\"incident\",\"id\":\"obj_123\",\"livemode\":true,\"severity\":\"non_critical\",\"started_at\":\"1970-01-19T03:34:50.959Z\",\"status\":\"open\",\"summary\":\"summary\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts; + Stripe.V2.StripeList alerts = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/core/health/alerts"); + } + + [Fact] + public async Task TestV2CoreHealthAlertGetAsync() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert\",\"created\":\"1970-01-12T21:42:34.472Z\",\"documentation_links\":[{\"label\":\"label\",\"url\":\"url\"}],\"grouping_key\":\"grouping_key\",\"grouping_type\":\"incident\",\"id\":\"obj_123\",\"livemode\":true,\"severity\":\"non_critical\",\"started_at\":\"1970-01-19T03:34:50.959Z\",\"status\":\"open\",\"summary\":\"summary\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts; + Stripe.V2.StripeList alerts = await service + .ListAsync(); + this.AssertRequest(HttpMethod.Get, "/v2/core/health/alerts"); + } + + [Fact] + public void TestV2CoreHealthAlertGetAutoPaging() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert\",\"created\":\"1970-01-12T21:42:34.472Z\",\"documentation_links\":[{\"label\":\"label\",\"url\":\"url\"}],\"grouping_key\":\"grouping_key\",\"grouping_type\":\"incident\",\"id\":\"obj_123\",\"livemode\":true,\"severity\":\"non_critical\",\"started_at\":\"1970-01-19T03:34:50.959Z\",\"status\":\"open\",\"summary\":\"summary\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts; + var alert = service.ListAutoPaging().First(); + this.AssertRequest(HttpMethod.Get, "/v2/core/health/alerts"); + } + + [Fact] + public async Task TestV2CoreHealthAlertGetAutoPagingAsync() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert\",\"created\":\"1970-01-12T21:42:34.472Z\",\"documentation_links\":[{\"label\":\"label\",\"url\":\"url\"}],\"grouping_key\":\"grouping_key\",\"grouping_type\":\"incident\",\"id\":\"obj_123\",\"livemode\":true,\"severity\":\"non_critical\",\"started_at\":\"1970-01-19T03:34:50.959Z\",\"status\":\"open\",\"summary\":\"summary\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts; + var alert = await service.ListAutoPagingAsync().FirstAsync(); + this.AssertRequest(HttpMethod.Get, "/v2/core/health/alerts"); + } + + [Fact] + public void TestV2CoreHealthAlertGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.core.health.alert\",\"created\":\"1970-01-12T21:42:34.472Z\",\"documentation_links\":[{\"label\":\"label\",\"url\":\"url\"}],\"grouping_key\":\"grouping_key\",\"grouping_type\":\"incident\",\"id\":\"obj_123\",\"livemode\":true,\"severity\":\"non_critical\",\"started_at\":\"1970-01-19T03:34:50.959Z\",\"status\":\"open\",\"summary\":\"summary\",\"type\":\"api_error\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts; + Stripe.V2.Core.Health.Alert alert = service.Get("id_123"); + this.AssertRequest(HttpMethod.Get, "/v2/core/health/alerts/id_123"); + } + + [Fact] + public async Task TestV2CoreHealthAlertGet2Async() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.core.health.alert\",\"created\":\"1970-01-12T21:42:34.472Z\",\"documentation_links\":[{\"label\":\"label\",\"url\":\"url\"}],\"grouping_key\":\"grouping_key\",\"grouping_type\":\"incident\",\"id\":\"obj_123\",\"livemode\":true,\"severity\":\"non_critical\",\"started_at\":\"1970-01-19T03:34:50.959Z\",\"status\":\"open\",\"summary\":\"summary\",\"type\":\"api_error\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts; + Stripe.V2.Core.Health.Alert alert = await service.GetAsync( + "id_123"); + this.AssertRequest(HttpMethod.Get, "/v2/core/health/alerts/id_123"); + } + + [Fact] + public void TestV2CoreHealthAlertsHistoryGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert_history_entry\",\"at\":\"1970-01-01T00:00:03.123Z\",\"id\":\"obj_123\",\"livemode\":true,\"transition\":\"impact_updated\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts.History; + Stripe.V2.StripeList alertHistoryEntries = service + .List("id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history"); + } + + [Fact] + public async Task TestV2CoreHealthAlertsHistoryGetAsync() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert_history_entry\",\"at\":\"1970-01-01T00:00:03.123Z\",\"id\":\"obj_123\",\"livemode\":true,\"transition\":\"impact_updated\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts.History; + Stripe.V2.StripeList alertHistoryEntries = await service + .ListAsync("id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history"); + } + + [Fact] + public void TestV2CoreHealthAlertsHistoryGetAutoPaging() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert_history_entry\",\"at\":\"1970-01-01T00:00:03.123Z\",\"id\":\"obj_123\",\"livemode\":true,\"transition\":\"impact_updated\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts.History; + var alertHistoryEntry = service.ListAutoPaging("id_123").First(); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history"); + } + + [Fact] + public async Task TestV2CoreHealthAlertsHistoryGetAutoPagingAsync() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.health.alert_history_entry\",\"at\":\"1970-01-01T00:00:03.123Z\",\"id\":\"obj_123\",\"livemode\":true,\"transition\":\"impact_updated\",\"type\":\"api_error\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Health.Alerts.History; + var alertHistoryEntry = await service.ListAutoPagingAsync("id_123") + .FirstAsync(); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/health/alerts/id_123/history"); + } + [Fact] public void TestV2CoreVaultGbBankAccountGet() { @@ -25132,6 +24977,24 @@ public void TestV2MoneyManagementOutboundPaymentPost() { Currency = "usd", PayoutMethod = "payout_method", + PayoutMethodOptions = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsOptions + { + BankAccount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions + { + PreferredNetworkOptions = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions + { + Ach = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions + { + Submission = "next_day", + TransactionPurpose = "payroll", + }, + }, + PreferredNetworks = new List + { + "sepa_credit", + }, + }, + }, Recipient = "recipient", }, }; @@ -25164,6 +25027,24 @@ public async Task TestV2MoneyManagementOutboundPaymentPostAsync() { Currency = "usd", PayoutMethod = "payout_method", + PayoutMethodOptions = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsOptions + { + BankAccount = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsBankAccountOptions + { + PreferredNetworkOptions = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions + { + Ach = new Stripe.V2.MoneyManagement.OutboundPaymentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions + { + Submission = "next_day", + TransactionPurpose = "payroll", + }, + }, + PreferredNetworks = new List + { + "sepa_credit", + }, + }, + }, Recipient = "recipient", }, }; @@ -25636,6 +25517,16 @@ public void TestV2MoneyManagementOutboundTransferPost() { Currency = "usd", PayoutMethod = "payout_method", + PayoutMethodOptions = new Stripe.V2.MoneyManagement.OutboundTransferCreateToPayoutMethodOptionsOptions + { + BankAccount = new Stripe.V2.MoneyManagement.OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions + { + PreferredNetworks = new List + { + "sepa_credit", + }, + }, + }, }, }; var client = new StripeClient(this.Requestor); @@ -25667,6 +25558,16 @@ public async Task TestV2MoneyManagementOutboundTransferPostAsync() { Currency = "usd", PayoutMethod = "payout_method", + PayoutMethodOptions = new Stripe.V2.MoneyManagement.OutboundTransferCreateToPayoutMethodOptionsOptions + { + BankAccount = new Stripe.V2.MoneyManagement.OutboundTransferCreateToPayoutMethodOptionsBankAccountOptions + { + PreferredNetworks = new List + { + "sepa_credit", + }, + }, + }, }, }; var client = new StripeClient(this.Requestor); @@ -25746,6 +25647,276 @@ public async Task TestV2MoneyManagementOutboundTransferPost2Async() "/v2/money_management/outbound_transfers/id_123/cancel"); } + [Fact] + public void TestV2MoneyManagementPayoutIntentGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.StripeList payoutIntents = service + .List(); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents"); + } + + [Fact] + public async Task TestV2MoneyManagementPayoutIntentGetAsync() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.StripeList payoutIntents = await service + .ListAsync(); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents"); + } + + [Fact] + public void TestV2MoneyManagementPayoutIntentGetAutoPaging() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + var payoutIntent = service.ListAutoPaging().First(); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents"); + } + + [Fact] + public async Task TestV2MoneyManagementPayoutIntentGetAutoPagingAsync() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + var payoutIntent = await service.ListAutoPagingAsync().FirstAsync(); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents"); + } + + [Fact] + public void TestV2MoneyManagementPayoutIntentPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var options = new Stripe.V2.MoneyManagement.PayoutIntentCreateOptions + { + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, + From = new Stripe.V2.MoneyManagement.PayoutIntentCreateFromOptions + { + Currency = "usd", + FinancialAccount = "financial_account", + }, + To = new Stripe.V2.MoneyManagement.PayoutIntentCreateToOptions + { + Currency = "usd", + PayoutMethod = "payout_method", + PayoutMethodOptions = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsOptions + { + BankAccount = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions + { + PreferredNetworkOptions = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions + { + Ach = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions + { + Submission = "next_day", + TransactionPurpose = "payroll", + }, + }, + PreferredNetworks = new List + { + "sepa_credit", + }, + }, + }, + Recipient = "recipient", + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = service + .Create(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents"); + } + + [Fact] + public async Task TestV2MoneyManagementPayoutIntentPostAsync() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var options = new Stripe.V2.MoneyManagement.PayoutIntentCreateOptions + { + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, + From = new Stripe.V2.MoneyManagement.PayoutIntentCreateFromOptions + { + Currency = "usd", + FinancialAccount = "financial_account", + }, + To = new Stripe.V2.MoneyManagement.PayoutIntentCreateToOptions + { + Currency = "usd", + PayoutMethod = "payout_method", + PayoutMethodOptions = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsOptions + { + BankAccount = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsBankAccountOptions + { + PreferredNetworkOptions = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsOptions + { + Ach = new Stripe.V2.MoneyManagement.PayoutIntentCreateToPayoutMethodOptionsBankAccountPreferredNetworkOptionsAchOptions + { + Submission = "next_day", + TransactionPurpose = "payroll", + }, + }, + PreferredNetworks = new List + { + "sepa_credit", + }, + }, + }, + Recipient = "recipient", + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = await service + .CreateAsync(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents"); + } + + [Fact] + public void TestV2MoneyManagementPayoutIntentGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = service.Get( + "id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents/id_123"); + } + + [Fact] + public async Task TestV2MoneyManagementPayoutIntentGet2Async() + { + this.StubRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = await service + .GetAsync("id_123"); + this.AssertRequest( + HttpMethod.Get, + "/v2/money_management/payout_intents/id_123"); + } + + [Fact] + public void TestV2MoneyManagementPayoutIntentPost2() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var options = new Stripe.V2.MoneyManagement.PayoutIntentUpdateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = service + .Update("id_123", options); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123"); + } + + [Fact] + public async Task TestV2MoneyManagementPayoutIntentPost2Async() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var options = new Stripe.V2.MoneyManagement.PayoutIntentUpdateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = await service + .UpdateAsync("id_123", options); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123"); + } + + [Fact] + public void TestV2MoneyManagementPayoutIntentPost3() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123/cancel", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = service + .Cancel("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123/cancel"); + } + + [Fact] + public async Task TestV2MoneyManagementPayoutIntentPost3Async() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123/cancel", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.payout_intent\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"from\":{\"currency\":\"usd\",\"financial_account\":\"financial_account\"},\"id\":\"obj_123\",\"latest_payout\":{\"type\":\"outbound_payment\"},\"livemode\":true,\"status\":\"canceled\",\"to\":{}}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.MoneyManagement.PayoutIntents; + Stripe.V2.MoneyManagement.PayoutIntent payoutIntent = await service + .CancelAsync("id_123"); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/payout_intents/id_123/cancel"); + } + [Fact] public void TestV2MoneyManagementPayoutMethodGet() { @@ -26266,6 +26437,58 @@ public async Task TestV2MoneyManagementRecipientVerificationPost2Async() "/v2/money_management/recipient_verifications/id_123/acknowledge"); } + [Fact] + public void TestV2MoneyManagementTestHelpersFinancialAddressPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/test_helpers/financial_addresses/id_123/debit", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.financial_address_debit_simulation\",\"livemode\":true,\"status\":\"status\"}"); + var options = new Stripe.V2.MoneyManagement.TestHelpers.FinancialAddressDebitOptions + { + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, + Network = "ach", + }; + var client = new StripeClient(this.Requestor); + var service = client + .V2 + .MoneyManagement + .TestHelpers + .FinancialAddresses; + Stripe.V2.MoneyManagement.FinancialAddressDebitSimulation financialAddressDebitSimulation = service + .Debit("id_123", options); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/test_helpers/financial_addresses/id_123/debit"); + } + + [Fact] + public async Task TestV2MoneyManagementTestHelpersFinancialAddressPostAsync() + { + this.StubRequest( + HttpMethod.Post, + "/v2/money_management/test_helpers/financial_addresses/id_123/debit", + (HttpStatusCode)200, + "{\"object\":\"v2.money_management.financial_address_debit_simulation\",\"livemode\":true,\"status\":\"status\"}"); + var options = new Stripe.V2.MoneyManagement.TestHelpers.FinancialAddressDebitOptions + { + Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, + Network = "ach", + }; + var client = new StripeClient(this.Requestor); + var service = client + .V2 + .MoneyManagement + .TestHelpers + .FinancialAddresses; + Stripe.V2.MoneyManagement.FinancialAddressDebitSimulation financialAddressDebitSimulation = await service + .DebitAsync("id_123", options); + this.AssertRequest( + HttpMethod.Post, + "/v2/money_management/test_helpers/financial_addresses/id_123/debit"); + } + [Fact] public void TestV2MoneyManagementTransactionGet() { @@ -28312,21 +28535,20 @@ public void TestControlledByAlternateResourceError() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents", + "/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits", (HttpStatusCode)400, "{\"error\":{\"type\":\"controlled_by_alternate_resource\",\"code\":\"payout_method_cannot_be_archived\"}}"); var exception = Assert.Throws( () => { - 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); + var service = client.V2.Core.Vault.UsBankAccounts; + Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service + .ConfirmMicrodeposits("id_123"); }); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents"); + "/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits"); } [Fact] @@ -28334,21 +28556,20 @@ public async Task TestControlledByAlternateResourceErrorAsync() { this.StubRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents", + "/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits", (HttpStatusCode)400, "{\"error\":{\"type\":\"controlled_by_alternate_resource\",\"code\":\"payout_method_cannot_be_archived\"}}"); var exception = await Assert.ThrowsAsync( async () => { - var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentCreateOptions(); var client = new StripeClient(this.Requestor); - var service = client.V2.MoneyManagement.OutboundSetupIntents; - Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = await service - .CreateAsync(options); + var service = client.V2.Core.Vault.UsBankAccounts; + Stripe.V2.Core.Vault.UsBankAccount usBankAccount = await service + .ConfirmMicrodepositsAsync("id_123"); }); this.AssertRequest( HttpMethod.Post, - "/v2/money_management/outbound_setup_intents"); + "/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits"); } [Fact]