Skip to content

Commit c10be6f

Browse files
Codegen for openapi v202
1 parent fd89758 commit c10be6f

6 files changed

+30
-7
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v199
1+
v202

src/Stripe.net/Entities/AccountSessions/AccountSession.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ namespace Stripe
77

88
/// <summary>
99
/// An AccountSession allows a Connect platform to grant access to a connected account in
10-
/// Connect Embedded UIs.
10+
/// Connect Elements.
1111
///
1212
/// We recommend that you create an AccountSession each time you need to display an embedded
1313
/// UI to your user. Do not save AccountSessions to your database as they expire relatively
1414
/// quickly, and cannot be used more than once.
1515
///
1616
/// Related guide: <a
17-
/// href="https://stripe.com/docs/connect/get-started-connect-elements">Connect Embedded
18-
/// UIs</a>.
17+
/// href="https://stripe.com/docs/connect/get-started-connect-elements">Connect
18+
/// Elements</a>.
1919
/// </summary>
2020
public class AccountSession : StripeEntity<AccountSession>, IHasObject
2121
{
@@ -41,7 +41,7 @@ public class AccountSession : StripeEntity<AccountSession>, IHasObject
4141
///
4242
/// Refer to our docs to <a
4343
/// href="https://stripe.com/docs/connect/get-started-connect-elements">setup Connect
44-
/// Embedded UIs</a> and learn about how <c>client_secret</c> should be handled.
44+
/// Elements</a> and learn about how <c>client_secret</c> should be handled.
4545
/// </summary>
4646
[JsonProperty("client_secret")]
4747
public string ClientSecret { get; set; }

src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendOptions.cs

+6
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ public class SubscriptionScheduleAmendOptions : BaseOptions
1111
/// </summary>
1212
[JsonProperty("amendments")]
1313
public List<SubscriptionScheduleAmendmentOptions> Amendments { get; set; }
14+
15+
/// <summary>
16+
/// Changes to apply to the subscription schedule.
17+
/// </summary>
18+
[JsonProperty("schedule_settings")]
19+
public SubscriptionScheduleScheduleSettingsOptions ScheduleSettings { get; set; }
1420
}
1521
}

src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentAmendmentEndOptions.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public class SubscriptionScheduleAmendmentAmendmentEndOptions : INestedOptions
2020

2121
/// <summary>
2222
/// Select one of three ways to pass the <c>amendment_end</c>.
23-
/// One of: <c>duration</c>, <c>schedule_end</c>, or <c>timestamp</c>.
23+
/// One of: <c>duration</c>, <c>schedule_end</c>, <c>timestamp</c>, or
24+
/// <c>upcoming_invoice</c>.
2425
/// </summary>
2526
[JsonProperty("type")]
2627
public string Type { get; set; }

src/Stripe.net/Services/SubscriptionSchedules/SubscriptionScheduleAmendmentAmendmentStartOptions.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public class SubscriptionScheduleAmendmentAmendmentStartOptions : INestedOptions
2020

2121
/// <summary>
2222
/// Select one of three ways to pass the <c>amendment_start</c>.
23-
/// One of: <c>amendment_end</c>, <c>now</c>, or <c>timestamp</c>.
23+
/// One of: <c>amendment_end</c>, <c>now</c>, <c>schedule_end</c>, <c>timestamp</c>, or
24+
/// <c>upcoming_invoice</c>.
2425
/// </summary>
2526
[JsonProperty("type")]
2627
public string Type { get; set; }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class SubscriptionScheduleScheduleSettingsOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Configures how the subscription schedule behaves when it ends.
10+
/// One of: <c>cancel</c>, or <c>release</c>.
11+
/// </summary>
12+
[JsonProperty("end_behavior")]
13+
public string EndBehavior { get; set; }
14+
}
15+
}

0 commit comments

Comments
 (0)