import { Currency } from '../../commonStateTypes/amount'; import { CompletionStatusType, ID } from '../../commonStateTypes/common'; import { Recommendation } from '../../commonStateTypes/recommendationBase'; import { ZeniDate } from '../../zeniDayJS'; import { ZeniUrl as Url } from '../../zeniUrl'; import { InternationalTransferFeeBearerPaymentMethod } from '../billPay/billTransaction/internationalTransferFeeBearerPaymentMethod'; import { Attachment } from '../transaction/stateTypes/attachment'; import { Filing1099TinType, Filing1099Type } from './vendorType'; export interface VendorBase { id: ID; name: string; logo?: Url; } export interface SpendBase { last30DaysSpend: number; last90DaysSpend: number; yearToDateSpend: number; } export interface Vendor extends VendorBase { balance: number; bankAccountIds: ID[]; contactIds: ID[]; createTime: ZeniDate; currencyCode: string; currencySymbol: string; documentIds: ID[]; email: string; firstName: string; isDeleted: boolean; isVendor1099: boolean; lastName: string; matchScore: number; middleName: string; paymentInstrumentIds: ID[]; phone: string; qboId: ID; recommendations: Recommendation[]; suffix: string; syncToken: string; title: string; transactionAttachments: Attachment[]; updateTime: ZeniDate; vendorCurrencyCode: string; vendorCurrencySymbol: string; vendorType: string; websiteUrl: string; accountId?: ID; addressId?: ID; classId?: ID; countryCode?: string; filing1099INTTotal?: number; filing1099MISCTotal?: number; filing1099NECTotal?: number; filing1099Status?: CompletionStatusType; filing1099TaxClassification?: string; filing1099Tin?: Filing1099TinType; filing1099Total?: number; filing1099Type?: Filing1099Type; filing1099W9Files?: Attachment[]; isINTType?: boolean; isMISCType?: boolean; isNECType?: boolean; last3MonthsSpend?: number; last6MonthsSpend?: number; last12MonthsSpend?: number; last30DaysSpend?: number; last90DaysSpend?: number; lastMonthSpend?: number; legalName?: string; ownerId?: ID; preferredInternationalTransferFeeBearerPaymentMethod?: InternationalTransferFeeBearerPaymentMethod; previousYearSpend?: number; shippingAddressId?: ID; w9DocumentIds?: ID[]; yearToDateSpend?: number; } export interface VendorState { vendorByID: Record; } /** * Default Currency for Vendor */ export declare const defaultVendorCurrency: Currency;