From 6108e92393a8ed92abe29e791db55f263309a6dc Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:24:35 +0000 Subject: [PATCH] Update generated code for v1397 --- OPENAPI_VERSION | 2 +- .../Terminal/Readers/ReaderActionCollectPaymentMethod.cs | 9 +++++++++ .../Terminal/Readers/ReaderActionConfirmPaymentIntent.cs | 9 +++++++++ .../Terminal/Readers/ReaderActionProcessPaymentIntent.cs | 9 +++++++++ .../Terminal/Readers/ReaderActionRefundPayment.cs | 9 +++++++++ 5 files changed, 37 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5120dc63e2..42258ffb39 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1396 \ No newline at end of file +v1397 \ No newline at end of file diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs index 04e79a1534..21e1fb3a06 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionCollectPaymentMethod.cs @@ -6,6 +6,12 @@ namespace Stripe.Terminal public class ReaderActionCollectPaymentMethod : StripeEntity { + /// + /// Account the payment intent belongs to. + /// + [JsonProperty("account")] + public string Account { get; set; } + /// /// Represents a per-transaction override of a reader configuration. /// @@ -56,6 +62,9 @@ public PaymentIntent PaymentIntent [JsonProperty("payment_method")] public PaymentMethod PaymentMethod { get; set; } + /// + /// This field will be deprecated. Please use account instead. + /// [JsonProperty("stripe_account")] public string StripeAccount { get; set; } } diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs index 771417969e..1705cc1786 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionConfirmPaymentIntent.cs @@ -6,6 +6,12 @@ namespace Stripe.Terminal public class ReaderActionConfirmPaymentIntent : StripeEntity { + /// + /// Account the payment intent belongs to. + /// + [JsonProperty("account")] + public string Account { get; set; } + #region Expandable PaymentIntent /// @@ -37,6 +43,9 @@ public PaymentIntent PaymentIntent internal ExpandableField InternalPaymentIntent { get; set; } #endregion + /// + /// This field will be deprecated. Please use account instead. + /// [JsonProperty("stripe_account")] public string StripeAccount { get; set; } } diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntent.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntent.cs index ccc7eb2d45..819c78e2d7 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntent.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionProcessPaymentIntent.cs @@ -6,6 +6,12 @@ namespace Stripe.Terminal public class ReaderActionProcessPaymentIntent : StripeEntity { + /// + /// Account the payment intent belongs to. + /// + [JsonProperty("account")] + public string Account { get; set; } + #region Expandable PaymentIntent /// @@ -43,6 +49,9 @@ public PaymentIntent PaymentIntent [JsonProperty("process_config")] public ReaderActionProcessPaymentIntentProcessConfig ProcessConfig { get; set; } + /// + /// This field will be deprecated. Please use account instead. + /// [JsonProperty("stripe_account")] public string StripeAccount { get; set; } } diff --git a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs index cbe2b50a43..2b44583ba3 100644 --- a/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs +++ b/src/Stripe.net/Entities/Terminal/Readers/ReaderActionRefundPayment.cs @@ -7,6 +7,12 @@ namespace Stripe.Terminal public class ReaderActionRefundPayment : StripeEntity, IHasMetadata { + /// + /// Account the payment intent belongs to. + /// + [JsonProperty("account")] + public string Account { get; set; } + /// /// The amount being refunded. /// @@ -146,6 +152,9 @@ public Refund Refund [JsonProperty("reverse_transfer")] public bool ReverseTransfer { get; set; } + /// + /// This field will be deprecated. Please use account instead. + /// [JsonProperty("stripe_account")] public string StripeAccount { get; set; } }