Skip to content

Commit c3997bb

Browse files
committed
Automated update
1 parent e418b8b commit c3997bb

File tree

302 files changed

+24629
-498
lines changed

Some content is hidden

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

302 files changed

+24629
-498
lines changed

spec3.json

Lines changed: 6191 additions & 442 deletions
Large diffs are not rendered by default.

src/Models/Billing_portal/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Soenneker.Stripe.OpenApiClient.Models.Billing_portal
99
{
1010
/// <summary>
11-
/// A portal configuration describes the functionality and behavior of a portal session.
11+
/// A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](/customer-management/configure-portal).
1212
/// </summary>
1313
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
1414
public partial class Configuration : IAdditionalDataHolder, IParsable

src/Models/Checkout_session_payment_method_options.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,14 @@ public partial class Checkout_session_payment_method_options : IAdditionalDataHo
325325
#nullable restore
326326
#else
327327
public global::Soenneker.Stripe.OpenApiClient.Models.Checkout_swish_payment_method_options Swish { get; set; }
328+
#endif
329+
/// <summary>The twint property</summary>
330+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
331+
#nullable enable
332+
public global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options? Twint { get; set; }
333+
#nullable restore
334+
#else
335+
public global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options Twint { get; set; }
328336
#endif
329337
/// <summary>The us_bank_account property</summary>
330338
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -398,6 +406,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
398406
{ "sepa_debit", n => { SepaDebit = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_sepa_debit_payment_method_options>(global::Soenneker.Stripe.OpenApiClient.Models.Checkout_sepa_debit_payment_method_options.CreateFromDiscriminatorValue); } },
399407
{ "sofort", n => { Sofort = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_sofort_payment_method_options>(global::Soenneker.Stripe.OpenApiClient.Models.Checkout_sofort_payment_method_options.CreateFromDiscriminatorValue); } },
400408
{ "swish", n => { Swish = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_swish_payment_method_options>(global::Soenneker.Stripe.OpenApiClient.Models.Checkout_swish_payment_method_options.CreateFromDiscriminatorValue); } },
409+
{ "twint", n => { Twint = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options>(global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options.CreateFromDiscriminatorValue); } },
401410
{ "us_bank_account", n => { UsBankAccount = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_us_bank_account_payment_method_options>(global::Soenneker.Stripe.OpenApiClient.Models.Checkout_us_bank_account_payment_method_options.CreateFromDiscriminatorValue); } },
402411
};
403412
}
@@ -447,6 +456,7 @@ public virtual void Serialize(ISerializationWriter writer)
447456
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_sepa_debit_payment_method_options>("sepa_debit", SepaDebit);
448457
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_sofort_payment_method_options>("sofort", Sofort);
449458
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_swish_payment_method_options>("swish", Swish);
459+
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options>("twint", Twint);
450460
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_us_bank_account_payment_method_options>("us_bank_account", UsBankAccount);
451461
writer.WriteAdditionalData(AdditionalData);
452462
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System;
8+
namespace Soenneker.Stripe.OpenApiClient.Models
9+
{
10+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
11+
#pragma warning disable CS1591
12+
public partial class Checkout_twint_payment_method_options : IAdditionalDataHolder, IParsable
13+
#pragma warning restore CS1591
14+
{
15+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
16+
public IDictionary<string, object> AdditionalData { get; set; }
17+
/// <summary>Indicates that you intend to make future payments with this PaymentIntent&apos;s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don&apos;t provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.If the payment method is `card_present` and isn&apos;t a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).</summary>
18+
public global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options_setup_future_usage? SetupFutureUsage { get; set; }
19+
/// <summary>
20+
/// Instantiates a new <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options"/> and sets the default values.
21+
/// </summary>
22+
public Checkout_twint_payment_method_options()
23+
{
24+
AdditionalData = new Dictionary<string, object>();
25+
}
26+
/// <summary>
27+
/// Creates a new instance of the appropriate class based on discriminator value
28+
/// </summary>
29+
/// <returns>A <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options"/></returns>
30+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
31+
public static global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options CreateFromDiscriminatorValue(IParseNode parseNode)
32+
{
33+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
34+
return new global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options();
35+
}
36+
/// <summary>
37+
/// The deserialization information for the current model
38+
/// </summary>
39+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
40+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
41+
{
42+
return new Dictionary<string, Action<IParseNode>>
43+
{
44+
{ "setup_future_usage", n => { SetupFutureUsage = n.GetEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options_setup_future_usage>(); } },
45+
};
46+
}
47+
/// <summary>
48+
/// Serializes information the current object
49+
/// </summary>
50+
/// <param name="writer">Serialization writer to use to serialize this model</param>
51+
public virtual void Serialize(ISerializationWriter writer)
52+
{
53+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
54+
writer.WriteEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Checkout_twint_payment_method_options_setup_future_usage>("setup_future_usage", SetupFutureUsage);
55+
writer.WriteAdditionalData(AdditionalData);
56+
}
57+
}
58+
}
59+
#pragma warning restore CS0618
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace Soenneker.Stripe.OpenApiClient.Models
5+
{
6+
/// <summary>Indicates that you intend to make future payments with this PaymentIntent&apos;s payment method.If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don&apos;t provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.If the payment method is `card_present` and isn&apos;t a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
8+
public enum Checkout_twint_payment_method_options_setup_future_usage
9+
{
10+
[EnumMember(Value = "none")]
11+
#pragma warning disable CS1591
12+
None,
13+
#pragma warning restore CS1591
14+
}
15+
}

src/Models/Confirmation_tokens_resource_payment_method_preview_type.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ public enum Confirmation_tokens_resource_payment_method_preview_type
7171
#pragma warning disable CS1591
7272
Crypto,
7373
#pragma warning restore CS1591
74+
[EnumMember(Value = "custom")]
75+
#pragma warning disable CS1591
76+
Custom,
77+
#pragma warning restore CS1591
7478
[EnumMember(Value = "customer_balance")]
7579
#pragma warning disable CS1591
7680
Customer_balance,

src/Models/Credit_note_refund.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ public partial class Credit_note_refund : IAdditionalDataHolder, IParsable
1616
public IDictionary<string, object> AdditionalData { get; set; }
1717
/// <summary>Amount of the refund that applies to this credit note, in cents (or local equivalent).</summary>
1818
public int? AmountRefunded { get; set; }
19+
/// <summary>The PaymentRecord refund details associated with this credit note refund.</summary>
20+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
21+
#nullable enable
22+
public global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund? PaymentRecordRefund { get; set; }
23+
#nullable restore
24+
#else
25+
public global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund PaymentRecordRefund { get; set; }
26+
#endif
1927
/// <summary>ID of the refund.</summary>
2028
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
2129
#nullable enable
@@ -24,6 +32,8 @@ public partial class Credit_note_refund : IAdditionalDataHolder, IParsable
2432
#else
2533
public global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund.Credit_note_refund_refund Refund { get; set; }
2634
#endif
35+
/// <summary>Type of the refund, one of `refund` or `payment_record_refund`.</summary>
36+
public global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund_type? Type { get; set; }
2737
/// <summary>
2838
/// Instantiates a new <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund"/> and sets the default values.
2939
/// </summary>
@@ -50,7 +60,9 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
5060
return new Dictionary<string, Action<IParseNode>>
5161
{
5262
{ "amount_refunded", n => { AmountRefunded = n.GetIntValue(); } },
63+
{ "payment_record_refund", n => { PaymentRecordRefund = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund>(global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund.CreateFromDiscriminatorValue); } },
5364
{ "refund", n => { Refund = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund.Credit_note_refund_refund>(global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund.Credit_note_refund_refund.CreateFromDiscriminatorValue); } },
65+
{ "type", n => { Type = n.GetEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund_type>(); } },
5466
};
5567
}
5668
/// <summary>
@@ -61,7 +73,9 @@ public virtual void Serialize(ISerializationWriter writer)
6173
{
6274
_ = writer ?? throw new ArgumentNullException(nameof(writer));
6375
writer.WriteIntValue("amount_refunded", AmountRefunded);
76+
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund>("payment_record_refund", PaymentRecordRefund);
6477
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund.Credit_note_refund_refund>("refund", Refund);
78+
writer.WriteEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Credit_note_refund_type>("type", Type);
6579
writer.WriteAdditionalData(AdditionalData);
6680
}
6781
/// <summary>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace Soenneker.Stripe.OpenApiClient.Models
5+
{
6+
/// <summary>Type of the refund, one of `refund` or `payment_record_refund`.</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
8+
public enum Credit_note_refund_type
9+
{
10+
[EnumMember(Value = "payment_record_refund")]
11+
#pragma warning disable CS1591
12+
Payment_record_refund,
13+
#pragma warning restore CS1591
14+
[EnumMember(Value = "refund")]
15+
#pragma warning disable CS1591
16+
Refund,
17+
#pragma warning restore CS1591
18+
}
19+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System;
8+
namespace Soenneker.Stripe.OpenApiClient.Models
9+
{
10+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
11+
#pragma warning disable CS1591
12+
public partial class Credit_notes_payment_record_refund : IAdditionalDataHolder, IParsable
13+
#pragma warning restore CS1591
14+
{
15+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
16+
public IDictionary<string, object> AdditionalData { get; set; }
17+
/// <summary>ID of the payment record.</summary>
18+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
19+
#nullable enable
20+
public string? PaymentRecord { get; set; }
21+
#nullable restore
22+
#else
23+
public string PaymentRecord { get; set; }
24+
#endif
25+
/// <summary>ID of the refund group.</summary>
26+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
27+
#nullable enable
28+
public string? RefundGroup { get; set; }
29+
#nullable restore
30+
#else
31+
public string RefundGroup { get; set; }
32+
#endif
33+
/// <summary>
34+
/// Instantiates a new <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund"/> and sets the default values.
35+
/// </summary>
36+
public Credit_notes_payment_record_refund()
37+
{
38+
AdditionalData = new Dictionary<string, object>();
39+
}
40+
/// <summary>
41+
/// Creates a new instance of the appropriate class based on discriminator value
42+
/// </summary>
43+
/// <returns>A <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund"/></returns>
44+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
45+
public static global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund CreateFromDiscriminatorValue(IParseNode parseNode)
46+
{
47+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
48+
return new global::Soenneker.Stripe.OpenApiClient.Models.Credit_notes_payment_record_refund();
49+
}
50+
/// <summary>
51+
/// The deserialization information for the current model
52+
/// </summary>
53+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
54+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
55+
{
56+
return new Dictionary<string, Action<IParseNode>>
57+
{
58+
{ "payment_record", n => { PaymentRecord = n.GetStringValue(); } },
59+
{ "refund_group", n => { RefundGroup = n.GetStringValue(); } },
60+
};
61+
}
62+
/// <summary>
63+
/// Serializes information the current object
64+
/// </summary>
65+
/// <param name="writer">Serialization writer to use to serialize this model</param>
66+
public virtual void Serialize(ISerializationWriter writer)
67+
{
68+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
69+
writer.WriteStringValue("payment_record", PaymentRecord);
70+
writer.WriteStringValue("refund_group", RefundGroup);
71+
writer.WriteAdditionalData(AdditionalData);
72+
}
73+
}
74+
}
75+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)