import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$Outbound } from "./address.js"; import { BankFeedAccountHolder, BankFeedAccountHolder$Outbound } from "./bankfeedaccountholder.js"; import { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { Email, Email$Outbound } from "./email.js"; import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js"; /** * Type of the bank account. */ export declare const BankAccountType: { readonly Bank: "bank"; readonly CreditCard: "credit_card"; }; /** * Type of the bank account. */ export type BankAccountType = OpenEnum; /** * Current status of the bank feed. */ export declare const FeedStatus: { readonly Pending: "pending"; readonly Rejected: "rejected"; }; /** * Current status of the bank feed. */ export type FeedStatus = OpenEnum; /** * Whether the data consumer may see this account. `revoked` hides it from the consumer without deleting it; `active` restores it. Unrelated to `feed_status`. Only connectors that list it support it; others ignore the field, so setting it there changes nothing. */ export declare const BankFeedAccountStatus: { readonly Active: "active"; readonly Revoked: "revoked"; }; /** * Whether the data consumer may see this account. `revoked` hides it from the consumer without deleting it; `active` restores it. Unrelated to `feed_status`. Only connectors that list it support it; others ignore the field, so setting it there changes nothing. */ export type BankFeedAccountStatus = OpenEnum; export type BankFeedAccount = { /** * A unique identifier for an object. */ id: string; /** * Type of the bank account. */ bankAccountType?: BankAccountType | undefined; /** * The source account's unique identifier. */ sourceAccountId?: string | undefined; /** * Bank routing number (US) */ sourceRoutingNumber?: string | null | undefined; /** * The bank account number */ sourceAccountNumber?: string | null | undefined; /** * The target account's unique identifier in the accounting connector. */ targetAccountId?: string | undefined; /** * Name associated with the target account. */ targetAccountName?: string | undefined; /** * Account number of the destination bank account. */ targetAccountNumber?: string | undefined; /** * The current balance of the source bank account. */ balance?: number | null | undefined; /** * The available balance of the source bank account (considering pending transactions and overdraft). */ availableBalance?: number | null | undefined; /** * When `balance` was true, as an ISO 8601 date-time with a UTC offset. Connectors that record it stamp the time they received the balance when it is omitted. */ balanceAsOf?: Date | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * Current status of the bank feed. */ feedStatus?: FeedStatus | undefined; /** * Whether the data consumer may see this account. `revoked` hides it from the consumer without deleting it; `active` restores it. Unrelated to `feed_status`. Only connectors that list it support it; others ignore the field, so setting it there changes nothing. */ status?: BankFeedAccountStatus | undefined; /** * Country code according to ISO 3166-1 alpha-2. */ country?: string | null | undefined; /** * The people or businesses that hold the source bank account. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ accountHolders?: Array | undefined; /** * Email addresses of the account holders. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ emails?: Array | undefined; /** * Addresses of the account holders. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ addresses?: Array
| undefined; /** * Phone numbers of the account holders. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ phoneNumbers?: Array | undefined; customFields?: Array | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The user who last updated the object. */ updatedBy?: string | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; }; export type BankFeedAccountInput = { /** * Type of the bank account. */ bankAccountType?: BankAccountType | undefined; /** * The source account's unique identifier. */ sourceAccountId?: string | undefined; /** * Bank routing number (US) */ sourceRoutingNumber?: string | null | undefined; /** * The bank account number */ sourceAccountNumber?: string | null | undefined; /** * The target account's unique identifier in the accounting connector. */ targetAccountId?: string | undefined; /** * Name associated with the target account. */ targetAccountName?: string | undefined; /** * Account number of the destination bank account. */ targetAccountNumber?: string | undefined; /** * The current balance of the source bank account. */ balance?: number | null | undefined; /** * The available balance of the source bank account (considering pending transactions and overdraft). */ availableBalance?: number | null | undefined; /** * When `balance` was true, as an ISO 8601 date-time with a UTC offset. Connectors that record it stamp the time they received the balance when it is omitted. */ balanceAsOf?: Date | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * Current status of the bank feed. */ feedStatus?: FeedStatus | undefined; /** * Whether the data consumer may see this account. `revoked` hides it from the consumer without deleting it; `active` restores it. Unrelated to `feed_status`. Only connectors that list it support it; others ignore the field, so setting it there changes nothing. */ status?: BankFeedAccountStatus | undefined; /** * Country code according to ISO 3166-1 alpha-2. */ country?: string | null | undefined; /** * The people or businesses that hold the source bank account. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ accountHolders?: Array | undefined; /** * Email addresses of the account holders. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ emails?: Array | undefined; /** * Addresses of the account holders. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ addresses?: Array
| undefined; /** * Phone numbers of the account holders. Optional; `intuit-bank-feeds` and `plaid-exchange` require at least one. */ phoneNumbers?: Array | undefined; customFields?: Array | undefined; }; /** @internal */ export declare const BankAccountType$inboundSchema: z.ZodType; /** @internal */ export declare const BankAccountType$outboundSchema: z.ZodType; /** @internal */ export declare const FeedStatus$inboundSchema: z.ZodType; /** @internal */ export declare const FeedStatus$outboundSchema: z.ZodType; /** @internal */ export declare const BankFeedAccountStatus$inboundSchema: z.ZodType; /** @internal */ export declare const BankFeedAccountStatus$outboundSchema: z.ZodType; /** @internal */ export declare const BankFeedAccount$inboundSchema: z.ZodType; export declare function bankFeedAccountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type BankFeedAccountInput$Outbound = { bank_account_type?: string | undefined; source_account_id?: string | undefined; source_routing_number?: string | null | undefined; source_account_number?: string | null | undefined; target_account_id?: string | undefined; target_account_name?: string | undefined; target_account_number?: string | undefined; balance?: number | null | undefined; available_balance?: number | null | undefined; balance_as_of?: string | null | undefined; currency?: string | null | undefined; feed_status?: string | undefined; status?: string | undefined; country?: string | null | undefined; account_holders?: Array | undefined; emails?: Array | undefined; addresses?: Array | undefined; phone_numbers?: Array | undefined; custom_fields?: Array | undefined; }; /** @internal */ export declare const BankFeedAccountInput$outboundSchema: z.ZodType; export declare function bankFeedAccountInputToJSON(bankFeedAccountInput: BankFeedAccountInput): string; //# sourceMappingURL=bankfeedaccount.d.ts.map