import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { ExpenseReportLineItemInput, ExpenseReportLineItemInput$Outbound } from "./expensereportlineiteminput.js"; import { LinkedDepartmentInput, LinkedDepartmentInput$Outbound } from "./linkeddepartmentinput.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.js"; import { LinkedLocationInput, LinkedLocationInput$Outbound } from "./linkedlocationinput.js"; import { LinkedSubsidiaryInput, LinkedSubsidiaryInput$Outbound } from "./linkedsubsidiaryinput.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; /** * The employee who submitted the expense report. */ export type ExpenseReportUpdateInputEmployee = { /** * A unique identifier for the employee. */ id?: string | undefined; /** * The display name of the employee. */ displayName?: string | null | undefined; }; /** * The status of the expense report. */ export declare const ExpenseReportUpdateInputStatus: { readonly Draft: "draft"; readonly Submitted: "submitted"; readonly Approved: "approved"; readonly Reimbursed: "reimbursed"; readonly Rejected: "rejected"; readonly Reversed: "reversed"; readonly Voided: "voided"; }; /** * The status of the expense report. */ export type ExpenseReportUpdateInputStatus = OpenEnum; /** * The accounting period the expense report is posted to. */ export type ExpenseReportUpdateInputAccountingPeriod = { /** * A unique identifier for the accounting period. */ id?: string | undefined; /** * The name of the accounting period. */ name?: string | null | undefined; }; /** * The person who approved the expense report. */ export type ExpenseReportUpdateInputApprovedBy = { /** * A unique identifier for the approver. */ id?: string | undefined; /** * The display name of the approver. */ displayName?: string | null | undefined; }; /** * The writable shape of ExpenseReport for a single-record update. Identical to the model with the read-only properties removed and no required properties, because PATCH is partial and the API already validates it that way. */ export type ExpenseReportUpdateInput = { /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The expense report number. */ number?: string | null | undefined; /** * Title or purpose of the expense report. */ title?: string | null | undefined; /** * The employee who submitted the expense report. */ employee?: ExpenseReportUpdateInputEmployee | undefined; /** * The status of the expense report. */ status?: ExpenseReportUpdateInputStatus | null | undefined; /** * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD */ transactionDate?: Date | null | undefined; /** * The date the expense report was posted to the general ledger. */ postingDate?: Date | null | undefined; /** * Date when reimbursement is due. */ dueDate?: 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; /** * Currency Exchange Rate at the time entity was recorded/generated. */ currencyRate?: number | null | undefined; /** * Subtotal amount, normally before tax. */ subTotal?: number | null | undefined; /** * Total tax amount applied to this transaction. */ totalTax?: number | null | undefined; /** * Total amount of all expense lines including tax. */ totalAmount?: number | null | undefined; /** * Total reimbursable amount (may differ from total if some expenses are non-reimbursable). */ reimbursableAmount?: number | null | undefined; /** * The memo of the expense report. */ memo?: string | null | undefined; department?: LinkedDepartmentInput | null | undefined; location?: LinkedLocationInput | null | undefined; account?: LinkedLedgerAccount | null | undefined; /** * The accounting period the expense report is posted to. */ accountingPeriod?: ExpenseReportUpdateInputAccountingPeriod | null | undefined; /** * Expense line items linked to this expense report. */ lineItems?: Array | undefined; /** * Optional reference identifier for the transaction. */ reference?: string | null | undefined; subsidiary?: LinkedSubsidiaryInput | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; /** * Amounts are including tax */ taxInclusive?: boolean | null | undefined; /** * The person who approved the expense report. */ approvedBy?: ExpenseReportUpdateInputApprovedBy | null | undefined; customFields?: Array | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ rowVersion?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export type ExpenseReportUpdateInputEmployee$Outbound = { id?: string | undefined; display_name?: string | null | undefined; }; /** @internal */ export declare const ExpenseReportUpdateInputEmployee$outboundSchema: z.ZodType; export declare function expenseReportUpdateInputEmployeeToJSON(expenseReportUpdateInputEmployee: ExpenseReportUpdateInputEmployee): string; /** @internal */ export declare const ExpenseReportUpdateInputStatus$outboundSchema: z.ZodType; /** @internal */ export type ExpenseReportUpdateInputAccountingPeriod$Outbound = { id?: string | undefined; name?: string | null | undefined; }; /** @internal */ export declare const ExpenseReportUpdateInputAccountingPeriod$outboundSchema: z.ZodType; export declare function expenseReportUpdateInputAccountingPeriodToJSON(expenseReportUpdateInputAccountingPeriod: ExpenseReportUpdateInputAccountingPeriod): string; /** @internal */ export type ExpenseReportUpdateInputApprovedBy$Outbound = { id?: string | undefined; display_name?: string | null | undefined; }; /** @internal */ export declare const ExpenseReportUpdateInputApprovedBy$outboundSchema: z.ZodType; export declare function expenseReportUpdateInputApprovedByToJSON(expenseReportUpdateInputApprovedBy: ExpenseReportUpdateInputApprovedBy): string; /** @internal */ export type ExpenseReportUpdateInput$Outbound = { display_id?: string | null | undefined; number?: string | null | undefined; title?: string | null | undefined; employee?: ExpenseReportUpdateInputEmployee$Outbound | undefined; status?: string | null | undefined; transaction_date?: string | null | undefined; posting_date?: string | null | undefined; due_date?: string | null | undefined; currency?: string | null | undefined; currency_rate?: number | null | undefined; sub_total?: number | null | undefined; total_tax?: number | null | undefined; total_amount?: number | null | undefined; reimbursable_amount?: number | null | undefined; memo?: string | null | undefined; department?: LinkedDepartmentInput$Outbound | null | undefined; location?: LinkedLocationInput$Outbound | null | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; accounting_period?: ExpenseReportUpdateInputAccountingPeriod$Outbound | null | undefined; line_items?: Array | undefined; reference?: string | null | undefined; subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined; tracking_categories?: Array | null | undefined; tax_inclusive?: boolean | null | undefined; approved_by?: ExpenseReportUpdateInputApprovedBy$Outbound | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const ExpenseReportUpdateInput$outboundSchema: z.ZodType; export declare function expenseReportUpdateInputToJSON(expenseReportUpdateInput: ExpenseReportUpdateInput): string; //# sourceMappingURL=expensereportupdateinput.d.ts.map