Skip to content

Commit 0bccd9d

Browse files
committed
Codegen for openapi v163
1 parent 0c179e3 commit 0bccd9d

File tree

39 files changed

+704
-12
lines changed

39 files changed

+704
-12
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v162
1+
v163

src/Stripe.net/Entities/Checkout/Sessions/SessionCustomerDetails.cs

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,43 @@ namespace Stripe.Checkout
77
public class SessionCustomerDetails : StripeEntity<SessionCustomerDetails>
88
{
99
/// <summary>
10-
/// The customer's address at the time of checkout. Note: This property is populated only
11-
/// for sessions on or after March 30, 2022.
10+
/// The customer's address after a completed Checkout Session. Note: This property is
11+
/// populated only for sessions on or after March 30, 2022.
1212
/// </summary>
1313
[JsonProperty("address")]
1414
public Address Address { get; set; }
1515

1616
/// <summary>
17-
/// The email associated with the Customer, if one exists, on the Checkout Session at the
18-
/// time of checkout or at time of session expiry. Otherwise, if the customer has consented
19-
/// to promotional content, this value is the most recent valid email provided by the
20-
/// customer on the Checkout form.
17+
/// The email associated with the Customer, if one exists, on the Checkout Session after a
18+
/// completed Checkout Session or at time of session expiry. Otherwise, if the customer has
19+
/// consented to promotional content, this value is the most recent valid email provided by
20+
/// the customer on the Checkout form.
2121
/// </summary>
2222
[JsonProperty("email")]
2323
public string Email { get; set; }
2424

2525
/// <summary>
26-
/// The customer's name at the time of checkout. Note: This property is populated only for
27-
/// sessions on or after March 30, 2022.
26+
/// The customer's name after a completed Checkout Session. Note: This property is populated
27+
/// only for sessions on or after March 30, 2022.
2828
/// </summary>
2929
[JsonProperty("name")]
3030
public string Name { get; set; }
3131

3232
/// <summary>
33-
/// The customer's phone number at the time of checkout.
33+
/// The customer's phone number after a completed Checkout Session.
3434
/// </summary>
3535
[JsonProperty("phone")]
3636
public string Phone { get; set; }
3737

3838
/// <summary>
39-
/// The customer’s tax exempt status at time of checkout.
39+
/// The customer’s tax exempt status after a completed Checkout Session.
4040
/// One of: <c>exempt</c>, <c>none</c>, or <c>reverse</c>.
4141
/// </summary>
4242
[JsonProperty("tax_exempt")]
4343
public string TaxExempt { get; set; }
4444

4545
/// <summary>
46-
/// The customer’s tax IDs at time of checkout.
46+
/// The customer’s tax IDs after a completed Checkout Session.
4747
/// </summary>
4848
[JsonProperty("tax_ids")]
4949
public List<SessionCustomerDetailsTaxId> TaxIds { get; set; }

src/Stripe.net/Entities/Coupons/Coupon.cs

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ public class Coupon : StripeEntity<Coupon>, IHasId, IHasMetadata, IHasObject
5555
[JsonProperty("currency")]
5656
public string Currency { get; set; }
5757

58+
/// <summary>
59+
/// Coupons defined in each available currency option. Each key must be a three-letter <a
60+
/// href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a> and a <a
61+
/// href="https://stripe.com/docs/currencies">supported currency</a>.
62+
/// </summary>
63+
[JsonProperty("currency_options")]
64+
public Dictionary<string, CouponCurrencyOptions> CurrencyOptions { get; set; }
65+
5866
/// <summary>
5967
/// Whether this object is deleted or not.
6068
/// </summary>
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 CouponCurrencyOptions : StripeEntity<CouponCurrencyOptions>
7+
{
8+
/// <summary>
9+
/// Amount (in the <c>currency</c> specified) that will be taken off the subtotal of any
10+
/// invoices for this customer.
11+
/// </summary>
12+
[JsonProperty("amount_off")]
13+
public long AmountOff { get; set; }
14+
}
15+
}

src/Stripe.net/Entities/Prices/Price.cs

+8
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ public class Price : StripeEntity<Price>, IHasId, IHasMetadata, IHasObject
7272
[JsonProperty("currency")]
7373
public string Currency { get; set; }
7474

75+
/// <summary>
76+
/// Prices defined in each available currency option. Each key must be a three-letter <a
77+
/// href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a> and a <a
78+
/// href="https://stripe.com/docs/currencies">supported currency</a>.
79+
/// </summary>
80+
[JsonProperty("currency_options")]
81+
public Dictionary<string, PriceCurrencyOptions> CurrencyOptions { get; set; }
82+
7583
/// <summary>
7684
/// When set, provides configuration for the amount to be adjusted by the customer during
7785
/// Checkout Sessions and Payment Links.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using System.Collections.Generic;
5+
using Newtonsoft.Json;
6+
7+
public class PriceCurrencyOptions : StripeEntity<PriceCurrencyOptions>
8+
{
9+
/// <summary>
10+
/// When set, provides configuration for the amount to be adjusted by the customer during
11+
/// Checkout Sessions and Payment Links.
12+
/// </summary>
13+
[JsonProperty("custom_unit_amount")]
14+
public PriceCurrencyOptionsCustomUnitAmount CustomUnitAmount { get; set; }
15+
16+
/// <summary>
17+
/// Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One
18+
/// of <c>inclusive</c>, <c>exclusive</c>, or <c>unspecified</c>. Once specified as either
19+
/// <c>inclusive</c> or <c>exclusive</c>, it cannot be changed.
20+
/// One of: <c>exclusive</c>, <c>inclusive</c>, or <c>unspecified</c>.
21+
/// </summary>
22+
[JsonProperty("tax_behavior")]
23+
public string TaxBehavior { get; set; }
24+
25+
/// <summary>
26+
/// Each element represents a pricing tier. This parameter requires <c>billing_scheme</c> to
27+
/// be set to <c>tiered</c>. See also the documentation for <c>billing_scheme</c>.
28+
/// </summary>
29+
[JsonProperty("tiers")]
30+
public List<PriceCurrencyOptionsTier> Tiers { get; set; }
31+
32+
/// <summary>
33+
/// The unit amount in %s to be charged, represented as a whole integer if possible. Only
34+
/// set if <c>billing_scheme=per_unit</c>.
35+
/// </summary>
36+
[JsonProperty("unit_amount")]
37+
public long? UnitAmount { get; set; }
38+
39+
/// <summary>
40+
/// The unit amount in %s to be charged, represented as a decimal string with at most 12
41+
/// decimal places. Only set if <c>billing_scheme=per_unit</c>.
42+
/// </summary>
43+
[JsonProperty("unit_amount_decimal")]
44+
public decimal? UnitAmountDecimal { get; set; }
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class PriceCurrencyOptionsCustomUnitAmount : StripeEntity<PriceCurrencyOptionsCustomUnitAmount>
7+
{
8+
/// <summary>
9+
/// The maximum unit amount the customer can specify for this item.
10+
/// </summary>
11+
[JsonProperty("maximum")]
12+
public long? Maximum { get; set; }
13+
14+
/// <summary>
15+
/// The minimum unit amount the customer can specify for this item. Must be at least the
16+
/// minimum charge amount.
17+
/// </summary>
18+
[JsonProperty("minimum")]
19+
public long? Minimum { get; set; }
20+
21+
/// <summary>
22+
/// The starting unit amount which can be updated by the customer.
23+
/// </summary>
24+
[JsonProperty("preset")]
25+
public long? Preset { get; set; }
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class PriceCurrencyOptionsTier : StripeEntity<PriceCurrencyOptionsTier>
7+
{
8+
/// <summary>
9+
/// Price for the entire tier.
10+
/// </summary>
11+
[JsonProperty("flat_amount")]
12+
public long? FlatAmount { get; set; }
13+
14+
/// <summary>
15+
/// Same as <c>flat_amount</c>, but contains a decimal value with at most 12 decimal places.
16+
/// </summary>
17+
[JsonProperty("flat_amount_decimal")]
18+
public decimal? FlatAmountDecimal { get; set; }
19+
20+
/// <summary>
21+
/// Per unit price for units relevant to the tier.
22+
/// </summary>
23+
[JsonProperty("unit_amount")]
24+
public long? UnitAmount { get; set; }
25+
26+
/// <summary>
27+
/// Same as <c>unit_amount</c>, but contains a decimal value with at most 12 decimal places.
28+
/// </summary>
29+
[JsonProperty("unit_amount_decimal")]
30+
public decimal? UnitAmountDecimal { get; set; }
31+
32+
/// <summary>
33+
/// Up to and including to this quantity will be contained in the tier.
34+
/// </summary>
35+
[JsonProperty("up_to")]
36+
public long? UpTo { get; set; }
37+
}
38+
}

src/Stripe.net/Entities/PromotionCodes/PromotionCodeRestrictions.cs

+9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
// File generated from our OpenAPI spec
22
namespace Stripe
33
{
4+
using System.Collections.Generic;
45
using Newtonsoft.Json;
56

67
public class PromotionCodeRestrictions : StripeEntity<PromotionCodeRestrictions>
78
{
9+
/// <summary>
10+
/// Promotion code restrictions defined in each available currency option. Each key must be
11+
/// a three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
12+
/// code</a> and a <a href="https://stripe.com/docs/currencies">supported currency</a>.
13+
/// </summary>
14+
[JsonProperty("currency_options")]
15+
public Dictionary<string, PromotionCodeRestrictionsCurrencyOptions> CurrencyOptions { get; set; }
16+
817
/// <summary>
918
/// A Boolean indicating if the Promotion Code should only be redeemed for Customers without
1019
/// any successful payments or invoices.
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 PromotionCodeRestrictionsCurrencyOptions : StripeEntity<PromotionCodeRestrictionsCurrencyOptions>
7+
{
8+
/// <summary>
9+
/// Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase
10+
/// must be $100 or more to work).
11+
/// </summary>
12+
[JsonProperty("minimum_amount")]
13+
public long MinimumAmount { get; set; }
14+
}
15+
}

src/Stripe.net/Entities/ShippingRates/ShippingRateFixedAmount.cs

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// File generated from our OpenAPI spec
22
namespace Stripe
33
{
4+
using System.Collections.Generic;
45
using Newtonsoft.Json;
56

67
public class ShippingRateFixedAmount : StripeEntity<ShippingRateFixedAmount>
@@ -18,5 +19,13 @@ public class ShippingRateFixedAmount : StripeEntity<ShippingRateFixedAmount>
1819
/// </summary>
1920
[JsonProperty("currency")]
2021
public string Currency { get; set; }
22+
23+
/// <summary>
24+
/// Shipping rates defined in each available currency option. Each key must be a
25+
/// three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
26+
/// code</a> and a <a href="https://stripe.com/docs/currencies">supported currency</a>.
27+
/// </summary>
28+
[JsonProperty("currency_options")]
29+
public Dictionary<string, ShippingRateFixedAmountCurrencyOptions> CurrencyOptions { get; set; }
2130
}
2231
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class ShippingRateFixedAmountCurrencyOptions : StripeEntity<ShippingRateFixedAmountCurrencyOptions>
7+
{
8+
/// <summary>
9+
/// A non-negative integer in cents representing how much to charge.
10+
/// </summary>
11+
[JsonProperty("amount")]
12+
public long Amount { get; set; }
13+
14+
/// <summary>
15+
/// Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One
16+
/// of <c>inclusive</c>, <c>exclusive</c>, or <c>unspecified</c>.
17+
/// One of: <c>exclusive</c>, <c>inclusive</c>, or <c>unspecified</c>.
18+
/// </summary>
19+
[JsonProperty("tax_behavior")]
20+
public string TaxBehavior { get; set; }
21+
}
22+
}

src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedulePhase.cs

+8
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ public Coupon Coupon
8585
internal ExpandableField<Coupon> InternalCoupon { get; set; }
8686
#endregion
8787

88+
/// <summary>
89+
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
90+
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
91+
/// currency</a>.
92+
/// </summary>
93+
[JsonProperty("currency")]
94+
public string Currency { get; set; }
95+
8896
#region Expandable DefaultPaymentMethod
8997

9098
/// <summary>

src/Stripe.net/Entities/Subscriptions/Subscription.cs

+8
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ public Application Application
127127
[JsonConverter(typeof(UnixDateTimeConverter))]
128128
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
129129

130+
/// <summary>
131+
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
132+
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
133+
/// currency</a>.
134+
/// </summary>
135+
[JsonProperty("currency")]
136+
public string Currency { get; set; }
137+
130138
/// <summary>
131139
/// End of the current period that the subscription has been invoiced for. At the end of
132140
/// this period, a new invoice will be created.

src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata
5454
[JsonProperty("consent_collection")]
5555
public SessionConsentCollectionOptions ConsentCollection { get; set; }
5656

57+
/// <summary>
58+
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
59+
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
60+
/// currency</a>.
61+
/// </summary>
62+
[JsonProperty("currency")]
63+
public string Currency { get; set; }
64+
5765
/// <summary>
5866
/// ID of an existing Customer, if one exists. In <c>payment</c> mode, the customer’s most
5967
/// recent card payment method will be used to prefill the email, name, card details, and
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class SessionShippingOptionShippingRateDataFixedAmountCurrencyOptionsOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// A non-negative integer in cents representing how much to charge.
10+
/// </summary>
11+
[JsonProperty("amount")]
12+
public long? Amount { get; set; }
13+
14+
/// <summary>
15+
/// Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One
16+
/// of <c>inclusive</c>, <c>exclusive</c>, or <c>unspecified</c>.
17+
/// One of: <c>exclusive</c>, <c>inclusive</c>, or <c>unspecified</c>.
18+
/// </summary>
19+
[JsonProperty("tax_behavior")]
20+
public string TaxBehavior { get; set; }
21+
}
22+
}

src/Stripe.net/Services/Checkout/Sessions/SessionShippingOptionShippingRateDataFixedAmountOptions.cs

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// File generated from our OpenAPI spec
22
namespace Stripe.Checkout
33
{
4+
using System.Collections.Generic;
45
using Newtonsoft.Json;
56

67
public class SessionShippingOptionShippingRateDataFixedAmountOptions : INestedOptions
@@ -18,5 +19,13 @@ public class SessionShippingOptionShippingRateDataFixedAmountOptions : INestedOp
1819
/// </summary>
1920
[JsonProperty("currency")]
2021
public string Currency { get; set; }
22+
23+
/// <summary>
24+
/// Shipping rates defined in each available currency option. Each key must be a
25+
/// three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
26+
/// code</a> and a <a href="https://stripe.com/docs/currencies">supported currency</a>.
27+
/// </summary>
28+
[JsonProperty("currency_options")]
29+
public Dictionary<string, SessionShippingOptionShippingRateDataFixedAmountCurrencyOptionsOptions> CurrencyOptions { get; set; }
2130
}
2231
}

0 commit comments

Comments
 (0)