Skip to content

Commit

Permalink
Update generated code for v657
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 14, 2023
1 parent a848f89 commit 224f166
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v656
v657
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[JsonProperty("paynow")]
public SessionPaymentMethodOptionsPaynow Paynow { get; set; }

[JsonProperty("paypal")]
public SessionPaymentMethodOptionsPaypal Paypal { get; set; }

[JsonProperty("pix")]
public SessionPaymentMethodOptionsPix Pix { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class SessionPaymentMethodOptionsPaypal : StripeEntity<SessionPaymentMethodOptionsPaypal>
{
/// <summary>
/// Controls when the funds will be captured from the customer's account.
/// </summary>
[JsonProperty("capture_method")]
public string CaptureMethod { get; set; }

/// <summary>
/// Preferred locale of the PayPal checkout page that the customer is redirected to.
/// </summary>
[JsonProperty("preferred_locale")]
public string PreferredLocale { get; set; }

/// <summary>
/// A reference of the PayPal transaction visible to customer which is mapped to PayPal's
/// invoice ID. This must be a globally unique ID if you have configured in your PayPal
/// settings to block multiple payments per invoice ID.
/// </summary>
[JsonProperty("reference")]
public string Reference { get; set; }

/// <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; }

/// <summary>
/// The Stripe connected account IDs of the sellers on the platform for this transaction
/// (optional). Only allowed when <a
/// href="https://stripe.com/docs/connect/separate-charges-and-transfers">separate charges
/// and transfers</a> are used.
/// </summary>
[JsonProperty("subsellers")]
public List<string> Subsellers { get; set; }
}
}

0 comments on commit 224f166

Please sign in to comment.