From 8061703e4d286221e24962c42804f8b7f2ce6a2f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 16 Jul 2026 16:27:24 +0000 Subject: [PATCH] Update generated code for v2344 and b7168aabb0ad2d376d2f6d2e5ec34e5e55d1f702 --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/Stripe.net/Constants/EventTypes.cs | 27 ++++ ...ntSessionComponentsDisputesListFeatures.cs | 8 + ...SessionComponentsPaymentDetailsFeatures.cs | 8 + ...essionComponentsPaymentDisputesFeatures.cs | 8 + ...ccountSessionComponentsPaymentsFeatures.cs | 8 + .../BalanceTransactions/BalanceTransaction.cs | 2 +- .../Configurations/Configuration.cs | 2 +- .../SessionCollectedInformationTaxId.cs | 31 ++-- .../Sessions/SessionCustomerDetailsTaxId.cs | 31 ++-- src/Stripe.net/Entities/Events/Event.cs | 5 + .../Sessions/SessionManualEntry.cs | 7 + .../FrMealVouchersOnboarding.cs | 85 ----------- .../FrMealVouchersOnboardingProviders.cs | 18 --- ...FrMealVouchersOnboardingProvidersConecs.cs | 34 ----- ...ouchersOnboardingProvidersConecsIssuers.cs | 21 --- ...rsOnboardingProvidersConecsRequirements.cs | 28 ---- ...oardingProvidersConecsRequirementsError.cs | 35 ----- ...nstructionsBankTransferFinancialAddress.cs | 4 +- .../Entities/Invoices/InvoiceCustomerTaxId.cs | 31 ++-- .../Invoices/InvoicePaymentSettings.cs | 19 +-- .../AuthorizationRequestHistory.cs | 6 +- .../Entities/Issuing/Cards/CardShipping.cs | 10 +- .../Transactions/TransactionNetworkData.cs | 3 + ...rchaseDetailsFleetReportedBreakdownFuel.cs | 2 +- .../Entities/Orders/OrderTaxDetailsTaxId.cs | 31 ++-- ...ankTransferInstructionsFinancialAddress.cs | 4 +- src/Stripe.net/Entities/Profiles/Profile.cs | 25 ++++ .../Entities/Profiles/ProfileBranding.cs | 12 ++ .../Entities/Profiles/ProfileBrandingIcon.cs | 3 + .../Entities/Profiles/ProfileBrandingLogo.cs | 3 + .../QuotePreviewInvoiceCustomerTaxId.cs | 31 ++-- .../QuotePreviewInvoicePaymentSettings.cs | 19 +-- .../QuotePreviewSubscriptionSchedule.cs | 7 + ...reviewSubscriptionSchedulePauseSchedule.cs | 29 ++++ ...wSubscriptionSchedulePauseSchedulePause.cs | 28 ++++ ...ptionSchedulePauseSchedulePauseSettings.cs | 30 ++++ ...hedulePauseSchedulePauseSettingsBillFor.cs | 19 +++ ...eSettingsBillForOutstandingUsageThrough.cs | 19 +++ ...edulePauseSettingsBillForUnusedTimeFrom.cs | 19 +++ ...SubscriptionSchedulePauseScheduleResume.cs | 25 ++++ ...tionSchedulePauseScheduleResumeSettings.cs | 37 +++++ .../QuotePreviewSubscriptionSchedulePhase.cs | 8 + .../IssuedTokens/IssuedTokenNextAction.cs | 9 ++ .../IssuedTokenNextActionRedirectToUrl.cs | 26 ++++ src/Stripe.net/Entities/StripeError.cs | 8 + .../SubscriptionSchedule.cs | 7 + .../SubscriptionSchedulePauseSchedule.cs | 29 ++++ .../SubscriptionSchedulePauseSchedulePause.cs | 28 ++++ ...ptionSchedulePauseSchedulePauseSettings.cs | 30 ++++ ...hedulePauseSchedulePauseSettingsBillFor.cs | 19 +++ ...eSettingsBillForOutstandingUsageThrough.cs | 19 +++ ...edulePauseSettingsBillForUnusedTimeFrom.cs | 19 +++ ...SubscriptionSchedulePauseScheduleResume.cs | 25 ++++ ...tionSchedulePauseScheduleResumeSettings.cs | 37 +++++ .../SubscriptionSchedulePhase.cs | 8 + .../SubscriptionPaymentSettings.cs | 19 +-- .../CalculationCustomerDetailsTaxId.cs | 31 ++-- .../TransactionCustomerDetailsTaxId.cs | 31 ++-- .../Signals/AccountSignals/AccountSignal.cs | 5 +- .../Public/StripeTypeRegistry.cs | 1 - .../AccountPersonCreateOptions.cs | 12 ++ .../AccountPersons/AccountPersonService.cs | 4 +- .../AccountPersonUpdateOptions.cs | 12 ++ ...ponentsFinancialAccountsFeaturesOptions.cs | 12 -- ...ssionComponentsFinancialAccountsOptions.cs | 15 -- ...cialAccountsTransactionsFeaturesOptions.cs | 12 -- ...ntsFinancialAccountsTransactionsOptions.cs | 15 -- .../AccountSessionComponentsOptions.cs | 27 ---- ...ComponentsRecipientsListFeaturesOptions.cs | 12 -- ...tSessionComponentsRecipientsListOptions.cs | 15 -- .../Accounts/AccountCompanyOptions.cs | 4 + .../ConfigurationCreateOptions.cs | 2 +- .../ConfigurationUpdateOptions.cs | 2 +- .../FrMealVouchersOnboardingCreateOptions.cs | 45 ------ .../FrMealVouchersOnboardingGetOptions.cs | 12 -- .../FrMealVouchersOnboardingListOptions.cs | 12 -- .../FrMealVouchersOnboardingService.cs | 137 ------------------ .../FrMealVouchersOnboardingUpdateOptions.cs | 18 --- .../Invoices/InvoicePaymentSettingsOptions.cs | 19 +-- .../InvoiceScheduleDetailsPhaseOptions.cs | 5 +- .../PaymentMethods/PaymentMethodService.cs | 10 +- .../PaymentRecordClosedOptions.cs | 21 +++ .../PaymentRecordCreateOptions.cs | 83 +++++++++++ .../PaymentRecordFundedAmountOptions.cs | 29 ++++ .../PaymentRecordFundedOptions.cs | 35 +++++ ...mentRecordProcessorDetailsCustomOptions.cs | 7 + .../PaymentRecords/PaymentRecordService.cs | 18 +++ .../Services/Refunds/RefundCreateOptions.cs | 7 + .../SubscriptionScheduleCreateOptions.cs | 8 + ...ubscriptionSchedulePauseScheduleOptions.cs | 32 ++++ ...iptionSchedulePauseSchedulePauseOptions.cs | 25 ++++ ...chedulePauseSchedulePausePauseAtOptions.cs | 31 ++++ ...auseSchedulePauseSettingsBillForOptions.cs | 25 ++++ ...gsBillForOutstandingUsageThroughOptions.cs | 19 +++ ...useSettingsBillForUnusedTimeFromOptions.cs | 19 +++ ...hedulePauseSchedulePauseSettingsOptions.cs | 33 +++++ ...ptionSchedulePauseScheduleResumeOptions.cs | 25 ++++ ...seScheduleResumeResumeAtDurationOptions.cs | 27 ++++ ...edulePauseScheduleResumeResumeAtOptions.cs | 39 +++++ ...edulePauseScheduleResumeSettingsOptions.cs | 37 +++++ .../SubscriptionSchedulePhaseOptions.cs | 4 +- .../SubscriptionScheduleUpdateOptions.cs | 19 +++ .../SubscriptionPaymentSettingsOptions.cs | 19 +-- ...zationFleetReportedBreakdownFuelOptions.cs | 2 +- ...etailsFleetReportedBreakdownFuelOptions.cs | 2 +- ...etailsFleetReportedBreakdownFuelOptions.cs | 2 +- .../Tokens/TokenAccountCompanyOptions.cs | 4 + .../Services/Tokens/TokenPersonOptions.cs | 12 ++ src/Stripe.net/Services/V1Services.cs | 4 - .../AccountSignals/AccountSignalService.cs | 16 +- .../WebhookEndpointCreateOptions.cs | 5 + .../WebhookEndpointUpdateOptions.cs | 5 + 114 files changed, 1412 insertions(+), 741 deletions(-) delete mode 100644 src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs delete mode 100644 src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProviders.cs delete mode 100644 src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecs.cs delete mode 100644 src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsIssuers.cs delete mode 100644 src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirements.cs delete mode 100644 src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirementsError.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedule.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePause.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettings.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResume.cs create mode 100644 src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResumeSettings.cs create mode 100644 src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionRedirectToUrl.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedule.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePause.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettings.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResume.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettings.cs delete mode 100644 src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs delete mode 100644 src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsOptions.cs delete mode 100644 src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions.cs delete mode 100644 src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsOptions.cs delete mode 100644 src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListFeaturesOptions.cs delete mode 100644 src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListOptions.cs delete mode 100644 src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingCreateOptions.cs delete mode 100644 src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingGetOptions.cs delete mode 100644 src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingListOptions.cs delete mode 100644 src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingService.cs delete mode 100644 src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingUpdateOptions.cs create mode 100644 src/Stripe.net/Services/PaymentRecords/PaymentRecordClosedOptions.cs create mode 100644 src/Stripe.net/Services/PaymentRecords/PaymentRecordCreateOptions.cs create mode 100644 src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedAmountOptions.cs create mode 100644 src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePausePauseAtOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThroughOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFromOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtDurationOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettingsOptions.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 163776b614..00cedf976e 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -eed9b64db4a551dcc837a073c124117f265c21d3 \ No newline at end of file +b7168aabb0ad2d376d2f6d2e5ec34e5e55d1f702 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f0f008c214..7a0e017cfa 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2343 \ No newline at end of file +v2344 \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index 377123e864..39a945e1ce 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -536,6 +536,11 @@ public static class EventTypes /// public const string FinancialConnectionsAccountDisconnected = "financial_connections.account.disconnected"; + /// + /// Occurs when a Financial Connections account’s expected_deactivation_date changes. + /// + public const string FinancialConnectionsAccountExpectedDeactivationDateUpdated = "financial_connections.account.expected_deactivation_date_updated"; + /// /// Occurs when a Financial Connections account's status is updated from inactive to /// active. @@ -566,11 +571,33 @@ public static class EventTypes /// public const string FinancialConnectionsAccountRefreshedTransactions = "financial_connections.account.refreshed_transactions"; + /// + /// Occurs when the supported_payment_method_types array on a Financial Connections account + /// changes. + /// + public const string FinancialConnectionsAccountSupportedPaymentMethodTypesUpdated = "financial_connections.account.supported_payment_method_types_updated"; + /// /// Occurs when an Account’s tokenized account number is about to expire. /// public const string FinancialConnectionsAccountUpcomingAccountNumberExpiry = "financial_connections.account.upcoming_account_number_expiry"; + /// + /// Occurs when a Financial Connections account is about to become inactive. + /// + public const string FinancialConnectionsAccountUpcomingDeactivation = "financial_connections.account.upcoming_deactivation"; + + /// + /// Occurs when a Financial Connections authorization’s expected_deactivation_date + /// changes. + /// + public const string FinancialConnectionsAuthorizationExpectedDeactivationDateUpdated = "financial_connections.authorization.expected_deactivation_date_updated"; + + /// + /// Occurs when a Financial Connections authorization is about to become inactive. + /// + public const string FinancialConnectionsAuthorizationUpcomingDeactivation = "financial_connections.authorization.upcoming_deactivation"; + /// /// Occurs when a Financial Connections Session status transitions from /// pending to failed, cancelled, or completed. diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs index 8c6d517a0c..57599cc4f9 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs @@ -38,5 +38,13 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity + /// Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to + /// the value of dispute_management. + /// + [JsonProperty("smart_disputes_management")] + [STJS.JsonPropertyName("smart_disputes_management")] + public bool SmartDisputesManagement { get; set; } } } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs index 2a03e2a6e3..cbfcfc09b5 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs @@ -38,5 +38,13 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity + /// Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to + /// the value of dispute_management. + /// + [JsonProperty("smart_disputes_management")] + [STJS.JsonPropertyName("smart_disputes_management")] + public bool SmartDisputesManagement { get; set; } } } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs index 77b96c0829..6e21a2850a 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs @@ -30,5 +30,13 @@ public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity + /// Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to + /// the value of dispute_management. + /// + [JsonProperty("smart_disputes_management")] + [STJS.JsonPropertyName("smart_disputes_management")] + public bool SmartDisputesManagement { get; set; } } } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs index 180601b363..1dfc20be26 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs @@ -38,5 +38,13 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity + /// Whether to allow connected accounts to submit disputes using Smart Disputes. Defaults to + /// the value of dispute_management. + /// + [JsonProperty("smart_disputes_management")] + [STJS.JsonPropertyName("smart_disputes_management")] + public bool SmartDisputesManagement { get; set; } } } diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs index eb0c000d4c..4a6bb56b28 100644 --- a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs +++ b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs @@ -86,7 +86,7 @@ public class BalanceTransaction : StripeEntity, IHasId, IHas /// /// If applicable, this transaction uses an exchange rate. If money converts from currency A - /// to currency B, then the amount in currency A, multipled by the + /// to currency B, then the amount in currency A, multiplied by the /// exchange_rate, equals the amount in currency B. For example, if you charge /// a customer 10.00 EUR, the PaymentIntent's amount is 1000 and /// currency is eur. If this converts to 12.34 USD in your Stripe account, the diff --git a/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs b/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs index b71f0c3259..5b258fd764 100644 --- a/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/BillingPortal/Configurations/Configuration.cs @@ -88,7 +88,7 @@ public Application Application /// /// The default URL to redirect customers to when they click on the portal's link to return /// to your website. This can be overriden + /// href="https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url">overridden /// when creating the session. /// [JsonProperty("default_return_url")] diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs index a53c2b2652..4046df3263 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCollectedInformationTaxId.cs @@ -31,8 +31,8 @@ public class SessionCollectedInformationTaxId : StripeEntitygn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class SessionCollectedInformationTaxId : StripeEntitycr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs index 0b034e55a3..41898e94e7 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetailsTaxId.cs @@ -31,8 +31,8 @@ public class SessionCustomerDetailsTaxId : StripeEntitygn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class SessionCustomerDetailsTaxId : StripeEntitycr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 6161373858..4cf4d62770 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -172,12 +172,17 @@ public class Event : StripeEntity, IHasId, IHasObject /// financial_connections.account.created, /// financial_connections.account.deactivated, /// financial_connections.account.disconnected, + /// financial_connections.account.expected_deactivation_date_updated, /// financial_connections.account.reactivated, /// financial_connections.account.refreshed_balance, /// financial_connections.account.refreshed_inferred_balances, /// financial_connections.account.refreshed_ownership, /// financial_connections.account.refreshed_transactions, + /// financial_connections.account.supported_payment_method_types_updated, /// financial_connections.account.upcoming_account_number_expiry, + /// financial_connections.account.upcoming_deactivation, + /// financial_connections.authorization.expected_deactivation_date_updated, + /// financial_connections.authorization.upcoming_deactivation, /// financial_connections.session.updated, fx_quote.expired, /// identity.verification_session.canceled, /// identity.verification_session.created, diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs index 8c29c96e10..07719d23d1 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs @@ -8,5 +8,12 @@ namespace Stripe.FinancialConnections [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class SessionManualEntry : StripeEntity { + /// + /// Controls how manual entry of bank account details is presented to the user. + /// One of: automatic, custom, or disabled. + /// + [JsonProperty("mode")] + [STJS.JsonPropertyName("mode")] + public string Mode { get; set; } } } diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs deleted file mode 100644 index 3a561a29a4..0000000000 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboarding.cs +++ /dev/null @@ -1,85 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - /// - /// The French Meal Vouchers Onboarding resource encapsulates the onboarding status - /// and other related information for a single restaurant (SIRET number) in the context of - /// the French Meal Vouchers program. - /// - /// To onboard a restaurant for the French Meal Vouchers program, you create a French - /// Meal Vouchers Onboarding object. You can retrieve individual objects, list all such - /// objects, or update objects to correct the postal code of the restaurant. We identify - /// French Meal Vouchers Onboarding objects with a unique, random ID. - /// - /// Related guide: Set - /// up a restaurant for titres-restaurant payments. - /// - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class FrMealVouchersOnboarding : StripeEntity, IHasId, IHasMetadata, IHasObject - { - /// - /// Unique identifier for the 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. - /// - [JsonProperty("object")] - [STJS.JsonPropertyName("object")] - public string Object { get; set; } - - /// - /// If the object exists in live mode, the value is true. If the object exists in - /// test mode, the value is false. - /// - [JsonProperty("livemode")] - [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; } - - /// - /// Name of the restaurant. - /// - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - /// - /// Postal code of the restaurant. - /// - [JsonProperty("postal_code")] - [STJS.JsonPropertyName("postal_code")] - public string PostalCode { get; set; } - - /// - /// This represents the onboarding state of the restaurant on different providers. - /// - [JsonProperty("providers")] - [STJS.JsonPropertyName("providers")] - public FrMealVouchersOnboardingProviders Providers { get; set; } - - /// - /// SIRET number associated with the restaurant. - /// - [JsonProperty("siret")] - [STJS.JsonPropertyName("siret")] - public string Siret { get; set; } - } -} diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProviders.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProviders.cs deleted file mode 100644 index c06949f5ea..0000000000 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProviders.cs +++ /dev/null @@ -1,18 +0,0 @@ -// 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 FrMealVouchersOnboardingProviders : StripeEntity - { - /// - /// This represents the onboarding state of the restaurant on Conecs. - /// - [JsonProperty("conecs")] - [STJS.JsonPropertyName("conecs")] - public FrMealVouchersOnboardingProvidersConecs Conecs { get; set; } - } -} diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecs.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecs.cs deleted file mode 100644 index 309556828e..0000000000 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecs.cs +++ /dev/null @@ -1,34 +0,0 @@ -// 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 FrMealVouchersOnboardingProvidersConecs : StripeEntity - { - /// - /// This represents information which issuers are available to this restaurant via Conecs. - /// - [JsonProperty("issuers")] - [STJS.JsonPropertyName("issuers")] - public FrMealVouchersOnboardingProvidersConecsIssuers Issuers { get; set; } - - /// - /// This represents information about outstanding requirements for this restaurant to - /// onboard to Conecs. - /// - [JsonProperty("requirements")] - [STJS.JsonPropertyName("requirements")] - public FrMealVouchersOnboardingProvidersConecsRequirements Requirements { get; set; } - - /// - /// Status of the restaurant's onboarding to Conecs. - /// One of: action_required, active, disentitled, or pending. - /// - [JsonProperty("status")] - [STJS.JsonPropertyName("status")] - public string Status { get; set; } - } -} diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsIssuers.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsIssuers.cs deleted file mode 100644 index 9428b0e2fd..0000000000 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsIssuers.cs +++ /dev/null @@ -1,21 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class FrMealVouchersOnboardingProvidersConecsIssuers : StripeEntity - { - /// - /// Issuers are available to this restaurant via Conecs, will be blank if the onboarding to - /// Conecs is not complete or unsuccessful. - /// One of: bimpli, edenred, pluxee, or up. - /// - [JsonProperty("available")] - [STJS.JsonPropertyName("available")] - public List Available { get; set; } - } -} diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirements.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirements.cs deleted file mode 100644 index 69096771ff..0000000000 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirements.cs +++ /dev/null @@ -1,28 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeEntityConverter))] - public class FrMealVouchersOnboardingProvidersConecsRequirements : StripeEntity - { - /// - /// Information any errors that are preventing the onboarding to Conecs from being - /// completed. - /// - [JsonProperty("errors")] - [STJS.JsonPropertyName("errors")] - public List Errors { get; set; } - - /// - /// Fields that need to be provided to complete the onboarding to Conecs. - /// One of: postal_code, or siret. - /// - [JsonProperty("past_due")] - [STJS.JsonPropertyName("past_due")] - public List PastDue { get; set; } - } -} diff --git a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirementsError.cs b/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirementsError.cs deleted file mode 100644 index 840f6f32b1..0000000000 --- a/src/Stripe.net/Entities/FrMealVouchersOnboardings/FrMealVouchersOnboardingProvidersConecsRequirementsError.cs +++ /dev/null @@ -1,35 +0,0 @@ -// 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 FrMealVouchersOnboardingProvidersConecsRequirementsError : StripeEntity - { - /// - /// The code for the type of error. - /// One of: postal_code_invalid, or siret_invalid. - /// - [JsonProperty("code")] - [STJS.JsonPropertyName("code")] - public string Code { get; set; } - - /// - /// An informative message that provides additional details about the error. - /// - [JsonProperty("message")] - [STJS.JsonPropertyName("message")] - public string Message { get; set; } - - /// - /// The specific onboarding requirement field (in the requirements hash) that needs to be - /// resolved. - /// One of: postal_code, or siret. - /// - [JsonProperty("requirement")] - [STJS.JsonPropertyName("requirement")] - public string Requirement { get; set; } - } -} diff --git a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddress.cs b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddress.cs index b57e2da848..62e6fe92b4 100644 --- a/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddress.cs +++ b/src/Stripe.net/Entities/FundingInstructions/FundingInstructionsBankTransferFinancialAddress.cs @@ -39,8 +39,8 @@ public class FundingInstructionsBankTransferFinancialAddress : StripeEntity /// The payment networks supported by this FinancialAddress. - /// One of: ach, bacs, domestic_wire_us, fps, sepa, - /// spei, swift, or zengin. + /// One of: ach, bacs, chaps, domestic_wire_us, fps, + /// sepa, spei, swift, or zengin. /// [JsonProperty("supported_networks")] [STJS.JsonPropertyName("supported_networks")] diff --git a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs index 3061947803..47f3cca66a 100644 --- a/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs @@ -31,8 +31,8 @@ public class InvoiceCustomerTaxId : StripeEntity /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class InvoiceCustomerTaxId : StripeEntity /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index 8a9ac3a2fc..49d9261d43 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -33,15 +33,16 @@ public class InvoicePaymentSettings : StripeEntity /// href="https://dashboard.stripe.com/settings/billing/invoice">invoice template /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, - /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, blik, boleto, card, cashapp, - /// check_scan, crypto, custom, customer_balance, eps, - /// fpx, giropay, grabpay, id_bank_transfer, ideal, - /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, momo, multibanco, naver_pay, - /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, bizum, blik, boleto, card, + /// cashapp, check_scan, crypto, custom, + /// customer_balance, eps, fpx, giropay, grabpay, + /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, momo, + /// multibanco, naver_pay, nz_bank_account, p24, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, revolut_pay, satispay, + /// sepa_credit_transfer, sepa_debit, sequra, sofort, /// stripe_balance, swish, twint, upi, us_bank_account, /// or wechat_pay. /// diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs index 6457a7e9c4..0faee23699 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs @@ -107,9 +107,9 @@ public class AuthorizationRequestHistory : StripeEntitycardholder_inactive, cardholder_verification_required, /// insecure_authorization_method, insufficient_funds, /// network_fallback, not_allowed, pin_blocked, - /// spending_controls, suspected_fraud, verification_failed, - /// webhook_approved, webhook_declined, webhook_error, or - /// webhook_timeout. + /// spending_controls, stripe_internal_error, suspected_fraud, + /// verification_failed, webhook_approved, webhook_declined, + /// webhook_error, or webhook_timeout. /// [JsonProperty("reason")] [STJS.JsonPropertyName("reason")] diff --git a/src/Stripe.net/Entities/Issuing/Cards/CardShipping.cs b/src/Stripe.net/Entities/Issuing/Cards/CardShipping.cs index 408cb8ffe1..c22ea8bd91 100644 --- a/src/Stripe.net/Entities/Issuing/Cards/CardShipping.cs +++ b/src/Stripe.net/Entities/Issuing/Cards/CardShipping.cs @@ -20,9 +20,17 @@ public class CardShipping : StripeEntity [STJS.JsonPropertyName("address_validation")] public CardShippingAddressValidation AddressValidation { get; set; } + /// + /// The name of the business at the shipping address, used on the shipping label to ensure + /// delivery when the card is shipped to a cardholder's workplace. + /// + [JsonProperty("business_name")] + [STJS.JsonPropertyName("business_name")] + public string BusinessName { get; set; } + /// /// The delivery company that shipped a card. - /// One of: dhl, fedex, royal_mail, or usps. + /// One of: correos, dhl, fedex, royal_mail, or usps. /// [JsonProperty("carrier")] [STJS.JsonPropertyName("carrier")] diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs index ee6147e96e..dfebea9ac7 100644 --- a/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionNetworkData.cs @@ -70,6 +70,9 @@ public class TransactionNetworkData : StripeEntity [STJS.JsonPropertyName("routed_network")] public string RoutedNetwork { get; set; } + /// + /// Mastercard identifier assigned by the card network for the transaction. + /// [JsonProperty("trace_id")] [STJS.JsonPropertyName("trace_id")] public TransactionNetworkDataTraceId TraceId { get; set; } diff --git a/src/Stripe.net/Entities/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuel.cs b/src/Stripe.net/Entities/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuel.cs index a4898eef9b..6d0bfeaa80 100644 --- a/src/Stripe.net/Entities/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuel.cs +++ b/src/Stripe.net/Entities/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuel.cs @@ -9,7 +9,7 @@ namespace Stripe.Issuing public class TransactionPurchaseDetailsFleetReportedBreakdownFuel : StripeEntity { /// - /// Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive + /// Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive /// of taxes. /// [JsonProperty("gross_amount_decimal")] diff --git a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs index 7052eaab2d..eb95bcf7fe 100644 --- a/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Orders/OrderTaxDetailsTaxId.cs @@ -31,8 +31,8 @@ public class OrderTaxDetailsTaxId : StripeEntity /// gn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class OrderTaxDetailsTaxId : StripeEntity /// cr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddress.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddress.cs index 4539e96ed7..2706f716d8 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddress.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddress.cs @@ -39,8 +39,8 @@ public class PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddr /// /// The payment networks supported by this FinancialAddress. - /// One of: ach, bacs, domestic_wire_us, fps, sepa, - /// spei, swift, or zengin. + /// One of: ach, bacs, chaps, domestic_wire_us, fps, + /// sepa, spei, swift, or zengin. /// [JsonProperty("supported_networks")] [STJS.JsonPropertyName("supported_networks")] diff --git a/src/Stripe.net/Entities/Profiles/Profile.cs b/src/Stripe.net/Entities/Profiles/Profile.cs index 17fb0c56b3..1c9594ffad 100644 --- a/src/Stripe.net/Entities/Profiles/Profile.cs +++ b/src/Stripe.net/Entities/Profiles/Profile.cs @@ -11,34 +11,59 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class Profile : StripeEntity, IHasId, IHasObject { + /// + /// Unique identifier for the Stripe profile. + /// [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. + /// [JsonProperty("object")] [STJS.JsonPropertyName("object")] public string Object { get; set; } + /// + /// Branding information for the Stripe profile. + /// [JsonProperty("branding")] [STJS.JsonPropertyName("branding")] public ProfileBranding Branding { get; set; } + /// + /// A description of the business or entity represented by the Stripe profile. + /// [JsonProperty("description")] [STJS.JsonPropertyName("description")] public string Description { get; set; } + /// + /// The display name shown for the Stripe profile. + /// [JsonProperty("display_name")] [STJS.JsonPropertyName("display_name")] public string DisplayName { get; set; } + /// + /// If the object exists in live mode, the value is true. If the object exists in + /// test mode, the value is false. + /// [JsonProperty("livemode")] [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// The external website URL associated with the Stripe profile. + /// [JsonProperty("url")] [STJS.JsonPropertyName("url")] public string Url { get; set; } + /// + /// The unique username for the Stripe profile. + /// [JsonProperty("username")] [STJS.JsonPropertyName("username")] public string Username { get; set; } diff --git a/src/Stripe.net/Entities/Profiles/ProfileBranding.cs b/src/Stripe.net/Entities/Profiles/ProfileBranding.cs index f37e9bc18d..a0a3275e99 100644 --- a/src/Stripe.net/Entities/Profiles/ProfileBranding.cs +++ b/src/Stripe.net/Entities/Profiles/ProfileBranding.cs @@ -8,18 +8,30 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ProfileBranding : StripeEntity { + /// + /// Profile icon image. + /// [JsonProperty("icon")] [STJS.JsonPropertyName("icon")] public ProfileBrandingIcon Icon { get; set; } + /// + /// Profile logo image. + /// [JsonProperty("logo")] [STJS.JsonPropertyName("logo")] public ProfileBrandingLogo Logo { get; set; } + /// + /// The primary brand color for the profile. + /// [JsonProperty("primary_color")] [STJS.JsonPropertyName("primary_color")] public string PrimaryColor { get; set; } + /// + /// The secondary brand color for the profile. + /// [JsonProperty("secondary_color")] [STJS.JsonPropertyName("secondary_color")] public string SecondaryColor { get; set; } diff --git a/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs b/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs index 520113713e..1ec632495e 100644 --- a/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs +++ b/src/Stripe.net/Entities/Profiles/ProfileBrandingIcon.cs @@ -8,6 +8,9 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ProfileBrandingIcon : StripeEntity { + /// + /// The original image. + /// [JsonProperty("original")] [STJS.JsonPropertyName("original")] public string Original { get; set; } diff --git a/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs b/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs index 20a2ee4c7a..7bab4055d4 100644 --- a/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs +++ b/src/Stripe.net/Entities/Profiles/ProfileBrandingLogo.cs @@ -8,6 +8,9 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ProfileBrandingLogo : StripeEntity { + /// + /// The original image. + /// [JsonProperty("original")] [STJS.JsonPropertyName("original")] public string Original { get; set; } diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs index f935405eaa..cd6a8b1647 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoiceCustomerTaxId.cs @@ -31,8 +31,8 @@ public class QuotePreviewInvoiceCustomerTaxId : StripeEntitygn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class QuotePreviewInvoiceCustomerTaxId : StripeEntitycr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs index 5ae23e1cd6..66e5108e9b 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettings.cs @@ -33,15 +33,16 @@ public class QuotePreviewInvoicePaymentSettings : StripeEntityinvoice template /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, - /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, blik, boleto, card, cashapp, - /// check_scan, crypto, custom, customer_balance, eps, - /// fpx, giropay, grabpay, id_bank_transfer, ideal, - /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, momo, multibanco, naver_pay, - /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, bizum, blik, boleto, card, + /// cashapp, check_scan, crypto, custom, + /// customer_balance, eps, fpx, giropay, grabpay, + /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, momo, + /// multibanco, naver_pay, nz_bank_account, p24, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, revolut_pay, satispay, + /// sepa_credit_transfer, sepa_debit, sequra, sofort, /// stripe_balance, swish, twint, upi, us_bank_account, /// or wechat_pay. /// diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs index 94ef9f04d2..c57a5c1d9c 100644 --- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedule.cs @@ -243,6 +243,13 @@ public Invoice LatestInvoice [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// The pause schedules for this subscription schedule. + /// + [JsonProperty("pause_schedules")] + [STJS.JsonPropertyName("pause_schedules")] + public List PauseSchedules { get; set; } + /// /// Configuration for the subscription schedule's phases. /// diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedule.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedule.cs new file mode 100644 index 0000000000..44f5afa852 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedule.cs @@ -0,0 +1,29 @@ +// 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 QuotePreviewSubscriptionSchedulePauseSchedule : StripeEntity + { + /// + /// A unique identifier for this pause schedule. + /// + [JsonProperty("key")] + [STJS.JsonPropertyName("key")] + public string Key { get; set; } + + [JsonProperty("pause")] + [STJS.JsonPropertyName("pause")] + public QuotePreviewSubscriptionSchedulePauseSchedulePause Pause { get; set; } + + /// + /// Details about when and how the subscription resumes. + /// + [JsonProperty("resume")] + [STJS.JsonPropertyName("resume")] + public QuotePreviewSubscriptionSchedulePauseScheduleResume Resume { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePause.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePause.cs new file mode 100644 index 0000000000..34320e967c --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePause.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class QuotePreviewSubscriptionSchedulePauseSchedulePause : StripeEntity + { + /// + /// Time at which the subscription pauses. + /// + [JsonProperty("pause_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("pause_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime PauseAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Settings controlling billing behavior during the pause. + /// + [JsonProperty("settings")] + [STJS.JsonPropertyName("settings")] + public QuotePreviewSubscriptionSchedulePauseSchedulePauseSettings Settings { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettings.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettings.cs new file mode 100644 index 0000000000..0b02185c2d --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettings.cs @@ -0,0 +1,30 @@ +// 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 QuotePreviewSubscriptionSchedulePauseSchedulePauseSettings : StripeEntity + { + [JsonProperty("bill_for")] + [STJS.JsonPropertyName("bill_for")] + public QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillFor BillFor { get; set; } + + /// + /// Determines how to handle debits and credits when pausing. + /// One of: invoice, or pending_invoice_item. + /// + [JsonProperty("invoicing_behavior")] + [STJS.JsonPropertyName("invoicing_behavior")] + public string InvoicingBehavior { get; set; } + + /// + /// The type of pause settings. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs new file mode 100644 index 0000000000..d50b38f709 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs @@ -0,0 +1,19 @@ +// 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 QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillFor : StripeEntity + { + [JsonProperty("outstanding_usage_through")] + [STJS.JsonPropertyName("outstanding_usage_through")] + public QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough OutstandingUsageThrough { get; set; } + + [JsonProperty("unused_time_from")] + [STJS.JsonPropertyName("unused_time_from")] + public QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom UnusedTimeFrom { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs new file mode 100644 index 0000000000..79f30879d8 --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs @@ -0,0 +1,19 @@ +// 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 QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough : StripeEntity + { + /// + /// The type of outstanding usage billing behavior. + /// One of: none, or pause_at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs new file mode 100644 index 0000000000..6db41cffda --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs @@ -0,0 +1,19 @@ +// 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 QuotePreviewSubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom : StripeEntity + { + /// + /// The type of unused time credit behavior. + /// One of: item_current_period_start, none, or pause_at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResume.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResume.cs new file mode 100644 index 0000000000..d4caee614b --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResume.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class QuotePreviewSubscriptionSchedulePauseScheduleResume : StripeEntity + { + /// + /// Time at which the subscription resumes. + /// + [JsonProperty("resume_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("resume_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ResumeAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + [JsonProperty("settings")] + [STJS.JsonPropertyName("settings")] + public QuotePreviewSubscriptionSchedulePauseScheduleResumeSettings Settings { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResumeSettings.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResumeSettings.cs new file mode 100644 index 0000000000..72260227be --- /dev/null +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePauseScheduleResumeSettings.cs @@ -0,0 +1,37 @@ +// 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 QuotePreviewSubscriptionSchedulePauseScheduleResumeSettings : StripeEntity + { + /// + /// The billing cycle anchor that applies when the subscription is resumed. + /// One of: resume_at, or unchanged. + /// + [JsonProperty("billing_cycle_anchor")] + [STJS.JsonPropertyName("billing_cycle_anchor")] + public string BillingCycleAnchor { get; set; } + + /// + /// Controls whether Stripe attempts payment on the resumption invoice and how that affects + /// the subscription's status. + /// One of: resume_on_payment_attempt, or resume_on_payment_success. + /// + [JsonProperty("payment_behavior")] + [STJS.JsonPropertyName("payment_behavior")] + public string PaymentBehavior { get; set; } + + /// + /// Determines how to handle prorations resulting from the billing_cycle_anchor change on + /// resume. + /// One of: always_invoice, create_prorations, or none. + /// + [JsonProperty("proration_behavior")] + [STJS.JsonPropertyName("proration_behavior")] + public string ProrationBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs index d1c446fa1b..6cb64daf8b 100644 --- a/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs +++ b/src/Stripe.net/Entities/QuotePreviewSubscriptionSchedules/QuotePreviewSubscriptionSchedulePhase.cs @@ -258,6 +258,14 @@ public Account OnBehalfOf [STJS.JsonPropertyName("transfer_data")] public QuotePreviewSubscriptionSchedulePhaseTransferData TransferData { get; set; } + /// + /// If set to true the entire phase is counted as a trial and the customer will not be + /// charged for any fees. + /// + [JsonProperty("trial")] + [STJS.JsonPropertyName("trial")] + public bool Trial { get; set; } + /// /// Specify behavior of the trial when crossing schedule phase boundaries. /// One of: continue, or none. diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs index 4523095c05..2c9f0b5dc9 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs @@ -8,9 +8,18 @@ namespace Stripe.SharedPayment [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IssuedTokenNextAction : StripeEntity { + /// + /// Contains details for handling the next action by redirecting the customer. Present when + /// next_action.type is redirect_to_url. + /// + [JsonProperty("redirect_to_url")] + [STJS.JsonPropertyName("redirect_to_url")] + public IssuedTokenNextActionRedirectToUrl RedirectToUrl { get; set; } + /// /// Specifies the type of next action required. Determines which child attribute contains /// action details. + /// One of: redirect_to_url, or use_stripe_sdk. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionRedirectToUrl.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionRedirectToUrl.cs new file mode 100644 index 0000000000..446386367b --- /dev/null +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionRedirectToUrl.cs @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class IssuedTokenNextActionRedirectToUrl : StripeEntity + { + /// + /// If the customer does not exit their browser while authenticating, they will be + /// redirected to this specified URL after completion. + /// + [JsonProperty("return_url")] + [STJS.JsonPropertyName("return_url")] + public string ReturnUrl { get; set; } + + /// + /// The URL you must redirect your customer to in order to authenticate the payment. + /// + [JsonProperty("url")] + [STJS.JsonPropertyName("url")] + public string Url { get; set; } + } +} diff --git a/src/Stripe.net/Entities/StripeError.cs b/src/Stripe.net/Entities/StripeError.cs index 2587dd1884..54b8f31c4c 100644 --- a/src/Stripe.net/Entities/StripeError.cs +++ b/src/Stripe.net/Entities/StripeError.cs @@ -49,6 +49,14 @@ public class StripeError : StripeEntity [STJS.JsonPropertyName("doc_url")] public string DocUrl { get; set; } + /// + /// The object for errors returned on a request + /// involving a . + /// + [JsonProperty("gift_card_operation")] + [STJS.JsonPropertyName("gift_card_operation")] + public GiftCardOperation GiftCardOperation { get; set; } + /// /// A human-readable message providing more details about the error. For card errors, these /// messages can be shown to your users. diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs index fc689cc547..19a05ff0a0 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs @@ -247,6 +247,13 @@ public Invoice LatestInvoice [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + /// + /// The pause schedules for this subscription schedule. + /// + [JsonProperty("pause_schedules")] + [STJS.JsonPropertyName("pause_schedules")] + public List PauseSchedules { get; set; } + /// /// Configuration for the subscription schedule's phases. /// diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedule.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedule.cs new file mode 100644 index 0000000000..f05e4ecc23 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedule.cs @@ -0,0 +1,29 @@ +// 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 SubscriptionSchedulePauseSchedule : StripeEntity + { + /// + /// A unique identifier for this pause schedule. + /// + [JsonProperty("key")] + [STJS.JsonPropertyName("key")] + public string Key { get; set; } + + [JsonProperty("pause")] + [STJS.JsonPropertyName("pause")] + public SubscriptionSchedulePauseSchedulePause Pause { get; set; } + + /// + /// Details about when and how the subscription resumes. + /// + [JsonProperty("resume")] + [STJS.JsonPropertyName("resume")] + public SubscriptionSchedulePauseScheduleResume Resume { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePause.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePause.cs new file mode 100644 index 0000000000..33aaafb0c5 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePause.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionSchedulePauseSchedulePause : StripeEntity + { + /// + /// Time at which the subscription pauses. + /// + [JsonProperty("pause_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("pause_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime PauseAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Settings controlling billing behavior during the pause. + /// + [JsonProperty("settings")] + [STJS.JsonPropertyName("settings")] + public SubscriptionSchedulePauseSchedulePauseSettings Settings { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettings.cs new file mode 100644 index 0000000000..9609cee6c7 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettings.cs @@ -0,0 +1,30 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettings : StripeEntity + { + [JsonProperty("bill_for")] + [STJS.JsonPropertyName("bill_for")] + public SubscriptionSchedulePauseSchedulePauseSettingsBillFor BillFor { get; set; } + + /// + /// Determines how to handle debits and credits when pausing. + /// One of: invoice, or pending_invoice_item. + /// + [JsonProperty("invoicing_behavior")] + [STJS.JsonPropertyName("invoicing_behavior")] + public string InvoicingBehavior { get; set; } + + /// + /// The type of pause settings. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs new file mode 100644 index 0000000000..3b59aeebf8 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillFor.cs @@ -0,0 +1,19 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsBillFor : StripeEntity + { + [JsonProperty("outstanding_usage_through")] + [STJS.JsonPropertyName("outstanding_usage_through")] + public SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough OutstandingUsageThrough { get; set; } + + [JsonProperty("unused_time_from")] + [STJS.JsonPropertyName("unused_time_from")] + public SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom UnusedTimeFrom { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs new file mode 100644 index 0000000000..1515efdeae --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough.cs @@ -0,0 +1,19 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThrough : StripeEntity + { + /// + /// The type of outstanding usage billing behavior. + /// One of: none, or pause_at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs new file mode 100644 index 0000000000..934cb4d586 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom.cs @@ -0,0 +1,19 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFrom : StripeEntity + { + /// + /// The type of unused time credit behavior. + /// One of: item_current_period_start, none, or pause_at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResume.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResume.cs new file mode 100644 index 0000000000..295a6935f1 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResume.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SubscriptionSchedulePauseScheduleResume : StripeEntity + { + /// + /// Time at which the subscription resumes. + /// + [JsonProperty("resume_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("resume_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ResumeAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + [JsonProperty("settings")] + [STJS.JsonPropertyName("settings")] + public SubscriptionSchedulePauseScheduleResumeSettings Settings { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettings.cs new file mode 100644 index 0000000000..5a17314d25 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettings.cs @@ -0,0 +1,37 @@ +// 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 SubscriptionSchedulePauseScheduleResumeSettings : StripeEntity + { + /// + /// The billing cycle anchor that applies when the subscription is resumed. + /// One of: resume_at, or unchanged. + /// + [JsonProperty("billing_cycle_anchor")] + [STJS.JsonPropertyName("billing_cycle_anchor")] + public string BillingCycleAnchor { get; set; } + + /// + /// Controls whether Stripe attempts payment on the resumption invoice and how that affects + /// the subscription's status. + /// One of: resume_on_payment_attempt, or resume_on_payment_success. + /// + [JsonProperty("payment_behavior")] + [STJS.JsonPropertyName("payment_behavior")] + public string PaymentBehavior { get; set; } + + /// + /// Determines how to handle prorations resulting from the billing_cycle_anchor change on + /// resume. + /// One of: always_invoice, create_prorations, or none. + /// + [JsonProperty("proration_behavior")] + [STJS.JsonPropertyName("proration_behavior")] + public string ProrationBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs index 53e69422bc..6609933c80 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs @@ -258,6 +258,14 @@ public Account OnBehalfOf [STJS.JsonPropertyName("transfer_data")] public SubscriptionSchedulePhaseTransferData TransferData { get; set; } + /// + /// If set to true the entire phase is counted as a trial and the customer will not be + /// charged for any fees. + /// + [JsonProperty("trial")] + [STJS.JsonPropertyName("trial")] + public bool Trial { get; set; } + /// /// Specify behavior of the trial when crossing schedule phase boundaries. /// One of: continue, or none. diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 54ac5af10e..2ca8353741 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -25,15 +25,16 @@ public class SubscriptionPaymentSettings : StripeEntityinvoice template /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, - /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, blik, boleto, card, cashapp, - /// check_scan, crypto, custom, customer_balance, eps, - /// fpx, giropay, grabpay, id_bank_transfer, ideal, - /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, momo, multibanco, naver_pay, - /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, bizum, blik, boleto, card, + /// cashapp, check_scan, crypto, custom, + /// customer_balance, eps, fpx, giropay, grabpay, + /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, momo, + /// multibanco, naver_pay, nz_bank_account, p24, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, revolut_pay, satispay, + /// sepa_credit_transfer, sepa_debit, sequra, sofort, /// stripe_balance, swish, twint, upi, us_bank_account, /// or wechat_pay. /// diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs index a757566ebb..4b9d438b81 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationCustomerDetailsTaxId.cs @@ -31,8 +31,8 @@ public class CalculationCustomerDetailsTaxId : StripeEntitygn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class CalculationCustomerDetailsTaxId : StripeEntitycr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs index d8b6319224..bd688c33ef 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionCustomerDetailsTaxId.cs @@ -31,8 +31,8 @@ public class TransactionCustomerDetailsTaxId : StripeEntitygn_nif, mk_vat, sr_fin, sn_ninea, am_tin, /// np_pan, tj_tin, ug_tin, zm_tin, kh_tin, /// aw_tin, az_tin, bd_bin, bj_ifu, et_tin, - /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, or - /// unknown. + /// kg_tin, la_tin, cm_niu, cv_nif, bf_ifu, + /// ic_nif, or unknown. /// One of: ad_nrt, ae_trn, al_tin, am_tin, ao_tin, /// ar_cuit, au_abn, au_arn, aw_tin, az_tin, /// ba_tin, bb_tin, bd_bin, bf_ifu, bg_uic, @@ -43,19 +43,20 @@ public class TransactionCustomerDetailsTaxId : StripeEntitycr_tin, cv_nif, de_stn, do_rcn, ec_ruc, /// eg_tin, es_cif, et_tin, eu_oss_vat, eu_vat, /// fo_vat, gb_vat, ge_vat, gi_tin, gn_nif, hk_br, - /// hr_oib, hu_tin, id_npwp, il_vat, in_gst, - /// is_vat, it_cf, jp_cn, jp_rn, jp_trn, ke_pin, - /// kg_tin, kh_tin, kr_brn, kz_bin, la_tin, - /// li_uid, li_vat, lk_vat, ma_vat, md_vat, - /// me_pib, mk_vat, mr_nif, mx_rfc, my_frp, - /// my_itn, my_sst, ng_tin, no_vat, no_voec, - /// np_pan, nz_gst, om_vat, pe_ruc, ph_tin, - /// pl_nip, py_ruc, ro_tin, rs_pib, ru_inn, - /// ru_kpp, sa_vat, sg_gst, sg_uen, si_tin, - /// sn_ninea, sr_fin, sv_nit, th_vat, tj_tin, - /// tr_tin, tw_vat, tz_vat, ua_vat, ug_tin, - /// unknown, us_ein, uy_ruc, uz_tin, uz_vat, - /// ve_rif, vn_tin, za_vat, zm_tin, or zw_tin. + /// hr_oib, hu_tin, ic_nif, id_npwp, il_vat, + /// in_gst, is_vat, it_cf, jp_cn, jp_rn, jp_trn, + /// ke_pin, kg_tin, kh_tin, kr_brn, kz_bin, + /// la_tin, li_uid, li_vat, lk_vat, ma_vat, + /// md_vat, me_pib, mk_vat, mr_nif, mx_rfc, + /// my_frp, my_itn, my_sst, ng_tin, no_vat, + /// no_voec, np_pan, nz_gst, om_vat, pe_ruc, + /// ph_tin, pl_nip, py_ruc, ro_tin, rs_pib, + /// ru_inn, ru_kpp, sa_vat, sg_gst, sg_uen, + /// si_tin, sn_ninea, sr_fin, sv_nit, th_vat, + /// tj_tin, tr_tin, tw_vat, tz_vat, ua_vat, + /// ug_tin, unknown, us_ein, uy_ruc, uz_tin, + /// uz_vat, ve_rif, vn_tin, za_vat, zm_tin, or + /// zw_tin. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/V2/Signals/AccountSignals/AccountSignal.cs b/src/Stripe.net/Entities/V2/Signals/AccountSignals/AccountSignal.cs index 5b8c17d8bb..f09bdd2de9 100644 --- a/src/Stripe.net/Entities/V2/Signals/AccountSignals/AccountSignal.cs +++ b/src/Stripe.net/Entities/V2/Signals/AccountSignals/AccountSignal.cs @@ -7,7 +7,10 @@ namespace Stripe.V2.Signals using STJS = System.Text.Json.Serialization; /// - /// An automatically evaluated signal on a v2 account. + /// An automatically evaluated signal on an account. Each Account Signal object corresponds + /// to exactly one signal type, indicated by type. Only the type-specific field is + /// populated; other type-specific payload fields are null. If an account has multiple + /// signals, Stripe creates separate account signal objects. /// [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class AccountSignal : StripeEntity, IHasId, IHasObject diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 34d2e6c157..1223a5db44 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -118,7 +118,6 @@ public static class StripeTypeRegistry FinancialConnections.Transaction) }, { "forwarding.request", typeof(Forwarding.Request) }, - { "fr_meal_vouchers_onboarding", typeof(FrMealVouchersOnboarding) }, { "funding_instructions", typeof(FundingInstructions) }, { "fx_quote", typeof(FxQuote) }, { "gift_card", typeof(GiftCard) }, diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs index 5188d076d8..32ef59521b 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs @@ -129,6 +129,10 @@ public List FullNameAliases /// itself, you can also provide a PII token provided by /// Stripe.js. + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("id_number")] [STJS.JsonPropertyName("id_number")] @@ -140,6 +144,10 @@ public List FullNameAliases /// back of an ID card. Instead of the number itself, you can also provide a PII token provided by /// Stripe.js. + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("id_number_secondary")] [STJS.JsonPropertyName("id_number_secondary")] @@ -256,6 +264,10 @@ public Dictionary Metadata /// /// The last four digits of the person's Social Security number (U.S. only). + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("ssn_last_4")] [STJS.JsonPropertyName("ssn_last_4")] diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonService.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonService.cs index e7459fbf4f..208a81d65a 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonService.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonService.cs @@ -48,7 +48,7 @@ public virtual Task CreateAsync(string parentId, AccountPersonCreateOpti /// ///

Deletes an existing person’s relationship to the account’s legal entity. Any person /// with a relationship for an account can be deleted through the API, except if the person - /// is the account_opener. If your integration is using the executive + /// is the representative. If your integration is using the executive /// parameter, you cannot delete the only verified executive on file.

. ///
public virtual Person Delete(string parentId, string id, AccountPersonDeleteOptions options = null, RequestOptions requestOptions = null) @@ -59,7 +59,7 @@ public virtual Person Delete(string parentId, string id, AccountPersonDeleteOpti /// ///

Deletes an existing person’s relationship to the account’s legal entity. Any person /// with a relationship for an account can be deleted through the API, except if the person - /// is the account_opener. If your integration is using the executive + /// is the representative. If your integration is using the executive /// parameter, you cannot delete the only verified executive on file.

. ///
public virtual Task DeleteAsync(string parentId, string id, AccountPersonDeleteOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs index 0bfeff16cc..b315a821e4 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs @@ -129,6 +129,10 @@ public List FullNameAliases /// itself, you can also provide a PII token provided by /// Stripe.js. + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("id_number")] [STJS.JsonPropertyName("id_number")] @@ -140,6 +144,10 @@ public List FullNameAliases /// back of an ID card. Instead of the number itself, you can also provide a PII token provided by /// Stripe.js. + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("id_number_secondary")] [STJS.JsonPropertyName("id_number_secondary")] @@ -256,6 +264,10 @@ public Dictionary Metadata /// /// The last four digits of the person's Social Security number (U.S. only). + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("ssn_last_4")] [STJS.JsonPropertyName("ssn_last_4")] diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs deleted file mode 100644 index 2ae7047a9c..0000000000 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsFeaturesOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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 deleted file mode 100644 index 6bd60072cd..0000000000 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsOptions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// 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 deleted file mode 100644 index 5fed5498e6..0000000000 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsFeaturesOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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 deleted file mode 100644 index 5756ae36d1..0000000000 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountsTransactionsOptions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// 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 e5f04b5d6f..9250a13d4e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -161,24 +161,6 @@ 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 @@ -305,15 +287,6 @@ 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 deleted file mode 100644 index 1d90876d00..0000000000 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListFeaturesOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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 deleted file mode 100644 index 1f96b724ba..0000000000 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsRecipientsListOptions.cs +++ /dev/null @@ -1,15 +0,0 @@ -// 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/Accounts/AccountCompanyOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs index a3be18ce13..30d04e75ba 100644 --- a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs @@ -216,6 +216,10 @@ public string Structure /// The business ID number of the company, as appropriate for the company’s country. /// (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a /// Company Number in the UK.). + /// + /// Changing this value requires that the account re-accept the terms of + /// service. /// [JsonProperty("tax_id")] [STJS.JsonPropertyName("tax_id")] diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs index b2d6e08e81..2d529f73d8 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationCreateOptions.cs @@ -22,7 +22,7 @@ public class ConfigurationCreateOptions : BaseOptions, IHasMetadata /// /// The default URL to redirect customers to when they click on the portal's link to return /// to your website. This can be overriden + /// href="https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url">overridden /// when creating the session. /// [JsonProperty("default_return_url", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs index e359783ef1..d32d58212c 100644 --- a/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Configurations/ConfigurationUpdateOptions.cs @@ -30,7 +30,7 @@ public class ConfigurationUpdateOptions : BaseOptions, IHasMetadata /// /// The default URL to redirect customers to when they click on the portal's link to return /// to your website. This can be overriden + /// href="https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url">overridden /// when creating the session. /// [JsonProperty("default_return_url", NullValueHandling = NullValueHandling.Ignore)] diff --git a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingCreateOptions.cs b/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingCreateOptions.cs deleted file mode 100644 index c13432df8e..0000000000 --- a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingCreateOptions.cs +++ /dev/null @@ -1,45 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using System.Collections.Generic; - using Newtonsoft.Json; - using Stripe.Infrastructure; - using STJS = System.Text.Json.Serialization; - - [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class FrMealVouchersOnboardingCreateOptions : BaseOptions, IHasMetadata - { - /// - /// 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. This cannot be - /// changed after creation of this object. - /// - [JsonProperty("metadata")] - [STJS.JsonPropertyName("metadata")] - public Dictionary Metadata { get; set; } - - /// - /// Name of the restaurant. This cannot be changed after creation of this object. - /// - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - /// - /// Postal code of the restaurant. - /// - [JsonProperty("postal_code")] - [STJS.JsonPropertyName("postal_code")] - public string PostalCode { get; set; } - - /// - /// SIRET number associated with the restaurant. This cannot be changed after creation of - /// this object. - /// - [JsonProperty("siret")] - [STJS.JsonPropertyName("siret")] - public string Siret { get; set; } - } -} diff --git a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingGetOptions.cs b/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingGetOptions.cs deleted file mode 100644 index 16d799acac..0000000000 --- a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingGetOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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 FrMealVouchersOnboardingGetOptions : BaseOptions - { - } -} diff --git a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingListOptions.cs b/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingListOptions.cs deleted file mode 100644 index bcc6b838f7..0000000000 --- a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingListOptions.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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 FrMealVouchersOnboardingListOptions : ListOptions - { - } -} diff --git a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingService.cs b/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingService.cs deleted file mode 100644 index b79fcc98c9..0000000000 --- a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingService.cs +++ /dev/null @@ -1,137 +0,0 @@ -// File generated from our OpenAPI spec -namespace Stripe -{ - using System; - using System.Collections.Generic; - using System.Net; - using System.Net.Http; - using System.Threading; - using System.Threading.Tasks; - - public class FrMealVouchersOnboardingService : Service, - ICreatable, - IListable, - IRetrievable, - IUpdatable - { - public FrMealVouchersOnboardingService() - { - } - - internal FrMealVouchersOnboardingService(ApiRequestor requestor) - : base(requestor) - { - } - - public FrMealVouchersOnboardingService(IStripeClient client) - : base(client) - { - } - - /// - ///

Creates a French Meal Vouchers Onboarding object that represents a - /// restaurant’s onboarding status and starts the onboarding process.

. - ///
- public virtual FrMealVouchersOnboarding Create(FrMealVouchersOnboardingCreateOptions options, RequestOptions requestOptions = null) - { - return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/fr_meal_vouchers_onboardings", options, requestOptions); - } - - /// - ///

Creates a French Meal Vouchers Onboarding object that represents a - /// restaurant’s onboarding status and starts the onboarding process.

. - ///
- public virtual Task CreateAsync(FrMealVouchersOnboardingCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/fr_meal_vouchers_onboardings", options, requestOptions, cancellationToken); - } - - /// - ///

Retrieves the details of a previously created French Meal Vouchers Onboarding - /// object.

. - /// - ///

Supply the unique French Meal Vouchers Onboarding ID that was returned from - /// your previous request, and Stripe returns the corresponding onboarding information.

. - ///
- public virtual FrMealVouchersOnboarding Get(string id, FrMealVouchersOnboardingGetOptions options = null, RequestOptions requestOptions = null) - { - return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v1/fr_meal_vouchers_onboardings/{WebUtility.UrlEncode(id)}", options, requestOptions); - } - - /// - ///

Retrieves the details of a previously created French Meal Vouchers Onboarding - /// object.

. - /// - ///

Supply the unique French Meal Vouchers Onboarding ID that was returned from - /// your previous request, and Stripe returns the corresponding onboarding information.

. - ///
- public virtual Task GetAsync(string id, FrMealVouchersOnboardingGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/fr_meal_vouchers_onboardings/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); - } - - /// - ///

Lists French Meal Vouchers Onboarding objects. The objects are returned in - /// sorted order, with the most recently created objects appearing first.

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

Lists French Meal Vouchers Onboarding objects. The objects are returned in - /// sorted order, with the most recently created objects appearing first.

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

Lists French Meal Vouchers Onboarding objects. The objects are returned in - /// sorted order, with the most recently created objects appearing first.

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

Lists French Meal Vouchers Onboarding objects. The objects are returned in - /// sorted order, with the most recently created objects appearing first.

. - ///
- public virtual IAsyncEnumerable ListAutoPagingAsync(FrMealVouchersOnboardingListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.ListRequestAutoPagingAsync($"/v1/fr_meal_vouchers_onboardings", options, requestOptions, cancellationToken); - } - - /// - ///

Updates the details of a restaurant’s French Meal Vouchers Onboarding object - /// by setting the values of the parameters passed. Any parameters not provided are left - /// unchanged. After you update the object, the onboarding process automatically - /// restarts.

. - /// - ///

You can only update French Meal Vouchers Onboarding objects with the - /// postal_code field requirement in past_due.

. - ///
- public virtual FrMealVouchersOnboarding Update(string id, FrMealVouchersOnboardingUpdateOptions options, RequestOptions requestOptions = null) - { - return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/fr_meal_vouchers_onboardings/{WebUtility.UrlEncode(id)}", options, requestOptions); - } - - /// - ///

Updates the details of a restaurant’s French Meal Vouchers Onboarding object - /// by setting the values of the parameters passed. Any parameters not provided are left - /// unchanged. After you update the object, the onboarding process automatically - /// restarts.

. - /// - ///

You can only update French Meal Vouchers Onboarding objects with the - /// postal_code field requirement in past_due.

. - ///
- public virtual Task UpdateAsync(string id, FrMealVouchersOnboardingUpdateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) - { - return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/fr_meal_vouchers_onboardings/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); - } - } -} diff --git a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingUpdateOptions.cs b/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingUpdateOptions.cs deleted file mode 100644 index 4bd9ca705a..0000000000 --- a/src/Stripe.net/Services/FrMealVouchersOnboardings/FrMealVouchersOnboardingUpdateOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// 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 FrMealVouchersOnboardingUpdateOptions : BaseOptions - { - /// - /// Corrected Postal code of the restaurant. - /// - [JsonProperty("postal_code")] - [STJS.JsonPropertyName("postal_code")] - public string PostalCode { get; set; } - } -} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 360210c6e5..885e9ee26d 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -49,15 +49,16 @@ public string DefaultMandate /// href="https://dashboard.stripe.com/settings/billing/invoice">invoice template /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, - /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, blik, boleto, card, cashapp, - /// check_scan, crypto, custom, customer_balance, eps, - /// fpx, giropay, grabpay, id_bank_transfer, ideal, - /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, momo, multibanco, naver_pay, - /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, bizum, blik, boleto, card, + /// cashapp, check_scan, crypto, custom, + /// customer_balance, eps, fpx, giropay, grabpay, + /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, momo, + /// multibanco, naver_pay, nz_bank_account, p24, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, revolut_pay, satispay, + /// sepa_credit_transfer, sepa_debit, sequra, sofort, /// stripe_balance, swish, twint, upi, us_bank_account, /// or wechat_pay. ///
diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs index 3c83486572..cc390323e8 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs @@ -285,8 +285,9 @@ public List Discounts public string TrialContinuation { get; set; } /// - /// Sets the phase to trialing from the start date to this date. Must be before the phase - /// end date, can not be combined with trial. + /// Sets the phase to trialing from the start date to this date. Must be within the phase. + /// When previewing an update, if combined with trial=true, it must match the phase + /// end date. /// [JsonProperty("trial_end")] [JsonConverter(typeof(AnyOfConverter))] diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs index cb5723c8bb..6cabebd785 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs @@ -126,8 +126,9 @@ public virtual Task CreateAsync(PaymentMethodCreateOptions option } /// - ///

Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, - /// it can no longer be used for a payment or re-attached to a Customer.

. + ///

Detaches a PaymentMethod object from a Customer. Detachment is permanent and + /// irreversible — once detached, a PaymentMethod can no longer be used for payments or + /// re-attached to a Customer.

. ///
public virtual PaymentMethod Detach(string id, PaymentMethodDetachOptions options = null, RequestOptions requestOptions = null) { @@ -135,8 +136,9 @@ public virtual PaymentMethod Detach(string id, PaymentMethodDetachOptions option } /// - ///

Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, - /// it can no longer be used for a payment or re-attached to a Customer.

. + ///

Detaches a PaymentMethod object from a Customer. Detachment is permanent and + /// irreversible — once detached, a PaymentMethod can no longer be used for payments or + /// re-attached to a Customer.

. ///
public virtual Task DetachAsync(string id, PaymentMethodDetachOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordClosedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordClosedOptions.cs new file mode 100644 index 0000000000..ed2f5ac86c --- /dev/null +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordClosedOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentRecordClosedOptions : INestedOptions + { + /// + /// When the dispute was closed. Measured in seconds since the Unix epoch. + /// + [JsonProperty("closed_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("closed_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? ClosedAt { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordCreateOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordCreateOptions.cs new file mode 100644 index 0000000000..4422a4e466 --- /dev/null +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordCreateOptions.cs @@ -0,0 +1,83 @@ +// 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 PaymentRecordCreateOptions : BaseOptions, IHasMetadata + { + private Dictionary metadata; + + /// + /// The amount that has been lost to the customer due to disputes on this payment. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public PaymentRecordAmountOptions Amount { get; set; } + + /// + /// Information about the dispute closing. + /// + [JsonProperty("closed")] + [STJS.JsonPropertyName("closed")] + public PaymentRecordClosedOptions Closed { get; set; } + + /// + /// Information about the dispute funding event. + /// + [JsonProperty("funded")] + [STJS.JsonPropertyName("funded")] + public PaymentRecordFundedOptions Funded { get; set; } + + /// + /// When the reported payment was initiated. Measured in seconds since the Unix epoch. + /// + [JsonProperty("initiated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("initiated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? InitiatedAt { 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(); + } + } + + /// + /// Processor information for this payment. + /// + [JsonProperty("processor_details")] + [STJS.JsonPropertyName("processor_details")] + public PaymentRecordProcessorDetailsOptions ProcessorDetails { get; set; } + + /// + /// The reason the payment was disputed. + /// One of: bank_cannot_process, check_returned, credit_not_processed, + /// customer_initiated, debit_not_authorized, duplicate, + /// fraudulent, general, incorrect_account_details, + /// insufficient_funds, noncompliant, product_not_received, + /// product_unacceptable, subscription_canceled, or unrecognized. + /// + [JsonProperty("reason")] + [STJS.JsonPropertyName("reason")] + public string Reason { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedAmountOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedAmountOptions.cs new file mode 100644 index 0000000000..f7a9e554d5 --- /dev/null +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedAmountOptions.cs @@ -0,0 +1,29 @@ +// 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 PaymentRecordFundedAmountOptions : INestedOptions + { + /// + /// Three-letter ISO currency + /// code, in lowercase. Must be a supported + /// currency. + /// + [JsonProperty("currency")] + [STJS.JsonPropertyName("currency")] + public string Currency { get; set; } + + /// + /// A positive integer representing the amount in the currency's minor unit. For example, + /// 100 can represent 1 USD or 100 JPY. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public long? Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedOptions.cs new file mode 100644 index 0000000000..113bbd1eac --- /dev/null +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordFundedOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentRecordFundedOptions : INestedOptions + { + /// + /// The amount that has been lost to the customer due to disputes on this payment. + /// + [JsonProperty("amount")] + [STJS.JsonPropertyName("amount")] + public PaymentRecordFundedAmountOptions Amount { get; set; } + + /// + /// When the dispute funding event occurred. Measured in seconds since the Unix epoch. + /// + [JsonProperty("funded_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("funded_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? FundedAt { get; set; } + + /// + /// The type of dispute funding event. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordProcessorDetailsCustomOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordProcessorDetailsCustomOptions.cs index 2a07240be8..3fc83c3d0e 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordProcessorDetailsCustomOptions.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordProcessorDetailsCustomOptions.cs @@ -8,6 +8,13 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class PaymentRecordProcessorDetailsCustomOptions : INestedOptions { + /// + /// A reference to the external dispute. This field must be unique across all disputes. + /// + [JsonProperty("dispute_reference")] + [STJS.JsonPropertyName("dispute_reference")] + public string DisputeReference { get; set; } + /// /// An opaque string for manual reconciliation of this payment, for example a check number /// or a payment processor ID. diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs index 1d503b91dc..b647e71e92 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs @@ -26,6 +26,24 @@ public PaymentRecordService(IStripeClient client) { } + /// + ///

Report that the most recent payment attempt on the specified Payment Record was + /// disputed.

. + ///
+ public virtual PaymentRecord Create(string id, PaymentRecordCreateOptions options, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_records/{WebUtility.UrlEncode(id)}/report_dispute", options, requestOptions); + } + + /// + ///

Report that the most recent payment attempt on the specified Payment Record was + /// disputed.

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

Retrieves a Payment Record with the given ID

. ///
diff --git a/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs b/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs index e8a9a2fe0e..3a4d59f035 100644 --- a/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs +++ b/src/Stripe.net/Services/Refunds/RefundCreateOptions.cs @@ -86,6 +86,13 @@ public Dictionary Metadata [STJS.JsonPropertyName("payment_intent")] public string PaymentIntent { get; set; } + /// + /// The identifier of the PaymentRecord to refund. + /// + [JsonProperty("payment_record")] + [STJS.JsonPropertyName("payment_record")] + public string PaymentRecord { get; set; } + /// /// String indicating the reason for the refund. If set, possible values are /// duplicate, fraudulent, and requested_by_customer. If you believe diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs index 24ca6fd9c3..86c66ea7c1 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs @@ -101,6 +101,14 @@ public Dictionary Metadata } } + /// + /// Sets the pause schedules for the subscription schedule. Each entry configures when and + /// how the subscription pauses and optionally when and how it resumes. + /// + [JsonProperty("pause_schedules")] + [STJS.JsonPropertyName("pause_schedules")] + public List PauseSchedules { get; set; } + /// /// List representing phases of the subscription schedule. Each phase can be customized to /// have different durations, plans, and coupons. If there are multiple phases, the diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleOptions.cs new file mode 100644 index 0000000000..68601c26c4 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleOptions.cs @@ -0,0 +1,32 @@ +// 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 SubscriptionSchedulePauseScheduleOptions : INestedOptions + { + /// + /// A unique identifier for this pause schedule entry. + /// + [JsonProperty("key")] + [STJS.JsonPropertyName("key")] + public string Key { get; set; } + + /// + /// Configuration for when and how the subscription pauses. + /// + [JsonProperty("pause")] + [STJS.JsonPropertyName("pause")] + public SubscriptionSchedulePauseSchedulePauseOptions Pause { get; set; } + + /// + /// Configuration for when and how the subscription resumes. + /// + [JsonProperty("resume")] + [STJS.JsonPropertyName("resume")] + public SubscriptionSchedulePauseScheduleResumeOptions Resume { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseOptions.cs new file mode 100644 index 0000000000..d1c9fdbdc2 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseOptions.cs @@ -0,0 +1,25 @@ +// 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 SubscriptionSchedulePauseSchedulePauseOptions : INestedOptions + { + /// + /// When to pause the subscription. + /// + [JsonProperty("pause_at")] + [STJS.JsonPropertyName("pause_at")] + public SubscriptionSchedulePauseSchedulePausePauseAtOptions PauseAt { get; set; } + + /// + /// Settings controlling billing behavior during the pause. + /// + [JsonProperty("settings")] + [STJS.JsonPropertyName("settings")] + public SubscriptionSchedulePauseSchedulePauseSettingsOptions Settings { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePausePauseAtOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePausePauseAtOptions.cs new file mode 100644 index 0000000000..dc085a24bc --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePausePauseAtOptions.cs @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionSchedulePauseSchedulePausePauseAtOptions : INestedOptions + { + /// + /// The Unix timestamp at which to pause the subscription. Required when type is + /// timestamp. + /// + [JsonProperty("timestamp")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("timestamp")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? Timestamp { get; set; } + + /// + /// When to pause the subscription. Use now to pause immediately or timestamp + /// to pause at a specific time. + /// One of: now, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOptions.cs new file mode 100644 index 0000000000..5692903de6 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOptions.cs @@ -0,0 +1,25 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsBillForOptions : INestedOptions + { + /// + /// Controls whether to collect metered usage accrued up to the pause date. + /// + [JsonProperty("outstanding_usage_through")] + [STJS.JsonPropertyName("outstanding_usage_through")] + public SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThroughOptions OutstandingUsageThrough { get; set; } + + /// + /// Controls how unused time on subscription items is credited when pausing. + /// + [JsonProperty("unused_time_from")] + [STJS.JsonPropertyName("unused_time_from")] + public SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFromOptions UnusedTimeFrom { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThroughOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThroughOptions.cs new file mode 100644 index 0000000000..7f85e40028 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThroughOptions.cs @@ -0,0 +1,19 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsBillForOutstandingUsageThroughOptions : INestedOptions + { + /// + /// Determines whether to collect metered usage accrued up to the pause date. + /// One of: none, or pause_at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFromOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFromOptions.cs new file mode 100644 index 0000000000..ee0ce1c63e --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFromOptions.cs @@ -0,0 +1,19 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsBillForUnusedTimeFromOptions : INestedOptions + { + /// + /// Determines which point in the billing period unused time is credited from. + /// One of: item_current_period_start, none, or pause_at. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsOptions.cs new file mode 100644 index 0000000000..7d13b4acef --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseSchedulePauseSettingsOptions.cs @@ -0,0 +1,33 @@ +// 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 SubscriptionSchedulePauseSchedulePauseSettingsOptions : INestedOptions + { + /// + /// Controls what to bill for when pausing the subscription. + /// + [JsonProperty("bill_for")] + [STJS.JsonPropertyName("bill_for")] + public SubscriptionSchedulePauseSchedulePauseSettingsBillForOptions BillFor { get; set; } + + /// + /// Determines whether to generate an invoice for outstanding amounts when pausing. + /// One of: invoice, or pending_invoice_item. + /// + [JsonProperty("invoicing_behavior")] + [STJS.JsonPropertyName("invoicing_behavior")] + public string InvoicingBehavior { get; set; } + + /// + /// The pause type. Currently only subscription is supported. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeOptions.cs new file mode 100644 index 0000000000..911d5bb322 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeOptions.cs @@ -0,0 +1,25 @@ +// 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 SubscriptionSchedulePauseScheduleResumeOptions : INestedOptions + { + /// + /// When to resume the subscription. + /// + [JsonProperty("resume_at")] + [STJS.JsonPropertyName("resume_at")] + public SubscriptionSchedulePauseScheduleResumeResumeAtOptions ResumeAt { get; set; } + + /// + /// Settings controlling how the subscription resumes. + /// + [JsonProperty("settings")] + [STJS.JsonPropertyName("settings")] + public SubscriptionSchedulePauseScheduleResumeSettingsOptions Settings { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtDurationOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtDurationOptions.cs new file mode 100644 index 0000000000..3748d9a89d --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtDurationOptions.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(STJStripeOptionsConverter))] + public class SubscriptionSchedulePauseScheduleResumeResumeAtDurationOptions : INestedOptions + { + /// + /// The time unit for the resume duration. One of 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 after which the subscription resumes. + /// + [JsonProperty("interval_count")] + [STJS.JsonPropertyName("interval_count")] + public long? IntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtOptions.cs new file mode 100644 index 0000000000..979b4b11d2 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeResumeAtOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SubscriptionSchedulePauseScheduleResumeResumeAtOptions : INestedOptions + { + /// + /// The duration after which to resume the subscription. Required when type is + /// duration. + /// + [JsonProperty("duration")] + [STJS.JsonPropertyName("duration")] + public SubscriptionSchedulePauseScheduleResumeResumeAtDurationOptions Duration { get; set; } + + /// + /// The Unix timestamp at which to resume the subscription. Required when type is + /// timestamp. + /// + [JsonProperty("timestamp")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("timestamp")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? Timestamp { get; set; } + + /// + /// When to resume the subscription. Use now to resume immediately, duration + /// to resume after a set duration, or timestamp to resume at a specific time. + /// One of: duration, now, or timestamp. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettingsOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettingsOptions.cs new file mode 100644 index 0000000000..2e8265f5c8 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePauseScheduleResumeSettingsOptions.cs @@ -0,0 +1,37 @@ +// 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 SubscriptionSchedulePauseScheduleResumeSettingsOptions : INestedOptions + { + /// + /// Controls the billing cycle anchor when the subscription resumes. + /// One of: resume_at, or unchanged. + /// + [JsonProperty("billing_cycle_anchor")] + [STJS.JsonPropertyName("billing_cycle_anchor")] + public string BillingCycleAnchor { get; set; } + + /// + /// Controls whether Stripe attempts payment on the resumption invoice and how payment + /// affects the subscription's status. The default is resume_on_payment_attempt. + /// One of: resume_on_payment_attempt, or resume_on_payment_success. + /// + [JsonProperty("payment_behavior")] + [STJS.JsonPropertyName("payment_behavior")] + public string PaymentBehavior { get; set; } + + /// + /// Determines how to handle prorations when the subscription resumes. The default is + /// create_prorations. + /// One of: always_invoice, create_prorations, or none. + /// + [JsonProperty("proration_behavior")] + [STJS.JsonPropertyName("proration_behavior")] + public string ProrationBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs index c2718cddaf..0ca4ecb643 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs @@ -285,8 +285,8 @@ public List Discounts public string TrialContinuation { get; set; } /// - /// Sets the phase to trialing from the start date to this date. Must be before the phase - /// end date, can not be combined with trial. + /// Sets the phase to trialing from the start date to this date. Must be within the phase. + /// When combined with trial=true, it must match the phase end date. /// [JsonProperty("trial_end")] [JsonConverter(typeof(AnyOfConverter))] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs index 8b87de7647..7183695aaa 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleUpdateOptions.cs @@ -11,6 +11,7 @@ public class SubscriptionScheduleUpdateOptions : BaseOptions, IHasMetadata { private List billingSchedules; private Dictionary metadata; + private List pauseSchedules; /// /// Configures when the subscription schedule generates prorations for phase transitions. @@ -78,6 +79,24 @@ public Dictionary Metadata } } + /// + /// Sets the pause schedules for the subscription schedule. Include a key to update + /// an existing entry or omit it to add a new one. Pass "" to clear all entries or + /// [] to leave them unchanged. + /// + [JsonProperty("pause_schedules", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("pause_schedules")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List PauseSchedules + { + get => this.pauseSchedules; + set + { + this.pauseSchedules = value; + this.SetTracker.Track(); + } + } + /// /// List representing phases of the subscription schedule. Each phase can be customized to /// have different durations, plans, and coupons. If there are multiple phases, the diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index a7ab09f521..c9750c234f 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -31,15 +31,16 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions, IHasSetTrackin /// href="https://dashboard.stripe.com/settings/billing/invoice">invoice template /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, - /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// bizum, blik, boleto, card, cashapp, - /// check_scan, crypto, custom, customer_balance, eps, - /// fpx, giropay, grabpay, id_bank_transfer, ideal, - /// jp_credit_transfer, kakao_pay, klarna, konbini, - /// kr_card, link, momo, multibanco, naver_pay, - /// nz_bank_account, p24, pay_by_bank, payco, paynow, - /// paypal, payto, pix, promptpay, revolut_pay, - /// satispay, sepa_credit_transfer, sepa_debit, sofort, + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, bizum, blik, boleto, card, + /// cashapp, check_scan, crypto, custom, + /// customer_balance, eps, fpx, giropay, grabpay, + /// id_bank_transfer, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, momo, + /// multibanco, naver_pay, nz_bank_account, p24, + /// pay_by_bank, payco, paynow, paypal, payto, + /// pix, promptpay, revolut_pay, satispay, + /// sepa_credit_transfer, sepa_debit, sequra, sofort, /// stripe_balance, swish, twint, upi, us_bank_account, /// or wechat_pay. /// diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFleetReportedBreakdownFuelOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFleetReportedBreakdownFuelOptions.cs index fa08ecd85d..2f61fddb7c 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFleetReportedBreakdownFuelOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationFleetReportedBreakdownFuelOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.TestHelpers.Issuing public class AuthorizationFleetReportedBreakdownFuelOptions : INestedOptions { /// - /// Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive + /// Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive /// of taxes. /// [JsonProperty("gross_amount_decimal")] diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationPurchaseDetailsFleetReportedBreakdownFuelOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationPurchaseDetailsFleetReportedBreakdownFuelOptions.cs index c2c7221e35..3f540c5623 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationPurchaseDetailsFleetReportedBreakdownFuelOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Authorizations/AuthorizationPurchaseDetailsFleetReportedBreakdownFuelOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.TestHelpers.Issuing public class AuthorizationPurchaseDetailsFleetReportedBreakdownFuelOptions : INestedOptions { /// - /// Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive + /// Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive /// of taxes. /// [JsonProperty("gross_amount_decimal")] diff --git a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuelOptions.cs b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuelOptions.cs index 2c2d5d8c7e..f6fab4de79 100644 --- a/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuelOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/Issuing/Transactions/TransactionPurchaseDetailsFleetReportedBreakdownFuelOptions.cs @@ -9,7 +9,7 @@ namespace Stripe.TestHelpers.Issuing public class TransactionPurchaseDetailsFleetReportedBreakdownFuelOptions : INestedOptions { /// - /// Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive + /// Gross fuel amount that should equal Fuel Volume multiplied by Fuel Unit Cost, inclusive /// of taxes. /// [JsonProperty("gross_amount_decimal")] diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs index 24d356b4f8..583c6c9474 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs @@ -224,6 +224,10 @@ public string Structure /// The business ID number of the company, as appropriate for the company’s country. /// (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a /// Company Number in the UK.). + /// + /// Changing this value requires that the account re-accept the terms of + /// service. /// [JsonProperty("tax_id")] [STJS.JsonPropertyName("tax_id")] diff --git a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs index f193eb9436..3590b97e8e 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs @@ -133,6 +133,10 @@ public List FullNameAliases /// itself, you can also provide a PII token provided by /// Stripe.js. + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("id_number")] [STJS.JsonPropertyName("id_number")] @@ -144,6 +148,10 @@ public List FullNameAliases /// back of an ID card. Instead of the number itself, you can also provide a PII token provided by /// Stripe.js. + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("id_number_secondary")] [STJS.JsonPropertyName("id_number_secondary")] @@ -252,6 +260,10 @@ public Dictionary Metadata /// /// The last four digits of the person's Social Security number (U.S. only). + /// + /// Changing this value for the account's representative requires that the account re-accept + /// the terms + /// of service. /// [JsonProperty("ssn_last_4")] [STJS.JsonPropertyName("ssn_last_4")] diff --git a/src/Stripe.net/Services/V1Services.cs b/src/Stripe.net/Services/V1Services.cs index c26923a44a..c3683d42d5 100644 --- a/src/Stripe.net/Services/V1Services.cs +++ b/src/Stripe.net/Services/V1Services.cs @@ -43,7 +43,6 @@ public class V1Services : Service private FileLinkService fileLinks; private FinancialConnectionsService financialConnections; private ForwardingService forwarding; - private FrMealVouchersOnboardingService frMealVouchersOnboardings; private FxQuoteService fxQuotes; private GiftCardService giftCards; private GiftCardOperationService giftCardOperations; @@ -219,9 +218,6 @@ internal V1Services(IStripeClient client) public virtual ForwardingService Forwarding => this.forwarding ??= new ForwardingService( this.Requestor); - public virtual FrMealVouchersOnboardingService FrMealVouchersOnboardings => this.frMealVouchersOnboardings ??= new FrMealVouchersOnboardingService( - this.Requestor); - public virtual FxQuoteService FxQuotes => this.fxQuotes ??= new FxQuoteService( this.Requestor); diff --git a/src/Stripe.net/Services/V2/Signals/AccountSignals/AccountSignalService.cs b/src/Stripe.net/Services/V2/Signals/AccountSignals/AccountSignalService.cs index 278e54525f..b27d5f0a01 100644 --- a/src/Stripe.net/Services/V2/Signals/AccountSignals/AccountSignalService.cs +++ b/src/Stripe.net/Services/V2/Signals/AccountSignals/AccountSignalService.cs @@ -37,7 +37,9 @@ public virtual Task GetAsync(string id, AccountSignalGetOptions o } /// - /// Lists AccountSignals for a given account or customer, filtered by signal type. + /// Lists the latest AccountSignals for a given account or customer, filtered by signal + /// type. Note that this endpoint returns only the latest signal for each requested signal + /// type. /// public virtual V2.StripeList List(AccountSignalListOptions options = null, RequestOptions requestOptions = null) { @@ -45,7 +47,9 @@ public virtual V2.StripeList List(AccountSignalListOptions option } /// - /// Lists AccountSignals for a given account or customer, filtered by signal type. + /// Lists the latest AccountSignals for a given account or customer, filtered by signal + /// type. Note that this endpoint returns only the latest signal for each requested signal + /// type. /// public virtual Task> ListAsync(AccountSignalListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -53,7 +57,9 @@ public virtual V2.StripeList List(AccountSignalListOptions option } /// - /// Lists AccountSignals for a given account or customer, filtered by signal type. + /// Lists the latest AccountSignals for a given account or customer, filtered by signal + /// type. Note that this endpoint returns only the latest signal for each requested signal + /// type. /// public virtual IEnumerable ListAutoPaging(AccountSignalListOptions options = null, RequestOptions requestOptions = null) { @@ -61,7 +67,9 @@ public virtual IEnumerable ListAutoPaging(AccountSignalListOption } /// - /// Lists AccountSignals for a given account or customer, filtered by signal type. + /// Lists the latest AccountSignals for a given account or customer, filtered by signal + /// type. Note that this endpoint returns only the latest signal for each requested signal + /// type. /// public virtual IAsyncEnumerable ListAutoPagingAsync(AccountSignalListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index ca6c6430e3..36caa0110e 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -134,12 +134,17 @@ public string Description /// financial_connections.account.created, /// financial_connections.account.deactivated, /// financial_connections.account.disconnected, + /// financial_connections.account.expected_deactivation_date_updated, /// financial_connections.account.reactivated, /// financial_connections.account.refreshed_balance, /// financial_connections.account.refreshed_inferred_balances, /// financial_connections.account.refreshed_ownership, /// financial_connections.account.refreshed_transactions, + /// financial_connections.account.supported_payment_method_types_updated, /// financial_connections.account.upcoming_account_number_expiry, + /// financial_connections.account.upcoming_deactivation, + /// financial_connections.authorization.expected_deactivation_date_updated, + /// financial_connections.authorization.upcoming_deactivation, /// financial_connections.session.updated, fx_quote.expired, /// identity.verification_session.canceled, /// identity.verification_session.created, diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 9ec7be9943..6ea6b2fefc 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -91,12 +91,17 @@ public string Description /// financial_connections.account.created, /// financial_connections.account.deactivated, /// financial_connections.account.disconnected, + /// financial_connections.account.expected_deactivation_date_updated, /// financial_connections.account.reactivated, /// financial_connections.account.refreshed_balance, /// financial_connections.account.refreshed_inferred_balances, /// financial_connections.account.refreshed_ownership, /// financial_connections.account.refreshed_transactions, + /// financial_connections.account.supported_payment_method_types_updated, /// financial_connections.account.upcoming_account_number_expiry, + /// financial_connections.account.upcoming_deactivation, + /// financial_connections.authorization.expected_deactivation_date_updated, + /// financial_connections.authorization.upcoming_deactivation, /// financial_connections.session.updated, fx_quote.expired, /// identity.verification_session.canceled, /// identity.verification_session.created,