|
| 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<string, Action<IParseNode>></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 |
0 commit comments