Skip to content

Commit 80a394f

Browse files
Merge pull request #3232 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 60c8f88 + 598d622 commit 80a394f

File tree

92 files changed

+2215
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+2215
-84
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23fb5589c3b9c027a742408f7ac2cff1be45a926
1+
0b70149ad16c8d226d0b0d5ef7ac045c8a86ea31

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2080
1+
v2100

src/Stripe.net/Entities/Billing/MeterEventSummaries/MeterEventSummary.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Stripe.Billing
33
{
44
using System;
5+
using System.Collections.Generic;
56
using Newtonsoft.Json;
67
using Stripe.Infrastructure;
78
#if NET6_0_OR_GREATER
@@ -47,6 +48,15 @@ public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasOb
4748
#endif
4849
public decimal AggregatedValue { get; set; }
4950

51+
/// <summary>
52+
/// Key-value pairs of dimension values for event summaries with grouping on dimensions.
53+
/// </summary>
54+
[JsonProperty("dimensions")]
55+
#if NET6_0_OR_GREATER
56+
[STJS.JsonPropertyName("dimensions")]
57+
#endif
58+
public Dictionary<string, string> Dimensions { get; set; }
59+
5060
/// <summary>
5161
/// End timestamp for this event summary (exclusive). Must be aligned with minute
5262
/// boundaries.

src/Stripe.net/Entities/Billing/Meters/Meter.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Stripe.Billing
33
{
44
using System;
5+
using System.Collections.Generic;
56
using Newtonsoft.Json;
67
using Stripe.Infrastructure;
78
#if NET6_0_OR_GREATER
@@ -59,6 +60,15 @@ public class Meter : StripeEntity<Meter>, IHasId, IHasObject
5960
#endif
6061
public MeterDefaultAggregation DefaultAggregation { get; set; }
6162

63+
/// <summary>
64+
/// Set of keys that will be used to group meter events by.
65+
/// </summary>
66+
[JsonProperty("dimension_payload_keys")]
67+
#if NET6_0_OR_GREATER
68+
[STJS.JsonPropertyName("dimension_payload_keys")]
69+
#endif
70+
public List<string> DimensionPayloadKeys { get; set; }
71+
6272
/// <summary>
6373
/// The meter's name.
6474
/// </summary>

src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSession.cs

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
// File generated from our OpenAPI spec
22
namespace Stripe.DelegatedCheckout
33
{
4+
using System;
5+
using System.Collections.Generic;
46
using Newtonsoft.Json;
7+
using Stripe.Infrastructure;
58
#if NET6_0_OR_GREATER
69
using STJS = System.Text.Json.Serialization;
710
#endif
811

912
/// <summary>
1013
/// A requested session is a session that has been requested by a customer.
1114
/// </summary>
12-
public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObject
15+
public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasMetadata, IHasObject
1316
{
1417
/// <summary>
1518
/// Unique identifier for the object.
@@ -29,6 +32,35 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObje
2932
#endif
3033
public string Object { get; set; }
3134

35+
/// <summary>
36+
/// The subtotal amount of the requested session.
37+
/// </summary>
38+
[JsonProperty("amount_subtotal")]
39+
#if NET6_0_OR_GREATER
40+
[STJS.JsonPropertyName("amount_subtotal")]
41+
#endif
42+
public long AmountSubtotal { get; set; }
43+
44+
/// <summary>
45+
/// The total amount of the requested session.
46+
/// </summary>
47+
[JsonProperty("amount_total")]
48+
#if NET6_0_OR_GREATER
49+
[STJS.JsonPropertyName("amount_total")]
50+
#endif
51+
public long AmountTotal { get; set; }
52+
53+
/// <summary>
54+
/// Time at which the object was created. Measured in seconds since the Unix epoch.
55+
/// </summary>
56+
[JsonProperty("created_at")]
57+
[JsonConverter(typeof(UnixDateTimeConverter))]
58+
#if NET6_0_OR_GREATER
59+
[STJS.JsonPropertyName("created_at")]
60+
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
61+
#endif
62+
public DateTime CreatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
63+
3264
/// <summary>
3365
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
3466
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
@@ -49,12 +81,35 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObje
4981
#endif
5082
public string Customer { get; set; }
5183

84+
/// <summary>
85+
/// Time at which the requested session expires. Measured in seconds since the Unix epoch.
86+
/// </summary>
87+
[JsonProperty("expires_at")]
88+
[JsonConverter(typeof(UnixDateTimeConverter))]
89+
#if NET6_0_OR_GREATER
90+
[STJS.JsonPropertyName("expires_at")]
91+
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
92+
#endif
93+
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
94+
95+
/// <summary>
96+
/// The details of the fulfillment.
97+
/// </summary>
5298
[JsonProperty("fulfillment_details")]
5399
#if NET6_0_OR_GREATER
54100
[STJS.JsonPropertyName("fulfillment_details")]
55101
#endif
56102
public RequestedSessionFulfillmentDetails FulfillmentDetails { get; set; }
57103

104+
/// <summary>
105+
/// The line items to be purchased.
106+
/// </summary>
107+
[JsonProperty("line_item_details")]
108+
#if NET6_0_OR_GREATER
109+
[STJS.JsonPropertyName("line_item_details")]
110+
#endif
111+
public List<RequestedSessionLineItemDetail> LineItemDetails { get; set; }
112+
58113
/// <summary>
59114
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
60115
/// the object exists in test mode.
@@ -64,5 +119,94 @@ public class RequestedSession : StripeEntity<RequestedSession>, IHasId, IHasObje
64119
[STJS.JsonPropertyName("livemode")]
65120
#endif
66121
public bool Livemode { get; set; }
122+
123+
/// <summary>
124+
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
125+
/// attach to an object. This can be useful for storing additional information about the
126+
/// object in a structured format.
127+
/// </summary>
128+
[JsonProperty("metadata")]
129+
#if NET6_0_OR_GREATER
130+
[STJS.JsonPropertyName("metadata")]
131+
#endif
132+
public Dictionary<string, string> Metadata { get; set; }
133+
134+
/// <summary>
135+
/// The details of the order.
136+
/// </summary>
137+
[JsonProperty("order_details")]
138+
#if NET6_0_OR_GREATER
139+
[STJS.JsonPropertyName("order_details")]
140+
#endif
141+
public RequestedSessionOrderDetails OrderDetails { get; set; }
142+
143+
/// <summary>
144+
/// The payment method used for the requested session.
145+
/// </summary>
146+
[JsonProperty("payment_method")]
147+
#if NET6_0_OR_GREATER
148+
[STJS.JsonPropertyName("payment_method")]
149+
#endif
150+
public string PaymentMethod { get; set; }
151+
152+
[JsonProperty("seller_details")]
153+
#if NET6_0_OR_GREATER
154+
[STJS.JsonPropertyName("seller_details")]
155+
#endif
156+
public RequestedSessionSellerDetails SellerDetails { get; set; }
157+
158+
/// <summary>
159+
/// Whether or not the payment method should be saved for future use.
160+
/// </summary>
161+
[JsonProperty("setup_future_usage")]
162+
#if NET6_0_OR_GREATER
163+
[STJS.JsonPropertyName("setup_future_usage")]
164+
#endif
165+
public string SetupFutureUsage { get; set; }
166+
167+
/// <summary>
168+
/// The metadata shared with the seller.
169+
/// </summary>
170+
[JsonProperty("shared_metadata")]
171+
#if NET6_0_OR_GREATER
172+
[STJS.JsonPropertyName("shared_metadata")]
173+
#endif
174+
public Dictionary<string, string> SharedMetadata { get; set; }
175+
176+
/// <summary>
177+
/// The SPT used for payment.
178+
/// </summary>
179+
[JsonProperty("shared_payment_issued_token")]
180+
#if NET6_0_OR_GREATER
181+
[STJS.JsonPropertyName("shared_payment_issued_token")]
182+
#endif
183+
public string SharedPaymentIssuedToken { get; set; }
184+
185+
/// <summary>
186+
/// The status of the requested session.
187+
/// One of: <c>completed</c>, <c>expired</c>, or <c>open</c>.
188+
/// </summary>
189+
[JsonProperty("status")]
190+
#if NET6_0_OR_GREATER
191+
[STJS.JsonPropertyName("status")]
192+
#endif
193+
public string Status { get; set; }
194+
195+
[JsonProperty("total_details")]
196+
#if NET6_0_OR_GREATER
197+
[STJS.JsonPropertyName("total_details")]
198+
#endif
199+
public RequestedSessionTotalDetails TotalDetails { get; set; }
200+
201+
/// <summary>
202+
/// Time at which the object was last updated. Measured in seconds since the Unix epoch.
203+
/// </summary>
204+
[JsonProperty("updated_at")]
205+
[JsonConverter(typeof(UnixDateTimeConverter))]
206+
#if NET6_0_OR_GREATER
207+
[STJS.JsonPropertyName("updated_at")]
208+
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
209+
#endif
210+
public DateTime UpdatedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
67211
}
68212
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,66 @@
11
// File generated from our OpenAPI spec
22
namespace Stripe.DelegatedCheckout
33
{
4+
using System.Collections.Generic;
5+
using Newtonsoft.Json;
6+
#if NET6_0_OR_GREATER
7+
using STJS = System.Text.Json.Serialization;
8+
#endif
9+
410
public class RequestedSessionFulfillmentDetails : StripeEntity<RequestedSessionFulfillmentDetails>
511
{
12+
/// <summary>
13+
/// The fulfillment address.
14+
/// </summary>
15+
[JsonProperty("address")]
16+
#if NET6_0_OR_GREATER
17+
[STJS.JsonPropertyName("address")]
18+
#endif
19+
public RequestedSessionFulfillmentDetailsAddress Address { get; set; }
20+
21+
/// <summary>
22+
/// The email address for the fulfillment details.
23+
/// </summary>
24+
[JsonProperty("email")]
25+
#if NET6_0_OR_GREATER
26+
[STJS.JsonPropertyName("email")]
27+
#endif
28+
public string Email { get; set; }
29+
30+
/// <summary>
31+
/// The fulfillment options.
32+
/// </summary>
33+
[JsonProperty("fulfillment_options")]
34+
#if NET6_0_OR_GREATER
35+
[STJS.JsonPropertyName("fulfillment_options")]
36+
#endif
37+
public List<RequestedSessionFulfillmentDetailsFulfillmentOption> FulfillmentOptions { get; set; }
38+
39+
/// <summary>
40+
/// The name for the fulfillment details.
41+
/// </summary>
42+
[JsonProperty("name")]
43+
#if NET6_0_OR_GREATER
44+
[STJS.JsonPropertyName("name")]
45+
#endif
46+
public string Name { get; set; }
47+
48+
/// <summary>
49+
/// The phone number for the fulfillment details.
50+
/// </summary>
51+
[JsonProperty("phone")]
52+
#if NET6_0_OR_GREATER
53+
[STJS.JsonPropertyName("phone")]
54+
#endif
55+
public string Phone { get; set; }
56+
57+
/// <summary>
58+
/// The fulfillment option.
59+
/// </summary>
60+
[JsonProperty("selected_fulfillment_option")]
61+
#if NET6_0_OR_GREATER
62+
[STJS.JsonPropertyName("selected_fulfillment_option")]
63+
#endif
64+
public RequestedSessionFulfillmentDetailsSelectedFulfillmentOption SelectedFulfillmentOption { get; set; }
665
}
766
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.DelegatedCheckout
3+
{
4+
using Newtonsoft.Json;
5+
#if NET6_0_OR_GREATER
6+
using STJS = System.Text.Json.Serialization;
7+
#endif
8+
9+
public class RequestedSessionFulfillmentDetailsAddress : StripeEntity<RequestedSessionFulfillmentDetailsAddress>
10+
{
11+
/// <summary>
12+
/// City, district, suburb, town, or village.
13+
/// </summary>
14+
[JsonProperty("city")]
15+
#if NET6_0_OR_GREATER
16+
[STJS.JsonPropertyName("city")]
17+
#endif
18+
public string City { get; set; }
19+
20+
/// <summary>
21+
/// Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
22+
/// 3166-1 alpha-2</a>).
23+
/// </summary>
24+
[JsonProperty("country")]
25+
#if NET6_0_OR_GREATER
26+
[STJS.JsonPropertyName("country")]
27+
#endif
28+
public string Country { get; set; }
29+
30+
/// <summary>
31+
/// Address line 1, such as the street, PO Box, or company name.
32+
/// </summary>
33+
[JsonProperty("line1")]
34+
#if NET6_0_OR_GREATER
35+
[STJS.JsonPropertyName("line1")]
36+
#endif
37+
public string Line1 { get; set; }
38+
39+
/// <summary>
40+
/// Address line 2, such as the apartment, suite, unit, or building.
41+
/// </summary>
42+
[JsonProperty("line2")]
43+
#if NET6_0_OR_GREATER
44+
[STJS.JsonPropertyName("line2")]
45+
#endif
46+
public string Line2 { get; set; }
47+
48+
/// <summary>
49+
/// ZIP or postal code.
50+
/// </summary>
51+
[JsonProperty("postal_code")]
52+
#if NET6_0_OR_GREATER
53+
[STJS.JsonPropertyName("postal_code")]
54+
#endif
55+
public string PostalCode { get; set; }
56+
57+
/// <summary>
58+
/// State, county, province, or region.
59+
/// </summary>
60+
[JsonProperty("state")]
61+
#if NET6_0_OR_GREATER
62+
[STJS.JsonPropertyName("state")]
63+
#endif
64+
public string State { get; set; }
65+
}
66+
}

0 commit comments

Comments
 (0)