Skip to content

Commit

Permalink
Update generated code for v636
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 1, 2023
1 parent bdf0cab commit 8251f00
Show file tree
Hide file tree
Showing 25 changed files with 196 additions and 15 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v633
v636
8 changes: 8 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,14 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[JsonProperty("promptpay_payments")]
public string PromptpayPayments { get; set; }

/// <summary>
/// The status of the RevolutPay capability of the account, or whether the account can
/// directly process RevolutPay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("revolut_pay_payments")]
public string RevolutPayPayments { get; set; }

/// <summary>
/// The status of the SEPA Direct Debits payments capability of the account, or whether the
/// account can directly process SEPA Direct Debits charges.
Expand Down
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[JsonProperty("promptpay")]
public ChargePaymentMethodDetailsPromptpay Promptpay { get; set; }

[JsonProperty("revolut_pay")]
public ChargePaymentMethodDetailsRevolutPay RevolutPay { get; set; }

[JsonProperty("sepa_debit")]
public ChargePaymentMethodDetailsSepaDebit SepaDebit { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class ChargePaymentMethodDetailsRevolutPay : StripeEntity<ChargePaymentMethodDetailsRevolutPay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[JsonProperty("pix")]
public SessionPaymentMethodOptionsPix Pix { get; set; }

[JsonProperty("revolut_pay")]
public SessionPaymentMethodOptionsRevolutPay RevolutPay { get; set; }

[JsonProperty("sepa_debit")]
public SessionPaymentMethodOptionsSepaDebit SepaDebit { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
public class SessionPaymentMethodOptionsRevolutPay : StripeEntity<SessionPaymentMethodOptionsRevolutPay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity<PaymentIntentPayme
[JsonProperty("promptpay")]
public PaymentIntentPaymentMethodOptionsPromptpay Promptpay { get; set; }

[JsonProperty("revolut_pay")]
public PaymentIntentPaymentMethodOptionsRevolutPay RevolutPay { get; set; }

[JsonProperty("sepa_debit")]
public PaymentIntentPaymentMethodOptionsSepaDebit SepaDebit { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentIntentPaymentMethodOptionsRevolutPay : StripeEntity<PaymentIntentPaymentMethodOptionsRevolutPay>
{
}
}
7 changes: 5 additions & 2 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand All @@ -195,8 +198,8 @@ public Customer Customer
/// <c>card</c>, <c>card_present</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>,
/// <c>fpx</c>, <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>interac_present</c>,
/// <c>klarna</c>, <c>konbini</c>, <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>,
/// <c>paypal</c>, <c>pix</c>, <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>,
/// <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// <c>paypal</c>, <c>pix</c>, <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_debit</c>,
/// <c>sofort</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentMethodRevolutPay : StripeEntity<PaymentMethodRevolutPay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ public class AccountCapabilitiesOptions : INestedOptions
[JsonProperty("promptpay_payments")]
public AccountCapabilitiesPromptpayPaymentsOptions PromptpayPayments { get; set; }

/// <summary>
/// The revolut_pay_payments capability.
/// </summary>
[JsonProperty("revolut_pay_payments")]
public AccountCapabilitiesRevolutPayPaymentsOptions RevolutPayPayments { get; set; }

/// <summary>
/// The sepa_debit_payments capability.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class AccountCapabilitiesRevolutPayPaymentsOptions : INestedOptions
{
/// <summary>
/// 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 <c>requirements</c> arrays.
/// </summary>
[JsonProperty("requested")]
public bool? Requested { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
/// <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>pix</c>,
/// <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_debit</c>, <c>sofort</c>,
/// <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("payment_method_types")]
public List<string> PaymentMethodTypes { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions
[JsonProperty("pix")]
public SessionPaymentMethodOptionsPixOptions Pix { get; set; }

/// <summary>
/// contains details about the RevolutPay payment method options.
/// </summary>
[JsonProperty("revolut_pay")]
public SessionPaymentMethodOptionsRevolutPayOptions RevolutPay { get; set; }

/// <summary>
/// contains details about the Sepa Debit payment method options.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsRevolutPayOptions : INestedOptions
{
/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// Providing this parameter will <a
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
/// method</a> 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 <a
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
/// after the transaction completes.
///
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
/// optimize your payment flow and comply with regional legislation and network rules, such
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
/// One of: <c>none</c>, or <c>off_session</c>.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class CustomerListPaymentMethodsOptions : ListOptions
/// <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>pix</c>,
/// <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_debit</c>, <c>sofort</c>,
/// <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
[JsonProperty("radar_options")]
public PaymentIntentPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; }

/// <summary>
/// If this is a <c>Revolut Pay</c> PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
/// </summary>
[JsonProperty("revolut_pay")]
public PaymentIntentPaymentMethodDataRevolutPayOptions RevolutPay { get; set; }

/// <summary>
/// If this is a <c>sepa_debit</c> PaymentMethod, this hash contains details about the SEPA
/// debit bank account.
Expand All @@ -235,8 +242,8 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat
/// <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>,
/// <c>grabpay</c>, <c>ideal</c>, <c>klarna</c>, <c>konbini</c>, <c>link</c>, <c>oxxo</c>,
/// <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>pix</c>, <c>promptpay</c>,
/// <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or
/// <c>zip</c>.
/// <c>revolut_pay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentIntentPaymentMethodDataRevolutPayOptions : INestedOptions
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions
[JsonProperty("promptpay")]
public PaymentIntentPaymentMethodOptionsPromptpayOptions Promptpay { get; set; }

/// <summary>
/// If this is a <c>revolut_pay</c> PaymentMethod, this sub-hash contains details about the
/// Demo Pay payment method options.
/// </summary>
[JsonProperty("revolut_pay")]
public PaymentIntentPaymentMethodOptionsRevolutPayOptions RevolutPay { get; set; }

/// <summary>
/// If this is a <c>sepa_debit</c> PaymentIntent, this sub-hash contains details about the
/// SEPA Debit payment method options.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PaymentIntentPaymentMethodOptionsRevolutPayOptions : INestedOptions
{
/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// Providing this parameter will <a
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
/// method</a> 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 <a
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
/// after the transaction completes.
///
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
/// optimize your payment flow and comply with regional legislation and network rules, such
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
/// One of: <c>none</c>, or <c>off_session</c>.
/// </summary>
[JsonProperty("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
[JsonProperty("radar_options")]
public PaymentMethodRadarOptionsOptions RadarOptions { get; set; }

/// <summary>
/// If this is a <c>Revolut Pay</c> PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
/// </summary>
[JsonProperty("revolut_pay")]
public PaymentMethodRevolutPayOptions RevolutPay { get; set; }

/// <summary>
/// If this is a <c>sepa_debit</c> PaymentMethod, this hash contains details about the SEPA
/// debit bank account.
Expand All @@ -259,8 +266,8 @@ public class PaymentMethodCreateOptions : BaseOptions, IHasMetadata
/// <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>pix</c>,
/// <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_debit</c>, <c>sofort</c>,
/// <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ public class PaymentMethodListOptions : ListOptions
/// <c>card</c>, <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>,
/// <c>giropay</c>, <c>grabpay</c>, <c>ideal</c>, <c>klarna</c>, <c>konbini</c>,
/// <c>link</c>, <c>oxxo</c>, <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>pix</c>,
/// <c>promptpay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// <c>promptpay</c>, <c>revolut_pay</c>, <c>sepa_debit</c>, <c>sofort</c>,
/// <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class PaymentMethodRevolutPayOptions : INestedOptions
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
[JsonProperty("radar_options")]
public SetupIntentPaymentMethodDataRadarOptionsOptions RadarOptions { get; set; }

/// <summary>
/// If this is a <c>Revolut Pay</c> PaymentMethod, this hash contains details about the
/// Revolut Pay payment method.
/// </summary>
[JsonProperty("revolut_pay")]
public SetupIntentPaymentMethodDataRevolutPayOptions RevolutPay { get; set; }

/// <summary>
/// If this is a <c>sepa_debit</c> PaymentMethod, this hash contains details about the SEPA
/// debit bank account.
Expand All @@ -235,8 +242,8 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata
/// <c>cashapp</c>, <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>,
/// <c>grabpay</c>, <c>ideal</c>, <c>klarna</c>, <c>konbini</c>, <c>link</c>, <c>oxxo</c>,
/// <c>p24</c>, <c>paynow</c>, <c>paypal</c>, <c>pix</c>, <c>promptpay</c>,
/// <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>, <c>wechat_pay</c>, or
/// <c>zip</c>.
/// <c>revolut_pay</c>, <c>sepa_debit</c>, <c>sofort</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class SetupIntentPaymentMethodDataRevolutPayOptions : INestedOptions
{
}
}

0 comments on commit 8251f00

Please sign in to comment.