Skip to content

Commit 27d2f88

Browse files
authored
Merge pull request #2233 from stripe/remi/codegen-9f2a7bc
Add `PreferredLocales` on `Charge` for payments made via Interac Present transactions
2 parents 296114c + 8a65a27 commit 27d2f88

5 files changed

+31
-0
lines changed

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

+7
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 ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePaymentMethodDetailsInteracPresent>
@@ -103,6 +104,12 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePayme
103104
[JsonProperty("network")]
104105
public string Network { get; set; }
105106

107+
/// <summary>
108+
/// EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
109+
/// </summary>
110+
[JsonProperty("preferred_locales")]
111+
public List<string> PreferredLocales { get; set; }
112+
106113
/// <summary>
107114
/// How card details were read in this transaction.
108115
/// One of: <c>contact_emv</c>, <c>contactless_emv</c>, <c>contactless_magstripe_mode</c>,

src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptions.cs

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public class PaymentIntentPaymentMethodOptions : StripeEntity<PaymentIntentPayme
1717
[JsonProperty("oxxo")]
1818
public PaymentIntentPaymentMethodOptionsOxxo Oxxo { get; set; }
1919

20+
[JsonProperty("p24")]
21+
public PaymentIntentPaymentMethodOptionsP24 P24 { get; set; }
22+
2023
[JsonProperty("sofort")]
2124
public PaymentIntentPaymentMethodOptionsSofort Sofort { get; set; }
2225
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
public class PaymentIntentPaymentMethodOptionsP24 : StripeEntity<PaymentIntentPaymentMethodOptionsP24>
5+
{
6+
}
7+
}

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

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ public class PaymentIntentPaymentMethodOptionsOptions : INestedOptions
3232
[JsonProperty("oxxo")]
3333
public PaymentIntentPaymentMethodOptionsOxxoOptions Oxxo { get; set; }
3434

35+
/// <summary>
36+
/// If this is a <c>p24</c> PaymentMethod, this sub-hash contains details about the
37+
/// Przelewy24 payment method options.
38+
/// </summary>
39+
[JsonProperty("p24")]
40+
public PaymentIntentPaymentMethodOptionsP24Options P24 { get; set; }
41+
3542
/// <summary>
3643
/// If this is a <c>sofort</c> PaymentMethod, this sub-hash contains details about the
3744
/// SOFORT payment method options.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
public class PaymentIntentPaymentMethodOptionsP24Options : INestedOptions
5+
{
6+
}
7+
}

0 commit comments

Comments
 (0)