diff --git a/API_VERSION b/API_VERSION new file mode 100644 index 0000000000..1116f63c2f --- /dev/null +++ b/API_VERSION @@ -0,0 +1 @@ +2025-06-30.basil \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3108db19f2..d8931ef8a6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1773 \ No newline at end of file +v1819 \ No newline at end of file diff --git a/src/Stripe.net/Constants/ApiVersion.cs b/src/Stripe.net/Constants/ApiVersion.cs index d62fa5b902..2b1f9cda55 100644 --- a/src/Stripe.net/Constants/ApiVersion.cs +++ b/src/Stripe.net/Constants/ApiVersion.cs @@ -3,6 +3,7 @@ namespace Stripe { internal class ApiVersion { - public const string Current = "2025-05-28.basil"; + public const string Current = "2025-06-30.basil"; + public const string CurrentMajor = "basil"; } } \ No newline at end of file diff --git a/src/Stripe.net/Constants/EventTypes.cs b/src/Stripe.net/Constants/EventTypes.cs index 93b2d553af..64fd5cf654 100644 --- a/src/Stripe.net/Constants/EventTypes.cs +++ b/src/Stripe.net/Constants/EventTypes.cs @@ -1100,6 +1100,11 @@ public static class EventTypes /// public const string TerminalReaderActionSucceeded = "terminal.reader.action_succeeded"; + /// + /// Occurs whenever an action sent to a Terminal reader is updated. + /// + public const string TerminalReaderActionUpdated = "terminal.reader.action_updated"; + /// /// Occurs whenever a test clock starts advancing. /// diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs index 19cbdc80a4..60c966ccee 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountManagementFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountManagementFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountManagementFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs index 815d29e638..8c03f39b1f 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsAccountOnboardingFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountOnboardingFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs index 82ccce0d3f..0a58bc84eb 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBalancesFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsBalancesFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsBalancesFeatures : StripeEntity - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs index 9eab52a491..6462168b97 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsDisputesListFeatures.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsDisputesListFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs index c87f6b64fa..d32cafd450 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsFinancialAccountFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsFinancialAccountFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,7 +22,10 @@ public class AccountSessionComponentsFinancialAccountFeatures : StripeEntity - /// Whether to allow external accounts to be linked for money transfer. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs index 450117a727..9145d978d5 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsIssuingCardsListFeatures.cs @@ -36,9 +36,11 @@ public class AccountSessionComponentsIssuingCardsListFeatures : StripeEntity - /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs index 28312b1232..3d8e3bf163 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsNotificationBannerFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsNotificationBannerFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs index 448cead3b6..908fdad7d2 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDetailsFeatures.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentDetailsFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs index 23e56115ef..d497c8f79d 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentDisputesFeatures.cs @@ -9,8 +9,8 @@ namespace Stripe public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity { /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDisputesFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs index a8844c71af..91d9557615 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPaymentsFeatures.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentsFeatures : StripeEntity - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs index 9629dc3b82..cff3233978 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsPayoutsFeatures.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsPayoutsFeatures : StripeEntity { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsPayoutsFeatures : StripeEntity - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs index cfaea036c4..134e54e7ac 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs @@ -184,6 +184,17 @@ public class AccountCapabilities : StripeEntity #endif public string CashappPayments { get; set; } + /// + /// The status of the Crypto capability of the account, or whether the account can directly + /// process Crypto payments. + /// One of: active, inactive, or pending. + /// + [JsonProperty("crypto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto_payments")] +#endif + public string CryptoPayments { get; set; } + /// /// The status of the EPS payments capability of the account, or whether the account can /// directly process EPS charges. diff --git a/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs b/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs index 1161bb7c55..dd41f1b6ea 100644 --- a/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs +++ b/src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -38,6 +39,17 @@ public class AccountSettingsPayoutsSchedule : StripeEntity + /// The days of the month funds will be paid out. Only shown if interval is monthly. + /// Payouts scheduled between the 29th and 31st of the month are sent on the last day of + /// shorter months. + /// + [JsonProperty("monthly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_payout_days")] +#endif + public List MonthlyPayoutDays { get; set; } + /// /// The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only /// shown if interval is weekly. @@ -47,5 +59,17 @@ public class AccountSettingsPayoutsSchedule : StripeEntity + /// The days of the week when available funds are paid out, specified as an array, for + /// example, [monday, tuesday]. Only shown if interval is weekly. + /// One of: friday, monday, saturday, sunday, thursday, + /// tuesday, or wednesday. + /// + [JsonProperty("weekly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("weekly_payout_days")] +#endif + public List WeeklyPayoutDays { get; set; } } } diff --git a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs index 7846c77525..b0b802ae7c 100644 --- a/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs +++ b/src/Stripe.net/Entities/BillingPortal/Sessions/SessionFlowSubscriptionUpdateConfirm.cs @@ -10,8 +10,7 @@ namespace Stripe.BillingPortal public class SessionFlowSubscriptionUpdateConfirm : StripeEntity { /// - /// The coupon or promotion code to apply to this subscription update. Currently, only up to - /// one may be specified. + /// The coupon or promotion code to apply to this subscription update. /// [JsonProperty("discounts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index 0138106144..a3c8a777e0 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -110,6 +110,12 @@ public class ChargePaymentMethodDetails : StripeEntity - /// Installment details for this payment (Mexico only). + /// Installment details for this payment. /// /// For more information, see the installments integration guide. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs index 3db0b86a70..04d4450194 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs index b5bb79a6b0..6fd64e8476 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs new file mode 100644 index 0000000000..48c7844bd5 --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCrypto.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ChargePaymentMethodDetailsCrypto : StripeEntity + { + /// + /// The wallet address of the customer. + /// + [JsonProperty("buyer_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("buyer_address")] +#endif + public string BuyerAddress { get; set; } + + /// + /// The blockchain network that the transaction was sent on. + /// One of: base, ethereum, or polygon. + /// + [JsonProperty("network")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("network")] +#endif + public string Network { get; set; } + + /// + /// The token currency that the transaction was sent with. + /// One of: usdc, usdg, or usdp. + /// + [JsonProperty("token_currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("token_currency")] +#endif + public string TokenCurrency { get; set; } + + /// + /// The blockchain transaction hash of the crypto payment. + /// + [JsonProperty("transaction_hash")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("transaction_hash")] +#endif + public string TransactionHash { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs index 82588fd5d5..a18217a5d6 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsIdeal.cs @@ -14,13 +14,13 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, + /// buut, handelsbanken, ing, knab, moneyou, n26, + /// nn, rabobank, regiobank, revolut, sns_bank, + /// triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, /// handelsbanken, ing, knab, moneyou, n26, nn, /// rabobank, regiobank, revolut, sns_bank, triodos_bank, /// van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -31,9 +31,9 @@ public class ChargePaymentMethodDetailsIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs index 385f33781b..730a39446d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresent.cs @@ -169,7 +169,9 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs index cc15ec157d..a4f18d496d 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsInteracPresentReceipt.cs @@ -19,7 +19,8 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class ChargePaymentMethodDetailsInteracPresentReceipt : StripeEntity - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs index 80c7bbaa1a..035aeba659 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.cs @@ -29,7 +29,8 @@ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan : StripeE public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs index e62be00249..853ad73429 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreview.cs @@ -121,6 +121,12 @@ public class ConfirmationTokenPaymentMethodPreview : StripeEntity @@ -357,12 +363,12 @@ public Customer Customer /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// card_present, cashapp, customer_balance, eps, fpx, - /// giropay, grabpay, ideal, interac_present, kakao_pay, - /// klarna, konbini, kr_card, link, mobilepay, - /// multibanco, naver_pay, nz_bank_account, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, pix, - /// promptpay, revolut_pay, samsung_pay, satispay, + /// card_present, cashapp, crypto, customer_balance, eps, + /// fpx, giropay, grabpay, ideal, interac_present, + /// kakao_pay, klarna, konbini, kr_card, link, + /// mobilepay, multibanco, naver_pay, nz_bank_account, + /// oxxo, p24, pay_by_bank, payco, paynow, paypal, + /// pix, promptpay, revolut_pay, samsung_pay, satispay, /// sepa_debit, sofort, swish, twint, us_bank_account, /// wechat_pay, or zip. /// diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs index d56c5af90d..2eb152fe30 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public bool OvercaptureSupported { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs index e74c5c7118..a53df77dbb 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class ConfirmationTokenPaymentMethodPreviewCardGeneratedFromPaymentMethod public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs index 158665d3e6..c1fda1243a 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCardPresent.cs @@ -155,7 +155,9 @@ public class ConfirmationTokenPaymentMethodPreviewCardPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCrypto.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCrypto.cs new file mode 100644 index 0000000000..bff588b586 --- /dev/null +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewCrypto.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class ConfirmationTokenPaymentMethodPreviewCrypto : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs index 127834fe58..cd6e5f6a51 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewIdeal.cs @@ -10,13 +10,13 @@ public class ConfirmationTokenPaymentMethodPreviewIdeal : StripeEntity /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, - /// bunq, handelsbanken, ing, knab, moneyou, n26, - /// nn, rabobank, regiobank, revolut, sns_bank, - /// triodos_bank, van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// bunq, buut, handelsbanken, ing, knab, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -27,9 +27,9 @@ public class ConfirmationTokenPaymentMethodPreviewIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank, if the bank was provided. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs index 4e8ebb572b..bdf34b583d 100644 --- a/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs +++ b/src/Stripe.net/Entities/ConfirmationTokens/ConfirmationTokenPaymentMethodPreviewInteracPresent.cs @@ -134,7 +134,9 @@ public class ConfirmationTokenPaymentMethodPreviewInteracPresent : StripeEntity< public ConfirmationTokenPaymentMethodPreviewInteracPresentNetworks Networks { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs index 6368e3ad9c..cc2f7ceca0 100644 --- a/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs +++ b/src/Stripe.net/Entities/CustomerSessions/CustomerSessionComponentsPaymentElementFeatures.cs @@ -39,7 +39,7 @@ public class CustomerSessionComponentsPaymentElementFeatures : StripeEntity /// Determines the max number of saved payment methods for the Payment Element to display. - /// This parameter defaults to 3. + /// This parameter defaults to 3. The maximum redisplay limit is 10. /// [JsonProperty("payment_method_redisplay_limit")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/Dispute.cs b/src/Stripe.net/Entities/Disputes/Dispute.cs index 049d0001f2..e5cc784335 100644 --- a/src/Stripe.net/Entities/Disputes/Dispute.cs +++ b/src/Stripe.net/Entities/Disputes/Dispute.cs @@ -124,6 +124,7 @@ public Charge Charge /// /// List of eligibility types that are included in enhanced_evidence. + /// One of: visa_compelling_evidence_3, or visa_compliance. /// [JsonProperty("enhanced_eligibility_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs index 23b3d655ae..8ebb20eb21 100644 --- a/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Disputes/DisputePaymentMethodDetailsCard.cs @@ -22,7 +22,7 @@ public class DisputePaymentMethodDetailsCard : StripeEntity /// The type of dispute opened. Different case types may have varying fees and financial /// impact. - /// One of: chargeback, or inquiry. + /// One of: chargeback, compliance, or inquiry. /// [JsonProperty("case_type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Events/Event.cs b/src/Stripe.net/Entities/Events/Event.cs index 4c59cfdf22..7fdbc54b2e 100644 --- a/src/Stripe.net/Entities/Events/Event.cs +++ b/src/Stripe.net/Entities/Events/Event.cs @@ -72,8 +72,10 @@ public class Event : StripeEntity, IHasId, IHasObject public string Account { get; set; } /// - /// The Stripe API version used to render data. This property is populated only for - /// events on or after October 31, 2014. + /// The Stripe API version used to render data when the event was created. The + /// contents of data never change, so this value remains static regardless of the API + /// version currently in use. This property is populated only for events created on or after + /// October 31, 2014. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER @@ -235,14 +237,14 @@ public class Event : StripeEntity, IHasId, IHasObject /// subscription_schedule.expiring, subscription_schedule.released, /// subscription_schedule.updated, tax.settings.updated, /// tax_rate.created, tax_rate.updated, terminal.reader.action_failed, - /// terminal.reader.action_succeeded, test_helpers.test_clock.advancing, - /// test_helpers.test_clock.created, test_helpers.test_clock.deleted, - /// test_helpers.test_clock.internal_failure, test_helpers.test_clock.ready, - /// topup.canceled, topup.created, topup.failed, topup.reversed, - /// topup.succeeded, transfer.created, transfer.reversed, - /// transfer.updated, treasury.credit_reversal.created, - /// treasury.credit_reversal.posted, treasury.debit_reversal.completed, - /// treasury.debit_reversal.created, + /// terminal.reader.action_succeeded, terminal.reader.action_updated, + /// test_helpers.test_clock.advancing, test_helpers.test_clock.created, + /// test_helpers.test_clock.deleted, test_helpers.test_clock.internal_failure, + /// test_helpers.test_clock.ready, topup.canceled, topup.created, + /// topup.failed, topup.reversed, topup.succeeded, + /// transfer.created, transfer.reversed, transfer.updated, + /// treasury.credit_reversal.created, treasury.credit_reversal.posted, + /// treasury.debit_reversal.completed, treasury.debit_reversal.created, /// treasury.debit_reversal.initial_credit_granted, /// treasury.financial_account.closed, treasury.financial_account.created, /// treasury.financial_account.features_status_updated, diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs index c0db507aaa..e251baa366 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs @@ -198,6 +198,12 @@ public VerificationReport LastVerificationReport #endif public string RelatedCustomer { get; set; } + [JsonProperty("related_person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_person")] +#endif + public VerificationSessionRelatedPerson RelatedPerson { get; set; } + /// /// Status of this VerificationSession. Learn more about the lifecycle diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs index f34588e9f7..4210f007be 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionOptions.cs @@ -26,6 +26,12 @@ public class VerificationSessionOptions : StripeEntity + { + /// + /// Strictness of the DOB matching policy to apply. + /// One of: none, or similar. + /// + [JsonProperty("dob")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("dob")] +#endif + public string Dob { get; set; } + + /// + /// Strictness of the name matching policy to apply. + /// One of: none, or similar. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRelatedPerson.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRelatedPerson.cs new file mode 100644 index 0000000000..930745e099 --- /dev/null +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSessionRelatedPerson.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Identity +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class VerificationSessionRelatedPerson : StripeEntity + { + /// + /// Token referencing the associated Account of the related Person resource. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// Token referencing the related Person resource. + /// + [JsonProperty("person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person")] +#endif + public string Person { get; set; } + } +} diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs index 4927bc4d9c..7b12b2780a 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs @@ -12,16 +12,15 @@ namespace Stripe /// /// Invoice Items represent the component lines of an invoice. An invoice item is added to an - /// invoice by creating or updating it with an invoice field, at which point it will - /// be included as an invoice line - /// item within invoice. When you create an invoice item + /// with an invoice field, it is attached to the specified invoice and included as an invoice line item within invoice.lines. /// /// Invoice Items can be created before you are ready to actually send the invoice. This can /// be particularly useful when combined with a subscription. Sometimes you want to - /// add a charge or credit to a customer, but actually charge or credit the customer’s card + /// add a charge or credit to a customer, but actually charge or credit the customer's card /// only at the end of a regular billing cycle. This is useful for combining several charges /// (to minimize per-transaction fees), or for having Stripe tabulate your usage-based /// billing totals. diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs index 828590b5f9..35fc36adfc 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettings.cs @@ -38,13 +38,13 @@ public class InvoicePaymentSettings : StripeEntity /// settings. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, customer_balance, eps, - /// fpx, giropay, grabpay, ideal, jp_credit_transfer, - /// kakao_pay, klarna, konbini, kr_card, link, - /// multibanco, naver_pay, nz_bank_account, p24, payco, - /// paynow, paypal, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// us_bank_account, or wechat_pay. + /// boleto, card, cashapp, crypto, customer_balance, + /// eps, fpx, giropay, grabpay, ideal, + /// jp_credit_transfer, kakao_pay, klarna, konbini, + /// kr_card, link, multibanco, naver_pay, + /// nz_bank_account, p24, payco, paynow, paypal, + /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, + /// sofort, swish, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs index 786656f036..340101a46f 100644 --- a/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Mandates/MandatePaymentMethodDetails.cs @@ -50,6 +50,12 @@ public class MandatePaymentMethodDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs index d2b55aa3f6..b9f251aae4 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs @@ -98,6 +98,12 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity - /// Installment details for this payment (Mexico only). + /// Installment details for this payment. /// /// For more information, see the installments integration guide. diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs index de3110f078..4f1761a643 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.cs @@ -29,7 +29,8 @@ public class PaymentIntentPaymentMethodOptionsCardInstallmentsPlan : StripeEntit public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCrypto.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCrypto.cs new file mode 100644 index 0000000000..0978b21ac6 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsCrypto.cs @@ -0,0 +1,37 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsCrypto : StripeEntity + { + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs index ddf6088eb2..402284c449 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarna.cs @@ -45,6 +45,7 @@ public class PaymentIntentPaymentMethodOptionsKlarna : StripeEntitysetup_future_usage to help you comply /// with regional legislation and network rules, such as SCA. + /// One of: none, off_session, or on_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 9ffaaa1939..89812c8fe7 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -162,6 +162,12 @@ public class PaymentMethod : StripeEntity, IHasId, IHasMetadata, #endif public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentMethodCrypto Crypto { get; set; } + #region Expandable Customer /// @@ -430,12 +436,12 @@ public Customer Customer /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// card_present, cashapp, customer_balance, eps, fpx, - /// giropay, grabpay, ideal, interac_present, kakao_pay, - /// klarna, konbini, kr_card, link, mobilepay, - /// multibanco, naver_pay, nz_bank_account, oxxo, p24, - /// pay_by_bank, payco, paynow, paypal, pix, - /// promptpay, revolut_pay, samsung_pay, satispay, + /// card_present, cashapp, crypto, customer_balance, eps, + /// fpx, giropay, grabpay, ideal, interac_present, + /// kakao_pay, klarna, konbini, kr_card, link, + /// mobilepay, multibanco, naver_pay, nz_bank_account, + /// oxxo, p24, pay_by_bank, payco, paynow, paypal, + /// pix, promptpay, revolut_pay, samsung_pay, satispay, /// sepa_debit, sofort, swish, twint, us_bank_account, /// wechat_pay, or zip. /// diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs index ddcf678b11..c83a691902 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent.cs @@ -233,7 +233,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresent : Str public bool OvercaptureSupported { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs index 7854d1fd9c..a03a0b91f2 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceipt.cs @@ -19,7 +19,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string AccountType { get; set; } /// - /// EMV tag 9F26, cryptogram generated by the integrated circuit chip. + /// The Application Cryptogram, a unique value generated by the card to authenticate the + /// transaction with issuers. /// [JsonProperty("application_cryptogram")] #if NET6_0_OR_GREATER @@ -28,7 +29,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string ApplicationCryptogram { get; set; } /// - /// Mnenomic of the Application Identifier. + /// The Application Identifier (AID) on the card used to determine which networks are + /// eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the + /// card's chip. /// [JsonProperty("application_preferred_name")] #if NET6_0_OR_GREATER @@ -66,7 +69,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string CardholderVerificationMethod { get; set; } /// - /// EMV tag 84. Similar to the application identifier stored on the integrated circuit chip. + /// Similar to the application_preferred_name, identifying the applications (AIDs) available + /// on the card. Referenced from EMV tag 84. /// [JsonProperty("dedicated_file_name")] #if NET6_0_OR_GREATER @@ -75,7 +79,9 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string DedicatedFileName { get; set; } /// - /// The outcome of a series of EMV functions performed by the card reader. + /// A 5-byte string that records the checks and validations that occur between the card and + /// the terminal. These checks determine how the terminal processes the transaction and what + /// risk tolerance is acceptable. Referenced from EMV Tag 95. /// [JsonProperty("terminal_verification_results")] #if NET6_0_OR_GREATER @@ -84,7 +90,8 @@ public class PaymentMethodCardGeneratedFromPaymentMethodDetailsCardPresentReceip public string TerminalVerificationResults { get; set; } /// - /// An indication of various EMV functions performed during the transaction. + /// An indication of which steps were completed during the card read process. Referenced + /// from EMV Tag 9B. /// [JsonProperty("transaction_status_information")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs index c790fff811..1e0d1571b6 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCardPresent.cs @@ -155,7 +155,9 @@ public class PaymentMethodCardPresent : StripeEntity public PaymentMethodCardPresentOffline Offline { get; set; } /// - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCrypto.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCrypto.cs new file mode 100644 index 0000000000..6514c5d549 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodCrypto.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodCrypto : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs index 5ece22fe11..a122f28ec3 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodIdeal.cs @@ -10,13 +10,13 @@ public class PaymentMethodIdeal : StripeEntity { /// /// The customer's bank, if provided. Can be one of abn_amro, asn_bank, - /// bunq, handelsbanken, ing, knab, moneyou, n26, - /// nn, rabobank, regiobank, revolut, sns_bank, - /// triodos_bank, van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// bunq, buut, handelsbanken, ing, knab, moneyou, + /// n26, nn, rabobank, regiobank, revolut, + /// sns_bank, triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -27,9 +27,9 @@ public class PaymentMethodIdeal : StripeEntity /// /// The Bank Identifier Code of the customer's bank, if the bank was provided. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs index ded445fbb8..f905631c8f 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodInteracPresent.cs @@ -134,7 +134,9 @@ public class PaymentMethodInteracPresent : StripeEntity - /// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip. + /// The languages that the issuing bank recommends using for localizing any customer-facing + /// text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's + /// chip. /// [JsonProperty("preferred_locales")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs index 8e56e01ac2..3188379b53 100644 --- a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs +++ b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionData.cs @@ -11,6 +11,15 @@ namespace Stripe public class QuoteSubscriptionData : StripeEntity, IHasMetadata { + /// + /// The billing mode of the quote. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public QuoteSubscriptionDataBillingMode BillingMode { get; set; } + /// /// The subscription's description, meant to be displayable to the customer. Use this field /// to optionally store an explanation of the subscription for rendering in Stripe surfaces diff --git a/src/Stripe.net/Entities/Quotes/QuoteSubscriptionDataBillingMode.cs b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionDataBillingMode.cs new file mode 100644 index 0000000000..7ae93a26e5 --- /dev/null +++ b/src/Stripe.net/Entities/Quotes/QuoteSubscriptionDataBillingMode.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class QuoteSubscriptionDataBillingMode : StripeEntity + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs index b5cb955132..1f63ba87ce 100644 --- a/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs +++ b/src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsIdeal.cs @@ -14,13 +14,13 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity /// The customer's bank. Can be one of abn_amro, asn_bank, bunq, + /// buut, handelsbanken, ing, knab, moneyou, n26, + /// nn, rabobank, regiobank, revolut, sns_bank, + /// triodos_bank, van_lanschot, or yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, /// handelsbanken, ing, knab, moneyou, n26, nn, /// rabobank, regiobank, revolut, sns_bank, triodos_bank, /// van_lanschot, or yoursafe. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER @@ -31,9 +31,9 @@ public class SetupAttemptPaymentMethodDetailsIdeal : StripeEntity /// The Bank Identifier Code of the customer's bank. /// One of: ABNANL2A, ASNBNL21, BITSNL2A, BUNQNL2A, - /// FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, MOYONL21, - /// NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, REVOIE23, - /// REVOLT21, SNSBNL2A, or TRIONL2U. + /// BUUTNL2A, FVLBNL22, HANDNL2A, INGBNL2A, KNABNL2H, + /// MOYONL21, NNBANL2G, NTSBDEB1, RABONL2U, RBRBNL21, + /// REVOIE23, REVOLT21, SNSBNL2A, or TRIONL2U. /// [JsonProperty("bic")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs index 5a44fe5e1b..8ad9809f2d 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntent.cs @@ -473,6 +473,8 @@ public PaymentMethod PaymentMethod /// /// The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. + /// A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs index f64347a85f..5b6f3f98e8 100644 --- a/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/SetupIntents/SetupIntentPaymentMethodOptions.cs @@ -38,6 +38,12 @@ public class SetupIntentPaymentMethodOptions : StripeEntity + { + /// + /// The currency of the setup intent. Three letter ISO currency code. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// Preferred locale of the Klarna checkout page that the customer is redirected to. + /// + [JsonProperty("preferred_locale")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preferred_locale")] +#endif + public string PreferredLocale { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs index 1f8f3edd6e..1ec5fa67cb 100644 --- a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs @@ -81,6 +81,15 @@ public Application Application internal ExpandableField InternalApplication { get; set; } #endregion + /// + /// The billing mode of the subscription. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public SubscriptionScheduleBillingMode BillingMode { get; set; } + /// /// Time at which the subscription schedule was canceled. Measured in seconds since the Unix /// epoch. diff --git a/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleBillingMode.cs b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleBillingMode.cs new file mode 100644 index 0000000000..e19d7841cd --- /dev/null +++ b/src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleBillingMode.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionScheduleBillingMode : StripeEntity + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// Details on when the current billing_mode was adopted. + /// + [JsonProperty("updated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("updated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime UpdatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/Subscription.cs b/src/Stripe.net/Entities/Subscriptions/Subscription.cs index b7b8b1ab08..c7603d98b0 100644 --- a/src/Stripe.net/Entities/Subscriptions/Subscription.cs +++ b/src/Stripe.net/Entities/Subscriptions/Subscription.cs @@ -121,6 +121,15 @@ public Application Application #endif public SubscriptionBillingCycleAnchorConfig BillingCycleAnchorConfig { get; set; } + /// + /// The billing mode of the subscription. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public SubscriptionBillingMode BillingMode { get; set; } + /// /// Define thresholds at which an invoice will be sent, and the subscription advanced to a /// new billing period. @@ -144,8 +153,7 @@ public Application Application /// /// Whether this subscription will (if status=active) or did (if - /// status=canceled) cancel at the end of the current billing period. This field will - /// be removed in a future API version. Please use cancel_at instead. + /// status=canceled) cancel at the end of the current billing period. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER @@ -842,8 +850,7 @@ public TestHelpers.TestClock TestClock public SubscriptionTrialSettings TrialSettings { get; set; } /// - /// If the subscription has a trial, the beginning of that trial. For subsequent trials, - /// this date remains as the start of the first ever trial on the subscription. + /// If the subscription has a trial, the beginning of that trial. /// [JsonProperty("trial_start")] [JsonConverter(typeof(UnixDateTimeConverter))] diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingMode.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingMode.cs new file mode 100644 index 0000000000..36a022e7d8 --- /dev/null +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionBillingMode.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionBillingMode : StripeEntity + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + + /// + /// Details on when the current billing_mode was adopted. + /// + [JsonProperty("updated_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("updated_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] +#endif + public DateTime UpdatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs index 42563b0918..9ea34c42e3 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettings.cs @@ -28,13 +28,13 @@ public class SubscriptionPaymentSettings : StripeEntity. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, customer_balance, eps, - /// fpx, giropay, grabpay, ideal, jp_credit_transfer, - /// kakao_pay, klarna, konbini, kr_card, link, - /// multibanco, naver_pay, nz_bank_account, p24, payco, - /// paynow, paypal, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// us_bank_account, or wechat_pay. + /// boleto, card, cashapp, crypto, customer_balance, + /// eps, fpx, giropay, grabpay, ideal, + /// jp_credit_transfer, kakao_pay, klarna, konbini, + /// kr_card, link, multibanco, naver_pay, + /// nz_bank_account, p24, payco, paynow, paypal, + /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, + /// sofort, swish, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs index b003607222..f34e658506 100644 --- a/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs +++ b/src/Stripe.net/Entities/Tax/Registrations/RegistrationCountryOptions.cs @@ -548,6 +548,12 @@ public class RegistrationCountryOptions : StripeEntity + { + /// + /// Type of registration in country. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs index 25bb6ea534..94505aba78 100644 --- a/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs +++ b/src/Stripe.net/Entities/Terminal/Configurations/Configuration.cs @@ -8,7 +8,9 @@ namespace Stripe.Terminal /// /// A Configurations object represents how features should be configured for terminal - /// readers. + /// readers. For information about how to use it, see the Terminal + /// configurations documentation. /// public class Configuration : StripeEntity, IHasId, IHasObject { diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs index 5d15d6de32..20a4176736 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderAction.cs @@ -17,6 +17,24 @@ public class ReaderAction : StripeEntity #endif public ReaderActionCollectInputs CollectInputs { get; set; } + /// + /// Represents a reader action to collect a payment method. + /// + [JsonProperty("collect_payment_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collect_payment_method")] +#endif + public ReaderActionCollectPaymentMethod CollectPaymentMethod { get; set; } + + /// + /// Represents a reader action to confirm a payment. + /// + [JsonProperty("confirm_payment_intent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("confirm_payment_intent")] +#endif + public ReaderActionConfirmPaymentIntent ConfirmPaymentIntent { get; set; } + /// /// Failure code, only set if status is failed. /// @@ -83,7 +101,8 @@ public class ReaderAction : StripeEntity /// /// Type of action performed by the reader. - /// One of: collect_inputs, process_payment_intent, + /// One of: collect_inputs, collect_payment_method, + /// confirm_payment_intent, process_payment_intent, /// process_setup_intent, refund_payment, or set_reader_display. /// [JsonProperty("type")] diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs new file mode 100644 index 0000000000..5c1575c8f8 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs @@ -0,0 +1,81 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + +#if NET6_0_OR_GREATER + [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] +#endif + public class ReaderActionCollectPaymentMethod : StripeEntity + { + /// + /// Represents a per-transaction override of a reader configuration. + /// + [JsonProperty("collect_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collect_config")] +#endif + public ReaderActionCollectPaymentMethodCollectConfig CollectConfig { get; set; } + + #region Expandable PaymentIntent + + /// + /// (ID of the PaymentIntent) + /// Most recent PaymentIntent processed by the reader. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public string PaymentIntentId + { + get => this.InternalPaymentIntent?.Id; + set => this.InternalPaymentIntent = SetExpandableFieldId(value, this.InternalPaymentIntent); + } + + /// + /// (Expanded) + /// Most recent PaymentIntent processed by the reader. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public PaymentIntent PaymentIntent + { + get => this.InternalPaymentIntent?.ExpandedObject; + set => this.InternalPaymentIntent = SetExpandableFieldObject(value, this.InternalPaymentIntent); + } + + [JsonProperty("payment_intent")] + [JsonConverter(typeof(ExpandableFieldConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_intent")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] +#endif + internal ExpandableField InternalPaymentIntent { get; set; } + #endregion + + /// + /// PaymentMethod objects represent your customer's payment instruments. You can use them + /// with PaymentIntents to + /// collect payments or save them to Customer objects to store instrument details for future + /// payments. + /// + /// Related guides: Payment + /// Methods and More + /// Payment Scenarios. + /// + [JsonProperty("payment_method")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_method")] +#endif + public PaymentMethod PaymentMethod { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs new file mode 100644 index 0000000000..e70bb2b945 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfig.cs @@ -0,0 +1,38 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderActionCollectPaymentMethodCollectConfig : StripeEntity + { + /// + /// Enable customer-initiated cancellation when processing this payment. + /// + [JsonProperty("enable_customer_cancellation")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enable_customer_cancellation")] +#endif + public bool EnableCustomerCancellation { get; set; } + + /// + /// Override showing a tipping selection screen on this transaction. + /// + [JsonProperty("skip_tipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("skip_tipping")] +#endif + public bool SkipTipping { get; set; } + + /// + /// Represents a per-transaction tipping configuration. + /// + [JsonProperty("tipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tipping")] +#endif + public ReaderActionCollectPaymentMethodCollectConfigTipping Tipping { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfigTipping.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfigTipping.cs new file mode 100644 index 0000000000..31056b8cad --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethodCollectConfigTipping.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderActionCollectPaymentMethodCollectConfigTipping : StripeEntity + { + /// + /// Amount used to calculate tip suggestions on tipping selection screen for this + /// transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents + /// to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). + /// + [JsonProperty("amount_eligible")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_eligible")] +#endif + public long AmountEligible { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs new file mode 100644 index 0000000000..3fcef6ff6b --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs @@ -0,0 +1,65 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + +#if NET6_0_OR_GREATER + [STJS.JsonConverter(typeof(STJMemberSerializationOptIn))] +#endif + public class ReaderActionConfirmPaymentIntent : StripeEntity + { + /// + /// Represents a per-transaction override of a reader configuration. + /// + [JsonProperty("confirm_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("confirm_config")] +#endif + public ReaderActionConfirmPaymentIntentConfirmConfig ConfirmConfig { get; set; } + + #region Expandable PaymentIntent + + /// + /// (ID of the PaymentIntent) + /// Most recent PaymentIntent processed by the reader. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public string PaymentIntentId + { + get => this.InternalPaymentIntent?.Id; + set => this.InternalPaymentIntent = SetExpandableFieldId(value, this.InternalPaymentIntent); + } + + /// + /// (Expanded) + /// Most recent PaymentIntent processed by the reader. + /// + /// For more information, see the expand documentation. + /// + [JsonIgnore] +#if NET6_0_OR_GREATER + [STJS.JsonIgnore] +#endif + public PaymentIntent PaymentIntent + { + get => this.InternalPaymentIntent?.ExpandedObject; + set => this.InternalPaymentIntent = SetExpandableFieldObject(value, this.InternalPaymentIntent); + } + + [JsonProperty("payment_intent")] + [JsonConverter(typeof(ExpandableFieldConverter))] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_intent")] + [STJS.JsonConverter(typeof(STJExpandableFieldConverter))] +#endif + internal ExpandableField InternalPaymentIntent { get; set; } + #endregion + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs new file mode 100644 index 0000000000..d15b6d4ea9 --- /dev/null +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntentConfirmConfig.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderActionConfirmPaymentIntentConfirmConfig : StripeEntity + { + /// + /// If the customer doesn't abandon authenticating the payment, they're redirected to this + /// URL after completion. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs index 17bb3a1c72..3641943ba5 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntentProcessConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionProcessPaymentIntentProcessConfig : StripeEntity { /// - /// Enable customer initiated cancellation when processing this payment. + /// Enable customer-initiated cancellation when processing this payment. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER @@ -18,8 +18,8 @@ public class ReaderActionProcessPaymentIntentProcessConfig : StripeEntity - /// If the customer does not abandon authenticating the payment, they will be redirected to - /// this specified URL after completion. + /// If the customer doesn't abandon authenticating the payment, they're redirected to this + /// URL after completion. /// [JsonProperty("return_url")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs index f8251ad7cc..1b0027d0f2 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessSetupIntentProcessConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionProcessSetupIntentProcessConfig : StripeEntity { /// - /// Enable customer initiated cancellation when processing this SetupIntent. + /// Enable customer-initiated cancellation when processing this SetupIntent. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs index a461ecdaf6..0cc64f3265 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPaymentRefundPaymentConfig.cs @@ -9,7 +9,7 @@ namespace Stripe.Terminal public class ReaderActionRefundPaymentRefundPaymentConfig : StripeEntity { /// - /// Enable customer initiated cancellation when refunding this payment. + /// Enable customer-initiated cancellation when refunding this payment. /// [JsonProperty("enable_customer_cancellation")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs b/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs index 1b8f4bdae3..4642c65c7e 100644 --- a/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs +++ b/src/Stripe.net/Events/V2CoreEventDestinationPingEvent.cs @@ -8,7 +8,7 @@ namespace Stripe.Events #endif /// - /// A ping event used to test the connection to an event destination. + /// A ping event used to test the connection to an EventDestination. /// public class V2CoreEventDestinationPingEvent : V2.Event { diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs index 1219065d66..a3376b1f9b 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountManagementFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountManagementFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountManagementFeaturesOptions : INestedO public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs index 85c35e1b3f..c676cbc8ea 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsAccountOnboardingFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsAccountOnboardingFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsAccountOnboardingFeaturesOptions : INestedO public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs index b81df6af0d..6b27c749f1 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsBalancesFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? EditPayoutSchedule { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? ExternalAccountCollection { get; set; } /// - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsBalancesFeaturesOptions : INestedOptions public bool? InstantPayouts { get; set; } /// - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs index a4c9714bce..09fee7790a 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsDisputesListFeaturesOptions.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption public bool? CapturePayments { get; set; } /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsDisputesListFeaturesOptions : INestedOption public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs index 583cb57550..8b71e15a26 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsFinancialAccountFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsFinancialAccountFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,7 +22,10 @@ public class AccountSessionComponentsFinancialAccountFeaturesOptions : INestedOp public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow external accounts to be linked for money transfer. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs index dd3486d9ab..78dbb2faa3 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsIssuingCardsListFeaturesOptions.cs @@ -36,9 +36,11 @@ public class AccountSessionComponentsIssuingCardsListFeaturesOptions : INestedOp public bool? CardholderManagement { get; set; } /// - /// Disables Stripe user authentication for this embedded component. This feature can only - /// be false for accounts where you’re responsible for collecting updated information when - /// requirements are due or change, like custom accounts. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs index d4ed54cd98..ad54207f92 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsNotificationBannerFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsNotificationBannerFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,11 +22,10 @@ public class AccountSessionComponentsNotificationBannerFeaturesOptions : INested public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs index b1dd8dff09..077eba9bc4 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsOptions.cs @@ -9,7 +9,9 @@ namespace Stripe public class AccountSessionComponentsOptions : INestedOptions { /// - /// Configuration for the account management embedded component. + /// Configuration for the account + /// management embedded component. /// [JsonProperty("account_management")] #if NET6_0_OR_GREATER @@ -18,7 +20,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsAccountManagementOptions AccountManagement { get; set; } /// - /// Configuration for the account onboarding embedded component. + /// Configuration for the account + /// onboarding embedded component. /// [JsonProperty("account_onboarding")] #if NET6_0_OR_GREATER @@ -27,7 +31,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsAccountOnboardingOptions AccountOnboarding { get; set; } /// - /// Configuration for the balances embedded component. + /// Configuration for the balances + /// embedded component. /// [JsonProperty("balances")] #if NET6_0_OR_GREATER @@ -36,7 +42,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsBalancesOptions Balances { get; set; } /// - /// Configuration for the disputes list embedded component. + /// Configuration for the disputes + /// list embedded component. /// [JsonProperty("disputes_list")] #if NET6_0_OR_GREATER @@ -45,7 +53,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsDisputesListOptions DisputesList { get; set; } /// - /// Configuration for the documents embedded component. + /// Configuration for the documents + /// embedded component. /// [JsonProperty("documents")] #if NET6_0_OR_GREATER @@ -54,7 +64,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsDocumentsOptions Documents { get; set; } /// - /// Configuration for the financial account embedded component. + /// Configuration for the financial + /// account embedded component. /// [JsonProperty("financial_account")] #if NET6_0_OR_GREATER @@ -63,7 +75,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsFinancialAccountOptions FinancialAccount { get; set; } /// - /// Configuration for the financial account transactions embedded component. + /// Configuration for the financial + /// account transactions embedded component. /// [JsonProperty("financial_account_transactions")] #if NET6_0_OR_GREATER @@ -72,7 +86,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsFinancialAccountTransactionsOptions FinancialAccountTransactions { get; set; } /// - /// Configuration for the issuing card embedded component. + /// Configuration for the issuing + /// card embedded component. /// [JsonProperty("issuing_card")] #if NET6_0_OR_GREATER @@ -81,7 +97,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsIssuingCardOptions IssuingCard { get; set; } /// - /// Configuration for the issuing cards list embedded component. + /// Configuration for the issuing + /// cards list embedded component. /// [JsonProperty("issuing_cards_list")] #if NET6_0_OR_GREATER @@ -90,7 +108,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsIssuingCardsListOptions IssuingCardsList { get; set; } /// - /// Configuration for the notification banner embedded component. + /// Configuration for the notification + /// banner embedded component. /// [JsonProperty("notification_banner")] #if NET6_0_OR_GREATER @@ -99,7 +119,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsNotificationBannerOptions NotificationBanner { get; set; } /// - /// Configuration for the payment details embedded component. + /// Configuration for the payment + /// details embedded component. /// [JsonProperty("payment_details")] #if NET6_0_OR_GREATER @@ -108,7 +130,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentDetailsOptions PaymentDetails { get; set; } /// - /// Configuration for the payment disputes embedded component. + /// Configuration for the payment + /// disputes embedded component. /// [JsonProperty("payment_disputes")] #if NET6_0_OR_GREATER @@ -117,7 +141,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentDisputesOptions PaymentDisputes { get; set; } /// - /// Configuration for the payments embedded component. + /// Configuration for the payments + /// embedded component. /// [JsonProperty("payments")] #if NET6_0_OR_GREATER @@ -126,7 +152,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPaymentsOptions Payments { get; set; } /// - /// Configuration for the payouts embedded component. + /// Configuration for the payouts + /// embedded component. /// [JsonProperty("payouts")] #if NET6_0_OR_GREATER @@ -135,7 +163,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPayoutsOptions Payouts { get; set; } /// - /// Configuration for the payouts list embedded component. + /// Configuration for the payouts + /// list embedded component. /// [JsonProperty("payouts_list")] #if NET6_0_OR_GREATER @@ -144,7 +174,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsPayoutsListOptions PayoutsList { get; set; } /// - /// Configuration for the tax registrations embedded component. + /// Configuration for the tax + /// registrations embedded component. /// [JsonProperty("tax_registrations")] #if NET6_0_OR_GREATER @@ -153,7 +185,9 @@ public class AccountSessionComponentsOptions : INestedOptions public AccountSessionComponentsTaxRegistrationsOptions TaxRegistrations { get; set; } /// - /// Configuration for the tax settings embedded component. + /// Configuration for the tax + /// settings embedded component. /// [JsonProperty("tax_settings")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs index 3a60210fd0..ede302e850 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDetailsFeaturesOptions.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti public bool? CapturePayments { get; set; } /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentDetailsFeaturesOptions : INestedOpti public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs index a57e14b0ff..224d4d69a5 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentDisputesFeaturesOptions.cs @@ -9,8 +9,8 @@ namespace Stripe public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOptions { /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -19,7 +19,7 @@ public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOpt public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentDisputesFeaturesOptions : INestedOpt public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs index e6d3bf810f..b8f4278c0c 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPaymentsFeaturesOptions.cs @@ -19,8 +19,8 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions public bool? CapturePayments { get; set; } /// - /// Whether to allow connected accounts to manage destination charges that are created on - /// behalf of them. This is false by default. + /// Whether connected accounts can manage destination charges that are created on behalf of + /// them. This is false by default. /// [JsonProperty("destination_on_behalf_of_charge_management")] #if NET6_0_OR_GREATER @@ -29,7 +29,7 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions public bool? DestinationOnBehalfOfChargeManagement { get; set; } /// - /// Whether to allow responding to disputes, including submitting evidence and accepting + /// Whether responding to disputes is enabled, including submitting evidence and accepting /// disputes. This is true by default. /// [JsonProperty("dispute_management")] @@ -39,7 +39,7 @@ public class AccountSessionComponentsPaymentsFeaturesOptions : INestedOptions public bool? DisputeManagement { get; set; } /// - /// Whether to allow sending refunds. This is true by default. + /// Whether sending refunds is enabled. This is true by default. /// [JsonProperty("refund_management")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs index c4f25cb9bf..e789d9802b 100644 --- a/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs +++ b/src/Stripe.net/Services/AccountSessions/AccountSessionComponentsPayoutsFeaturesOptions.cs @@ -9,11 +9,11 @@ namespace Stripe public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions { /// - /// Disables Stripe user authentication for this embedded component. This value can only be - /// true for accounts where controller.requirement_collection is application. - /// The default value is the opposite of the external_account_collection value. For - /// example, if you don’t set external_account_collection, it defaults to true and - /// disable_stripe_user_authentication defaults to false. + /// Whether Stripe user authentication is disabled. This value can only be true for + /// accounts where controller.requirement_collection is application for the + /// account. The default value is the opposite of the external_account_collection + /// value. For example, if you don't set external_account_collection, it defaults to + /// true and disable_stripe_user_authentication defaults to false. /// [JsonProperty("disable_stripe_user_authentication")] #if NET6_0_OR_GREATER @@ -22,8 +22,9 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? DisableStripeUserAuthentication { get; set; } /// - /// Whether to allow payout schedule to be changed. Default true when Stripe owns - /// Loss Liability, default false otherwise. + /// Whether to allow payout schedule to be changed. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("edit_payout_schedule")] #if NET6_0_OR_GREATER @@ -32,11 +33,10 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? EditPayoutSchedule { get; set; } /// - /// Whether to allow platforms to control bank account collection for their connected - /// accounts. This feature can only be false for accounts where you’re responsible for - /// collecting updated information when requirements are due or change, like custom - /// accounts. Otherwise, bank account collection is determined by compliance requirements. - /// The default value for this feature is true. + /// Whether external account collection is enabled. This feature can only be false + /// for accounts where you’re responsible for collecting updated information when + /// requirements are due or change, like Custom accounts. The default value for this feature + /// is true. /// [JsonProperty("external_account_collection")] #if NET6_0_OR_GREATER @@ -45,8 +45,9 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? ExternalAccountCollection { get; set; } /// - /// Whether to allow creation of instant payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of instant payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("instant_payouts")] #if NET6_0_OR_GREATER @@ -55,8 +56,9 @@ public class AccountSessionComponentsPayoutsFeaturesOptions : INestedOptions public bool? InstantPayouts { get; set; } /// - /// Whether to allow creation of standard payouts. Default true when Stripe owns Loss - /// Liability, default false otherwise. + /// Whether to allow creation of standard payouts. Defaults to true when + /// controller.losses.payments is set to stripe for the account, otherwise + /// false. /// [JsonProperty("standard_payouts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesCryptoPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesCryptoPaymentsOptions.cs new file mode 100644 index 0000000000..0359b357ce --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesCryptoPaymentsOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountCapabilitiesCryptoPaymentsOptions : INestedOptions + { + /// + /// Passing true requests the capability for the account, if it is not already requested. A + /// requested capability may not immediately become active. Any requirements to activate the + /// capability are returned in the requirements arrays. + /// + [JsonProperty("requested")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("requested")] +#endif + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs index 94158cb461..a0cbb199cf 100644 --- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs @@ -152,6 +152,15 @@ public class AccountCapabilitiesOptions : INestedOptions #endif public AccountCapabilitiesCashappPaymentsOptions CashappPayments { get; set; } + /// + /// The crypto_payments capability. + /// + [JsonProperty("crypto_payments")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto_payments")] +#endif + public AccountCapabilitiesCryptoPaymentsOptions CryptoPayments { get; set; } + /// /// The eps_payments capability. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs index 1362a71745..27b2840094 100644 --- a/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCompanyOptions.cs @@ -163,6 +163,9 @@ public class AccountCompanyOptions : INestedOptions #endif public string Phone { get; set; } + /// + /// When the business was incorporated or registered. + /// [JsonProperty("registration_date")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("registration_date")] diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs index 016acde5c8..d4709f3477 100644 --- a/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsOptions.cs @@ -68,6 +68,15 @@ public class AccountDocumentsOptions : INestedOptions #endif public AccountDocumentsCompanyTaxIdVerificationOptions CompanyTaxIdVerification { get; set; } + /// + /// One or more documents that demonstrate proof of address. + /// + [JsonProperty("proof_of_address")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("proof_of_address")] +#endif + public AccountDocumentsProofOfAddressOptions ProofOfAddress { get; set; } + /// /// One or more documents showing the company’s proof of registration with the national /// business registry. diff --git a/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs new file mode 100644 index 0000000000..8f17234612 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountDocumentsProofOfAddressOptions.cs @@ -0,0 +1,23 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class AccountDocumentsProofOfAddressOptions : INestedOptions + { + /// + /// One or more document ids returned by a file upload with a purpose + /// value of account_requirement. + /// + [JsonProperty("files")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("files")] +#endif + public List Files { get; set; } + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs b/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs index 8e8a387056..956d87dcb2 100644 --- a/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountSettingsPayoutsScheduleOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; #if NET6_0_OR_GREATER @@ -48,6 +49,18 @@ public class AccountSettingsPayoutsScheduleOptions : INestedOptions #endif public long? MonthlyAnchor { get; set; } + /// + /// The days of the month when available funds are paid out, specified as an array of + /// numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the + /// month are instead sent on the last day of a shorter month. Required and applicable only + /// if interval is monthly and monthly_anchor is not set. + /// + [JsonProperty("monthly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("monthly_payout_days")] +#endif + public List MonthlyPayoutDays { get; set; } + /// /// The day of the week when available funds are paid out, specified as monday, /// tuesday, etc. (required and applicable only if interval is weekly.). @@ -59,5 +72,18 @@ public class AccountSettingsPayoutsScheduleOptions : INestedOptions [STJS.JsonPropertyName("weekly_anchor")] #endif public string WeeklyAnchor { get; set; } + + /// + /// The days of the week when available funds are paid out, specified as an array, e.g., + /// [monday, tuesday]. (required and applicable only if interval is + /// weekly and weekly_anchor is not set.). + /// One of: friday, monday, saturday, sunday, thursday, + /// tuesday, or wednesday. + /// + [JsonProperty("weekly_payout_days")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("weekly_payout_days")] +#endif + public List WeeklyPayoutDays { get; set; } } } diff --git a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs index a76f794c49..fe4514694e 100644 --- a/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs +++ b/src/Stripe.net/Services/BillingPortal/Sessions/SessionFlowDataSubscriptionUpdateConfirmOptions.cs @@ -10,8 +10,7 @@ namespace Stripe.BillingPortal public class SessionFlowDataSubscriptionUpdateConfirmOptions : INestedOptions { /// - /// The coupon or promotion code to apply to this subscription update. Currently, only up to - /// one may be specified. + /// The coupon or promotion code to apply to this subscription update. /// [JsonProperty("discounts")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 3abfe8832f..cb77c01181 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -229,7 +229,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// /// A list of items the customer is purchasing. Use this parameter to pass one-time or - /// recurring Prices. + /// recurring Prices. The parameter is + /// required for payment and subscription mode. /// /// For payment mode, there is a maximum of 100 line items, however it is recommended /// to consolidate line items if there are more than a few dozen. @@ -383,13 +384,13 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// grabpay, ideal, kakao_pay, klarna, konbini, - /// kr_card, link, mobilepay, multibanco, naver_pay, - /// oxxo, p24, pay_by_bank, payco, paynow, paypal, - /// pix, promptpay, revolut_pay, samsung_pay, satispay, - /// sepa_debit, sofort, swish, twint, us_bank_account, - /// wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, grabpay, ideal, kakao_pay, klarna, + /// konbini, kr_card, link, mobilepay, multibanco, + /// naver_pay, oxxo, p24, pay_by_bank, payco, + /// paynow, paypal, pix, promptpay, revolut_pay, + /// samsung_pay, satispay, sepa_debit, sofort, swish, + /// twint, us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs index 746998ca22..09a1ccfd8f 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe.Checkout { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -33,5 +34,14 @@ public class SessionPaymentMethodOptionsKlarnaOptions : INestedOptions [STJS.JsonPropertyName("setup_future_usage")] #endif public string SetupFutureUsage { get; set; } + + /// + /// Subscription details if the Checkout Session sets up a future subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } } } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..f283d488d6 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..8d7ac35add --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public SessionPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs new file mode 100644 index 0000000000..156cb202cd --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataBillingModeOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SessionSubscriptionDataBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs index 1a440f826c..e2aa7467d7 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionSubscriptionDataOptions.cs @@ -36,6 +36,15 @@ public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata #endif public DateTime? BillingCycleAnchor { get; set; } + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public SessionSubscriptionDataBillingModeOptions BillingMode { get; set; } + /// /// The tax rates that will apply to any subscription item that does not have /// tax_rates set. Invoices created will have their default_tax_rates diff --git a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs index 13aca05572..c5066e0766 100644 --- a/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs +++ b/src/Stripe.net/Services/CreditNotePreviewLines/CreditNotePreviewLinesListOptions.cs @@ -13,7 +13,8 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata { /// /// The integer amount in cents (or local equivalent) representing the total amount of the - /// credit note. + /// credit note. One of amount, lines, or shipping_cost must be + /// provided. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -65,7 +66,8 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata public string Invoice { get; set; } /// - /// Line items that make up the credit note. + /// Line items that make up the credit note. One of amount, lines, or + /// shipping_cost must be provided. /// [JsonProperty("lines")] #if NET6_0_OR_GREATER @@ -137,7 +139,8 @@ public class CreditNotePreviewLinesListOptions : ListOptions, IHasMetadata /// /// When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is - /// included in the credit note. + /// included in the credit note. One of amount, lines, or shipping_cost + /// must be provided. /// [JsonProperty("shipping_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs index 97acdae83e..51fe4331d8 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNoteCreateOptions.cs @@ -13,7 +13,8 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata { /// /// The integer amount in cents (or local equivalent) representing the total amount of the - /// credit note. + /// credit note. One of amount, lines, or shipping_cost must be + /// provided. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -65,7 +66,8 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata public string Invoice { get; set; } /// - /// Line items that make up the credit note. + /// Line items that make up the credit note. One of amount, lines, or + /// shipping_cost must be provided. /// [JsonProperty("lines")] #if NET6_0_OR_GREATER @@ -137,7 +139,8 @@ public class CreditNoteCreateOptions : BaseOptions, IHasMetadata /// /// When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is - /// included in the credit note. + /// included in the credit note. One of amount, lines, or shipping_cost + /// must be provided. /// [JsonProperty("shipping_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs b/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs index 12867ca7b5..84eced1d3d 100644 --- a/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs +++ b/src/Stripe.net/Services/CreditNotes/CreditNotePreviewOptions.cs @@ -13,7 +13,8 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata { /// /// The integer amount in cents (or local equivalent) representing the total amount of the - /// credit note. + /// credit note. One of amount, lines, or shipping_cost must be + /// provided. /// [JsonProperty("amount")] #if NET6_0_OR_GREATER @@ -65,7 +66,8 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata public string Invoice { get; set; } /// - /// Line items that make up the credit note. + /// Line items that make up the credit note. One of amount, lines, or + /// shipping_cost must be provided. /// [JsonProperty("lines")] #if NET6_0_OR_GREATER @@ -137,7 +139,8 @@ public class CreditNotePreviewOptions : BaseOptions, IHasMetadata /// /// When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is - /// included in the credit note. + /// included in the credit note. One of amount, lines, or shipping_cost + /// must be provided. /// [JsonProperty("shipping_cost")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs index 8ceb514efe..f6500cd2be 100644 --- a/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/CustomerPaymentMethods/CustomerPaymentMethodListOptions.cs @@ -28,13 +28,14 @@ public class CustomerPaymentMethodListOptions : ListOptions /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// grabpay, ideal, kakao_pay, klarna, konbini, - /// kr_card, link, mobilepay, multibanco, naver_pay, - /// nz_bank_account, oxxo, p24, pay_by_bank, payco, - /// paynow, paypal, pix, promptpay, revolut_pay, - /// samsung_pay, satispay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, grabpay, ideal, kakao_pay, klarna, + /// konbini, kr_card, link, mobilepay, multibanco, + /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, pix, promptpay, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs index 0b1978d321..a6f0149ba2 100644 --- a/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs +++ b/src/Stripe.net/Services/CustomerSessions/CustomerSessionComponentsPaymentElementFeaturesOptions.cs @@ -39,7 +39,7 @@ public class CustomerSessionComponentsPaymentElementFeaturesOptions : INestedOpt /// /// Determines the max number of saved payment methods for the Payment Element to display. - /// This parameter defaults to 3. + /// This parameter defaults to 3. The maximum redisplay limit is 10. /// [JsonProperty("payment_method_redisplay_limit")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index 362edd2054..acd10d3925 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -58,6 +58,15 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata #endif public string RelatedCustomer { get; set; } + /// + /// Tokens referencing a Person resource and it's associated account. + /// + [JsonProperty("related_person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("related_person")] +#endif + public VerificationSessionRelatedPersonOptions RelatedPerson { get; set; } + /// /// The URL that the user will be redirected to upon completing the verification flow. /// diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionRelatedPersonOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionRelatedPersonOptions.cs new file mode 100644 index 0000000000..c15deac874 --- /dev/null +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionRelatedPersonOptions.cs @@ -0,0 +1,30 @@ +// File generated from our OpenAPI spec +namespace Stripe.Identity +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class VerificationSessionRelatedPersonOptions : INestedOptions + { + /// + /// A token representing a connected account. If provided, the person parameter is also + /// required and must be associated with the account. + /// + [JsonProperty("account")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("account")] +#endif + public string Account { get; set; } + + /// + /// A token referencing a Person resource that this verification is being used to verify. + /// + [JsonProperty("person")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("person")] +#endif + public string Person { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs index 6a3ca56a84..33b5799ce5 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsOptions.cs @@ -38,13 +38,13 @@ public class InvoicePaymentSettingsOptions : INestedOptions /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, customer_balance, eps, - /// fpx, giropay, grabpay, ideal, jp_credit_transfer, - /// kakao_pay, klarna, konbini, kr_card, link, - /// multibanco, naver_pay, nz_bank_account, p24, payco, - /// paynow, paypal, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// us_bank_account, or wechat_pay. + /// boleto, card, cashapp, crypto, customer_balance, + /// eps, fpx, giropay, grabpay, ideal, + /// jp_credit_transfer, kakao_pay, klarna, konbini, + /// kr_card, link, multibanco, naver_pay, + /// nz_bank_account, p24, payco, paynow, paypal, + /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, + /// sofort, swish, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs index 19031b807d..0bf4ccd510 100644 --- a/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptions.cs @@ -30,7 +30,8 @@ public class InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanOptio public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs new file mode 100644 index 0000000000..ecfef7f8fe --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsBillingModeOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoiceScheduleDetailsBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs index eaee01f597..9b6e0b0066 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceScheduleDetailsOptions.cs @@ -9,6 +9,15 @@ namespace Stripe public class InvoiceScheduleDetailsOptions : INestedOptions { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public InvoiceScheduleDetailsBillingModeOptions BillingMode { get; set; } + /// /// Behavior of the subscription schedule and underlying subscription when it ends. Possible /// values are release or cancel with the default being release. diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs new file mode 100644 index 0000000000..2f425a7e97 --- /dev/null +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsBillingModeOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class InvoiceSubscriptionDetailsBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs index 872112856f..aece062843 100644 --- a/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs +++ b/src/Stripe.net/Services/Invoices/InvoiceSubscriptionDetailsOptions.cs @@ -26,6 +26,15 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions #endif public AnyOf BillingCycleAnchor { get; set; } + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public InvoiceSubscriptionDetailsBillingModeOptions BillingMode { get; set; } + /// /// A timestamp at which the subscription should cancel. If set to a date before the current /// period ends, this will cause a proration if prorations have been enabled using @@ -42,8 +51,7 @@ public class InvoiceSubscriptionDetailsOptions : INestedOptions /// /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. This param will be removed in a - /// future API version. Please use cancel_at instead. + /// (current_period_end). Defaults to false. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index c578841979..8c03c5647c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -117,7 +117,9 @@ public class PaymentIntentConfirmOptions : BaseOptions /// /// The list of payment method types (for example, a card) that this PaymentIntent can use. /// Use automatic_payment_methods to manage payment methods from the Stripe Dashboard. + /// href="https://dashboard.stripe.com/settings/payment_methods">Stripe Dashboard. A + /// list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index 0b86766a6b..212c7dd1d4 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -265,7 +265,8 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata /// The list of payment method types (for example, a card) that this PaymentIntent can use. /// If you don't provide this, Stripe will dynamically show relevant payment methods from /// your payment method - /// settings. + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataCryptoOptions.cs new file mode 100644 index 0000000000..63072eb8fb --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentIntentPaymentMethodDataCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs index f7f37eb1b1..2ad330c343 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataIdealOptions.cs @@ -11,10 +11,10 @@ public class PaymentIntentPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index 05fe62fba7..152d1af0af 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -162,6 +162,16 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat #endif public PaymentIntentPaymentMethodDataCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentIntentPaymentMethodDataCryptoOptions Crypto { get; set; } + /// /// If this is a customer_balance PaymentMethod, this hash contains details about the /// CustomerBalance payment method. @@ -502,9 +512,9 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, cashapp, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, kakao_pay, klarna, konbini, kr_card, - /// link, mobilepay, multibanco, naver_pay, + /// crypto, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, kakao_pay, klarna, konbini, + /// kr_card, link, mobilepay, multibanco, naver_pay, /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, pix, promptpay, revolut_pay, /// samsung_pay, satispay, sepa_debit, sofort, swish, diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs index 1340960788..33fe86ae57 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions.cs @@ -30,7 +30,8 @@ public class PaymentIntentPaymentMethodOptionsCardInstallmentsPlanOptions : INes public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCryptoOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCryptoOptions.cs new file mode 100644 index 0000000000..4d18add8ff --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsCryptoOptions.cs @@ -0,0 +1,41 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsCryptoOptions : INestedOptions + { + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// If you provide a Customer with the PaymentIntent, you can use this parameter to attach the payment method to + /// the Customer after the PaymentIntent is confirmed and the customer completes any + /// required actions. If you don't provide a Customer, you can still attach the payment method to a + /// Customer after the transaction completes. + /// + /// If the payment method is card_present and isn't a digital wallet, Stripe creates + /// and attaches a generated_card + /// payment method representing the card to the Customer instead. + /// + /// When processing card payments, Stripe uses setup_future_usage to help you comply + /// with regional legislation and network rules, such as SCA. + /// + /// If you've already set setup_future_usage and you're performing a request using a + /// publishable key, you can only update the value from on_session to + /// off_session. + /// + [JsonProperty("setup_future_usage")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("setup_future_usage")] +#endif + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs new file mode 100644 index 0000000000..d6544d9055 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions : INestedOptions + { + /// + /// Your average amount value. You can use a value across your customer base, or segment + /// based on customer type, country, etc. + /// + [JsonProperty("average_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("average_amount")] +#endif + public long? AverageAmount { get; set; } + + /// + /// The maximum value you may charge a customer per purchase. You can use a value across + /// your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("maximum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum_amount")] +#endif + public long? MaximumAmount { get; set; } + + /// + /// The lowest or minimum value you may charge a customer per purchase. You can use a value + /// across your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("minimum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_amount")] +#endif + public long? MinimumAmount { get; set; } + + /// + /// Interval at which the customer is making purchases. + /// One of: day, month, week, or year. + /// + [JsonProperty("purchase_interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval")] +#endif + public string PurchaseInterval { get; set; } + + /// + /// The number of purchase_interval between charges. + /// + [JsonProperty("purchase_interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval_count")] +#endif + public long? PurchaseIntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs index 04df1da353..ac428641ca 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; #if NET6_0_OR_GREATER using STJS = System.Text.Json.Serialization; @@ -24,6 +25,15 @@ public class PaymentIntentPaymentMethodOptionsKlarnaOptions : INestedOptions #endif public string CaptureMethod { get; set; } + /// + /// On-demand details if setting up or charging an on-demand payment. + /// + [JsonProperty("on_demand")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_demand")] +#endif + public PaymentIntentPaymentMethodOptionsKlarnaOnDemandOptions OnDemand { get; set; } + /// /// Preferred language of the Klarna authorization page that the customer is redirected to. /// One of: cs-CZ, da-DK, de-AT, de-CH, de-DE, @@ -64,11 +74,21 @@ public class PaymentIntentPaymentMethodOptionsKlarnaOptions : INestedOptions /// If you've already set setup_future_usage and you're performing a request using a /// publishable key, you can only update the value from on_session to /// off_session. + /// One of: none, off_session, or on_session. /// [JsonProperty("setup_future_usage")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("setup_future_usage")] #endif public string SetupFutureUsage { get; set; } + + /// + /// Subscription details if setting up or charging a subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } } } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..8c6539b89e --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..29aaef84cb --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class PaymentIntentPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public PaymentIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index 36af210862..65edee727e 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -157,6 +157,16 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions #endif public PaymentIntentPaymentMethodOptionsCashappOptions Cashapp { get; set; } + /// + /// If this is a crypto PaymentMethod, this sub-hash contains details about the + /// Crypto payment method options. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentIntentPaymentMethodOptionsCryptoOptions Crypto { get; set; } + /// /// If this is a customer balance PaymentMethod, this sub-hash contains details about /// the customer balance payment method options. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs index d98e75f3f9..0ae6fd43cd 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentUpdateOptions.cs @@ -148,7 +148,9 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata /// /// The list of payment method types (for example, card) that this PaymentIntent can use. /// Use automatic_payment_methods to manage payment methods from the Stripe Dashboard. + /// href="https://dashboard.stripe.com/settings/payment_methods">Stripe Dashboard. A + /// list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index 576ce4e670..394b4608dd 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -177,6 +177,16 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata #endif public PaymentMethodCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public PaymentMethodCryptoOptions Crypto { get; set; } + /// /// The Customer to whom the original PaymentMethod is attached. /// @@ -535,13 +545,14 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// grabpay, ideal, kakao_pay, klarna, konbini, - /// kr_card, link, mobilepay, multibanco, naver_pay, - /// nz_bank_account, oxxo, p24, pay_by_bank, payco, - /// paynow, paypal, pix, promptpay, revolut_pay, - /// samsung_pay, satispay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, grabpay, ideal, kakao_pay, klarna, + /// konbini, kr_card, link, mobilepay, multibanco, + /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, pix, promptpay, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCryptoOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCryptoOptions.cs new file mode 100644 index 0000000000..011d9d1868 --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs index ce1d3c602e..31d1521a73 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodIdealOptions.cs @@ -11,10 +11,10 @@ public class PaymentMethodIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs index 2aa7f7173e..29634f9cc4 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -25,13 +25,14 @@ public class PaymentMethodListOptions : ListOptions /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, card, - /// cashapp, customer_balance, eps, fpx, giropay, - /// grabpay, ideal, kakao_pay, klarna, konbini, - /// kr_card, link, mobilepay, multibanco, naver_pay, - /// nz_bank_account, oxxo, p24, pay_by_bank, payco, - /// paynow, paypal, pix, promptpay, revolut_pay, - /// samsung_pay, satispay, sepa_debit, sofort, swish, - /// twint, us_bank_account, wechat_pay, or zip. + /// cashapp, crypto, customer_balance, eps, fpx, + /// giropay, grabpay, ideal, kakao_pay, klarna, + /// konbini, kr_card, link, mobilepay, multibanco, + /// naver_pay, nz_bank_account, oxxo, p24, pay_by_bank, + /// payco, paynow, paypal, pix, promptpay, + /// revolut_pay, samsung_pay, satispay, sepa_debit, + /// sofort, swish, twint, us_bank_account, wechat_pay, or + /// zip. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs new file mode 100644 index 0000000000..7cdba81dbd --- /dev/null +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataBillingModeOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class QuoteSubscriptionDataBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs index 5285852a96..15f5524784 100644 --- a/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs +++ b/src/Stripe.net/Services/Quotes/QuoteSubscriptionDataOptions.cs @@ -11,6 +11,15 @@ namespace Stripe public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public QuoteSubscriptionDataBillingModeOptions BillingMode { get; set; } + /// /// The subscription's description, meant to be displayable to the customer. Use this field /// to optionally store an explanation of the subscription for rendering in Stripe surfaces @@ -24,11 +33,8 @@ public class QuoteSubscriptionDataOptions : INestedOptions, IHasMetadata /// /// When creating a new subscription, the date of which the subscription schedule will start - /// after the quote is accepted. When updating a subscription, the date of which the - /// subscription will be updated using a subscription schedule. The special value - /// current_period_end can be provided to update a subscription at the end of its - /// current period. The effective_date is ignored if it is in the past when the quote - /// is accepted. + /// after the quote is accepted. The effective_date is ignored if it is in the past + /// when the quote is accepted. /// [JsonProperty("effective_date")] [JsonConverter(typeof(AnyOfConverter))] diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs index 5576045d6a..b5dfd3439a 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentCreateOptions.cs @@ -173,7 +173,8 @@ public class SetupIntentCreateOptions : BaseOptions, IHasMetadata /// The list of payment method types (for example, card) that this SetupIntent can use. If /// you don't provide this, Stripe will dynamically show relevant payment methods from your /// payment method - /// settings. + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataCryptoOptions.cs new file mode 100644 index 0000000000..e19e44ae49 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupIntentPaymentMethodDataCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs index fd7a77c338..2539be4b3d 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataIdealOptions.cs @@ -11,10 +11,10 @@ public class SetupIntentPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index 8c86260d49..1277a334aa 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -162,6 +162,16 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata #endif public SetupIntentPaymentMethodDataCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public SetupIntentPaymentMethodDataCryptoOptions Crypto { get; set; } + /// /// If this is a customer_balance PaymentMethod, this hash contains details about the /// CustomerBalance payment method. @@ -502,9 +512,9 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, cashapp, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, kakao_pay, klarna, konbini, kr_card, - /// link, mobilepay, multibanco, naver_pay, + /// crypto, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, kakao_pay, klarna, konbini, + /// kr_card, link, mobilepay, multibanco, naver_pay, /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, pix, promptpay, revolut_pay, /// samsung_pay, satispay, sepa_debit, sofort, swish, diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs new file mode 100644 index 0000000000..77cbc1db90 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions : INestedOptions + { + /// + /// Your average amount value. You can use a value across your customer base, or segment + /// based on customer type, country, etc. + /// + [JsonProperty("average_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("average_amount")] +#endif + public long? AverageAmount { get; set; } + + /// + /// The maximum value you may charge a customer per purchase. You can use a value across + /// your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("maximum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("maximum_amount")] +#endif + public long? MaximumAmount { get; set; } + + /// + /// The lowest or minimum value you may charge a customer per purchase. You can use a value + /// across your customer base, or segment based on customer type, country, etc. + /// + [JsonProperty("minimum_amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("minimum_amount")] +#endif + public long? MinimumAmount { get; set; } + + /// + /// Interval at which the customer is making purchases. + /// One of: day, month, week, or year. + /// + [JsonProperty("purchase_interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval")] +#endif + public string PurchaseInterval { get; set; } + + /// + /// The number of purchase_interval between charges. + /// + [JsonProperty("purchase_interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("purchase_interval_count")] +#endif + public long? PurchaseIntervalCount { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOptions.cs new file mode 100644 index 0000000000..87100253db --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaOptions.cs @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System.Collections.Generic; + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsKlarnaOptions : INestedOptions + { + /// + /// The currency of the SetupIntent. Three letter ISO currency code. + /// + [JsonProperty("currency")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("currency")] +#endif + public string Currency { get; set; } + + /// + /// On-demand details if setting up a payment method for on-demand payments. + /// + [JsonProperty("on_demand")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("on_demand")] +#endif + public SetupIntentPaymentMethodOptionsKlarnaOnDemandOptions OnDemand { get; set; } + + /// + /// Preferred language of the Klarna authorization page that the customer is redirected to. + /// One of: cs-CZ, da-DK, de-AT, de-CH, de-DE, + /// el-GR, en-AT, en-AU, en-BE, en-CA, en-CH, + /// en-CZ, en-DE, en-DK, en-ES, en-FI, en-FR, + /// en-GB, en-GR, en-IE, en-IT, en-NL, en-NO, + /// en-NZ, en-PL, en-PT, en-RO, en-SE, en-US, + /// es-ES, es-US, fi-FI, fr-BE, fr-CA, fr-CH, + /// fr-FR, it-CH, it-IT, nb-NO, nl-BE, nl-NL, + /// pl-PL, pt-PT, ro-RO, sv-FI, or sv-SE. + /// + [JsonProperty("preferred_locale")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("preferred_locale")] +#endif + public string PreferredLocale { get; set; } + + /// + /// Subscription details if setting up or charging a subscription. + /// + [JsonProperty("subscriptions")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("subscriptions")] +#endif + public List Subscriptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs new file mode 100644 index 0000000000..0a2c5e9e80 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions : INestedOptions + { + /// + /// The amount of the next charge for the subscription. + /// + [JsonProperty("amount")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount")] +#endif + public long? Amount { get; set; } + + /// + /// The date of the next charge for the subscription in YYYY-MM-DD format. + /// + [JsonProperty("date")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("date")] +#endif + public string Date { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs new file mode 100644 index 0000000000..789b720144 --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions.cs @@ -0,0 +1,60 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SetupIntentPaymentMethodOptionsKlarnaSubscriptionOptions : INestedOptions + { + /// + /// Unit of time between subscription charges. + /// One of: day, month, week, or year. + /// + [JsonProperty("interval")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval")] +#endif + public string Interval { get; set; } + + /// + /// The number of intervals (specified in the interval attribute) between + /// subscription charges. For example, interval=month and interval_count=3 + /// charges every 3 months. + /// + [JsonProperty("interval_count")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("interval_count")] +#endif + public long? IntervalCount { get; set; } + + /// + /// Name for subscription. + /// + [JsonProperty("name")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("name")] +#endif + public string Name { get; set; } + + /// + /// Describes the upcoming charge for this subscription. + /// + [JsonProperty("next_billing")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("next_billing")] +#endif + public SetupIntentPaymentMethodOptionsKlarnaSubscriptionNextBillingOptions NextBilling { get; set; } + + /// + /// A non-customer-facing reference to correlate subscription charges in the Klarna app. Use + /// a value that persists across subscription charges. + /// + [JsonProperty("reference")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("reference")] +#endif + public string Reference { get; set; } + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs index 8148a40a56..b56727e211 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodOptionsOptions.cs @@ -57,6 +57,16 @@ public class SetupIntentPaymentMethodOptionsOptions : INestedOptions #endif public SetupIntentPaymentMethodOptionsCardPresentOptions CardPresent { get; set; } + /// + /// If this is a klarna PaymentMethod, this hash contains details about the Klarna + /// payment method options. + /// + [JsonProperty("klarna")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("klarna")] +#endif + public SetupIntentPaymentMethodOptionsKlarnaOptions Klarna { get; set; } + /// /// If this is a link PaymentMethod, this sub-hash contains details about the Link /// payment method options. diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs index 8473f30dff..d172c373ad 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentUpdateOptions.cs @@ -119,7 +119,8 @@ public class SetupIntentUpdateOptions : BaseOptions, IHasMetadata /// The list of payment method types (for example, card) that this SetupIntent can set up. /// If you don't provide this, Stripe will dynamically show relevant payment methods from /// your payment method - /// settings. + /// settings. A list of valid payment method types can be found here. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs new file mode 100644 index 0000000000..592db9565a --- /dev/null +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleBillingModeOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionScheduleBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs index b3a333dc31..f568ae1669 100644 --- a/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs +++ b/src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleCreateOptions.cs @@ -11,6 +11,15 @@ namespace Stripe public class SubscriptionScheduleCreateOptions : BaseOptions, IHasMetadata { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public SubscriptionScheduleBillingModeOptions BillingMode { get; set; } + /// /// The identifier of the customer to create the subscription schedule for. /// diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs new file mode 100644 index 0000000000..bd4dbea59f --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionBillingModeOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionBillingModeOptions : INestedOptions + { + /// + /// One of: classic, or flexible. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs index 6cedec52c8..a1be5354dc 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionCreateOptions.cs @@ -36,8 +36,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata public decimal? ApplicationFeePercent { get; set; } /// - /// Automatic tax settings for this subscription. We recommend you only include this - /// parameter when the existing value is being changed. + /// Automatic tax settings for this subscription. /// [JsonProperty("automatic_tax")] #if NET6_0_OR_GREATER @@ -46,9 +45,9 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata public SubscriptionAutomaticTaxOptions AutomaticTax { get; set; } /// - /// For new subscriptions, a past timestamp to backdate the subscription's start date to. If - /// set, the first invoice will contain a proration for the timespan between the start date - /// and the current time. Can be combined with trials and the billing cycle anchor. + /// A past timestamp to backdate the subscription's start date to. If set, the first invoice + /// will contain line items for the timespan between the start date and the current time. + /// Can be combined with trials and the billing cycle anchor. /// [JsonProperty("backdate_start_date")] [JsonConverter(typeof(UnixDateTimeConverter))] @@ -84,6 +83,15 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata #endif public SubscriptionBillingCycleAnchorConfigOptions BillingCycleAnchorConfig { get; set; } + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public SubscriptionBillingModeOptions BillingMode { get; set; } + /// /// Define thresholds at which an invoice will be sent, and the subscription advanced to a /// new billing period. When updating, pass an empty string to remove previously-defined @@ -111,8 +119,7 @@ public class SubscriptionCreateOptions : BaseOptions, IHasMetadata /// /// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. This param will be removed in a - /// future API version. Please use cancel_at instead. + /// (current_period_end). Defaults to false. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs new file mode 100644 index 0000000000..f8f5f21b04 --- /dev/null +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionMigrateOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class SubscriptionMigrateOptions : BaseOptions + { + /// + /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. + /// + [JsonProperty("billing_mode")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("billing_mode")] +#endif + public SubscriptionBillingModeOptions BillingMode { get; set; } + } +} diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs index 7598a893bd..72548eac73 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionPaymentSettingsOptions.cs @@ -28,13 +28,13 @@ public class SubscriptionPaymentSettingsOptions : INestedOptions /// settings. Should not be specified with payment_method_configuration. /// One of: ach_credit_transfer, ach_debit, acss_debit, affirm, /// amazon_pay, au_becs_debit, bacs_debit, bancontact, - /// boleto, card, cashapp, customer_balance, eps, - /// fpx, giropay, grabpay, ideal, jp_credit_transfer, - /// kakao_pay, klarna, konbini, kr_card, link, - /// multibanco, naver_pay, nz_bank_account, p24, payco, - /// paynow, paypal, promptpay, revolut_pay, - /// sepa_credit_transfer, sepa_debit, sofort, swish, - /// us_bank_account, or wechat_pay. + /// boleto, card, cashapp, crypto, customer_balance, + /// eps, fpx, giropay, grabpay, ideal, + /// jp_credit_transfer, kakao_pay, klarna, konbini, + /// kr_card, link, multibanco, naver_pay, + /// nz_bank_account, p24, payco, paynow, paypal, + /// promptpay, revolut_pay, sepa_credit_transfer, sepa_debit, + /// sofort, swish, us_bank_account, or wechat_pay. /// [JsonProperty("payment_method_types")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs index 342f051fee..4a0f53304f 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionService.cs @@ -185,6 +185,22 @@ public virtual IAsyncEnumerable ListAutoPagingAsync(SubscriptionLi return this.ListRequestAutoPagingAsync($"/v1/subscriptions", options, requestOptions, cancellationToken); } + /// + ///

Upgrade the billing_mode of an existing subscription.

. + ///
+ public virtual Subscription Migrate(string id, SubscriptionMigrateOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/subscriptions/{WebUtility.UrlEncode(id)}/migrate", options, requestOptions); + } + + /// + ///

Upgrade the billing_mode of an existing subscription.

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

Initiates resumption of a paused subscription, optionally resetting the billing cycle /// anchor and creating prorations. If a resumption invoice is generated, it must be paid or diff --git a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs index 8dfc8b5e36..53d24ec201 100644 --- a/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs +++ b/src/Stripe.net/Services/Subscriptions/SubscriptionUpdateOptions.cs @@ -85,8 +85,7 @@ public class SubscriptionUpdateOptions : BaseOptions, IHasMetadata ///

/// Indicate whether this subscription should cancel at the end of the current period - /// (current_period_end). Defaults to false. This param will be removed in a - /// future API version. Please use cancel_at instead. + /// (current_period_end). Defaults to false. /// [JsonProperty("cancel_at_period_end")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs index fe0b1f40f6..9087eaf07b 100644 --- a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsOptions.cs @@ -818,6 +818,15 @@ public class RegistrationCountryOptionsOptions : INestedOptions #endif public RegistrationCountryOptionsTzOptions Tz { get; set; } + /// + /// Options for the registration in UA. + /// + [JsonProperty("ua")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("ua")] +#endif + public RegistrationCountryOptionsUaOptions Ua { get; set; } + /// /// Options for the registration in UG. /// diff --git a/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs new file mode 100644 index 0000000000..678e55e641 --- /dev/null +++ b/src/Stripe.net/Services/Tax/Registrations/RegistrationCountryOptionsUaOptions.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe.Tax +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class RegistrationCountryOptionsUaOptions : INestedOptions + { + /// + /// Type of registration to be created in country. + /// + [JsonProperty("type")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("type")] +#endif + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigOptions.cs new file mode 100644 index 0000000000..fc2b972dd2 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigOptions.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderCollectConfigOptions : INestedOptions + { + /// + /// This field indicates whether this payment method can be shown again to its customer in a + /// checkout flow. Stripe products such as Checkout and Elements use this field to determine + /// whether a payment method can be shown as a saved payment method in a checkout flow. + /// One of: always, limited, or unspecified. + /// + [JsonProperty("allow_redisplay")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("allow_redisplay")] +#endif + public string AllowRedisplay { get; set; } + + /// + /// Enables cancel button on transaction screens. + /// + [JsonProperty("enable_customer_cancellation")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("enable_customer_cancellation")] +#endif + public bool? EnableCustomerCancellation { get; set; } + + /// + /// Override showing a tipping selection screen on this transaction. + /// + [JsonProperty("skip_tipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("skip_tipping")] +#endif + public bool? SkipTipping { get; set; } + + /// + /// Tipping configuration for this transaction. + /// + [JsonProperty("tipping")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("tipping")] +#endif + public ReaderCollectConfigTippingOptions Tipping { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigTippingOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigTippingOptions.cs new file mode 100644 index 0000000000..9fae3d192e --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectConfigTippingOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderCollectConfigTippingOptions : INestedOptions + { + /// + /// Amount used to calculate tip suggestions on tipping selection screen for this + /// transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents + /// to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). + /// + [JsonProperty("amount_eligible")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("amount_eligible")] +#endif + public long? AmountEligible { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderCollectPaymentMethodOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectPaymentMethodOptions.cs new file mode 100644 index 0000000000..15f5a87b38 --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderCollectPaymentMethodOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderCollectPaymentMethodOptions : BaseOptions + { + /// + /// Configuration overrides. + /// + [JsonProperty("collect_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("collect_config")] +#endif + public ReaderCollectConfigOptions CollectConfig { get; set; } + + /// + /// PaymentIntent ID. + /// + [JsonProperty("payment_intent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_intent")] +#endif + public string PaymentIntent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmConfigOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmConfigOptions.cs new file mode 100644 index 0000000000..b38c1f459a --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmConfigOptions.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderConfirmConfigOptions : INestedOptions + { + /// + /// The URL to redirect your customer back to after they authenticate or cancel their + /// payment on the payment method's app or site. If you'd prefer to redirect to a mobile + /// application, you can alternatively supply an application URI scheme. + /// + [JsonProperty("return_url")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("return_url")] +#endif + public string ReturnUrl { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmPaymentIntentOptions.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmPaymentIntentOptions.cs new file mode 100644 index 0000000000..4dace8691e --- /dev/null +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderConfirmPaymentIntentOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.Terminal +{ + using Newtonsoft.Json; +#if NET6_0_OR_GREATER + using STJS = System.Text.Json.Serialization; +#endif + + public class ReaderConfirmPaymentIntentOptions : BaseOptions + { + /// + /// Configuration overrides. + /// + [JsonProperty("confirm_config")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("confirm_config")] +#endif + public ReaderConfirmConfigOptions ConfirmConfig { get; set; } + + /// + /// PaymentIntent ID. + /// + [JsonProperty("payment_intent")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("payment_intent")] +#endif + public string PaymentIntent { get; set; } + } +} diff --git a/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs b/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs index 1a4d1deb4a..5c55c1463f 100644 --- a/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs +++ b/src/Stripe.net/Services/Terminal/Readers/ReaderService.cs @@ -61,6 +61,40 @@ public virtual Task CollectInputsAsync(string id, ReaderCollectInputsOpt return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/collect_inputs", options, requestOptions, cancellationToken); } + /// + ///

Initiates a payment flow on a Reader and updates the PaymentIntent with card details + /// before manual confirmation.

. + ///
+ public virtual Reader CollectPaymentMethod(string id, ReaderCollectPaymentMethodOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/collect_payment_method", options, requestOptions); + } + + /// + ///

Initiates a payment flow on a Reader and updates the PaymentIntent with card details + /// before manual confirmation.

. + ///
+ public virtual Task CollectPaymentMethodAsync(string id, ReaderCollectPaymentMethodOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/collect_payment_method", options, requestOptions, cancellationToken); + } + + /// + ///

Finalizes a payment on a Reader.

. + ///
+ public virtual Reader ConfirmPaymentIntent(string id, ReaderConfirmPaymentIntentOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/confirm_payment_intent", options, requestOptions); + } + + /// + ///

Finalizes a payment on a Reader.

. + ///
+ public virtual Task ConfirmPaymentIntentAsync(string id, ReaderConfirmPaymentIntentOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v1/terminal/readers/{WebUtility.UrlEncode(id)}/confirm_payment_intent", options, requestOptions, cancellationToken); + } + /// ///

Creates a new Reader object.

. ///
diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs new file mode 100644 index 0000000000..6111113b41 --- /dev/null +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataCryptoOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe.TestHelpers +{ + public class ConfirmationTokenPaymentMethodDataCryptoOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs index 257ee608d3..b774cf9191 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataIdealOptions.cs @@ -11,10 +11,10 @@ public class ConfirmationTokenPaymentMethodDataIdealOptions : INestedOptions /// /// The customer's bank. Only use this parameter for existing customers. Don't use it for /// new customers. - /// One of: abn_amro, asn_bank, bunq, handelsbanken, ing, - /// knab, moneyou, n26, nn, rabobank, regiobank, - /// revolut, sns_bank, triodos_bank, van_lanschot, or - /// yoursafe. + /// One of: abn_amro, asn_bank, bunq, buut, + /// handelsbanken, ing, knab, moneyou, n26, nn, + /// rabobank, regiobank, revolut, sns_bank, triodos_bank, + /// van_lanschot, or yoursafe. /// [JsonProperty("bank")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index 3e63c248c3..089046ae92 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -162,6 +162,16 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet #endif public ConfirmationTokenPaymentMethodDataCashappOptions Cashapp { get; set; } + /// + /// If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment + /// method. + /// + [JsonProperty("crypto")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("crypto")] +#endif + public ConfirmationTokenPaymentMethodDataCryptoOptions Crypto { get; set; } + /// /// If this is a customer_balance PaymentMethod, this hash contains details about the /// CustomerBalance payment method. @@ -502,9 +512,9 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet /// One of: acss_debit, affirm, afterpay_clearpay, alipay, /// alma, amazon_pay, au_becs_debit, bacs_debit, /// bancontact, billie, blik, boleto, cashapp, - /// customer_balance, eps, fpx, giropay, grabpay, - /// ideal, kakao_pay, klarna, konbini, kr_card, - /// link, mobilepay, multibanco, naver_pay, + /// crypto, customer_balance, eps, fpx, giropay, + /// grabpay, ideal, kakao_pay, klarna, konbini, + /// kr_card, link, mobilepay, multibanco, naver_pay, /// nz_bank_account, oxxo, p24, pay_by_bank, payco, /// paynow, paypal, pix, promptpay, revolut_pay, /// samsung_pay, satispay, sepa_debit, sofort, swish, diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs index ec7d8d257b..8dd1a75c10 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions.cs @@ -30,7 +30,8 @@ public class ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanOptions : public string Interval { get; set; } /// - /// Type of installment plan, one of fixed_count. + /// Type of installment plan, one of fixed_count, bonus, or revolving. + /// One of: bonus, fixed_count, or revolving. /// [JsonProperty("type")] #if NET6_0_OR_GREATER diff --git a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs index 5f2609ac15..4ff41ec6c6 100644 --- a/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs +++ b/src/Stripe.net/Services/Tokens/TokenAccountCompanyOptions.cs @@ -173,6 +173,9 @@ public class TokenAccountCompanyOptions : INestedOptions #endif public string Phone { get; set; } + /// + /// When the business was incorporated or registered. + /// [JsonProperty("registration_date")] #if NET6_0_OR_GREATER [STJS.JsonPropertyName("registration_date")] diff --git a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs index 36b0999588..2962c8dcd8 100644 --- a/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs +++ b/src/Stripe.net/Services/Treasury/FinancialAccounts/FinancialAccountListOptions.cs @@ -20,5 +20,15 @@ public class FinancialAccountListOptions : ListOptions [STJS.JsonConverter(typeof(STJAnyOfConverter))] #endif public AnyOf Created { get; set; } + + /// + /// Only return FinancialAccounts that have the given status: open or closed. + /// One of: closed, or open. + /// + [JsonProperty("status")] +#if NET6_0_OR_GREATER + [STJS.JsonPropertyName("status")] +#endif + public string Status { get; set; } } } diff --git a/src/Stripe.net/Services/V2/BillingService.cs b/src/Stripe.net/Services/V2/BillingService.cs index ca4bbfa97e..d83cd1385c 100644 --- a/src/Stripe.net/Services/V2/BillingService.cs +++ b/src/Stripe.net/Services/V2/BillingService.cs @@ -7,8 +7,8 @@ namespace Stripe.V2 public class BillingService : Service { - private V2.Billing.MeterEventSessionService meterEventSession; private V2.Billing.MeterEventAdjustmentService meterEventAdjustments; + private V2.Billing.MeterEventSessionService meterEventSession; private V2.Billing.MeterEventStreamService meterEventStream; private V2.Billing.MeterEventService meterEvents; @@ -22,10 +22,10 @@ internal BillingService(IStripeClient client) { } - public virtual V2.Billing.MeterEventSessionService MeterEventSession => this.meterEventSession ??= new V2.Billing.MeterEventSessionService( + public virtual V2.Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new V2.Billing.MeterEventAdjustmentService( this.Requestor); - public virtual V2.Billing.MeterEventAdjustmentService MeterEventAdjustments => this.meterEventAdjustments ??= new V2.Billing.MeterEventAdjustmentService( + public virtual V2.Billing.MeterEventSessionService MeterEventSession => this.meterEventSession ??= new V2.Billing.MeterEventSessionService( this.Requestor); public virtual V2.Billing.MeterEventStreamService MeterEventStream => this.meterEventStream ??= new V2.Billing.MeterEventStreamService( diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs index 0a63f408c8..c9ea072b78 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointCreateOptions.cs @@ -40,7 +40,8 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// 2024-04-10, 2024-06-20, 2024-09-30.acacia, /// 2024-10-28.acacia, 2024-11-20.acacia, 2024-12-18.acacia, /// 2025-01-27.acacia, 2025-02-24.acacia, 2025-03-01.dashboard, - /// 2025-03-31.basil, 2025-04-30.basil, or 2025-05-28.basil. + /// 2025-03-31.basil, 2025-04-30.basil, 2025-05-28.basil, or + /// 2025-06-30.basil. /// [JsonProperty("api_version")] #if NET6_0_OR_GREATER @@ -167,14 +168,14 @@ public class WebhookEndpointCreateOptions : BaseOptions, IHasMetadata /// subscription_schedule.expiring, subscription_schedule.released, /// subscription_schedule.updated, tax.settings.updated, /// tax_rate.created, tax_rate.updated, terminal.reader.action_failed, - /// terminal.reader.action_succeeded, test_helpers.test_clock.advancing, - /// test_helpers.test_clock.created, test_helpers.test_clock.deleted, - /// test_helpers.test_clock.internal_failure, test_helpers.test_clock.ready, - /// topup.canceled, topup.created, topup.failed, topup.reversed, - /// topup.succeeded, transfer.created, transfer.reversed, - /// transfer.updated, treasury.credit_reversal.created, - /// treasury.credit_reversal.posted, treasury.debit_reversal.completed, - /// treasury.debit_reversal.created, + /// terminal.reader.action_succeeded, terminal.reader.action_updated, + /// test_helpers.test_clock.advancing, test_helpers.test_clock.created, + /// test_helpers.test_clock.deleted, test_helpers.test_clock.internal_failure, + /// test_helpers.test_clock.ready, topup.canceled, topup.created, + /// topup.failed, topup.reversed, topup.succeeded, + /// transfer.created, transfer.reversed, transfer.updated, + /// treasury.credit_reversal.created, treasury.credit_reversal.posted, + /// treasury.debit_reversal.completed, treasury.debit_reversal.created, /// treasury.debit_reversal.initial_credit_granted, /// treasury.financial_account.closed, treasury.financial_account.created, /// treasury.financial_account.features_status_updated, diff --git a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs index 1e86e2a808..0e1da9ffd9 100644 --- a/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs +++ b/src/Stripe.net/Services/WebhookEndpoints/WebhookEndpointUpdateOptions.cs @@ -127,14 +127,14 @@ public class WebhookEndpointUpdateOptions : BaseOptions, IHasMetadata /// subscription_schedule.expiring, subscription_schedule.released, /// subscription_schedule.updated, tax.settings.updated, /// tax_rate.created, tax_rate.updated, terminal.reader.action_failed, - /// terminal.reader.action_succeeded, test_helpers.test_clock.advancing, - /// test_helpers.test_clock.created, test_helpers.test_clock.deleted, - /// test_helpers.test_clock.internal_failure, test_helpers.test_clock.ready, - /// topup.canceled, topup.created, topup.failed, topup.reversed, - /// topup.succeeded, transfer.created, transfer.reversed, - /// transfer.updated, treasury.credit_reversal.created, - /// treasury.credit_reversal.posted, treasury.debit_reversal.completed, - /// treasury.debit_reversal.created, + /// terminal.reader.action_succeeded, terminal.reader.action_updated, + /// test_helpers.test_clock.advancing, test_helpers.test_clock.created, + /// test_helpers.test_clock.deleted, test_helpers.test_clock.internal_failure, + /// test_helpers.test_clock.ready, topup.canceled, topup.created, + /// topup.failed, topup.reversed, topup.succeeded, + /// transfer.created, transfer.reversed, transfer.updated, + /// treasury.credit_reversal.created, treasury.credit_reversal.posted, + /// treasury.debit_reversal.completed, treasury.debit_reversal.created, /// treasury.debit_reversal.initial_credit_granted, /// treasury.financial_account.closed, treasury.financial_account.created, /// treasury.financial_account.features_status_updated, diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 73cbb1a83a..ac3c572bcc 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -6149,24 +6149,6 @@ public void TestWebhookEndpointsPost2() "/v1/webhook_endpoints/we_xxxxxxxxxxxxx"); } - [Fact] - public void TestV2BillingMeterEventSessionPost() - { - this.StubRequest( - HttpMethod.Post, - "/v2/billing/meter_event_session", - (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}"); - var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions(); - var client = new StripeClient(this.Requestor); - var service = client.V2.Billing.MeterEventSession; - Stripe.V2.Billing.MeterEventSession meterEventSession = service - .Create(options); - this.AssertRequest( - HttpMethod.Post, - "/v2/billing/meter_event_session"); - } - [Fact] public void TestV2BillingMeterEventAdjustmentPost() { @@ -6193,6 +6175,24 @@ public void TestV2BillingMeterEventAdjustmentPost() "/v2/billing/meter_event_adjustments"); } + [Fact] + public void TestV2BillingMeterEventSessionPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/billing/meter_event_session", + (HttpStatusCode)200, + "{\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true}"); + var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions(); + var client = new StripeClient(this.Requestor); + var service = client.V2.Billing.MeterEventSession; + Stripe.V2.Billing.MeterEventSession meterEventSession = service + .Create(options); + this.AssertRequest( + HttpMethod.Post, + "/v2/billing/meter_event_session"); + } + [Fact] public void TestV2BillingMeterEventStreamPost() { @@ -6249,6 +6249,21 @@ public void TestV2BillingMeterEventPost() this.AssertRequest(HttpMethod.Post, "/v2/billing/meter_events"); } + [Fact] + public void TestV2CoreEventDestinationGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/event_destinations", + (HttpStatusCode)200, + "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.EventDestinations; + Stripe.V2.StripeList eventDestinations = service + .List(); + this.AssertRequest(HttpMethod.Get, "/v2/core/event_destinations"); + } + [Fact] public void TestV2CoreEventDestinationPost() { @@ -6288,84 +6303,72 @@ public void TestV2CoreEventDestinationDelete() } [Fact] - public void TestV2CoreEventDestinationPost2() + public void TestV2CoreEventDestinationGet2() { this.StubRequest( - HttpMethod.Post, - "/v2/core/event_destinations/id_123/disable", + HttpMethod.Get, + "/v2/core/event_destinations/id_123", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Disable( - "id_123"); + Stripe.V2.EventDestination eventDestination = service.Get("id_123"); this.AssertRequest( - HttpMethod.Post, - "/v2/core/event_destinations/id_123/disable"); + HttpMethod.Get, + "/v2/core/event_destinations/id_123"); } [Fact] - public void TestV2CoreEventDestinationPost3() + public void TestV2CoreEventDestinationPost2() { this.StubRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/enable", + "/v2/core/event_destinations/id_123", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); + var options = new Stripe.V2.Core.EventDestinationUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Enable( - "id_123"); + Stripe.V2.EventDestination eventDestination = service.Update( + "id_123", + options); this.AssertRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/enable"); - } - - [Fact] - public void TestV2CoreEventDestinationGet() - { - this.StubRequest( - HttpMethod.Get, - "/v2/core/event_destinations", - (HttpStatusCode)200, - "{\"data\":[{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}],\"next_page_url\":null,\"previous_page_url\":null}"); - var client = new StripeClient(this.Requestor); - var service = client.V2.Core.EventDestinations; - Stripe.V2.StripeList eventDestinations = service - .List(); - this.AssertRequest(HttpMethod.Get, "/v2/core/event_destinations"); + "/v2/core/event_destinations/id_123"); } [Fact] - public void TestV2CoreEventDestinationPost4() + public void TestV2CoreEventDestinationPost3() { this.StubRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/ping", + "/v2/core/event_destinations/id_123/disable", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}"); + "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.Event result = service.Ping("id_123"); + Stripe.V2.EventDestination eventDestination = service.Disable( + "id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123/ping"); + "/v2/core/event_destinations/id_123/disable"); } [Fact] - public void TestV2CoreEventDestinationGet2() + public void TestV2CoreEventDestinationPost4() { this.StubRequest( - HttpMethod.Get, - "/v2/core/event_destinations/id_123", + HttpMethod.Post, + "/v2/core/event_destinations/id_123/enable", (HttpStatusCode)200, "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Get("id_123"); + Stripe.V2.EventDestination eventDestination = service.Enable( + "id_123"); this.AssertRequest( - HttpMethod.Get, - "/v2/core/event_destinations/id_123"); + HttpMethod.Post, + "/v2/core/event_destinations/id_123/enable"); } [Fact] @@ -6373,18 +6376,15 @@ public void TestV2CoreEventDestinationPost5() { this.StubRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123", + "/v2/core/event_destinations/id_123/ping", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"object\":\"v2.core.event_destination\",\"amazon_eventbridge\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"events_from\":null,\"livemode\":true,\"metadata\":null,\"name\":\"name\",\"snapshot_api_version\":null,\"status\":\"disabled\",\"status_details\":null,\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"webhook_endpoint\":null}"); - var options = new Stripe.V2.Core.EventDestinationUpdateOptions(); + "{\"id\":\"obj_123\",\"object\":\"v2.core.event\",\"context\":null,\"created\":\"1970-01-12T21:42:34.472Z\",\"livemode\":true,\"reason\":null,\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; - Stripe.V2.EventDestination eventDestination = service.Update( - "id_123", - options); + Stripe.V2.Event result = service.Ping("id_123"); this.AssertRequest( HttpMethod.Post, - "/v2/core/event_destinations/id_123"); + "/v2/core/event_destinations/id_123/ping"); } [Fact]