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 { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { ExpenseReportLineItem } from "./expensereportlineitem.js"; import { ExpenseReportLineItemInput, ExpenseReportLineItemInput$Outbound } from "./expensereportlineiteminput.js"; import { LinkedDepartment } from "./linkeddepartment.js"; import { LinkedDepartmentInput, LinkedDepartmentInput$Outbound } from "./linkeddepartmentinput.js"; import { LinkedLedgerAccount, LinkedLedgerAccount$Outbound } from "./linkedledgeraccount.js"; import { LinkedLocation } from "./linkedlocation.js"; import { LinkedLocationInput, LinkedLocationInput$Outbound } from "./linkedlocationinput.js"; import { LinkedSubsidiary } from "./linkedsubsidiary.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 ExpenseReportEmployee = { /** * 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 ExpenseReportStatus: { 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 ExpenseReportStatus = OpenEnum; /** * The accounting period the expense report is posted to. */ export type AccountingPeriod = { /** * 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 ApprovedBy = { /** * A unique identifier for the approver. */ id?: string | undefined; /** * The display name of the approver. */ displayName?: string | null | undefined; }; export type ExpenseReport = { /** * A unique identifier for an object. */ id?: string | undefined; /** * 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: ExpenseReportEmployee; /** * The status of the expense report. */ status?: ExpenseReportStatus | null | undefined; /** * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD */ transactionDate: Date | null; /** * 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?: LinkedDepartment | null | undefined; location?: LinkedLocation | null | undefined; account?: LinkedLedgerAccount | null | undefined; /** * The accounting period the expense report is posted to. */ accountingPeriod?: AccountingPeriod | null | undefined; /** * Expense line items linked to this expense report. */ lineItems: Array; /** * Optional reference identifier for the transaction. */ reference?: string | null | undefined; subsidiary?: LinkedSubsidiary | 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?: ApprovedBy | null | undefined; customFields?: Array | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | null | 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 user who last updated the object. */ updatedBy?: string | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | 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; }; export type ExpenseReportInput = { /** * 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: ExpenseReportEmployee; /** * The status of the expense report. */ status?: ExpenseReportStatus | null | undefined; /** * The date of the transaction - YYYY:MM::DDThh:mm:ss.sTZD */ transactionDate: Date | null; /** * 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?: AccountingPeriod | null | undefined; /** * Expense line items linked to this expense report. */ lineItems: Array; /** * 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?: ApprovedBy | 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 declare const ExpenseReportEmployee$inboundSchema: z.ZodType; /** @internal */ export type ExpenseReportEmployee$Outbound = { id?: string | undefined; display_name?: string | null | undefined; }; /** @internal */ export declare const ExpenseReportEmployee$outboundSchema: z.ZodType; export declare function expenseReportEmployeeToJSON(expenseReportEmployee: ExpenseReportEmployee): string; export declare function expenseReportEmployeeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExpenseReportStatus$inboundSchema: z.ZodType; /** @internal */ export declare const ExpenseReportStatus$outboundSchema: z.ZodType; /** @internal */ export declare const AccountingPeriod$inboundSchema: z.ZodType; /** @internal */ export type AccountingPeriod$Outbound = { id?: string | undefined; name?: string | null | undefined; }; /** @internal */ export declare const AccountingPeriod$outboundSchema: z.ZodType; export declare function accountingPeriodToJSON(accountingPeriod: AccountingPeriod): string; export declare function accountingPeriodFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ApprovedBy$inboundSchema: z.ZodType; /** @internal */ export type ApprovedBy$Outbound = { id?: string | undefined; display_name?: string | null | undefined; }; /** @internal */ export declare const ApprovedBy$outboundSchema: z.ZodType; export declare function approvedByToJSON(approvedBy: ApprovedBy): string; export declare function approvedByFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExpenseReport$inboundSchema: z.ZodType; export declare function expenseReportFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type ExpenseReportInput$Outbound = { display_id?: string | null | undefined; number?: string | null | undefined; title?: string | null | undefined; employee: ExpenseReportEmployee$Outbound; status?: string | null | undefined; transaction_date: string | null; 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?: AccountingPeriod$Outbound | null | undefined; line_items: Array; reference?: string | null | undefined; subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined; tracking_categories?: Array | null | undefined; tax_inclusive?: boolean | null | undefined; approved_by?: ApprovedBy$Outbound | null | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const ExpenseReportInput$outboundSchema: z.ZodType; export declare function expenseReportInputToJSON(expenseReportInput: ExpenseReportInput): string; //# sourceMappingURL=expensereport.d.ts.map