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 } from "./customfield.js"; import { GoodsReceiptLineItem } from "./goodsreceiptlineitem.js"; import { LinkedSupplier } from "./linkedsupplier.js"; import { LinkedTrackingCategory } from "./linkedtrackingcategory.js"; /** * Lifecycle status of the receipt. `draft` covers unposted or awaiting-validation documents, `pending_approval` covers documents submitted into an approval flow, `received` covers posted/validated/released receipts that have affected stock or the receiving ledger, `cancelled` covers voided, reversed or denied receipts. */ export declare const GoodsReceiptStatus: { readonly Draft: "draft"; readonly PendingApproval: "pending_approval"; readonly Received: "received"; readonly Cancelled: "cancelled"; readonly Other: "other"; }; /** * Lifecycle status of the receipt. `draft` covers unposted or awaiting-validation documents, `pending_approval` covers documents submitted into an approval flow, `received` covers posted/validated/released receipts that have affected stock or the receiving ledger, `cancelled` covers voided, reversed or denied receipts. */ export type GoodsReceiptStatus = OpenEnum; export type GoodsReceipt = { /** * A unique identifier for an object. */ id: string; /** * The third-party API ID of original entity */ downstreamId?: string | null | undefined; /** * Id to be displayed. */ displayId?: string | null | undefined; /** * Human-readable document number of the goods receipt as shown in the accounting system. */ receiptNumber?: string | null | undefined; /** * Supplier-side reference recorded on the receipt, typically the supplier's delivery note or packing slip number. */ reference?: string | null | undefined; /** * ID of the purchase order this receipt was created against. Populated when every line of the receipt belongs to the same purchase order, or when the accounting system itself records a single originating purchase order on the receipt (see the connector gotchas); otherwise null, and the per-line `line_items[].purchase_order` carries the link. */ purchaseOrderId?: string | null | undefined; /** * Human-readable number of the purchase order this receipt was created against. */ poNumber?: string | null | undefined; /** * The supplier this entity is linked to. */ supplier?: LinkedSupplier | null | undefined; /** * The company ID the transaction belongs to */ companyId?: string | null | undefined; /** * The ID of the subsidiary */ subsidiaryId?: string | null | undefined; /** * ID of the warehouse or location the goods were received into. */ locationId?: string | null | undefined; /** * The ID of the department */ departmentId?: string | null | undefined; /** * Lifecycle status of the receipt. `draft` covers unposted or awaiting-validation documents, `pending_approval` covers documents submitted into an approval flow, `received` covers posted/validated/released receipts that have affected stock or the receiving ledger, `cancelled` covers voided, reversed or denied receipts. */ status?: GoodsReceiptStatus | null | undefined; /** * Date the goods were received - YYYY-MM-DD. */ receivedDate?: Date | null | undefined; /** * Accounting posting date of the receipt when the system distinguishes it from the received date - YYYY-MM-DD. */ postedDate?: 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; lineItems?: Array | undefined; /** * Internal notes or description recorded on the receipt. */ notes?: string | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | 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 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; }; /** @internal */ export declare const GoodsReceiptStatus$inboundSchema: z.ZodType; /** @internal */ export declare const GoodsReceipt$inboundSchema: z.ZodType; export declare function goodsReceiptFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=goodsreceipt.d.ts.map