Skip to content

Commit 34f75e1

Browse files
committed
Automated update
1 parent 91f1ec5 commit 34f75e1

File tree

37 files changed

+1385
-28
lines changed

37 files changed

+1385
-28
lines changed

spec3.json

Lines changed: 383 additions & 9 deletions
Large diffs are not rendered by default.

src/Models/Bank_account.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public partial class Bank_account : IAdditionalDataHolder, IParsable
147147
#else
148148
public string RoutingNumber { get; set; }
149149
#endif
150-
/// <summary>For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, or `errored`. A bank account that hasn&apos;t had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If a payout sent to this bank account fails, we&apos;ll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.For external accounts, possible values are `new`, `errored` and `verification_failed`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can&apos;t [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we&apos;ll set the status to `verification_failed`. Other validations aren&apos;t run against external accounts because they&apos;re only used for payouts. This means the other statuses don&apos;t apply.</summary>
150+
/// <summary>For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, `tokenized_account_number_deactivated` or `errored`. A bank account that hasn&apos;t had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn’t enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If the status is `tokenized_account_number_deactivated`, the account utilizes a tokenized account number which has been deactivated due to expiration or revocation. This account will need to be reverified to continue using it for money movement. If a payout sent to this bank account fails, we&apos;ll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.For external accounts, possible values are `new`, `errored`, `verification_failed`, and `tokenized_account_number_deactivated`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can&apos;t [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we&apos;ll set the status to `verification_failed`. Other validations aren&apos;t run against external accounts because they&apos;re only used for payouts. This means the other statuses don&apos;t apply.</summary>
151151
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
152152
#nullable enable
153153
public string? Status { get; set; }
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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 Bank_connections_resource_account_number_details : 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>When the account number is expected to expire, if applicable.</summary>
18+
public int? ExpectedExpiryDate { get; set; }
19+
/// <summary>The type of account number associated with the account.</summary>
20+
public global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_identifier_type? IdentifierType { get; set; }
21+
/// <summary>Whether the account number is currently active and usable for transactions.</summary>
22+
public global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_status? Status { get; set; }
23+
/// <summary>The payment networks that the account number can be used for.</summary>
24+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
25+
#nullable enable
26+
public List<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_supported_networks?>? SupportedNetworks { get; set; }
27+
#nullable restore
28+
#else
29+
public List<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_supported_networks?> SupportedNetworks { get; set; }
30+
#endif
31+
/// <summary>
32+
/// Instantiates a new <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details"/> and sets the default values.
33+
/// </summary>
34+
public Bank_connections_resource_account_number_details()
35+
{
36+
AdditionalData = new Dictionary<string, object>();
37+
}
38+
/// <summary>
39+
/// Creates a new instance of the appropriate class based on discriminator value
40+
/// </summary>
41+
/// <returns>A <see cref="global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details"/></returns>
42+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
43+
public static global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details CreateFromDiscriminatorValue(IParseNode parseNode)
44+
{
45+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
46+
return new global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details();
47+
}
48+
/// <summary>
49+
/// The deserialization information for the current model
50+
/// </summary>
51+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
52+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
53+
{
54+
return new Dictionary<string, Action<IParseNode>>
55+
{
56+
{ "expected_expiry_date", n => { ExpectedExpiryDate = n.GetIntValue(); } },
57+
{ "identifier_type", n => { IdentifierType = n.GetEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_identifier_type>(); } },
58+
{ "status", n => { Status = n.GetEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_status>(); } },
59+
{ "supported_networks", n => { SupportedNetworks = n.GetCollectionOfEnumValues<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_supported_networks>()?.AsList(); } },
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+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
69+
writer.WriteIntValue("expected_expiry_date", ExpectedExpiryDate);
70+
writer.WriteEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_identifier_type>("identifier_type", IdentifierType);
71+
writer.WriteEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_status>("status", Status);
72+
writer.WriteCollectionOfEnumValues<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details_supported_networks>("supported_networks", SupportedNetworks);
73+
writer.WriteAdditionalData(AdditionalData);
74+
}
75+
}
76+
}
77+
#pragma warning restore CS0618
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>The type of account number associated with the account.</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
8+
public enum Bank_connections_resource_account_number_details_identifier_type
9+
{
10+
[EnumMember(Value = "account_number")]
11+
#pragma warning disable CS1591
12+
Account_number,
13+
#pragma warning restore CS1591
14+
[EnumMember(Value = "tokenized_account_number")]
15+
#pragma warning disable CS1591
16+
Tokenized_account_number,
17+
#pragma warning restore CS1591
18+
}
19+
}
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>Whether the account number is currently active and usable for transactions.</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
8+
public enum Bank_connections_resource_account_number_details_status
9+
{
10+
[EnumMember(Value = "deactivated")]
11+
#pragma warning disable CS1591
12+
Deactivated,
13+
#pragma warning restore CS1591
14+
[EnumMember(Value = "transactable")]
15+
#pragma warning disable CS1591
16+
Transactable,
17+
#pragma warning restore CS1591
18+
}
19+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace Soenneker.Stripe.OpenApiClient.Models
5+
{
6+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
7+
#pragma warning disable CS1591
8+
public enum Bank_connections_resource_account_number_details_supported_networks
9+
#pragma warning restore CS1591
10+
{
11+
[EnumMember(Value = "ach")]
12+
#pragma warning disable CS1591
13+
Ach,
14+
#pragma warning restore CS1591
15+
}
16+
}

src/Models/Financial_connections/Account.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ public partial class Account : IAdditionalDataHolder, IParsable
2020
#nullable restore
2121
#else
2222
public global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_accountholder AccountHolder { get; set; }
23+
#endif
24+
/// <summary>Details about the account numbers.</summary>
25+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
26+
#nullable enable
27+
public List<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details>? AccountNumbers { get; set; }
28+
#nullable restore
29+
#else
30+
public List<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details> AccountNumbers { get; set; }
2331
#endif
2432
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
2533
public IDictionary<string, object> AdditionalData { get; set; }
@@ -157,6 +165,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
157165
return new Dictionary<string, Action<IParseNode>>
158166
{
159167
{ "account_holder", n => { AccountHolder = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_accountholder>(global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_accountholder.CreateFromDiscriminatorValue); } },
168+
{ "account_numbers", n => { AccountNumbers = n.GetCollectionOfObjectValues<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details>(global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details.CreateFromDiscriminatorValue)?.AsList(); } },
160169
{ "balance", n => { Balance = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_balance>(global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_balance.CreateFromDiscriminatorValue); } },
161170
{ "balance_refresh", n => { BalanceRefresh = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_balance_refresh>(global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_balance_refresh.CreateFromDiscriminatorValue); } },
162171
{ "category", n => { Category = n.GetEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Financial_connections.Account_category>(); } },
@@ -185,6 +194,7 @@ public virtual void Serialize(ISerializationWriter writer)
185194
{
186195
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
187196
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_accountholder>("account_holder", AccountHolder);
197+
writer.WriteCollectionOfObjectValues<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_account_number_details>("account_numbers", AccountNumbers);
188198
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_balance>("balance", Balance);
189199
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Bank_connections_resource_balance_refresh>("balance_refresh", BalanceRefresh);
190200
writer.WriteEnumValue<global::Soenneker.Stripe.OpenApiClient.Models.Financial_connections.Account_category>("category", Category);

src/Models/Invoices_payments_invoice_payment_associated_payment_type.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ public enum Invoices_payments_invoice_payment_associated_payment_type
1515
#pragma warning disable CS1591
1616
Payment_intent,
1717
#pragma warning restore CS1591
18+
[EnumMember(Value = "payment_record")]
19+
#pragma warning disable CS1591
20+
Payment_record,
21+
#pragma warning restore CS1591
1822
}
1923
}

src/Models/Payment_method_details_ideal.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ public partial class Payment_method_details_ideal : IAdditionalDataHolder, IPars
4141
#nullable restore
4242
#else
4343
public string IbanLast4 { get; set; }
44+
#endif
45+
/// <summary>Unique transaction ID generated by iDEAL.</summary>
46+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
47+
#nullable enable
48+
public string? TransactionId { get; set; }
49+
#nullable restore
50+
#else
51+
public string TransactionId { get; set; }
4452
#endif
4553
/// <summary>Owner&apos;s verified full name. Values are verified or provided by iDEAL directly(if supported) at the time of authorization or settlement. They cannot be set or mutated.</summary>
4654
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -80,6 +88,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
8088
{ "generated_sepa_debit", n => { GeneratedSepaDebit = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Payment_method_details_ideal.Payment_method_details_ideal_generated_sepa_debit>(global::Soenneker.Stripe.OpenApiClient.Models.Payment_method_details_ideal.Payment_method_details_ideal_generated_sepa_debit.CreateFromDiscriminatorValue); } },
8189
{ "generated_sepa_debit_mandate", n => { GeneratedSepaDebitMandate = n.GetObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Payment_method_details_ideal.Payment_method_details_ideal_generated_sepa_debit_mandate>(global::Soenneker.Stripe.OpenApiClient.Models.Payment_method_details_ideal.Payment_method_details_ideal_generated_sepa_debit_mandate.CreateFromDiscriminatorValue); } },
8290
{ "iban_last4", n => { IbanLast4 = n.GetStringValue(); } },
91+
{ "transaction_id", n => { TransactionId = n.GetStringValue(); } },
8392
{ "verified_name", n => { VerifiedName = n.GetStringValue(); } },
8493
};
8594
}
@@ -95,6 +104,7 @@ public virtual void Serialize(ISerializationWriter writer)
95104
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Payment_method_details_ideal.Payment_method_details_ideal_generated_sepa_debit>("generated_sepa_debit", GeneratedSepaDebit);
96105
writer.WriteObjectValue<global::Soenneker.Stripe.OpenApiClient.Models.Payment_method_details_ideal.Payment_method_details_ideal_generated_sepa_debit_mandate>("generated_sepa_debit_mandate", GeneratedSepaDebitMandate);
97106
writer.WriteStringValue("iban_last4", IbanLast4);
107+
writer.WriteStringValue("transaction_id", TransactionId);
98108
writer.WriteStringValue("verified_name", VerifiedName);
99109
writer.WriteAdditionalData(AdditionalData);
100110
}

src/Models/Payment_method_us_bank_account_blocked_reason.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,9 @@ public enum Payment_method_us_bank_account_blocked_reason
3131
#pragma warning disable CS1591
3232
Debit_not_authorized,
3333
#pragma warning restore CS1591
34+
[EnumMember(Value = "tokenized_account_number_deactivated")]
35+
#pragma warning disable CS1591
36+
Tokenized_account_number_deactivated,
37+
#pragma warning restore CS1591
3438
}
3539
}

0 commit comments

Comments
 (0)