Skip to content

Commit 4ecdab6

Browse files
committed
Codegen for openapi v173
1 parent ee2f2b7 commit 4ecdab6

14 files changed

+199
-14
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v172
1+
v173

src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardThreeDSecure.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity<ChargePay
1414

1515
/// <summary>
1616
/// Indicates the outcome of 3D Secure authentication.
17-
/// One of: <c>attempt_acknowledged</c>, <c>authenticated</c>, <c>failed</c>,
18-
/// <c>not_supported</c>, or <c>processing_error</c>.
17+
/// One of: <c>attempt_acknowledged</c>, <c>authenticated</c>, <c>exempted</c>,
18+
/// <c>failed</c>, <c>not_supported</c>, or <c>processing_error</c>.
1919
/// </summary>
2020
[JsonProperty("result")]
2121
public string Result { get; set; }

src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsKlarna.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class ChargePaymentMethodDetailsKlarna : StripeEntity<ChargePaymentMethod
1818
/// <c>de-DE</c>, <c>en-DE</c>, <c>da-DK</c>, <c>en-DK</c>, <c>es-ES</c>, <c>en-ES</c>,
1919
/// <c>fi-FI</c>, <c>sv-FI</c>, <c>en-FI</c>, <c>en-GB</c>, <c>en-IE</c>, <c>it-IT</c>,
2020
/// <c>en-IT</c>, <c>nl-NL</c>, <c>en-NL</c>, <c>nb-NO</c>, <c>en-NO</c>, <c>sv-SE</c>,
21-
/// <c>en-SE</c>, <c>en-US</c>, <c>es-US</c>, <c>fr-FR</c>, <c>en-FR</c>, <c>en-AU</c>, or
22-
/// <c>en-NZ</c>.
21+
/// <c>en-SE</c>, <c>en-US</c>, <c>es-US</c>, <c>fr-FR</c>, <c>en-FR</c>, <c>en-AU</c>,
22+
/// <c>en-NZ</c>, <c>en-CA</c>, or <c>fr-CA</c>.
2323
/// </summary>
2424
[JsonProperty("preferred_locale")]
2525
public string PreferredLocale { get; set; }

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

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
3232
[JsonProperty("card")]
3333
public SessionPaymentMethodOptionsCard Card { get; set; }
3434

35+
[JsonProperty("customer_balance")]
36+
public SessionPaymentMethodOptionsCustomerBalance CustomerBalance { get; set; }
37+
3538
[JsonProperty("eps")]
3639
public SessionPaymentMethodOptionsEps Eps { get; set; }
3740

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class SessionPaymentMethodOptionsCustomerBalance : StripeEntity<SessionPaymentMethodOptionsCustomerBalance>
7+
{
8+
[JsonProperty("bank_transfer")]
9+
public SessionPaymentMethodOptionsCustomerBalanceBankTransfer BankTransfer { get; set; }
10+
11+
/// <summary>
12+
/// The funding method type to be used when there are not enough funds in the customer
13+
/// balance. Permitted values include: <c>bank_transfer</c>.
14+
/// </summary>
15+
[JsonProperty("funding_type")]
16+
public string FundingType { get; set; }
17+
18+
/// <summary>
19+
/// Indicates that you intend to make future payments with this PaymentIntent's payment
20+
/// method.
21+
///
22+
/// Providing this parameter will <a
23+
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
24+
/// method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is
25+
/// confirmed and any required actions from the user are complete. If no Customer was
26+
/// provided, the payment method can still be <a
27+
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
28+
/// after the transaction completes.
29+
///
30+
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
31+
/// optimize your payment flow and comply with regional legislation and network rules, such
32+
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
33+
/// </summary>
34+
[JsonProperty("setup_future_usage")]
35+
public string SetupFutureUsage { get; set; }
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using System.Collections.Generic;
5+
using Newtonsoft.Json;
6+
7+
public class SessionPaymentMethodOptionsCustomerBalanceBankTransfer : StripeEntity<SessionPaymentMethodOptionsCustomerBalanceBankTransfer>
8+
{
9+
[JsonProperty("eu_bank_transfer")]
10+
public SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer EuBankTransfer { get; set; }
11+
12+
/// <summary>
13+
/// List of address types that should be returned in the financial_addresses response. If
14+
/// not specified, all valid types will be returned.
15+
///
16+
/// Permitted values include: <c>sort_code</c>, <c>zengin</c>, <c>iban</c>, or <c>spei</c>.
17+
/// </summary>
18+
[JsonProperty("requested_address_types")]
19+
public List<string> RequestedAddressTypes { get; set; }
20+
21+
/// <summary>
22+
/// The bank transfer type that this PaymentIntent is allowed to use for funding Permitted
23+
/// values include: <c>eu_bank_transfer</c>, <c>gb_bank_transfer</c>,
24+
/// <c>jp_bank_transfer</c>, or <c>mx_bank_transfer</c>.
25+
/// One of: <c>eu_bank_transfer</c>, <c>gb_bank_transfer</c>, <c>jp_bank_transfer</c>, or
26+
/// <c>mx_bank_transfer</c>.
27+
/// </summary>
28+
[JsonProperty("type")]
29+
public string Type { get; set; }
30+
}
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer : StripeEntity<SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer>
7+
{
8+
/// <summary>
9+
/// The desired country code of the bank account information. Permitted values include:
10+
/// <c>DE</c>, <c>ES</c>, <c>FR</c>, <c>IE</c>, or <c>NL</c>.
11+
/// One of: <c>DE</c>, <c>ES</c>, <c>FR</c>, <c>IE</c>, or <c>NL</c>.
12+
/// </summary>
13+
[JsonProperty("country")]
14+
public string Country { get; set; }
15+
}
16+
}

src/Stripe.net/Entities/Issuing/Disputes/Dispute.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ public class Dispute : StripeEntity<Dispute>, IHasId, IHasMetadata, IHasObject,
2929
public string Object { get; set; }
3030

3131
/// <summary>
32-
/// Disputed amount. Usually the amount of the <c>transaction</c>, but can differ (usually
33-
/// because of currency fluctuation).
32+
/// Disputed amount in the card's currency and in the <a
33+
/// href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
34+
/// Usually the amount of the <c>transaction</c>, but can differ (usually because of
35+
/// currency fluctuation).
3436
/// </summary>
3537
[JsonProperty("amount")]
3638
public long Amount { get; set; }

src/Stripe.net/Entities/SetupAttempts/SetupAttemptPaymentMethodDetailsCardThreeDSecure.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public class SetupAttemptPaymentMethodDetailsCardThreeDSecure : StripeEntity<Set
1414

1515
/// <summary>
1616
/// Indicates the outcome of 3D Secure authentication.
17-
/// One of: <c>attempt_acknowledged</c>, <c>authenticated</c>, <c>failed</c>,
18-
/// <c>not_supported</c>, or <c>processing_error</c>.
17+
/// One of: <c>attempt_acknowledged</c>, <c>authenticated</c>, <c>exempted</c>,
18+
/// <c>failed</c>, <c>not_supported</c>, or <c>processing_error</c>.
1919
/// </summary>
2020
[JsonProperty("result")]
2121
public string Result { get; set; }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// The desired country code of the bank account information. Permitted values include:
10+
/// <c>DE</c>, <c>ES</c>, <c>FR</c>, <c>IE</c>, or <c>NL</c>.
11+
/// </summary>
12+
[JsonProperty("country")]
13+
public string Country { get; set; }
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using System.Collections.Generic;
5+
using Newtonsoft.Json;
6+
7+
public class SessionPaymentMethodOptionsCustomerBalanceBankTransferOptions : INestedOptions
8+
{
9+
[JsonProperty("eu_bank_transfer")]
10+
public SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferOptions EuBankTransfer { get; set; }
11+
12+
/// <summary>
13+
/// List of address types that should be returned in the financial_addresses response. If
14+
/// not specified, all valid types will be returned.
15+
///
16+
/// Permitted values include: <c>sort_code</c>, <c>zengin</c>, <c>iban</c>, or <c>spei</c>.
17+
/// </summary>
18+
[JsonProperty("requested_address_types")]
19+
public List<string> RequestedAddressTypes { get; set; }
20+
21+
/// <summary>
22+
/// The list of bank transfer types that this PaymentIntent is allowed to use for funding.
23+
/// Permitted values include: <c>us_bank_account</c>, <c>eu_bank_account</c>,
24+
/// <c>id_bank_account</c>, <c>gb_bank_account</c>, <c>jp_bank_account</c>,
25+
/// <c>mx_bank_account</c>, <c>eu_bank_transfer</c>, <c>gb_bank_transfer</c>,
26+
/// <c>id_bank_transfer</c>, <c>jp_bank_transfer</c>, <c>mx_bank_transfer</c>, or
27+
/// <c>us_bank_transfer</c>.
28+
/// One of: <c>eu_bank_transfer</c>, <c>gb_bank_transfer</c>, <c>jp_bank_transfer</c>, or
29+
/// <c>mx_bank_transfer</c>.
30+
/// </summary>
31+
[JsonProperty("type")]
32+
public string Type { get; set; }
33+
}
34+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.Checkout
3+
{
4+
using Newtonsoft.Json;
5+
6+
public class SessionPaymentMethodOptionsCustomerBalanceOptions : INestedOptions
7+
{
8+
/// <summary>
9+
/// Configuration for the bank transfer funding type, if the <c>funding_type</c> is set to
10+
/// <c>bank_transfer</c>.
11+
/// </summary>
12+
[JsonProperty("bank_transfer")]
13+
public SessionPaymentMethodOptionsCustomerBalanceBankTransferOptions BankTransfer { get; set; }
14+
15+
/// <summary>
16+
/// The funding method type to be used when there are not enough funds in the customer
17+
/// balance. Permitted values include: <c>bank_transfer</c>.
18+
/// </summary>
19+
[JsonProperty("funding_type")]
20+
public string FundingType { get; set; }
21+
22+
/// <summary>
23+
/// Indicates that you intend to make future payments with this PaymentIntent's payment
24+
/// method.
25+
///
26+
/// Providing this parameter will <a
27+
/// href="https://stripe.com/docs/payments/save-during-payment">attach the payment
28+
/// method</a> to the PaymentIntent's Customer, if present, after the PaymentIntent is
29+
/// confirmed and any required actions from the user are complete. If no Customer was
30+
/// provided, the payment method can still be <a
31+
/// href="https://stripe.com/docs/api/payment_methods/attach">attached</a> to a Customer
32+
/// after the transaction completes.
33+
///
34+
/// When processing card payments, Stripe also uses <c>setup_future_usage</c> to dynamically
35+
/// optimize your payment flow and comply with regional legislation and network rules, such
36+
/// as <a href="https://stripe.com/docs/strong-customer-authentication">SCA</a>.
37+
/// </summary>
38+
[JsonProperty("setup_future_usage")]
39+
public string SetupFutureUsage { get; set; }
40+
}
41+
}

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

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions
5959
[JsonProperty("card")]
6060
public SessionPaymentMethodOptionsCardOptions Card { get; set; }
6161

62+
/// <summary>
63+
/// contains details about the Customer Balance payment method options.
64+
/// </summary>
65+
[JsonProperty("customer_balance")]
66+
public SessionPaymentMethodOptionsCustomerBalanceOptions CustomerBalance { get; set; }
67+
6268
/// <summary>
6369
/// contains details about the EPS payment method options.
6470
/// </summary>

src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodOptionsKlarnaOptions.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public class PaymentIntentPaymentMethodOptionsKlarnaOptions : INestedOptions
2020
/// <summary>
2121
/// Preferred language of the Klarna authorization page that the customer is redirected to.
2222
/// One of: <c>da-DK</c>, <c>de-AT</c>, <c>de-DE</c>, <c>en-AT</c>, <c>en-AU</c>,
23-
/// <c>en-BE</c>, <c>en-DE</c>, <c>en-DK</c>, <c>en-ES</c>, <c>en-FI</c>, <c>en-FR</c>,
24-
/// <c>en-GB</c>, <c>en-IE</c>, <c>en-IT</c>, <c>en-NL</c>, <c>en-NO</c>, <c>en-NZ</c>,
25-
/// <c>en-SE</c>, <c>en-US</c>, <c>es-ES</c>, <c>es-US</c>, <c>fi-FI</c>, <c>fr-BE</c>,
26-
/// <c>fr-FR</c>, <c>it-IT</c>, <c>nb-NO</c>, <c>nl-BE</c>, <c>nl-NL</c>, <c>sv-FI</c>, or
27-
/// <c>sv-SE</c>.
23+
/// <c>en-BE</c>, <c>en-CA</c>, <c>en-DE</c>, <c>en-DK</c>, <c>en-ES</c>, <c>en-FI</c>,
24+
/// <c>en-FR</c>, <c>en-GB</c>, <c>en-IE</c>, <c>en-IT</c>, <c>en-NL</c>, <c>en-NO</c>,
25+
/// <c>en-NZ</c>, <c>en-SE</c>, <c>en-US</c>, <c>es-ES</c>, <c>es-US</c>, <c>fi-FI</c>,
26+
/// <c>fr-BE</c>, <c>fr-CA</c>, <c>fr-FR</c>, <c>it-IT</c>, <c>nb-NO</c>, <c>nl-BE</c>,
27+
/// <c>nl-NL</c>, <c>sv-FI</c>, or <c>sv-SE</c>.
2828
/// </summary>
2929
[JsonProperty("preferred_locale")]
3030
public string PreferredLocale { get; set; }

0 commit comments

Comments
 (0)