From c8069147ddbe28b7283e61877efe3cc445eb1946 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 29 Jul 2026 20:30:32 +0000 Subject: [PATCH] Update generated code for v2349 and 44014016ec56efb57a8cf6d0ee0771c2e6b4eebe --- CODEGEN_VERSION | 2 +- OPENAPI_VERSION | 2 +- src/Stripe.net/Constants/ApiVersion.cs | 2 +- src/Stripe.net/Constants/EventTypes.cs | 27 +++++++ ...ntSessionComponentsDisputesListFeatures.cs | 8 ++ ...SessionComponentsPaymentDetailsFeatures.cs | 8 ++ ...essionComponentsPaymentDisputesFeatures.cs | 8 ++ ...ccountSessionComponentsPaymentsFeatures.cs | 8 ++ .../Entities/Accounts/AccountCompany.cs | 8 ++ .../Accounts/AccountFutureRequirements.cs | 4 +- .../Entities/Accounts/AccountRequirements.cs | 6 +- .../BalanceTransactions/BalanceTransaction.cs | 2 +- .../BankAccountFutureRequirements.cs | 4 +- .../BankAccounts/BankAccountRequirements.cs | 4 +- .../Configurations/Configuration.cs | 2 +- .../CapabilityFutureRequirements.cs | 4 +- .../Capabilities/CapabilityRequirements.cs | 4 +- ...aymentMethodDetailsAmazonPayFundingCard.cs | 6 +- ...rgePaymentMethodDetailsCardThreeDSecure.cs | 4 +- .../Charges/ChargePaymentMethodDetailsFpx.cs | 16 ++-- ...ymentMethodDetailsRevolutPayFundingCard.cs | 6 +- .../Sessions/SessionCustomerDetailsTaxId.cs | 31 ++++---- .../SessionPaymentMethodOptionsPayco.cs | 24 ++++++ .../SessionPaymentMethodOptionsSamsungPay.cs | 24 ++++++ ...onfirmationTokenPaymentMethodPreviewFpx.cs | 16 ++-- .../DisputePaymentMethodDetailsCard.cs | 10 +++ src/Stripe.net/Entities/Events/Event.cs | 5 ++ .../Authorizations/Authorization.cs | 56 ++++++++++++++ .../AuthorizationStatusDetails.cs | 19 +++++ .../AuthorizationStatusDetailsActive.cs | 29 +++++++ .../AuthorizationStatusDetailsInactive.cs | 19 +++++ .../FinancialConnections/Sessions/Session.cs | 32 ++++++++ .../Sessions/SessionFilters.cs | 9 +++ .../Sessions/SessionLimits.cs | 18 +++++ .../Sessions/SessionManualEntry.cs | 19 +++++ ...nstructionsBankTransferFinancialAddress.cs | 4 +- .../Entities/Invoices/InvoiceCustomerTaxId.cs | 31 ++++---- .../Invoices/InvoicePaymentSettings.cs | 19 ++--- .../AuthorizationRequestHistory.cs | 6 +- .../Entities/Issuing/Cards/CardShipping.cs | 10 ++- ...rchaseDetailsFleetReportedBreakdownFuel.cs | 2 +- ...aymentMethodDetailsAmazonPayFundingCard.cs | 6 +- ...ordPaymentMethodDetailsCardThreeDSecure.cs | 4 +- ...entAttemptRecordPaymentMethodDetailsFpx.cs | 16 ++-- .../Entities/PaymentIntents/PaymentIntent.cs | 31 ++++++++ ...ankTransferInstructionsFinancialAddress.cs | 4 +- .../PaymentIntentPaymentMethodOptionsPayco.cs | 24 ++++++ ...entIntentPaymentMethodOptionsSamsungPay.cs | 24 ++++++ .../PaymentMethods/PaymentMethodFpx.cs | 16 ++-- ...aymentMethodDetailsAmazonPayFundingCard.cs | 6 +- ...ordPaymentMethodDetailsCardThreeDSecure.cs | 4 +- .../PaymentRecordPaymentMethodDetailsFpx.cs | 16 ++-- .../Persons/PersonFutureRequirements.cs | 4 +- .../Entities/Persons/PersonRequirements.cs | 4 +- .../Entities/Quotes/QuoteInvoiceSettings.cs | 22 ++++++ .../Quotes/QuoteInvoiceSettingsCustomField.cs | 25 ++++++ src/Stripe.net/Entities/Refunds/Refund.cs | 77 +++++++++++++++++++ ...mptPaymentMethodDetailsCardThreeDSecure.cs | 4 +- .../Entities/SetupIntents/SetupIntent.cs | 29 +++++++ ...nScheduleDefaultSettingsInvoiceSettings.cs | 21 +++++ ...faultSettingsInvoiceSettingsCustomField.cs | 25 ++++++ .../SubscriptionSchedulePhase.cs | 8 ++ ...ubscriptionSchedulePhaseInvoiceSettings.cs | 21 +++++ ...SchedulePhaseInvoiceSettingsCustomField.cs | 25 ++++++ .../SubscriptionPaymentSettings.cs | 19 ++--- ...ationLineItemTaxBreakdownTaxRateDetails.cs | 6 +- .../CalculationCustomerDetailsTaxId.cs | 31 ++++---- ...nShippingCostTaxBreakdownTaxRateDetails.cs | 6 +- .../CalculationTaxBreakdownTaxRateDetails.cs | 6 +- .../RegistrationCountryOptionsUs.cs | 12 ++- ...onCountryOptionsUsMassTransitParkingTax.cs | 20 +++++ .../RegistrationCountryOptionsUsParkingTax.cs | 20 +++++ .../TransactionCustomerDetailsTaxId.cs | 31 ++++---- ...nShippingCostTaxBreakdownTaxRateDetails.cs | 6 +- src/Stripe.net/Entities/TaxIds/TaxId.cs | 33 ++++---- src/Stripe.net/Entities/TaxRates/TaxRate.cs | 6 +- src/Stripe.net/Entities/Topups/Topup.cs | 52 +++++++++++++ .../Topups/TopupPaymentMethodOptions.cs | 19 +++++ .../TopupPaymentMethodOptionsUsBankAccount.cs | 18 +++++ .../MeterEventAdjustment.cs | 2 +- .../V2/Billing/MeterEvents/MeterEvent.cs | 4 +- .../AccountIdentityBusinessDetails.cs | 7 ++ ...dentityBusinessDetailsAdditionalAddress.cs | 69 +++++++++++++++++ .../Public/StripeTypeRegistry.cs | 4 + .../AccountPersonCreateOptions.cs | 12 +++ .../AccountPersons/AccountPersonService.cs | 4 +- .../AccountPersonUpdateOptions.cs | 12 +++ ...onComponentsDisputesListFeaturesOptions.cs | 8 ++ ...ComponentsPaymentDetailsFeaturesOptions.cs | 8 ++ ...omponentsPaymentDisputesFeaturesOptions.cs | 8 ++ ...essionComponentsPaymentsFeaturesOptions.cs | 8 ++ .../Accounts/AccountCompanyOptions.cs | 12 +++ .../Services/Accounts/AccountRejectOptions.cs | 9 +++ .../Services/Accounts/AccountService.cs | 56 ++++++++++---- .../Accounts/AccountSettingsOptions.cs | 7 ++ ...AccountSettingsSepaDebitPaymentsOptions.cs | 18 +++++ .../Accounts/AccountUnrejectOptions.cs | 12 +++ .../Alerts/AlertUsageThresholdOptions.cs | 2 +- .../ConfigurationCreateOptions.cs | 2 +- .../ConfigurationUpdateOptions.cs | 2 +- .../Sessions/SessionLineItemOptions.cs | 10 --- ...SessionPaymentMethodOptionsPaycoOptions.cs | 24 ++++++ ...onPaymentMethodOptionsSamsungPayOptions.cs | 24 ++++++ .../SessionSubscriptionDataOptions.cs | 3 +- .../CustomerTaxIdCreateOptions.cs | 32 ++++---- .../Customers/CustomerTaxIdDataOptions.cs | 32 ++++---- .../Services/Disputes/DisputeService.cs | 6 +- .../Sessions/SessionCreateOptions.cs | 14 ++++ .../Sessions/SessionFiltersOptions.cs | 9 +++ .../Sessions/SessionLimitsOptions.cs | 39 ++++++++++ .../Sessions/SessionManualEntryOptions.cs | 19 +++++ ...oiceLineItemTaxAmountTaxRateDataOptions.cs | 6 +- .../InvoiceCustomerDetailsTaxIdOptions.cs | 32 ++++---- .../InvoiceLineTaxAmountTaxRateDataOptions.cs | 6 +- .../Invoices/InvoicePaymentSettingsOptions.cs | 19 ++--- .../InvoiceScheduleDetailsPhaseOptions.cs | 9 ++- .../InvoiceSubscriptionDetailsOptions.cs | 22 +++++- .../Issuing/Cards/CardShippingOptions.cs | 10 +++ .../PaymentIntentConfirmOptions.cs | 37 ++++++++- .../PaymentIntentCreateOptions.cs | 31 ++++++++ ...aymentIntentPaymentMethodDataFpxOptions.cs | 7 +- ...tIntentPaymentMethodOptionsPaycoOptions.cs | 24 ++++++ ...ntPaymentMethodOptionsSamsungPayOptions.cs | 24 ++++++ .../PaymentIntentRadarOptionsOptions.cs | 31 +++++++- .../PaymentIntentUpdateOptions.cs | 31 ++++++++ .../PaymentLinkPaymentIntentDataOptions.cs | 14 +++- .../PaymentLinks/PaymentLinkUpdateOptions.cs | 26 +++++++ .../PaymentMethods/PaymentMethodFpxOptions.cs | 7 +- .../PaymentMethods/PaymentMethodService.cs | 10 ++- .../PaymentRecordListOptions.cs | 30 ++++++++ .../PaymentRecords/PaymentRecordService.cs | 34 ++++++++ .../PromotionCodeRestrictionsOptions.cs | 4 +- .../QuoteInvoiceSettingsCustomFieldOptions.cs | 25 ++++++ .../Quotes/QuoteInvoiceSettingsOptions.cs | 64 ++++++++++++++- .../SetupIntents/SetupIntentConfirmOptions.cs | 32 ++++++++ .../SetupIntents/SetupIntentCreateOptions.cs | 31 ++++++++ .../SetupIntentPaymentMethodDataFpxOptions.cs | 7 +- .../SetupIntents/SetupIntentUpdateOptions.cs | 41 ++++++++++ .../SubscriptionScheduleCreateOptions.cs | 7 +- ...ttingsInvoiceSettingsCustomFieldOptions.cs | 25 ++++++ ...leDefaultSettingsInvoiceSettingsOptions.cs | 42 ++++++++++ .../SubscriptionScheduleListOptions.cs | 4 +- ...ePhaseInvoiceSettingsCustomFieldOptions.cs | 25 ++++++ ...tionSchedulePhaseInvoiceSettingsOptions.cs | 53 ++++++++++++- .../SubscriptionSchedulePhaseOptions.cs | 8 +- .../SubscriptionPaymentSettingsOptions.cs | 19 ++--- .../SubscriptionUpdateOptions.cs | 2 +- .../Calculations/CalculationCreateOptions.cs | 8 +- .../CalculationCustomerDetailsTaxIdOptions.cs | 32 ++++---- ...ryOptionsUsMassTransitParkingTaxOptions.cs | 20 +++++ .../RegistrationCountryOptionsUsOptions.cs | 18 ++++- ...rationCountryOptionsUsParkingTaxOptions.cs | 20 +++++ .../Services/TaxIds/TaxIdCreateOptions.cs | 32 ++++---- .../Services/TaxRates/TaxRateCreateOptions.cs | 6 +- .../Services/TaxRates/TaxRateUpdateOptions.cs | 6 +- ...rmationTokenPaymentMethodDataFpxOptions.cs | 7 +- ...zationFleetReportedBreakdownFuelOptions.cs | 2 +- ...etailsFleetReportedBreakdownFuelOptions.cs | 2 +- ...etailsFleetReportedBreakdownFuelOptions.cs | 2 +- .../Tokens/TokenAccountCompanyOptions.cs | 12 +++ .../Services/Tokens/TokenPersonOptions.cs | 12 +++ .../MeterEventStreamCreateEventOptions.cs | 4 +- .../MeterEvents/MeterEventCreateOptions.cs | 4 +- ...BusinessDetailsAdditionalAddressOptions.cs | 69 +++++++++++++++++ ...kenCreateIdentityBusinessDetailsOptions.cs | 7 ++ ...BusinessDetailsAdditionalAddressOptions.cs | 69 +++++++++++++++++ ...untCreateIdentityBusinessDetailsOptions.cs | 7 ++ ...BusinessDetailsAdditionalAddressOptions.cs | 69 +++++++++++++++++ ...untUpdateIdentityBusinessDetailsOptions.cs | 7 ++ .../WebhookEndpointCreateOptions.cs | 9 ++- .../WebhookEndpointUpdateOptions.cs | 5 ++ 171 files changed, 2531 insertions(+), 394 deletions(-) create mode 100644 src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs create mode 100644 src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetails.cs create mode 100644 src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsActive.cs create mode 100644 src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsInactive.cs create mode 100644 src/Stripe.net/Entities/FinancialConnections/Sessions/SessionLimits.cs create mode 100644 src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs create mode 100644 src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsCustomField.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomField.cs create mode 100644 src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomField.cs create mode 100644 src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTax.cs create mode 100644 src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsParkingTax.cs create mode 100644 src/Stripe.net/Entities/Topups/TopupPaymentMethodOptions.cs create mode 100644 src/Stripe.net/Entities/Topups/TopupPaymentMethodOptionsUsBankAccount.cs create mode 100644 src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAdditionalAddress.cs create mode 100644 src/Stripe.net/Services/Accounts/AccountSettingsSepaDebitPaymentsOptions.cs create mode 100644 src/Stripe.net/Services/Accounts/AccountUnrejectOptions.cs create mode 100644 src/Stripe.net/Services/FinancialConnections/Sessions/SessionLimitsOptions.cs create mode 100644 src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs create mode 100644 src/Stripe.net/Services/PaymentRecords/PaymentRecordListOptions.cs create mode 100644 src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsCustomFieldOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomFieldOptions.cs create mode 100644 src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomFieldOptions.cs create mode 100644 src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTaxOptions.cs create mode 100644 src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsParkingTaxOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAdditionalAddressOptions.cs create mode 100644 src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAdditionalAddressOptions.cs diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 983636f7b6..ea710b3c84 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -6012b623b1c09ad54d466947da04511a042ee45a \ No newline at end of file +44014016ec56efb57a8cf6d0ee0771c2e6b4eebe \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 83c68c9d1d..5ea23263dd 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2324 \ No newline at end of file +v2349 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index 684699d47c..8392d593a7 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,7 +3,7 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2026-06-24.dahlia"; + public const string Current = "2026-07-29.dahlia"; public const string CurrentMajor = "dahlia"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index 23a722c6fc..71718f33a9 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -449,6 +449,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. @@ -473,11 +478,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 whenever a VerificationSession is canceled. /// 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/Accounts/AccountCompany.cs b/src/Stripe.net/Entities/Accounts/AccountCompany.cs index d147d99d8f..af7a4ed7d5 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCompany.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCompany.cs @@ -26,6 +26,10 @@ public class AccountCompany : StripeEntity [STJS.JsonPropertyName("address_kanji")] public AddressJapan AddressKanji { get; set; } + [JsonProperty("administrative_address")] + [STJS.JsonPropertyName("administrative_address")] + public Address AdministrativeAddress { get; set; } + /// /// Whether the company's directors have been provided. This Boolean will be true if /// you've manually indicated that all directors are provided via [STJS.JsonPropertyName("phone")] public string Phone { get; set; } + [JsonProperty("principal_place_of_business")] + [STJS.JsonPropertyName("principal_place_of_business")] + public Address PrincipalPlaceOfBusiness { get; set; } + [JsonProperty("registration_date")] [STJS.JsonPropertyName("registration_date")] public AccountCompanyRegistrationDate RegistrationDate { get; set; } diff --git a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs index 4e6c6bfbbe..4a8398d27f 100644 --- a/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountFutureRequirements.cs @@ -56,8 +56,8 @@ public class AccountFutureRequirements : StripeEntity public string DisabledReason { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/Accounts/AccountRequirements.cs b/src/Stripe.net/Entities/Accounts/AccountRequirements.cs index 9b7a589b15..a133a8565e 100644 --- a/src/Stripe.net/Entities/Accounts/AccountRequirements.cs +++ b/src/Stripe.net/Entities/Accounts/AccountRequirements.cs @@ -35,7 +35,7 @@ public class AccountRequirements : StripeEntity /// /// Fields that need to be resolved to keep the account enabled. If not resolved by /// current_deadline, these fields will appear in past_due as well, and the - /// account is disabled. + /// account will be disabled. /// [JsonProperty("currently_due")] [STJS.JsonPropertyName("currently_due")] @@ -57,8 +57,8 @@ public class AccountRequirements : StripeEntity public string DisabledReason { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs b/src/Stripe.net/Entities/BalanceTransactions/BalanceTransaction.cs index 35aad9395a..a527b1f56f 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/BankAccounts/BankAccountFutureRequirements.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs index 25a726bbdd..ec462fda45 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccountFutureRequirements.cs @@ -19,8 +19,8 @@ public class BankAccountFutureRequirements : StripeEntity CurrentlyDue { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs index ac4958945c..318e03c075 100644 --- a/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs +++ b/src/Stripe.net/Entities/BankAccounts/BankAccountRequirements.cs @@ -19,8 +19,8 @@ public class BankAccountRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] 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/Capabilities/CapabilityFutureRequirements.cs b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs index 5dd1bfa58c..afa93d1551 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityFutureRequirements.cs @@ -56,8 +56,8 @@ public class CapabilityFutureRequirements : StripeEntity - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs b/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs index 58782be185..c97b955ff0 100644 --- a/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs +++ b/src/Stripe.net/Entities/Capabilities/CapabilityRequirements.cs @@ -57,8 +57,8 @@ public class CapabilityRequirements : StripeEntity public string DisabledReason { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs index e0edb3d732..a465a3bff5 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsAmazonPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class ChargePaymentMethodDetailsAmazonPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, cartes_bancaires, diners, discover, - /// eftpos_au, jcb, link, mastercard, unionpay, - /// visa or unknown. + /// Card brand. Can be American Express, Cartes Bancaires, Diners Club, + /// Discover, Eftpos Australia, Girocard, JCB, + /// MasterCard, UnionPay, Visa, or Unknown. /// [JsonProperty("brand")] [STJS.JsonPropertyName("brand")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardThreeDSecure.cs index 2352c37848..1b2c99f638 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardThreeDSecure.cs @@ -43,8 +43,8 @@ public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity /// Indicates the outcome of 3D Secure authentication. - /// One of: attempt_acknowledged, authenticated, exempted, - /// failed, not_supported, or processing_error. + /// One of: attempt_acknowledged, authenticated, data_share_only, + /// exempted, failed, not_supported, or processing_error. /// [JsonProperty("result")] [STJS.JsonPropertyName("result")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsFpx.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsFpx.cs index 7fa0ca062c..abfcd754df 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsFpx.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsFpx.cs @@ -19,15 +19,17 @@ public class ChargePaymentMethodDetailsFpx : StripeEntity /// The customer's bank. Can be one of affin_bank, agrobank, /// alliance_bank, ambank, bank_islam, bank_muamalat, - /// bank_rakyat, bsn, cimb, hong_leong_bank, hsbc, - /// kfh, maybank2u, ocbc, public_bank, rhb, - /// standard_chartered, uob, deutsche_bank, maybank2e, - /// pb_enterprise, or bank_of_china. + /// bnp_paribas, bank_rakyat, bsn, cimb, citibank, + /// hong_leong_bank, hsbc, kfh, maybank2u, ocbc, + /// public_bank, rhb, standard_chartered, uob, + /// deutsche_bank, maybank2e, mbsb_bank, pb_enterprise, or + /// bank_of_china. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs index b219d363d8..f558ad5cd8 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsRevolutPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class ChargePaymentMethodDetailsRevolutPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, cartes_bancaires, diners, discover, - /// eftpos_au, jcb, link, mastercard, unionpay, - /// visa or unknown. + /// Card brand. Can be American Express, Cartes Bancaires, Diners Club, + /// Discover, Eftpos Australia, Girocard, JCB, + /// MasterCard, UnionPay, Visa, or Unknown. /// [JsonProperty("brand")] [STJS.JsonPropertyName("brand")] 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/Checkout/Sessions/SessionPaymentMethodOptionsPayco.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayco.cs index 0e1b764320..1e501ee4ae 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayco.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsPayco.cs @@ -14,5 +14,29 @@ public class SessionPaymentMethodOptionsPayco : StripeEntity + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPay.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPay.cs index 338b748f64..80ae062998 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPay.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPay.cs @@ -14,5 +14,29 @@ public class SessionPaymentMethodOptionsSamsungPay : StripeEntity + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewFpx.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewFpx.cs index f2b7083d5f..a048fdb65f 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewFpx.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewFpx.cs @@ -19,15 +19,17 @@ public class ConfirmationTokenPaymentMethodPreviewFpx : StripeEntity /// The customer's bank, if provided. Can be one of affin_bank, agrobank, /// alliance_bank, ambank, bank_islam, bank_muamalat, - /// bank_rakyat, bsn, cimb, hong_leong_bank, hsbc, - /// kfh, maybank2u, ocbc, public_bank, rhb, - /// standard_chartered, uob, deutsche_bank, maybank2e, - /// pb_enterprise, or bank_of_china. + /// bnp_paribas, bank_rakyat, bsn, cimb, citibank, + /// hong_leong_bank, hsbc, kfh, maybank2u, ocbc, + /// public_bank, rhb, standard_chartered, uob, + /// deutsche_bank, maybank2e, mbsb_bank, pb_enterprise, or + /// bank_of_china. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs index ec15b63f89..07f13bff4a 100644 --- a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs @@ -27,6 +27,16 @@ public class DisputePaymentMethodDetailsCard : StripeEntity + /// Identifies which network this charge was processed on. Can be amex, + /// cartes_bancaires, diners, discover, eftpos_au, + /// interac, jcb, link, mastercard, unionpay, + /// visa, or unknown. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + /// /// The card network's specific dispute reason code, which maps to one of Stripe's primary /// dispute categories to simplify response guidance. The , 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_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, /// identity.verification_session.canceled, /// identity.verification_session.created, /// identity.verification_session.processing, diff --git a/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs b/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs new file mode 100644 index 0000000000..ea32e0e020 --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Authorizations/Authorization.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// An Authorization represents the set of credentials used to connect a group of Financial + /// Connections Accounts. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class Authorization : StripeEntity, IHasId, 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; } + + /// + /// The name of the institution that this authorization belongs to. + /// + [JsonProperty("institution_name")] + [STJS.JsonPropertyName("institution_name")] + public string InstitutionName { 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 status of the connection to the Authorization. + /// One of: active, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public AuthorizationStatusDetails StatusDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetails.cs b/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetails.cs new file mode 100644 index 0000000000..fad514c35e --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetails.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationStatusDetails : StripeEntity + { + [JsonProperty("active")] + [STJS.JsonPropertyName("active")] + public AuthorizationStatusDetailsActive Active { get; set; } + + [JsonProperty("inactive")] + [STJS.JsonPropertyName("inactive")] + public AuthorizationStatusDetailsInactive Inactive { get; set; } + } +} diff --git a/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsActive.cs b/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsActive.cs new file mode 100644 index 0000000000..ce929c9009 --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsActive.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationStatusDetailsActive : StripeEntity + { + /// + /// The action (if any) to proactively relink the Authorization. + /// One of: none, or relink_required. + /// + [JsonProperty("action")] + [STJS.JsonPropertyName("action")] + public string Action { get; set; } + + /// + /// When the Authorization is expected to become inactive, if applicable. + /// + [JsonProperty("expected_deactivation_date")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("expected_deactivation_date")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime ExpectedDeactivationDate { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsInactive.cs b/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsInactive.cs new file mode 100644 index 0000000000..dfb11e90ed --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Authorizations/AuthorizationStatusDetailsInactive.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AuthorizationStatusDetailsInactive : StripeEntity + { + /// + /// The action (if any) to relink the inactive Authorization. + /// One of: none, or relink_required. + /// + [JsonProperty("action")] + [STJS.JsonPropertyName("action")] + public string Action { get; set; } + } +} diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs index 0e8ab127f2..2ec7ccee61 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/Session.cs @@ -41,6 +41,30 @@ public class Session : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("accounts")] public StripeList Accounts { get; set; } + /// + /// Tokenization is the process Stripe uses to collect sensitive card or bank account + /// details, or personally identifiable information (PII), directly from your customers in a + /// secure manner. A token representing this information is returned to your server to use. + /// Use our recommended payments integrations + /// to perform this process on the client-side. This guarantees that no sensitive card data + /// touches your server, and allows your integration to operate in a PCI-compliant way. + /// + /// If you can't use client-side tokenization, you can also create tokens using the API with + /// either your publishable or secret API key. If your integration uses this method, you're + /// responsible for any PCI compliance that it might require, and you must keep your secret + /// API key safe. Unlike with client-side tokenization, your customer's information isn't + /// sent directly to Stripe, so we can't determine how it's handled or stored. + /// + /// You can't store or use tokens more than once. To store card or bank account information + /// for later use, create Customer + /// objects or External accounts. Radar, our integrated solution for automatic + /// fraud protection, performs best with integrations that use client-side tokenization. + /// + [JsonProperty("bank_account_token")] + [STJS.JsonPropertyName("bank_account_token")] + public Token BankAccountToken { get; set; } + /// /// A value that will be passed to the client to launch the authentication flow. /// @@ -52,6 +76,10 @@ public class Session : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("filters")] public SessionFilters Filters { get; set; } + [JsonProperty("limits")] + [STJS.JsonPropertyName("limits")] + public SessionLimits Limits { get; set; } + /// /// If the object exists in live mode, the value is true. If the object exists in /// test mode, the value is false. @@ -60,6 +88,10 @@ public class Session : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + [JsonProperty("manual_entry")] + [STJS.JsonPropertyName("manual_entry")] + public SessionManualEntry ManualEntry { get; set; } + /// /// Permissions requested for accounts collected during this session. /// One of: balances, ownership, payment_method, or diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionFilters.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionFilters.cs index 66dba0267b..a07023e6d2 100644 --- a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionFilters.cs +++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionFilters.cs @@ -26,5 +26,14 @@ public class SessionFilters : StripeEntity [JsonProperty("countries")] [STJS.JsonPropertyName("countries")] public List Countries { get; set; } + + /// + /// Whether the Session should require that linked accounts support payments and retrieve + /// account numbers before completion. + /// One of: all, at_least_one, or none. + /// + [JsonProperty("require_payment_method_support")] + [STJS.JsonPropertyName("require_payment_method_support")] + public string RequirePaymentMethodSupport { get; set; } } } diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionLimits.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionLimits.cs new file mode 100644 index 0000000000..765894fd6c --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionLimits.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionLimits : StripeEntity + { + /// + /// The number of accounts that can be linked in this Session. + /// + [JsonProperty("accounts")] + [STJS.JsonPropertyName("accounts")] + public long Accounts { get; set; } + } +} diff --git a/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs new file mode 100644 index 0000000000..1e86d88327 --- /dev/null +++ b/src/Stripe.net/Entities/FinancialConnections/Sessions/SessionManualEntry.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionManualEntry : StripeEntity + { + /// + /// Controls how manual entry of bank account details is presented to the user. + /// One of: automatic, or disabled. + /// + [JsonProperty("mode")] + [STJS.JsonPropertyName("mode")] + public string Mode { 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 4f347b7ec6..e0c2eab4b7 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, - /// boleto, card, cashapp, crypto, custom, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, jp_credit_transfer, kakao_pay, klarna, - /// konbini, kr_card, link, 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, - /// swish, twint, upi, us_bank_account, or wechat_pay. + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, boleto, card, cashapp, crypto, + /// custom, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// 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, swish, + /// twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs index a17b338e24..27d191dab9 100644 --- a/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs +++ b/src/Stripe.net/Entities/Issuing/Authorizations/AuthorizationRequestHistory.cs @@ -100,9 +100,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/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/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs index 27618189c5..0ad5ce24d2 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentAttemptRecordPaymentMethodDetailsAmazonPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, cartes_bancaires, diners, discover, - /// eftpos_au, jcb, link, mastercard, unionpay, - /// visa or unknown. + /// Card brand. Can be American Express, Cartes Bancaires, Diners Club, + /// Discover, Eftpos Australia, Girocard, JCB, + /// MasterCard, UnionPay, Visa, or Unknown. /// [JsonProperty("brand")] [STJS.JsonPropertyName("brand")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs index b0f7915443..e67ba685b3 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure.cs @@ -51,8 +51,8 @@ public class PaymentAttemptRecordPaymentMethodDetailsCardThreeDSecure : StripeEn /// /// Indicates the outcome of 3D Secure authentication. - /// One of: attempt_acknowledged, authenticated, exempted, - /// failed, not_supported, or processing_error. + /// One of: attempt_acknowledged, authenticated, data_share_only, + /// exempted, failed, not_supported, or processing_error. /// [JsonProperty("result")] [STJS.JsonPropertyName("result")] diff --git a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsFpx.cs b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsFpx.cs index f58abe5a0d..11b72f9352 100644 --- a/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsFpx.cs +++ b/src/Stripe.net/Entities/PaymentAttemptRecords/PaymentAttemptRecordPaymentMethodDetailsFpx.cs @@ -19,15 +19,17 @@ public class PaymentAttemptRecordPaymentMethodDetailsFpx : StripeEntity /// The customer's bank. Can be one of affin_bank, agrobank, /// alliance_bank, ambank, bank_islam, bank_muamalat, - /// bank_rakyat, bsn, cimb, hong_leong_bank, hsbc, - /// kfh, maybank2u, ocbc, public_bank, rhb, - /// standard_chartered, uob, deutsche_bank, maybank2e, - /// pb_enterprise, or bank_of_china. + /// bnp_paribas, bank_rakyat, bsn, cimb, citibank, + /// hong_leong_bank, hsbc, kfh, maybank2u, ocbc, + /// public_bank, rhb, standard_chartered, uob, + /// deutsche_bank, maybank2e, mbsb_bank, pb_enterprise, or + /// bank_of_china. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs index 4aeae5bd1b..6c371a390f 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs @@ -38,6 +38,37 @@ public class PaymentIntent : StripeEntity, IHasId, IHasMetadata, [STJS.JsonPropertyName("object")] public string Object { get; set; } + /// + /// The list of payment method types allowed for use with this payment. Stripe automatically + /// returns compatible payment methods from this list in the payment_method_types + /// field of the response, based on the other PaymentIntent parameters, such as + /// currency, amount, and customer. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + /// /// Amount intended to be collected by this PaymentIntent. A positive integer representing /// how much to charge in the /// 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/PaymentIntents/PaymentIntentPaymentMethodOptionsPayco.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayco.cs index 9b601e085f..fa8ed71feb 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayco.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsPayco.cs @@ -14,5 +14,29 @@ public class PaymentIntentPaymentMethodOptionsPayco : StripeEntity + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPay.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPay.cs index 619b499997..3746f18f8c 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPay.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPay.cs @@ -14,5 +14,29 @@ public class PaymentIntentPaymentMethodOptionsSamsungPay : StripeEntity + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodFpx.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodFpx.cs index 1674b9cc70..6fd7522017 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodFpx.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodFpx.cs @@ -19,15 +19,17 @@ public class PaymentMethodFpx : StripeEntity /// /// The customer's bank, if provided. Can be one of affin_bank, agrobank, /// alliance_bank, ambank, bank_islam, bank_muamalat, - /// bank_rakyat, bsn, cimb, hong_leong_bank, hsbc, - /// kfh, maybank2u, ocbc, public_bank, rhb, - /// standard_chartered, uob, deutsche_bank, maybank2e, - /// pb_enterprise, or bank_of_china. + /// bnp_paribas, bank_rakyat, bsn, cimb, citibank, + /// hong_leong_bank, hsbc, kfh, maybank2u, ocbc, + /// public_bank, rhb, standard_chartered, uob, + /// deutsche_bank, maybank2e, mbsb_bank, pb_enterprise, or + /// bank_of_china. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs index ba58087ccb..2f93bab8bd 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsAmazonPayFundingCard.cs @@ -9,9 +9,9 @@ namespace Stripe public class PaymentRecordPaymentMethodDetailsAmazonPayFundingCard : StripeEntity { /// - /// Card brand. Can be amex, cartes_bancaires, diners, discover, - /// eftpos_au, jcb, link, mastercard, unionpay, - /// visa or unknown. + /// Card brand. Can be American Express, Cartes Bancaires, Diners Club, + /// Discover, Eftpos Australia, Girocard, JCB, + /// MasterCard, UnionPay, Visa, or Unknown. /// [JsonProperty("brand")] [STJS.JsonPropertyName("brand")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs index ff6d7c611b..28a9aae2e3 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsCardThreeDSecure.cs @@ -51,8 +51,8 @@ public class PaymentRecordPaymentMethodDetailsCardThreeDSecure : StripeEntity /// Indicates the outcome of 3D Secure authentication. - /// One of: attempt_acknowledged, authenticated, exempted, - /// failed, not_supported, or processing_error. + /// One of: attempt_acknowledged, authenticated, data_share_only, + /// exempted, failed, not_supported, or processing_error. /// [JsonProperty("result")] [STJS.JsonPropertyName("result")] diff --git a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsFpx.cs b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsFpx.cs index a3f7c17e45..226b7d1c84 100644 --- a/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsFpx.cs +++ b/src/Stripe.net/Entities/PaymentRecords/PaymentRecordPaymentMethodDetailsFpx.cs @@ -19,15 +19,17 @@ public class PaymentRecordPaymentMethodDetailsFpx : StripeEntity /// The customer's bank. Can be one of affin_bank, agrobank, /// alliance_bank, ambank, bank_islam, bank_muamalat, - /// bank_rakyat, bsn, cimb, hong_leong_bank, hsbc, - /// kfh, maybank2u, ocbc, public_bank, rhb, - /// standard_chartered, uob, deutsche_bank, maybank2e, - /// pb_enterprise, or bank_of_china. + /// bnp_paribas, bank_rakyat, bsn, cimb, citibank, + /// hong_leong_bank, hsbc, kfh, maybank2u, ocbc, + /// public_bank, rhb, standard_chartered, uob, + /// deutsche_bank, maybank2e, mbsb_bank, pb_enterprise, or + /// bank_of_china. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs b/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs index fcd4c36ffd..1de583e87a 100644 --- a/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs +++ b/src/Stripe.net/Entities/Persons/PersonFutureRequirements.cs @@ -32,8 +32,8 @@ public class PersonFutureRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/Persons/PersonRequirements.cs b/src/Stripe.net/Entities/Persons/PersonRequirements.cs index 2956e9eb00..63e9cb7edb 100644 --- a/src/Stripe.net/Entities/Persons/PersonRequirements.cs +++ b/src/Stripe.net/Entities/Persons/PersonRequirements.cs @@ -30,8 +30,8 @@ public class PersonRequirements : StripeEntity public List CurrentlyDue { get; set; } /// - /// Details about validation and verification failures for due requirements that must - /// be resolved. + /// Fields that are currently_due and need to be collected again because validation + /// or verification failed. /// [JsonProperty("errors")] [STJS.JsonPropertyName("errors")] diff --git a/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettings.cs b/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettings.cs index fee6321767..5be91c5e04 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettings.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettings.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -8,6 +9,13 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class QuoteInvoiceSettings : StripeEntity { + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields")] + [STJS.JsonPropertyName("custom_fields")] + public List CustomFields { get; set; } + /// /// Number of days within which a customer must pay invoices generated by this quote. This /// value will be null for quotes where @@ -17,6 +25,20 @@ public class QuoteInvoiceSettings : StripeEntity [STJS.JsonPropertyName("days_until_due")] public long? DaysUntilDue { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer")] + [STJS.JsonPropertyName("footer")] + public string Footer { get; set; } + [JsonProperty("issuer")] [STJS.JsonPropertyName("issuer")] public QuoteInvoiceSettingsIssuer Issuer { get; set; } diff --git a/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsCustomField.cs b/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsCustomField.cs new file mode 100644 index 0000000000..c23ecd3c37 --- /dev/null +++ b/src/Stripe.net/Entities/Quotes/QuoteInvoiceSettingsCustomField.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(STJStripeEntityConverter))] + public class QuoteInvoiceSettingsCustomField : StripeEntity + { + /// + /// The name of the custom field. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Refunds/Refund.cs b/src/Stripe.net/Entities/Refunds/Refund.cs index ea9266cf4e..494a98437c 100644 --- a/src/Stripe.net/Entities/Refunds/Refund.cs +++ b/src/Stripe.net/Entities/Refunds/Refund.cs @@ -125,6 +125,48 @@ public Charge Charge [STJS.JsonPropertyName("currency")] public string Currency { get; set; } + #region Expandable Customer + + /// + /// (ID of the Customer) + /// ID of the customer of this refund. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string CustomerId + { + get => this.InternalCustomer?.Id; + set => this.InternalCustomer = SetExpandableFieldId(value, this.InternalCustomer); + } + + /// + /// (Expanded) + /// ID of the customer of this refund. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public Customer Customer + { + get => this.InternalCustomer?.ExpandedObject; + set => this.InternalCustomer = SetExpandableFieldObject(value, this.InternalCustomer); + } + + [JsonProperty("customer")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("customer")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalCustomer { get; set; } + #endregion + + /// + /// ID of the account of this refund. + /// + [JsonProperty("customer_account")] + [STJS.JsonPropertyName("customer_account")] + public string CustomerAccount { get; set; } + /// /// An arbitrary string attached to the object. You can use this for displaying to users /// (available on non-card refunds only). @@ -240,6 +282,41 @@ public PaymentIntent PaymentIntent internal ExpandableField InternalPaymentIntent { get; set; } #endregion + #region Expandable PaymentMethod + + /// + /// (ID of the PaymentMethod) + /// ID of the payment method associated with this refund. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string PaymentMethodId + { + get => this.InternalPaymentMethod?.Id; + set => this.InternalPaymentMethod = SetExpandableFieldId(value, this.InternalPaymentMethod); + } + + /// + /// (Expanded) + /// ID of the payment method associated with this refund. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public PaymentMethod PaymentMethod + { + get => this.InternalPaymentMethod?.ExpandedObject; + set => this.InternalPaymentMethod = SetExpandableFieldObject(value, this.InternalPaymentMethod); + } + + [JsonProperty("payment_method")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("payment_method")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalPaymentMethod { get; set; } + #endregion + /// /// Provides the reason for why the refund is pending. Possible values are: /// processing, insufficient_funds, or charge_pending. diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCardThreeDSecure.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCardThreeDSecure.cs index 6292f53704..15028063ec 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCardThreeDSecure.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCardThreeDSecure.cs @@ -27,8 +27,8 @@ public class SetupAttemptPaymentMethodDetailsCardThreeDSecure : StripeEntity /// Indicates the outcome of 3D Secure authentication. - /// One of: attempt_acknowledged, authenticated, exempted, - /// failed, not_supported, or processing_error. + /// One of: attempt_acknowledged, authenticated, data_share_only, + /// exempted, failed, not_supported, or processing_error. /// [JsonProperty("result")] [STJS.JsonPropertyName("result")] diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index 2ad7a2963f..69b1331570 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -58,6 +58,35 @@ public class SetupIntent : StripeEntity, IHasId, IHasMetadata, IHas [STJS.JsonPropertyName("object")] public string Object { get; set; } + /// + /// The list of payment method types to allow for this SetupIntent. Stripe will only use + /// methods in this list when determining the payment methods to offer. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + #region Expandable Application /// diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettings.cs index 45c56c9490..015e6c65c9 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettings.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettings.cs @@ -45,6 +45,13 @@ public List AccountTaxIds internal List> InternalAccountTaxIds { get; set; } #endregion + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields")] + [STJS.JsonPropertyName("custom_fields")] + public List CustomFields { get; set; } + /// /// Number of days within which a customer must pay invoices generated by this subscription /// schedule. This value will be null for subscription schedules where @@ -54,6 +61,20 @@ public List AccountTaxIds [STJS.JsonPropertyName("days_until_due")] public long? DaysUntilDue { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer")] + [STJS.JsonPropertyName("footer")] + public string Footer { get; set; } + [JsonProperty("issuer")] [STJS.JsonPropertyName("issuer")] public SubscriptionScheduleDefaultSettingsInvoiceSettingsIssuer Issuer { get; set; } diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomField.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomField.cs new file mode 100644 index 0000000000..e7cc76c1d1 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomField.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(STJStripeEntityConverter))] + public class SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomField : StripeEntity + { + /// + /// The name of the custom field. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs index 85f664aae3..4b5ef54fc7 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs @@ -235,6 +235,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; } + /// /// When the trial ends within the phase. /// diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettings.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettings.cs index 24f1cb1a9a..9bc287944a 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettings.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettings.cs @@ -45,6 +45,13 @@ public List AccountTaxIds internal List> InternalAccountTaxIds { get; set; } #endregion + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields")] + [STJS.JsonPropertyName("custom_fields")] + public List CustomFields { get; set; } + /// /// Number of days within which a customer must pay invoices generated by this subscription /// schedule. This value will be null for subscription schedules where @@ -54,6 +61,20 @@ public List AccountTaxIds [STJS.JsonPropertyName("days_until_due")] public long? DaysUntilDue { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer")] + [STJS.JsonPropertyName("footer")] + public string Footer { get; set; } + /// /// The connected account that issues the invoice. The invoice is presented with the /// branding and support information of the specified account. diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomField.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomField.cs new file mode 100644 index 0000000000..5f14a47cc2 --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomField.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(STJStripeEntityConverter))] + public class SubscriptionSchedulePhaseInvoiceSettingsCustomField : StripeEntity + { + /// + /// The name of the custom field. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index be06863a56..0f0f300d49 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, - /// boleto, card, cashapp, crypto, custom, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, jp_credit_transfer, kakao_pay, klarna, - /// konbini, kr_card, link, 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, - /// swish, twint, upi, us_bank_account, or wechat_pay. + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, boleto, card, cashapp, crypto, + /// custom, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// 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, swish, + /// twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs index 2464a89daa..d4b21fdbd7 100644 --- a/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/CalculationLineItems/CalculationLineItemTaxBreakdownTaxRateDetails.cs @@ -26,9 +26,9 @@ public class CalculationLineItemTaxBreakdownTaxRateDetails : StripeEntity /// The tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] 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/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs index 652c9d6da1..f54f31a793 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationShippingCostTaxBreakdownTaxRateDetails.cs @@ -26,9 +26,9 @@ public class CalculationShippingCostTaxBreakdownTaxRateDetails : StripeEntity /// The tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs index 82e5311170..e526cb0a99 100644 --- a/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Calculations/CalculationTaxBreakdownTaxRateDetails.cs @@ -54,9 +54,9 @@ public class CalculationTaxBreakdownTaxRateDetails : StripeEntity /// The tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs index 51108e3b5a..e1ce397103 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUs.cs @@ -16,6 +16,14 @@ public class RegistrationCountryOptionsUs : StripeEntity /// Two-letter US state code (ISO /// 3166-2). @@ -31,8 +39,8 @@ public class RegistrationCountryOptionsUs : StripeEntity /// Type of registration in the US. /// One of: local_amusement_tax, local_lease_tax, - /// state_communications_tax, state_retail_delivery_fee, or - /// state_sales_tax. + /// mass_transit_parking_tax, parking_tax, state_communications_tax, + /// state_retail_delivery_fee, or state_sales_tax. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTax.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTax.cs new file mode 100644 index 0000000000..49e42306dd --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTax.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class RegistrationCountryOptionsUsMassTransitParkingTax : StripeEntity + { + /// + /// A jurisdiction + /// code representing the local jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsParkingTax.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsParkingTax.cs new file mode 100644 index 0000000000..fb5d29c7ff --- /dev/null +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptionsUsParkingTax.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class RegistrationCountryOptionsUsParkingTax : StripeEntity + { + /// + /// A jurisdiction + /// code representing the local jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} 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/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs index 039d17e045..0abe129e21 100644 --- a/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs +++ b/src/Stripe.net/Entities/Tax/Transactions/TransactionShippingCostTaxBreakdownTaxRateDetails.cs @@ -26,9 +26,9 @@ public class TransactionShippingCostTaxBreakdownTaxRateDetails : StripeEntity /// The tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Entities/TaxIds/TaxId.cs b/src/Stripe.net/Entities/TaxIds/TaxId.cs index ed6200edfb..1bb39330d2 100644 --- a/src/Stripe.net/Entities/TaxIds/TaxId.cs +++ b/src/Stripe.net/Entities/TaxIds/TaxId.cs @@ -124,9 +124,9 @@ public Customer Customer /// co_nit, 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, + /// gn_nif, hk_br, 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, @@ -148,19 +148,20 @@ public Customer Customer /// 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/TaxRates/TaxRate.cs b/src/Stripe.net/Entities/TaxRates/TaxRate.cs index 07504570a2..89016d4abc 100644 --- a/src/Stripe.net/Entities/TaxRates/TaxRate.cs +++ b/src/Stripe.net/Entities/TaxRates/TaxRate.cs @@ -166,9 +166,9 @@ public class TaxRate : StripeEntity, IHasId, IHasMetadata, IHasObject /// /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Entities/Topups/Topup.cs b/src/Stripe.net/Entities/Topups/Topup.cs index 61177a4643..7b087f8cbf 100644 --- a/src/Stripe.net/Entities/Topups/Topup.cs +++ b/src/Stripe.net/Entities/Topups/Topup.cs @@ -126,6 +126,14 @@ public BalanceTransaction BalanceTransaction [STJS.JsonPropertyName("failure_message")] public string FailureMessage { get; set; } + /// + /// Indicates whether the top-up was initiated by Stripe or by the user. + /// One of: stripe, or user. + /// + [JsonProperty("initiated_by")] + [STJS.JsonPropertyName("initiated_by")] + public string InitiatedBy { get; set; } + /// /// If the object exists in live mode, the value is true. If the object exists in /// test mode, the value is false. @@ -143,6 +151,50 @@ public BalanceTransaction BalanceTransaction [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + #region Expandable PaymentMethod + + /// + /// (ID of the PaymentMethod) + /// The ID of a PaymentMethod representing the payment method used for the top-up. A + /// PaymentMethod of type us_bank_account can be used. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public string PaymentMethodId + { + get => this.InternalPaymentMethod?.Id; + set => this.InternalPaymentMethod = SetExpandableFieldId(value, this.InternalPaymentMethod); + } + + /// + /// (Expanded) + /// The ID of a PaymentMethod representing the payment method used for the top-up. A + /// PaymentMethod of type us_bank_account can be used. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] + [STJS.JsonIgnore] + public PaymentMethod PaymentMethod + { + get => this.InternalPaymentMethod?.ExpandedObject; + set => this.InternalPaymentMethod = SetExpandableFieldObject(value, this.InternalPaymentMethod); + } + + [JsonProperty("payment_method")] + [JsonConverter(typeof(ExpandableFieldConverter))] + [STJS.JsonPropertyName("payment_method")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] + internal ExpandableField InternalPaymentMethod { get; set; } + #endregion + + /// + /// Payment-method-specific configuration for this top-up. + /// + [JsonProperty("payment_method_options")] + [STJS.JsonPropertyName("payment_method_options")] + public TopupPaymentMethodOptions PaymentMethodOptions { get; set; } + /// /// The source field is deprecated. It might not always be present in the API response. /// diff --git a/src/Stripe.net/Entities/Topups/TopupPaymentMethodOptions.cs b/src/Stripe.net/Entities/Topups/TopupPaymentMethodOptions.cs new file mode 100644 index 0000000000..83852602a0 --- /dev/null +++ b/src/Stripe.net/Entities/Topups/TopupPaymentMethodOptions.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 TopupPaymentMethodOptions : StripeEntity + { + /// + /// If this top-up is to be used with a us_bank_account payment method, this sub-hash + /// contains configuration for it. + /// + [JsonProperty("us_bank_account")] + [STJS.JsonPropertyName("us_bank_account")] + public TopupPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Topups/TopupPaymentMethodOptionsUsBankAccount.cs b/src/Stripe.net/Entities/Topups/TopupPaymentMethodOptionsUsBankAccount.cs new file mode 100644 index 0000000000..9ba845c475 --- /dev/null +++ b/src/Stripe.net/Entities/Topups/TopupPaymentMethodOptionsUsBankAccount.cs @@ -0,0 +1,18 @@ +// 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 TopupPaymentMethodOptionsUsBankAccount : StripeEntity + { + /// + /// The US bank transfer network used for this top-up. The default is ach. + /// + [JsonProperty("network")] + [STJS.JsonPropertyName("network")] + public string Network { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs index 5d6dfe316d..0d2ed61d25 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEventAdjustments/MeterEventAdjustment.cs @@ -59,7 +59,7 @@ public class MeterEventAdjustment : StripeEntity, IHasId, public bool Livemode { get; set; } /// - /// Open Enum. The meter event adjustment’s status. + /// Open Enum. The meter event adjustment's status. /// One of: complete, or pending. /// [JsonProperty("status")] diff --git a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs index 4d6c7ea5c3..d0482e161c 100644 --- a/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs +++ b/src/Stripe.net/Entities/V2/Billing/MeterEvents/MeterEvent.cs @@ -39,7 +39,7 @@ public class MeterEvent : StripeEntity, IHasObject /// /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We’ll enforce uniqueness within a rolling + /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling /// 24 hour period. /// [JsonProperty("identifier")] @@ -55,7 +55,7 @@ public class MeterEvent : StripeEntity, IHasObject public bool Livemode { get; set; } /// - /// The payload of the event. This must contain the fields corresponding to a meter’s + /// The payload of the event. This must contain the fields corresponding to a meter's /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// { + /// + /// Additional addresses associated with the business. + /// + [JsonProperty("additional_addresses")] + [STJS.JsonPropertyName("additional_addresses")] + public List AdditionalAddresses { get; set; } + /// /// The company’s primary address. /// diff --git a/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAdditionalAddress.cs b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAdditionalAddress.cs new file mode 100644 index 0000000000..c7227b8f75 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAdditionalAddress.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountIdentityBusinessDetailsAdditionalAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// One of: administrative, or principal_place_of_business. + /// + [JsonProperty("purpose")] + [STJS.JsonPropertyName("purpose")] + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] + [STJS.JsonPropertyName("town")] + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 8bd309da57..22f61834fc 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -80,6 +80,10 @@ public static class StripeTypeRegistry "financial_connections.account_ownership", typeof( FinancialConnections.AccountOwnership) }, + { + "financial_connections.authorization", typeof( + FinancialConnections.Authorization) + }, { "financial_connections.session", typeof(FinancialConnections.Session) }, { "financial_connections.transaction", typeof( diff --git a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs index 6b494e4d2d..0fc721a97a 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonCreateOptions.cs @@ -122,6 +122,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")] @@ -133,6 +137,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")] @@ -235,6 +243,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 029ab4f7fa..3ea42bb90d 100644 --- a/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs +++ b/src/Stripe.net/Services/AccountPersons/AccountPersonUpdateOptions.cs @@ -122,6 +122,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")] @@ -133,6 +137,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")] @@ -235,6 +243,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/AccountSessionComponentsDisputesListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs index 7d3949cae7..528e04544e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs @@ -38,5 +38,13 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption [JsonProperty("refund_management")] [STJS.JsonPropertyName("refund_management")] public bool? RefundManagement { get; set; } + + /// + /// 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/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs index dacc80a3e1..e48b566c1e 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs @@ -38,5 +38,13 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti [JsonProperty("refund_management")] [STJS.JsonPropertyName("refund_management")] public bool? RefundManagement { get; set; } + + /// + /// 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/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs index d14a9c4f4a..d09f9dd20d 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs @@ -30,5 +30,13 @@ public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOpt [JsonProperty("refund_management")] [STJS.JsonPropertyName("refund_management")] public bool? RefundManagement { get; set; } + + /// + /// 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/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs index 0a7885460b..844756f056 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs @@ -38,5 +38,13 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions [JsonProperty("refund_management")] [STJS.JsonPropertyName("refund_management")] public bool? RefundManagement { get; set; } + + /// + /// 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/Services/Accounts/AccountCompanyOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs index a3be18ce13..aa2bd106b8 100644 --- a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs @@ -37,6 +37,10 @@ public class AccountCompanyOptions : INestedOptions, IHasSetTracking [STJS.JsonPropertyName("address_kanji")] public AddressJapanOptions AddressKanji { get; set; } + [JsonProperty("administrative_address")] + [STJS.JsonPropertyName("administrative_address")] + public AddressOptions AdministrativeAddress { get; set; } + /// /// Whether the company's directors have been provided. Set this Boolean to true /// after creating all the company's directors with /// When the business was incorporated or registered. /// @@ -216,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/Accounts/AccountRejectOptions.cs b/src/Stripe.net/Services/Accounts/AccountRejectOptions.cs index 73066b292e..2b9436f457 100644 --- a/src/Stripe.net/Services/Accounts/AccountRejectOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountRejectOptions.cs @@ -8,6 +8,15 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountRejectOptions : BaseOptions { + /// + /// Whether to pause payouts on the account as part of the rejection. Defaults to + /// pause. Use none to leave payouts enabled. + /// One of: none, or pause. + /// + [JsonProperty("payouts_action")] + [STJS.JsonPropertyName("payouts_action")] + public string PayoutsAction { get; set; } + /// /// The reason for rejecting the account. Can be fraud, terms_of_service, or /// other. diff --git a/src/Stripe.net/Services/Accounts/AccountService.cs b/src/Stripe.net/Services/Accounts/AccountService.cs index ddd34e4f5f..32d50f7ac7 100644 --- a/src/Stripe.net/Services/Accounts/AccountService.cs +++ b/src/Stripe.net/Services/Accounts/AccountService.cs @@ -53,10 +53,10 @@ public AccountService(IStripeClient client) /// platform.

. /// ///

If you’ve already collected information for your connected accounts, you can prefill that - /// information when creating the account. Connect Onboarding won’t ask for the - /// prefilled information during account onboarding. You can prefill any information on the - /// account.

. + /// href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can + /// prefill that information when creating the account. Connect Onboarding won’t ask for + /// the prefilled information during account onboarding. You can prefill any information on + /// the account.

. ///
public virtual Account Create(AccountCreateOptions options, RequestOptions requestOptions = null) { @@ -70,10 +70,10 @@ public virtual Account Create(AccountCreateOptions options, RequestOptions reque /// platform.

. /// ///

If you’ve already collected information for your connected accounts, you can prefill that - /// information when creating the account. Connect Onboarding won’t ask for the - /// prefilled information during account onboarding. You can prefill any information on the - /// account.

. + /// href="https://stripe.com/connect/marketplace/tasks/create#prefill-account-information">can + /// prefill that information when creating the account. Connect Onboarding won’t ask for + /// the prefilled information during account onboarding. You can prefill any information on + /// the account.

. /// public virtual Task CreateAsync(AccountCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { @@ -181,9 +181,7 @@ public virtual IAsyncEnumerable ListAutoPagingAsync(AccountListOptions /// you have flagged as suspicious.

. /// ///

Only accounts where your platform is liable for negative account balances, which - /// includes Custom and Express accounts, can be rejected. Test-mode accounts can be - /// rejected at any time. Live-mode accounts can only be rejected after all balances are - /// zero.

. + /// includes Custom and Express accounts, can be rejected.

. /// public virtual Account Reject(string id, AccountRejectOptions options = null, RequestOptions requestOptions = null) { @@ -195,15 +193,45 @@ public virtual Account Reject(string id, AccountRejectOptions options = null, Re /// you have flagged as suspicious.

. /// ///

Only accounts where your platform is liable for negative account balances, which - /// includes Custom and Express accounts, can be rejected. Test-mode accounts can be - /// rejected at any time. Live-mode accounts can only be rejected after all balances are - /// zero.

. + /// includes Custom and Express accounts, can be rejected.

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

With Connect, you can unreject accounts that you have previously rejected.

. + /// + ///

Only accounts that were rejected by your platform can be unrejected. This API cannot + /// be used to unreject accounts that were rejected by Stripe.

. + /// + ///

Unreject will only enable charges and/or payouts if there are no other restrictions + /// other than those placed by a previous rejection. If you have separately paused charges + /// and/or payouts outside of rejection, those pauses will remain in place after + /// unrejection.

. + ///
+ public virtual Account Unreject(string id, AccountUnrejectOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/accounts/{WebUtility.UrlEncode(id)}/unreject", options, requestOptions); + } + + /// + ///

With Connect, you can unreject accounts that you have previously rejected.

. + /// + ///

Only accounts that were rejected by your platform can be unrejected. This API cannot + /// be used to unreject accounts that were rejected by Stripe.

. + /// + ///

Unreject will only enable charges and/or payouts if there are no other restrictions + /// other than those placed by a previous rejection. If you have separately paused charges + /// and/or payouts outside of rejection, those pauses will remain in place after + /// unrejection.

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

Updates a connected account by /// setting the values of the parameters passed. Any parameters not provided are left diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs index c367c13017..55fd4fc93f 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsOptions.cs @@ -58,6 +58,13 @@ public class AccountSettingsOptions : INestedOptions [STJS.JsonPropertyName("payouts")] public AccountSettingsPayoutsOptions Payouts { get; set; } + ///

+ /// Settings specific to SEPA Direct Debit payments. + /// + [JsonProperty("sepa_debit_payments")] + [STJS.JsonPropertyName("sepa_debit_payments")] + public AccountSettingsSepaDebitPaymentsOptions SepaDebitPayments { get; set; } + /// /// Settings specific to the account's Treasury FinancialAccounts. /// diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsSepaDebitPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsSepaDebitPaymentsOptions.cs new file mode 100644 index 0000000000..cfe063c59a --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountSettingsSepaDebitPaymentsOptions.cs @@ -0,0 +1,18 @@ +// 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 AccountSettingsSepaDebitPaymentsOptions : INestedOptions + { + /// + /// The business creditor id for european payments. + /// + [JsonProperty("creditor_id")] + [STJS.JsonPropertyName("creditor_id")] + public string CreditorId { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountUnrejectOptions.cs b/src/Stripe.net/Services/Accounts/AccountUnrejectOptions.cs new file mode 100644 index 0000000000..928f5f05a9 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountUnrejectOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUnrejectOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs b/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs index 2a8590bb41..3f5cf934ae 100644 --- a/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs +++ b/src/Stripe.net/Services/Billing/Alerts/AlertUsageThresholdOptions.cs @@ -18,7 +18,7 @@ public class AlertUsageThresholdOptions : INestedOptions public List Filters { get; set; } /// - /// Defines the threshold value that triggers the alert. + /// Defines the threshold value that triggers the alert. The value must be greater than 0. /// [JsonProperty("gte")] [STJS.JsonPropertyName("gte")] 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/Checkout/Sessions/SessionLineItemOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs index 5002d61a59..e8b4ab5f4f 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionLineItemOptions.cs @@ -24,16 +24,6 @@ public class SessionLineItemOptions : INestedOptions, IHasMetadata, IHasId, IHas [STJS.JsonPropertyName("adjustable_quantity")] public SessionLineItemAdjustableQuantityOptions AdjustableQuantity { get; set; } - /// - /// The tax rates that will be applied - /// to this line item depending on the customer's billing/shipping address. We currently - /// support the following countries: US, GB, AU, and all countries in the EU. You can't set - /// this parameter if ui_mode is custom. - /// - [JsonProperty("dynamic_tax_rates")] - [STJS.JsonPropertyName("dynamic_tax_rates")] - public List DynamicTaxRates { get; set; } - /// /// ID of an existing line item. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs index 5f890c4739..e7c88bbb65 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsPaycoOptions.cs @@ -14,5 +14,29 @@ public class SessionPaymentMethodOptionsPaycoOptions : INestedOptions [JsonProperty("capture_method")] [STJS.JsonPropertyName("capture_method")] public string CaptureMethod { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs index a73b0b484a..4d61e07505 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsSamsungPayOptions.cs @@ -14,5 +14,29 @@ public class SessionPaymentMethodOptionsSamsungPayOptions : INestedOptions [JsonProperty("capture_method")] [STJS.JsonPropertyName("capture_method")] public string CaptureMethod { get; set; } + + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs index 63e13f9b2e..c056425f3c 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs @@ -23,8 +23,7 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata public decimal? ApplicationFeePercent { get; set; } /// - /// A future timestamp to anchor the subscription's billing cycle for new subscriptions. You - /// can't set this parameter if ui_mode is elements. + /// A future timestamp to anchor the subscription's billing cycle for new subscriptions. /// [JsonProperty("billing_cycle_anchor")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs index afde60805a..3495346a92 100644 --- a/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/CustomerTaxIds/CustomerTaxIdCreateOptions.cs @@ -19,9 +19,9 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// co_nit, 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, + /// gn_nif, hk_br, 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, @@ -43,19 +43,19 @@ public class CustomerTaxIdCreateOptions : BaseOptions /// 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, - /// 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, 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/Services/Customers/CustomerTaxIdDataOptions.cs b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs index cfcbdbe231..4cbbad1d8f 100644 --- a/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerTaxIdDataOptions.cs @@ -19,9 +19,9 @@ public class CustomerTaxIdDataOptions : INestedOptions /// co_nit, 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, + /// gn_nif, hk_br, 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, @@ -43,19 +43,19 @@ public class CustomerTaxIdDataOptions : INestedOptions /// 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, - /// 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, 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/Services/Disputes/DisputeService.cs b/src/Stripe.net/Services/Disputes/DisputeService.cs index 25aa5e7602..3d23d2b503 100644 --- a/src/Stripe.net/Services/Disputes/DisputeService.cs +++ b/src/Stripe.net/Services/Disputes/DisputeService.cs @@ -29,7 +29,8 @@ public DisputeService(IStripeClient client) /// ///

Closing the dispute for a charge indicates that you do not have any evidence to - /// submit and are essentially dismissing the dispute, acknowledging it as lost.

. + /// submit and are essentially dismissing the dispute (accepting it), acknowledging it as + /// lost.

. /// ///

The status of the dispute will change from needs_response to lost. /// Closing a dispute is irreversible.

. @@ -41,7 +42,8 @@ public virtual Dispute Close(string id, DisputeCloseOptions options = null, Requ /// ///

Closing the dispute for a charge indicates that you do not have any evidence to - /// submit and are essentially dismissing the dispute, acknowledging it as lost.

. + /// submit and are essentially dismissing the dispute (accepting it), acknowledging it as + /// lost.

. /// ///

The status of the dispute will change from needs_response to lost. /// Closing a dispute is irreversible.

. diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionCreateOptions.cs index 8c03c2c076..eb5ead1b29 100644 --- a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionCreateOptions.cs @@ -23,6 +23,20 @@ public class SessionCreateOptions : BaseOptions [STJS.JsonPropertyName("filters")] public SessionFiltersOptions Filters { get; set; } + /// + /// Settings for configuring Session-specific limits. + /// + [JsonProperty("limits")] + [STJS.JsonPropertyName("limits")] + public SessionLimitsOptions Limits { get; set; } + + /// + /// Customize manual entry behavior. + /// + [JsonProperty("manual_entry")] + [STJS.JsonPropertyName("manual_entry")] + public SessionManualEntryOptions ManualEntry { get; set; } + /// /// List of data features that you would like to request access to. /// diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionFiltersOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionFiltersOptions.cs index 1ebbd12a76..5098e742eb 100644 --- a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionFiltersOptions.cs +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionFiltersOptions.cs @@ -26,5 +26,14 @@ public class SessionFiltersOptions : INestedOptions [JsonProperty("countries")] [STJS.JsonPropertyName("countries")] public List Countries { get; set; } + + /// + /// Whether the session should require payment method support and successful account number + /// retrieval before completion. + /// One of: all, at_least_one, or none. + /// + [JsonProperty("require_payment_method_support")] + [STJS.JsonPropertyName("require_payment_method_support")] + public string RequirePaymentMethodSupport { get; set; } } } diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionLimitsOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionLimitsOptions.cs new file mode 100644 index 0000000000..56033e2b38 --- /dev/null +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionLimitsOptions.cs @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionLimitsOptions : INestedOptions, IHasSetTracking + { + private long? accounts; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// The number of accounts that can be linked in this Session. Pass an empty value to allow + /// any number of accounts. + /// + [JsonProperty("accounts", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("accounts")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public long? Accounts + { + get => this.accounts; + set + { + this.accounts = value; + this.SetTracker.Track(); + } + } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } + } +} diff --git a/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs new file mode 100644 index 0000000000..34c9d33495 --- /dev/null +++ b/src/Stripe.net/Services/FinancialConnections/Sessions/SessionManualEntryOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.FinancialConnections +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionManualEntryOptions : INestedOptions + { + /// + /// How manual entry should be handled. + /// One of: automatic, or disabled. + /// + [JsonProperty("mode")] + [STJS.JsonPropertyName("mode")] + public string Mode { get; set; } + } +} diff --git a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs index df8f3ba6ab..e9839a9181 100644 --- a/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs +++ b/src/Stripe.net/Services/InvoiceLineItems/InvoiceLineItemTaxAmountTaxRateDataOptions.cs @@ -76,9 +76,9 @@ public class InvoiceLineItemTaxAmountTaxRateDataOptions : INestedOptions /// /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs index a8bcc1f289..ad396c8206 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceCustomerDetailsTaxIdOptions.cs @@ -19,9 +19,9 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// co_nit, 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, + /// gn_nif, hk_br, 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, @@ -43,19 +43,19 @@ public class InvoiceCustomerDetailsTaxIdOptions : INestedOptions /// 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, - /// 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, 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/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs index 56a0944f32..fd29790fbb 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceLineTaxAmountTaxRateDataOptions.cs @@ -76,9 +76,9 @@ public class InvoiceLineTaxAmountTaxRateDataOptions : INestedOptions /// /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index b7e8cae211..db3cc802a0 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, - /// boleto, card, cashapp, crypto, custom, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, jp_credit_transfer, kakao_pay, klarna, - /// konbini, kr_card, link, 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, - /// swish, twint, upi, us_bank_account, or wechat_pay. + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, boleto, card, cashapp, crypto, + /// custom, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// 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, swish, + /// twint, upi, us_bank_account, or wechat_pay. ///
[JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs index 69d871fdc5..c821fa38fe 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsPhaseOptions.cs @@ -232,7 +232,9 @@ public List Discounts /// /// The date at which this phase of the subscription schedule starts or now. Must be - /// set on the first phase. + /// set on the first phase. Prefer to specify now over an explicit timestamp when + /// appropriate to avoid unexpected behavior due to request delays or clock skew resulting + /// in the phase being slightly backdated or postdated. /// [JsonProperty("start_date")] [JsonConverter(typeof(AnyOfConverter))] @@ -257,8 +259,9 @@ public List Discounts public bool? Trial { 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/Invoices/InvoiceSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs index e0ece207d7..2ae728bcd1 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs @@ -8,11 +8,12 @@ namespace Stripe using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class InvoiceSubscriptionDetailsOptions : INestedOptions, IHasSetTracking + public class InvoiceSubscriptionDetailsOptions : INestedOptions, IHasMetadata, IHasSetTracking { private List billingSchedules; private AnyOf cancelAt; private List defaultTaxRates; + private Dictionary metadata; [JsonIgnore] [STJS.JsonIgnore] @@ -115,6 +116,25 @@ public List DefaultTaxRates [STJS.JsonPropertyName("items")] public List Items { get; set; } + /// + /// Set of key-value pairs that you can + /// attach to an object. This can be useful for storing additional information about the + /// object in a structured format. Individual keys can be unset by posting an empty value to + /// them. All keys can be unset by posting an empty value to metadata. + /// + [JsonProperty("metadata", 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(); + } + } + /// /// Determines how to handle prorations when the diff --git a/src/Stripe.net/Services/Issuing/Cards/CardShippingOptions.cs b/src/Stripe.net/Services/Issuing/Cards/CardShippingOptions.cs index 5a9eebdf5e..39dcdbfcb1 100644 --- a/src/Stripe.net/Services/Issuing/Cards/CardShippingOptions.cs +++ b/src/Stripe.net/Services/Issuing/Cards/CardShippingOptions.cs @@ -22,6 +22,16 @@ public class CardShippingOptions : INestedOptions [STJS.JsonPropertyName("address_validation")] public CardShippingAddressValidationOptions 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. Allowed characters: + /// A-Z, a-z, 0-9, , ., -. All other characters + /// are stripped or ASCII-normalized when printed. + /// + [JsonProperty("business_name")] + [STJS.JsonPropertyName("business_name")] + public string BusinessName { get; set; } + /// /// Customs information for the shipment. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 5f2258bfbf..abbe03a68f 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -17,6 +17,37 @@ public class PaymentIntentConfirmOptions : BaseOptions private string setupFutureUsage; private ChargeShippingOptions shipping; + /// + /// The list of payment method types allowed for use with this payment. Stripe automatically + /// returns compatible payment methods from this list in the payment_method_types + /// field of the response, based on the other PaymentIntent parameters, such as + /// currency, amount, and customer. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + /// /// Provides industry-specific information about the amount. /// @@ -185,9 +216,9 @@ public PaymentIntentPaymentDetailsOptions PaymentDetails /// /// The list of payment method types (for example, a card) that this PaymentIntent can use. - /// Use automatic_payment_methods to manage payment methods from the Stripe Dashboard. A - /// list of valid payment method types can be found payment method + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index e5e1507851..f3b5be705c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -11,6 +11,37 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata { private PaymentIntentMandateDataOptions mandateData; + /// + /// The list of payment method types allowed for use with this payment. Stripe automatically + /// returns compatible payment methods from this list in the payment_method_types + /// field of the response, based on the other PaymentIntent parameters, such as + /// currency, amount, and customer. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + /// /// Amount intended to be collected by this PaymentIntent. A positive integer representing /// how much to charge in the affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaycoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaycoOptions.cs index d2bf3efb24..cea8b44b33 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaycoOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsPaycoOptions.cs @@ -37,6 +37,30 @@ public string CaptureMethod } } + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + bool IHasSetTracking.IsPropertySet(string propertyName) { return this.SetTracker.IsSet(propertyName); diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPayOptions.cs index 09209a01b6..75f8b153d0 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPayOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsSamsungPayOptions.cs @@ -37,6 +37,30 @@ public string CaptureMethod } } + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] + [STJS.JsonPropertyName("setup_future_usage")] + public string SetupFutureUsage { get; set; } + bool IHasSetTracking.IsPropertySet(string propertyName) { return this.SetTracker.IsSet(propertyName); diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs index 0ca69dc719..87fb283724 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentRadarOptionsOptions.cs @@ -6,8 +6,32 @@ namespace Stripe using STJS = System.Text.Json.Serialization; [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] - public class PaymentIntentRadarOptionsOptions : INestedOptions + public class PaymentIntentRadarOptionsOptions : INestedOptions, IHasSetTracking { + private string referrer; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// The referrer URL of the current checkout session. You can use this to supply + /// session-level referrer data when a Radar Session isn't available or doesn't contain a + /// referrer. + /// + [JsonProperty("referrer", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("referrer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Referrer + { + get => this.referrer; + set + { + this.referrer = value; + this.SetTracker.Track(); + } + } + /// /// A Radar Session is a snapshot /// of the browser metadata and device details that help Radar make more accurate @@ -16,5 +40,10 @@ public class PaymentIntentRadarOptionsOptions : INestedOptions [JsonProperty("session")] [STJS.JsonPropertyName("session")] public string Session { get; set; } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index 69a505310c..5a23671ba0 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -18,6 +18,37 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata private string setupFutureUsage; private ChargeShippingOptions shipping; + /// + /// The list of payment method types allowed for use with this payment. Stripe automatically + /// returns compatible payment methods from this list in the payment_method_types + /// field of the response, based on the other PaymentIntent parameters, such as + /// currency, amount, and customer. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + /// /// Amount intended to be collected by this PaymentIntent. A positive integer representing /// how much to charge in the metadata; + private string setupFutureUsage; private string statementDescriptor; private string statementDescriptorSuffix; private string transferGroup; @@ -86,9 +87,18 @@ public Dictionary Metadata /// rules, such as SCA. /// One of: off_session, or on_session. /// - [JsonProperty("setup_future_usage")] + [JsonProperty("setup_future_usage", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("setup_future_usage")] - public string SetupFutureUsage { get; set; } + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string SetupFutureUsage + { + get => this.setupFutureUsage; + set + { + this.setupFutureUsage = value; + this.SetTracker.Track(); + } + } /// /// Text that appears on the customer's statement as the statement descriptor for a non-card diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs index db7bbdc798..67c75ec21e 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkUpdateOptions.cs @@ -17,6 +17,7 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata private List paymentMethodTypes; private PaymentLinkRestrictionsOptions restrictions; private PaymentLinkShippingAddressCollectionOptions shippingAddressCollection; + private List shippingOptions; /// /// Whether the payment link's url is active. If false, customers visiting the @@ -55,6 +56,13 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("billing_address_collection")] public string BillingAddressCollection { get; set; } + /// + /// Configure fields to gather active consent from customers. + /// + [JsonProperty("consent_collection")] + [STJS.JsonPropertyName("consent_collection")] + public PaymentLinkConsentCollectionOptions ConsentCollection { get; set; } + /// /// Collect additional information from your customer using custom fields. Up to 3 fields /// are supported. You can't set this parameter if ui_mode is custom. @@ -282,6 +290,24 @@ public PaymentLinkShippingAddressCollectionOptions ShippingAddressCollection } } + /// + /// The shipping rate options to apply to checkout sessions created by + /// this payment link. + /// + [JsonProperty("shipping_options", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("shipping_options")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List ShippingOptions + { + get => this.shippingOptions; + set + { + this.shippingOptions = value; + this.SetTracker.Track(); + } + } + /// /// Describes the type of transaction being performed in order to customize relevant text on /// the page, such as the submit button. Changing this value will also affect the hostname diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodFpxOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodFpxOptions.cs index b0958a5c5e..65d1fb43e7 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodFpxOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodFpxOptions.cs @@ -20,9 +20,10 @@ public class PaymentMethodFpxOptions : INestedOptions /// The customer's bank. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs index dba38fbca3..55cb5d9c6f 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodService.cs @@ -109,8 +109,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) { @@ -118,8 +119,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/PaymentRecordListOptions.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordListOptions.cs new file mode 100644 index 0000000000..e622625e6c --- /dev/null +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordListOptions.cs @@ -0,0 +1,30 @@ +// 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 PaymentRecordListOptions : ListOptions + { + /// + /// Only return Payment Records that were created after this unix timestamp. + /// + [JsonProperty("created_after")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("created_after")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? CreatedAfter { get; set; } + + /// + /// Only return Payment Records that were created before this unix timestamp. + /// + [JsonProperty("created_before")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("created_before")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? CreatedBefore { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs b/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs index 40ec2ab842..8ae43d33c4 100644 --- a/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs +++ b/src/Stripe.net/Services/PaymentRecords/PaymentRecordService.cs @@ -2,12 +2,14 @@ namespace Stripe { using System; + using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; public class PaymentRecordService : Service, + IListable, IRetrievable { public PaymentRecordService() @@ -40,6 +42,38 @@ public virtual Task GetAsync(string id, PaymentRecordGetOptions o return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v1/payment_records/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); } + /// + ///

List all the Payment Records for a given merchant.

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

List all the Payment Records for a given merchant.

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

List all the Payment Records for a given merchant.

. + ///
+ public virtual IEnumerable ListAutoPaging(PaymentRecordListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v1/payment_records", options, requestOptions); + } + + /// + ///

List all the Payment Records for a given merchant.

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

Report a new Payment Record. You may report a Payment Record as it is initialized and /// later report updates through the other report_* methods, or report Payment Records in a diff --git a/src/Stripe.net/Services/PromotionCodes/PromotionCodeRestrictionsOptions.cs b/src/Stripe.net/Services/PromotionCodes/PromotionCodeRestrictionsOptions.cs index e057666325..5d1f7edb2c 100644 --- a/src/Stripe.net/Services/PromotionCodes/PromotionCodeRestrictionsOptions.cs +++ b/src/Stripe.net/Services/PromotionCodes/PromotionCodeRestrictionsOptions.cs @@ -12,7 +12,9 @@ public class PromotionCodeRestrictionsOptions : INestedOptions ///

/// Promotion codes defined in each available currency option. Each key must be a /// three-letter ISO currency - /// code and a supported currency. + /// code and a supported currency. Each + /// currency must be different from the minimum_amount_currency set on the promotion + /// code. /// [JsonProperty("currency_options")] [STJS.JsonPropertyName("currency_options")] diff --git a/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsCustomFieldOptions.cs b/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsCustomFieldOptions.cs new file mode 100644 index 0000000000..7ce9e875b3 --- /dev/null +++ b/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsCustomFieldOptions.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 QuoteInvoiceSettingsCustomFieldOptions : INestedOptions + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsOptions.cs b/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsOptions.cs index 4f9bd072d3..3f64dc7b14 100644 --- a/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteInvoiceSettingsOptions.cs @@ -1,13 +1,38 @@ // 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 QuoteInvoiceSettingsOptions : INestedOptions + public class QuoteInvoiceSettingsOptions : INestedOptions, IHasSetTracking { + private List customFields; + private string description; + private string footer; + + [JsonIgnore] + [STJS.JsonIgnore] + internal SetTracker SetTracker { get; } = new SetTracker(); + + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("custom_fields")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List CustomFields + { + get => this.customFields; + set + { + this.customFields = value; + this.SetTracker.Track(); + } + } + /// /// Number of days within which a customer must pay the invoice generated by this quote. /// This value will be null for quotes where @@ -17,6 +42,38 @@ public class QuoteInvoiceSettingsOptions : INestedOptions [STJS.JsonPropertyName("days_until_due")] public long? DaysUntilDue { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Description + { + get => this.description; + set + { + this.description = value; + this.SetTracker.Track(); + } + } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("footer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Footer + { + get => this.footer; + set + { + this.footer = value; + this.SetTracker.Track(); + } + } + /// /// The connected account that issues the invoice. The invoice is presented with the /// branding and support information of the specified account. @@ -24,5 +81,10 @@ public class QuoteInvoiceSettingsOptions : INestedOptions [JsonProperty("issuer")] [STJS.JsonPropertyName("issuer")] public QuoteInvoiceSettingsIssuerOptions Issuer { get; set; } + + bool IHasSetTracking.IsPropertySet(string propertyName) + { + return this.SetTracker.IsSet(propertyName); + } } } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs index 5f224f6992..18dc723133 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentConfirmOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -10,6 +11,37 @@ public class SetupIntentConfirmOptions : BaseOptions { private SetupIntentMandateDataOptions mandateData; + /// + /// The list of payment method types to allow for this SetupIntent. Stripe will only use + /// methods in this list when determining the payment methods to offer. A list of valid + /// payment method types can be found here. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + [JsonProperty("client_secret")] [STJS.JsonPropertyName("client_secret")] public string ClientSecret { get; set; } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs index c6c0dd3774..6a88b4dc03 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -11,6 +11,37 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata { private SetupIntentMandateDataOptions mandateData; + /// + /// The list of payment method types to allow for this SetupIntent. Stripe will only use + /// methods in this list when determining the payment methods to offer. A list of valid + /// payment method types can be found here. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types")] + [STJS.JsonPropertyName("allowed_payment_method_types")] + public List AllowedPaymentMethodTypes { get; set; } + /// /// If present, the SetupIntent's payment method will be attached to the in-context Stripe /// Account. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataFpxOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataFpxOptions.cs index e63501ff83..fe441c208a 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataFpxOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataFpxOptions.cs @@ -20,9 +20,10 @@ public class SetupIntentPaymentMethodDataFpxOptions : INestedOptions /// The customer's bank. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index dc4fd1f604..e1e1d83ace 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -9,9 +9,50 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata { + private List allowedPaymentMethodTypes; private List excludedPaymentMethodTypes; private Dictionary metadata; + /// + /// The list of payment method types to allow for this SetupIntent. Stripe will only use + /// methods in this list when determining the payment methods to offer. A list of valid + /// payment method types can be found here. + /// One of: acss_debit, affirm, afterpay_clearpay, alipay, + /// alma, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, billie, bizum, blik, boku_promptpay, + /// boleto, capchase_pay, card, cashapp, check_scan, + /// click_to_pay, crypto, customer_balance, demo_pay, + /// duitnow, dummy_auth_push, dummy_passthrough_card, edenred, + /// eps, fpx, gcash, getbalance, gift_card, + /// giropay, gopay, grabpay, id_bank_transfer, ideal, + /// kakao_pay, klarna, knet, konbini, kr_card, + /// kr_market, kriya, link, mb_way, mobilepay, + /// momo, mondu, multibanco, naver_pay, netbanking, + /// ng_bank, ng_bank_transfer, ng_card, ng_market, + /// ng_ussd, ng_wallet, nz_bank_account, octopus, oxxo, + /// p24, paper_check, pay_by_bank, payco, paynow, + /// paypal, paypay, payto, pix, promptpay, qris, + /// rechnung, revolut_pay, samsung_pay, satispay, + /// scalapay, sepa_debit, sequra, shop_pay, shopeepay, + /// sofort, south_korea_market, stripe_balance, sunbit, + /// swish, tamara, test_pay, truemoney, twint, + /// upi, us_bank_account, us_cash_voucher, vipps, + /// wechat_pay, wero, or zip. + /// + [JsonProperty("allowed_payment_method_types", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("allowed_payment_method_types")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List AllowedPaymentMethodTypes + { + get => this.allowedPaymentMethodTypes; + set + { + this.allowedPaymentMethodTypes = value; + this.SetTracker.Track(); + } + } + /// /// If present, the SetupIntent's payment method will be attached to the in-context Stripe /// Account. diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs index 77d0139d5c..ad00bc6867 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs @@ -93,9 +93,10 @@ public Dictionary Metadata /// /// When the subscription schedule starts. We recommend using now so that it starts - /// the subscription immediately. You can also use a Unix timestamp to backdate the - /// subscription so that it starts on a past date, or set a future date for the subscription - /// to start on. + /// the subscription immediately, and to avoid unexpected behavior due to request delays or + /// clock skew resulting in a slightly backdated or postdated start. You can also use a Unix + /// timestamp to backdate the subscription so that it starts on a past date, or set a future + /// date for the subscription to start on. /// [JsonProperty("start_date")] [JsonConverter(typeof(AnyOfConverter))] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomFieldOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomFieldOptions.cs new file mode 100644 index 0000000000..b56763c0b5 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomFieldOptions.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 SubscriptionScheduleDefaultSettingsInvoiceSettingsCustomFieldOptions : INestedOptions + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsOptions.cs index 2ccd0214e0..be5551b868 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleDefaultSettingsInvoiceSettingsOptions.cs @@ -10,6 +10,9 @@ namespace Stripe public class SubscriptionScheduleDefaultSettingsInvoiceSettingsOptions : INestedOptions, IHasSetTracking { private List accountTaxIds; + private List customFields; + private string description; + private string footer; [JsonIgnore] [STJS.JsonIgnore] @@ -32,6 +35,19 @@ public List AccountTaxIds } } + [JsonProperty("custom_fields", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("custom_fields")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List CustomFields + { + get => this.customFields; + set + { + this.customFields = value; + this.SetTracker.Track(); + } + } + /// /// Number of days within which a customer must pay invoices generated by this subscription /// schedule. This value will be null for subscription schedules where @@ -41,6 +57,32 @@ public List AccountTaxIds [STJS.JsonPropertyName("days_until_due")] public long? DaysUntilDue { get; set; } + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Description + { + get => this.description; + set + { + this.description = value; + this.SetTracker.Track(); + } + } + + [JsonProperty("footer", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("footer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Footer + { + get => this.footer; + set + { + this.footer = value; + this.SetTracker.Track(); + } + } + /// /// The connected account that issues the invoice. The invoice is presented with the /// branding and support information of the specified account. diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs index 44f575efce..7bcd643a45 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleListOptions.cs @@ -37,7 +37,9 @@ public class SubscriptionScheduleListOptions : ListOptions public AnyOf Created { get; set; } /// - /// Only return subscription schedules for the given customer. + /// Only return subscription schedules for the given customer. The response will not include + /// subscription schedules for customers with a test clock attached if this parameter is not + /// set. /// [JsonProperty("customer")] [STJS.JsonPropertyName("customer")] diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomFieldOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomFieldOptions.cs new file mode 100644 index 0000000000..88f8a827a1 --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsCustomFieldOptions.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 SubscriptionSchedulePhaseInvoiceSettingsCustomFieldOptions : INestedOptions + { + /// + /// The name of the custom field. This may be up to 40 characters. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// The value of the custom field. This may be up to 140 characters. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsOptions.cs index b7102d3751..4197de6190 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseInvoiceSettingsOptions.cs @@ -10,6 +10,9 @@ namespace Stripe public class SubscriptionSchedulePhaseInvoiceSettingsOptions : INestedOptions, IHasSetTracking { private List accountTaxIds; + private List customFields; + private string description; + private string footer; [JsonIgnore] [STJS.JsonIgnore] @@ -32,15 +35,63 @@ public List AccountTaxIds } } + /// + /// A list of up to 4 custom fields to be displayed on the invoice. + /// + [JsonProperty("custom_fields", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("custom_fields")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public List CustomFields + { + get => this.customFields; + set + { + this.customFields = value; + this.SetTracker.Track(); + } + } + /// /// Number of days within which a customer must pay invoices generated by this subscription /// schedule. This value will be null for subscription schedules where - /// billing=charge_automatically. + /// collection_method=charge_automatically. /// [JsonProperty("days_until_due")] [STJS.JsonPropertyName("days_until_due")] public long? DaysUntilDue { get; set; } + /// + /// An arbitrary string attached to the object. Often useful for displaying to users. + /// + [JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("description")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Description + { + get => this.description; + set + { + this.description = value; + this.SetTracker.Track(); + } + } + + /// + /// Footer to be displayed on the invoice. + /// + [JsonProperty("footer", NullValueHandling = NullValueHandling.Ignore)] + [STJS.JsonPropertyName("footer")] + [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] + public string Footer + { + get => this.footer; + set + { + this.footer = value; + this.SetTracker.Track(); + } + } + /// /// The connected account that issues the invoice. The invoice is presented with the /// branding and support information of the specified account. diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs index 18c4d1464e..97b0b6d8fc 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionSchedulePhaseOptions.cs @@ -232,7 +232,9 @@ public List Discounts /// /// The date at which this phase of the subscription schedule starts or now. Must be - /// set on the first phase. + /// set on the first phase. Prefer to specify now over an explicit timestamp when + /// appropriate to avoid unexpected behavior due to request delays or clock skew resulting + /// in the phase being slightly backdated or postdated. /// [JsonProperty("start_date")] [JsonConverter(typeof(AnyOfConverter))] @@ -257,8 +259,8 @@ public List Discounts public bool? Trial { 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/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index 2fc267ad66..829caee9dc 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, - /// boleto, card, cashapp, crypto, custom, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, jp_credit_transfer, kakao_pay, klarna, - /// konbini, kr_card, link, 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, - /// swish, twint, upi, us_bank_account, or wechat_pay. + /// alipay, amazon_pay, au_becs_debit, bacs_debit, + /// bancontact, boleto, card, cashapp, crypto, + /// custom, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, jp_credit_transfer, kakao_pay, + /// klarna, konbini, kr_card, link, mb_way, + /// 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, swish, + /// twint, upi, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types", NullValueHandling = NullValueHandling.Ignore)] [STJS.JsonPropertyName("payment_method_types")] diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index c52612f50f..71ad826cb1 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -129,7 +129,7 @@ public SubscriptionBillingThresholdsOptions BillingThresholds /// /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. + /// (current_period_end). /// [JsonProperty("cancel_at_period_end")] [STJS.JsonPropertyName("cancel_at_period_end")] diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCreateOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCreateOptions.cs index 49a371c01d..03d1a4b84c 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationCreateOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCreateOptions.cs @@ -56,9 +56,11 @@ public class CalculationCreateOptions : BaseOptions public CalculationShippingCostOptions ShippingCost { get; set; } /// - /// Timestamp of date at which the tax rules and rates in effect applies for the - /// calculation. Measured in seconds since the Unix epoch. Can be up to 48 hours in the - /// past, and up to 48 hours in the future. + /// The calculation uses the tax rules and rates that are in effect at this timestamp. You + /// can use a date up to 31 days in the past or up to 31 days in the future. If you use a + /// future date, Stripe doesn't guarantee that the expected tax rules and rate being used + /// match the actual rules and rate that will be in effect on that date. We deploy tax + /// changes before their effective date, but not within a fixed window. /// [JsonProperty("tax_date")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs index c908b86441..43443adddc 100644 --- a/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs +++ b/src/Stripe.net/Services/Tax/Calculations/CalculationCustomerDetailsTaxIdOptions.cs @@ -19,9 +19,9 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// co_nit, 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, + /// gn_nif, hk_br, 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, @@ -43,19 +43,19 @@ public class CalculationCustomerDetailsTaxIdOptions : INestedOptions /// 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, - /// 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, 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/Services/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTaxOptions.cs new file mode 100644 index 0000000000..2e8ac26e70 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsMassTransitParkingTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsMassTransitParkingTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs index d220224715..41de17be81 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsOptions.cs @@ -22,6 +22,20 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions [STJS.JsonPropertyName("local_lease_tax")] public RegistrationCountryOptionsUsLocalLeaseTaxOptions LocalLeaseTax { get; set; } + /// + /// Options for the mass transit parking tax registration. + /// + [JsonProperty("mass_transit_parking_tax")] + [STJS.JsonPropertyName("mass_transit_parking_tax")] + public RegistrationCountryOptionsUsMassTransitParkingTaxOptions MassTransitParkingTax { get; set; } + + /// + /// Options for the parking tax registration. + /// + [JsonProperty("parking_tax")] + [STJS.JsonPropertyName("parking_tax")] + public RegistrationCountryOptionsUsParkingTaxOptions ParkingTax { get; set; } + /// /// Two-letter US state code (ISO /// 3166-2). @@ -40,8 +54,8 @@ public class RegistrationCountryOptionsUsOptions : INestedOptions /// /// Type of registration to be created in the US. /// One of: local_amusement_tax, local_lease_tax, - /// state_communications_tax, state_retail_delivery_fee, or - /// state_sales_tax. + /// mass_transit_parking_tax, parking_tax, state_communications_tax, + /// state_retail_delivery_fee, or state_sales_tax. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsParkingTaxOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsParkingTaxOptions.cs new file mode 100644 index 0000000000..cfa7830aeb --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUsParkingTaxOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class RegistrationCountryOptionsUsParkingTaxOptions : INestedOptions + { + /// + /// A jurisdiction code representing the local + /// jurisdiction. + /// + [JsonProperty("jurisdiction")] + [STJS.JsonPropertyName("jurisdiction")] + public string Jurisdiction { get; set; } + } +} diff --git a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs index 77d4c8f6a4..1c62983095 100644 --- a/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs +++ b/src/Stripe.net/Services/TaxIds/TaxIdCreateOptions.cs @@ -26,9 +26,9 @@ public class TaxIdCreateOptions : BaseOptions /// co_nit, 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, + /// gn_nif, hk_br, 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, @@ -50,19 +50,19 @@ public class TaxIdCreateOptions : BaseOptions /// 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, - /// 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, 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/Services/TaxRates/TaxRateCreateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs index a01fc4ea2c..a51c198ff3 100644 --- a/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs +++ b/src/Stripe.net/Services/TaxRates/TaxRateCreateOptions.cs @@ -84,9 +84,9 @@ public class TaxRateCreateOptions : BaseOptions, IHasMetadata /// /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs index 83eeac2a2e..c2a725b829 100644 --- a/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs +++ b/src/Stripe.net/Services/TaxRates/TaxRateUpdateOptions.cs @@ -81,9 +81,9 @@ public Dictionary Metadata /// /// The high-level tax type, such as vat or sales_tax. /// One of: amusement_tax, communications_tax, gst, hst, - /// igst, jct, lease_tax, pst, qst, - /// retail_delivery_fee, rst, sales_tax, service_tax, or - /// vat. + /// igst, jct, lease_tax, mass_transit_parking_tax, + /// parking_tax, pst, qst, retail_delivery_fee, rst, + /// sales_tax, service_tax, or vat. /// [JsonProperty("tax_type")] [STJS.JsonPropertyName("tax_type")] diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataFpxOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataFpxOptions.cs index d185645125..36edcf4a4a 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataFpxOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataFpxOptions.cs @@ -20,9 +20,10 @@ public class ConfirmationTokenPaymentMethodDataFpxOptions : INestedOptions /// The customer's bank. /// One of: affin_bank, agrobank, alliance_bank, ambank, /// bank_islam, bank_muamalat, bank_of_china, bank_rakyat, - /// bsn, cimb, deutsche_bank, hong_leong_bank, hsbc, - /// kfh, maybank2e, maybank2u, ocbc, pb_enterprise, - /// public_bank, rhb, standard_chartered, or uob. + /// bnp_paribas, bsn, cimb, citibank, deutsche_bank, + /// hong_leong_bank, hsbc, kfh, maybank2e, maybank2u, + /// mbsb_bank, ocbc, pb_enterprise, public_bank, rhb, + /// standard_chartered, or uob. /// [JsonProperty("bank")] [STJS.JsonPropertyName("bank")] 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..a019b6bb24 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs @@ -37,6 +37,10 @@ public class TokenAccountCompanyOptions : INestedOptions, IHasSetTracking [STJS.JsonPropertyName("address_kanji")] public AddressJapanOptions AddressKanji { get; set; } + [JsonProperty("administrative_address")] + [STJS.JsonPropertyName("administrative_address")] + public AddressOptions AdministrativeAddress { get; set; } + /// /// Whether the company's directors have been provided. Set this Boolean to true /// after creating all the company's directors with /// When the business was incorporated or registered. /// @@ -224,6 +232,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 f349f38476..49cfa4816b 100644 --- a/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenPersonOptions.cs @@ -126,6 +126,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")] @@ -137,6 +141,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")] @@ -231,6 +239,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/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs b/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs index 4a963e5d73..94d0113bfb 100644 --- a/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/MeterEventStreams/MeterEventStreamCreateEventOptions.cs @@ -19,7 +19,7 @@ public class MeterEventStreamCreateEventOptions : INestedOptions /// /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We’ll enforce uniqueness within a rolling + /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling /// 24 hour period. /// [JsonProperty("identifier")] @@ -27,7 +27,7 @@ public class MeterEventStreamCreateEventOptions : INestedOptions public string Identifier { get; set; } /// - /// The payload of the event. This must contain the fields corresponding to a meter’s + /// The payload of the event. This must contain the fields corresponding to a meter's /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// /// A unique identifier for the event. If not provided, one will be generated. We recommend - /// using a globally unique identifier for this. We’ll enforce uniqueness within a rolling + /// using a globally unique identifier for this. We'll enforce uniqueness within a rolling /// 24 hour period. /// [JsonProperty("identifier")] @@ -27,7 +27,7 @@ public class MeterEventCreateOptions : BaseOptions public string Identifier { get; set; } /// - /// The payload of the event. This must contain the fields corresponding to a meter’s + /// The payload of the event. This must contain the fields corresponding to a meter's /// customer_mapping.event_payload_key (default is stripe_customer_id) and /// value_settings.event_payload_key (default is value). Read more about the /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// One of: administrative, or principal_place_of_business. + /// + [JsonProperty("purpose")] + [STJS.JsonPropertyName("purpose")] + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] + [STJS.JsonPropertyName("town")] + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs index ea6b0f4b6c..dc34e86b65 100644 --- a/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountTokens/AccountTokenCreateIdentityBusinessDetailsOptions.cs @@ -9,6 +9,13 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountTokenCreateIdentityBusinessDetailsOptions : INestedOptions { + /// + /// Additional addresses associated with the business. + /// + [JsonProperty("additional_addresses")] + [STJS.JsonPropertyName("additional_addresses")] + public List AdditionalAddresses { get; set; } + /// /// The business registration address of the business entity. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAdditionalAddressOptions.cs new file mode 100644 index 0000000000..73a7877270 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsAdditionalAddressOptions.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountCreateIdentityBusinessDetailsAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// One of: administrative, or principal_place_of_business. + /// + [JsonProperty("purpose")] + [STJS.JsonPropertyName("purpose")] + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] + [STJS.JsonPropertyName("town")] + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs index e15652b016..9560561aff 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountCreateIdentityBusinessDetailsOptions.cs @@ -9,6 +9,13 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountCreateIdentityBusinessDetailsOptions : INestedOptions { + /// + /// Additional addresses associated with the business. + /// + [JsonProperty("additional_addresses")] + [STJS.JsonPropertyName("additional_addresses")] + public List AdditionalAddresses { get; set; } + /// /// The business registration address of the business entity. /// diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAdditionalAddressOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAdditionalAddressOptions.cs new file mode 100644 index 0000000000..60c322aaad --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsAdditionalAddressOptions.cs @@ -0,0 +1,69 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class AccountUpdateIdentityBusinessDetailsAdditionalAddressOptions : INestedOptions + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// Purpose of additional address. + /// One of: administrative, or principal_place_of_business. + /// + [JsonProperty("purpose")] + [STJS.JsonPropertyName("purpose")] + public string Purpose { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + + /// + /// Town or district. + /// + [JsonProperty("town")] + [STJS.JsonPropertyName("town")] + public string Town { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs index 88b2da0345..ce50b22827 100644 --- a/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs +++ b/src/Stripe.net/Services/V2/Core/Accounts/AccountUpdateIdentityBusinessDetailsOptions.cs @@ -9,6 +9,13 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountUpdateIdentityBusinessDetailsOptions : INestedOptions { + /// + /// Additional addresses associated with the business. + /// + [JsonProperty("additional_addresses")] + [STJS.JsonPropertyName("additional_addresses")] + public List AdditionalAddresses { get; set; } + /// /// The business registration address of the business entity. /// diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 5249d8f121..0164485672 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -47,8 +47,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2025-06-30.basil, 2025-07-30.basil, 2025-08-27.basil, /// 2025-09-30.clover, 2025-10-29.clover, 2025-11-17.clover, /// 2025-12-15.clover, 2026-01-28.clover, 2026-02-25.clover, - /// 2026-03-25.dahlia, 2026-04-22.dahlia, 2026-05-27.dahlia, or - /// 2026-06-24.dahlia. + /// 2026-03-25.dahlia, 2026-04-22.dahlia, 2026-05-27.dahlia, + /// 2026-06-24.dahlia, or 2026-07-29.dahlia. ///
[JsonProperty("api_version")] [STJS.JsonPropertyName("api_version")] @@ -124,11 +124,16 @@ 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_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, /// identity.verification_session.canceled, /// identity.verification_session.created, /// identity.verification_session.processing, diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 343f694b47..9b15948774 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -81,11 +81,16 @@ 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_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, /// identity.verification_session.canceled, /// identity.verification_session.created, /// identity.verification_session.processing,