Skip to content

Commit

Permalink
Update generated code for v1337
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 8, 2024
1 parent f219eb1 commit 0f4ff2d
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 6 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1335
v1337
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public SetupIntent SetupIntent
/// relevant text on the page, such as the submit button. <c>submit_type</c> can only be
/// specified on Checkout Sessions in <c>payment</c> mode. If blank or <c>auto</c>,
/// <c>pay</c> is used.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public Account OnBehalfOf
/// <summary>
/// Indicates the type of transaction being performed which customizes relevant text on the
/// page, such as the submit button.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/Payouts/Payout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ public Payout ReversedBy
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// A value that generates from the beneficiary's bank that allows users to track payouts
/// with their bank. Banks might call this a "reference number" or something similar.
/// </summary>
[JsonProperty("trace_id")]
public PayoutTraceId TraceId { get; set; }

/// <summary>
/// Can be <c>bank_account</c> or <c>card</c>.
/// One of: <c>bank_account</c>, or <c>card</c>.
Expand Down
25 changes: 25 additions & 0 deletions src/Stripe.net/Entities/Payouts/PayoutTraceId.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class PayoutTraceId : StripeEntity<PayoutTraceId>
{
/// <summary>
/// Possible values are <c>pending</c>, <c>supported</c>, and <c>unsupported</c>. When
/// <c>payout.status</c> is <c>pending</c> or <c>in_transit</c>, this will be
/// <c>pending</c>. When the payout transitions to <c>paid</c>, <c>failed</c>, or
/// <c>canceled</c>, this status will become <c>supported</c> or <c>unsupported</c> shortly
/// after in most cases. In some cases, this may appear as <c>pending</c> for up to 10 days
/// after <c>arrival_date</c> until transitioning to <c>supported</c> or <c>unsupported</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }

/// <summary>
/// The trace ID value if <c>trace_id.status</c> is <c>supported</c>, otherwise <c>nil</c>.
/// </summary>
[JsonProperty("value")]
public string Value { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
/// relevant text on the page, such as the submit button. <c>submit_type</c> can only be
/// specified on Checkout Sessions in <c>payment</c> mode. If blank or <c>auto</c>,
/// <c>pay</c> is used.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata
/// in the <a
/// href="https://stripe.com/docs/api/payment_links/payment_links/object#url">url</a>
/// property (example: <c>donate.stripe.com</c>).
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public class PaymentLinkUpdateOptions : BaseOptions, IHasMetadata
/// in the <a
/// href="https://stripe.com/docs/api/payment_links/payment_links/object#url">url</a>
/// property (example: <c>donate.stripe.com</c>).
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, or <c>pay</c>.
/// One of: <c>auto</c>, <c>book</c>, <c>donate</c>, <c>pay</c>, or <c>subscribe</c>.
/// </summary>
[JsonProperty("submit_type")]
public string SubmitType { get; set; }
Expand Down

0 comments on commit 0f4ff2d

Please sign in to comment.