<commit_before>﻿using Newtonsoft.Json;

namespace Acklann.Plaid.Auth
{
    /// <summary>
    /// Represents a response from plaid's '/auth/get' endpoint. The /auth/get endpoint allows you to retrieve the bank account and routing numbers associated with an <see cref="Entity.Item"/>’s checking and savings accounts, along with high-level account data and balances.
    /// </summary>
    /// <seealso cref="Acklann.Plaid.ResponseBase" />
    public class GetAccountInfoResponse : ResponseBase
    {
        /// <summary>
        /// Gets or sets the item.
        /// </summary>
        /// <value>The item.</value>
        [JsonProperty("item")]
        public Entity.Item Item { get; set; }

        /// <summary>
        /// Gets or sets the bank accounts.
        /// </summary>
        /// <value>The accounts.</value>
        [JsonProperty("accounts")]
        public Entity.Account[] Accounts { get; set; }

        /// <summary>
        /// Gets or sets the  routing and account numbers.
        /// </summary>
        /// <value>The numbers.</value>
        [JsonProperty("numbers")]
        public AccountIdentifier[] Numbers { get; set; }

        /// <summary>
        /// Represents the bank account and routing numbers associated with an <see cref="Entity.Item"/>’s checking and savings accounts.
        /// </summary>
        public struct AccountIdentifier
        {
            /// <summary>
            /// Gets or sets the plaid account identifier.
            /// </summary>
            /// <value>The account identifier.</value>
            [JsonProperty("account_id")]
            public string AccountId { get; set; }

            /// <summary>
            /// Gets or sets the account number.<commit_msg>Fix GetAccountInfoResponse Number property to reflect the ACH/EFT types.<commit_after>﻿using Newtonsoft.Json;

namespace Acklann.Plaid.Auth
{
    /// <summary>
    /// Represents a response from plaid's '/auth/get' endpoint. The /auth/get endpoint allows you to retrieve the bank account and routing numbers associated with an <see cref="Entity.Item"/>’s checking and savings accounts, along with high-level account data and balances.
    /// </summary>
    /// <seealso cref="Acklann.Plaid.ResponseBase" />
    public class GetAccountInfoResponse : ResponseBase
    {
        /// <summary>
        /// Gets or sets the item.
        /// </summary>
        /// <value>The item.</value>
        [JsonProperty("item")]
        public Entity.Item Item { get; set; }

        /// <summary>
        /// Gets or sets the bank accounts.
        /// </summary>
        /// <value>The accounts.</value>
        [JsonProperty("accounts")]
        public Entity.Account[] Accounts { get; set; }

        /// <summary>
        /// Gets or sets the  routing and account numbers.
        /// </summary>
        /// <value>The numbers.</value>
        [JsonProperty("numbers")]
        public AccountIdentifiers Numbers { get; set; }

        /// <summary>
        /// Seperates account types into ACH and EFT types.
        /// </summary>
        public struct AccountIdentifiers
        {
            /// <summary>
            /// Gets or sets an array of ACH account numbers.
            /// </summary>
            /// <value>The array of ACH numbers.</value>
            [JsonProperty("ach")]
            public AccountIdentifier[] ACH { get; set; }

            /// <summary>
            /// Gets or sets an array of EFT account numbers.
            /// </summary>
            /// <value>The array of EFT numbers.</value>
            [JsonProperty("eft")]
            public AccountIdentifier[] EFT { get; set; }
        }

        /// <summary>
        /// Represents the bank account and routing numbers associated with an <see cref="Entity.Item"/>’s checking and savings accounts.
        /// </summary>
        public struct AccountIdentifier
        {
            /// <summary>
            /// Gets or sets the plaid account identifier.
            /// </summary>
            /// <value>The account identifier.</value>
            [JsonProperty("account_id")]
            public string AccountId { get; set; }

            /// <summary>
            /// Gets or sets the account number.
{'fraction_non_alphanumeric': 0.13046577946768062, 'fraction_numerical': 0.0, 'mean_word_length': 1.7509803921568627, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1355512', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1039, 'n_words': 350}