diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 05e9a4e740..defeacb84d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v633 \ No newline at end of file +v636 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs index fc4ed9fb89..84a98873e6 100644 --- a/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs +++ b/src/Stripe.net/Entities/Accounts/AccountCapabilities.cs @@ -228,6 +228,14 @@ public class AccountCapabilities : StripeEntity [JsonProperty("promptpay_payments")] public string PromptpayPayments { get; set; } + /// + /// The status of the RevolutPay capability of the account, or whether the account can + /// directly process RevolutPay payments. + /// One of: active, inactive, or pending. + /// + [JsonProperty("revolut_pay_payments")] + public string RevolutPayPayments { get; set; } + /// /// The status of the SEPA Direct Debits payments capability of the account, or whether the /// account can directly process SEPA Direct Debits charges. diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs index 16c125fdfa..d94e83a243 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs @@ -98,6 +98,9 @@ public class ChargePaymentMethodDetails : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs index 35ba417b68..27f80a5145 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs @@ -74,6 +74,9 @@ public class SessionPaymentMethodOptions : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs index 2c77e64e2e..41ef59752f 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs @@ -89,6 +89,9 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs index 94d172034f..000699c4e0 100644 --- a/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs @@ -180,6 +180,9 @@ public Customer Customer [JsonProperty("radar_options")] public PaymentMethodRadarOptions RadarOptions { get; set; } + [JsonProperty("revolut_pay")] + public PaymentMethodRevolutPay RevolutPay { get; set; } + [JsonProperty("sepa_debit")] public PaymentMethodSepaDebit SepaDebit { get; set; } @@ -195,8 +198,8 @@ public Customer Customer /// card, card_present, cashapp, customer_balance, eps, /// fpx, giropay, grabpay, ideal, interac_present, /// klarna, konbini, link, oxxo, p24, paynow, - /// paypal, pix, promptpay, sepa_debit, sofort, - /// us_bank_account, wechat_pay, or zip. + /// paypal, pix, promptpay, revolut_pay, sepa_debit, + /// sofort, us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRevolutPay.cs b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRevolutPay.cs new file mode 100644 index 0000000000..2a9dc62ef5 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentMethods/PaymentMethodRevolutPay.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodRevolutPay : StripeEntity + { + } +} diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs index d6a8c3c293..6441050d0d 100644 --- a/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesOptions.cs @@ -173,6 +173,12 @@ public class AccountCapabilitiesOptions : INestedOptions [JsonProperty("promptpay_payments")] public AccountCapabilitiesPromptpayPaymentsOptions PromptpayPayments { get; set; } + /// + /// The revolut_pay_payments capability. + /// + [JsonProperty("revolut_pay_payments")] + public AccountCapabilitiesRevolutPayPaymentsOptions RevolutPayPayments { get; set; } + /// /// The sepa_debit_payments capability. /// diff --git a/src/Stripe.net/Services/Accounts/AccountCapabilitiesRevolutPayPaymentsOptions.cs b/src/Stripe.net/Services/Accounts/AccountCapabilitiesRevolutPayPaymentsOptions.cs new file mode 100644 index 0000000000..d1a2468414 --- /dev/null +++ b/src/Stripe.net/Services/Accounts/AccountCapabilitiesRevolutPayPaymentsOptions.cs @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class AccountCapabilitiesRevolutPayPaymentsOptions : 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")] + public bool? Requested { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index f3cb509007..a8c67432ab 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -260,8 +260,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata /// card, cashapp, customer_balance, eps, fpx, /// giropay, grabpay, ideal, klarna, konbini, /// link, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, us_bank_account, - /// wechat_pay, or zip. + /// promptpay, revolut_pay, sepa_debit, sofort, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("payment_method_types")] public List PaymentMethodTypes { get; set; } diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index 2586a29838..890bccb3af 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -149,6 +149,12 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions [JsonProperty("pix")] public SessionPaymentMethodOptionsPixOptions Pix { get; set; } + /// + /// contains details about the RevolutPay payment method options. + /// + [JsonProperty("revolut_pay")] + public SessionPaymentMethodOptionsRevolutPayOptions RevolutPay { get; set; } + /// /// contains details about the Sepa Debit payment method options. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsRevolutPayOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsRevolutPayOptions.cs new file mode 100644 index 0000000000..8d6cd40a65 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsRevolutPayOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + + public class SessionPaymentMethodOptionsRevolutPayOptions : INestedOptions + { + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// Providing this parameter will attach the payment + /// method to the PaymentIntent's Customer, if present, after the PaymentIntent is + /// confirmed and any required actions from the user are complete. If no Customer was + /// provided, the payment method can still be attached to a Customer + /// after the transaction completes. + /// + /// When processing card payments, Stripe also uses setup_future_usage to dynamically + /// optimize your payment flow and comply with regional legislation and network rules, such + /// as SCA. + /// One of: none, or off_session. + /// + [JsonProperty("setup_future_usage")] + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/Customers/CustomerListPaymentMethodsOptions.cs b/src/Stripe.net/Services/Customers/CustomerListPaymentMethodsOptions.cs index ebe6c0f278..bdd1a4fbd0 100644 --- a/src/Stripe.net/Services/Customers/CustomerListPaymentMethodsOptions.cs +++ b/src/Stripe.net/Services/Customers/CustomerListPaymentMethodsOptions.cs @@ -15,8 +15,8 @@ public class CustomerListPaymentMethodsOptions : ListOptions /// card, cashapp, customer_balance, eps, fpx, /// giropay, grabpay, ideal, klarna, konbini, /// link, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, us_bank_account, - /// wechat_pay, or zip. + /// promptpay, revolut_pay, sepa_debit, sofort, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index 4ef5dbd9c7..367b15635c 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -212,6 +212,13 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [JsonProperty("radar_options")] public PaymentIntentPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; } + /// + /// If this is a Revolut Pay PaymentMethod, this hash contains details about the + /// Revolut Pay payment method. + /// + [JsonProperty("revolut_pay")] + public PaymentIntentPaymentMethodDataRevolutPayOptions RevolutPay { get; set; } + /// /// If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA /// debit bank account. @@ -235,8 +242,8 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat /// cashapp, customer_balance, eps, fpx, giropay, /// grabpay, ideal, klarna, konbini, link, oxxo, /// p24, paynow, paypal, pix, promptpay, - /// sepa_debit, sofort, us_bank_account, wechat_pay, or - /// zip. + /// revolut_pay, sepa_debit, sofort, us_bank_account, + /// wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRevolutPayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRevolutPayOptions.cs new file mode 100644 index 0000000000..49eedb0b04 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataRevolutPayOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentIntentPaymentMethodDataRevolutPayOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs index cdc6ec23b7..7148440c3a 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsOptions.cs @@ -200,6 +200,13 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions [JsonProperty("promptpay")] public PaymentIntentPaymentMethodOptionsPromptpayOptions Promptpay { get; set; } + /// + /// If this is a revolut_pay PaymentMethod, this sub-hash contains details about the + /// Demo Pay payment method options. + /// + [JsonProperty("revolut_pay")] + public PaymentIntentPaymentMethodOptionsRevolutPayOptions RevolutPay { get; set; } + /// /// If this is a sepa_debit PaymentIntent, this sub-hash contains details about the /// SEPA Debit payment method options. diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsRevolutPayOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsRevolutPayOptions.cs new file mode 100644 index 0000000000..3c4d327155 --- /dev/null +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsRevolutPayOptions.cs @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + + public class PaymentIntentPaymentMethodOptionsRevolutPayOptions : INestedOptions + { + /// + /// Indicates that you intend to make future payments with this PaymentIntent's payment + /// method. + /// + /// Providing this parameter will attach the payment + /// method to the PaymentIntent's Customer, if present, after the PaymentIntent is + /// confirmed and any required actions from the user are complete. If no Customer was + /// provided, the payment method can still be attached to a Customer + /// after the transaction completes. + /// + /// When processing card payments, Stripe also uses setup_future_usage to dynamically + /// optimize your payment flow and comply with regional legislation and network rules, such + /// as SCA. + /// One of: none, or off_session. + /// + [JsonProperty("setup_future_usage")] + public string SetupFutureUsage { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs index 050a3264d9..ab5bc208ab 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodCreateOptions.cs @@ -236,6 +236,13 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata [JsonProperty("radar_options")] public PaymentMethodRadarOptionsOptions RadarOptions { get; set; } + /// + /// If this is a Revolut Pay PaymentMethod, this hash contains details about the + /// Revolut Pay payment method. + /// + [JsonProperty("revolut_pay")] + public PaymentMethodRevolutPayOptions RevolutPay { get; set; } + /// /// If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA /// debit bank account. @@ -259,8 +266,8 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata /// card, cashapp, customer_balance, eps, fpx, /// giropay, grabpay, ideal, klarna, konbini, /// link, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, us_bank_account, - /// wechat_pay, or zip. + /// promptpay, revolut_pay, sepa_debit, sofort, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs index cf3a58bd53..051d6d3ae0 100644 --- a/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodListOptions.cs @@ -21,8 +21,8 @@ public class PaymentMethodListOptions : ListOptions /// card, cashapp, customer_balance, eps, fpx, /// giropay, grabpay, ideal, klarna, konbini, /// link, oxxo, p24, paynow, paypal, pix, - /// promptpay, sepa_debit, sofort, us_bank_account, - /// wechat_pay, or zip. + /// promptpay, revolut_pay, sepa_debit, sofort, + /// us_bank_account, wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/PaymentMethods/PaymentMethodRevolutPayOptions.cs b/src/Stripe.net/Services/PaymentMethods/PaymentMethodRevolutPayOptions.cs new file mode 100644 index 0000000000..965a4cbbae --- /dev/null +++ b/src/Stripe.net/Services/PaymentMethods/PaymentMethodRevolutPayOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class PaymentMethodRevolutPayOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index 4e48d06024..80e0703221 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -212,6 +212,13 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [JsonProperty("radar_options")] public SetupIntentPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; } + /// + /// If this is a Revolut Pay PaymentMethod, this hash contains details about the + /// Revolut Pay payment method. + /// + [JsonProperty("revolut_pay")] + public SetupIntentPaymentMethodDataRevolutPayOptions RevolutPay { get; set; } + /// /// If this is a sepa_debit PaymentMethod, this hash contains details about the SEPA /// debit bank account. @@ -235,8 +242,8 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata /// cashapp, customer_balance, eps, fpx, giropay, /// grabpay, ideal, klarna, konbini, link, oxxo, /// p24, paynow, paypal, pix, promptpay, - /// sepa_debit, sofort, us_bank_account, wechat_pay, or - /// zip. + /// revolut_pay, sepa_debit, sofort, us_bank_account, + /// wechat_pay, or zip. /// [JsonProperty("type")] public string Type { get; set; } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRevolutPayOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRevolutPayOptions.cs new file mode 100644 index 0000000000..359a0b46ca --- /dev/null +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataRevolutPayOptions.cs @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + public class SetupIntentPaymentMethodDataRevolutPayOptions : INestedOptions + { + } +}