import { Amount } from '../../../../commonStateTypes/amount'; import { FetchStateAndError, ID } from '../../../../commonStateTypes/common'; import { SelectorView } from '../../../../commonStateTypes/viewAndReport/viewAndReport'; import { BillPayInfo, BillTransaction } from '../../../../entity/billPay/billTransaction/billTransactionState'; import { Attachment } from '../../../../entity/transaction/stateTypes/attachment'; import { TransactionWithAccountAndClassLine } from '../../../../entity/transaction/stateTypes/transactionLine'; import { Vendor } from '../../../../entity/vendor/vendorState'; import { RootState } from '../../../../rootStateTypes'; import { BillPayConfig } from '../billPayConfig/billPayConfigState'; import { PaymentDetailsSectionView } from '../editBillView/editBillViewSelector'; import { OutsideZeniPaymentLocalData, RecurringBillConfigLocalData } from '../editBillView/editBillViewState'; export interface BillPayReviewSelectorView extends SelectorView { billPayConfigList: BillPayConfig[]; duplicateBillTransactions: BillTransaction[]; file: Attachment | undefined; isCollectToAccountInfoFromVendorContact: boolean; isInvoiceDateAutoUpdated: boolean; isRecurring: boolean; lineDetailSection: Record>; paymentDetailsSection: PaymentDetailsSectionView | undefined; recipientTotalAmount: Amount; saveStatus: FetchStateAndError | undefined; totalAmount: Amount; vendor: Vendor | undefined; zeniAssistRetryStatus: FetchStateAndError | undefined; billPayInfo?: BillPayInfo; /** * Bill-level accounting class id. Approval Rules 3.0 'department' * criteria match against this — readers needing it (e.g. the * creator-as-approver lookup) should read it off the view rather * than digging through 'state.billTransactionState'. */ classId?: ID; invoiceNumber?: string; isBillMarkedForRetry?: boolean; outsideZeniPaymentInfo?: OutsideZeniPaymentLocalData; recurringBillInstance?: number; recurringConfig?: RecurringBillConfigLocalData; toAccountVendorEmail?: string; } export declare const getReviewPageBillDetail: (state: RootState, billId?: ID) => BillPayReviewSelectorView;