import type * as Samsara from "../index.js"; /** * PurchaseOrder object */ export interface EntityUpdatePurchaseOrderTypeResponseBody { /** RFC3339 time when the purchase order was created. */ createdAtTime?: string | undefined; /** Source that created the purchase order. Valid values: `Unknown`, `User`, `ScanPackingList` */ creationSource?: EntityUpdatePurchaseOrderTypeResponseBody.CreationSource | undefined; /** RFC3339 expected delivery time. */ deliveryAtTime?: string | undefined; /** RFC3339 time when the first item was received. */ firstReceivedAtTime?: string | undefined; /** RFC3339 time when all items were received. */ fullyReceivedAtTime?: string | undefined; /** General ledger code associated with this purchase order. */ glCode?: string | undefined; /** Stable Samsara ID for the purchase order. */ id?: string | undefined; /** Vendor invoice number associated with this purchase order. */ invoiceNumber?: string | undefined; /** IDs of media items attached to the purchase order. */ mediaItemIds?: string[] | undefined; /** Free-text notes for the purchase order. */ notes?: string | undefined; /** Current customer-visible status of the purchase order. Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed` */ orderStatus?: EntityUpdatePurchaseOrderTypeResponseBody.OrderStatus | undefined; otherCost?: Samsara.UpdatePurchaseOrderEntityPurchaseOrderMoneyPublicVariantf6994A15F796TypeResponseBody | undefined; /** Parts ordered on the purchase order. */ parts?: Samsara.UpdatePurchaseOrderEntityPurchaseOrderPurchaseOrderPartPublicVarianteafe48Db3764TypeResponseBody[] | undefined; /** Customer-visible purchase order number. */ poNumber?: string | undefined; /** Optional prefix included in the purchase order number. */ poNumberPrefix?: string | undefined; /** Optional suffix included in the purchase order number. */ poNumberSuffix?: string | undefined; /** RFC3339 time when the purchase order was sent to its vendor. */ sentAtTime?: string | undefined; tax?: Samsara.UpdatePurchaseOrderEntityPurchaseOrderTaxAdjustmentTypeResponseBody | undefined; taxTotal?: Samsara.UpdatePurchaseOrderEntityPurchaseOrderMoneyTypeResponseBody | undefined; /** Shipment tracking number for the purchase order. */ trackingNumber?: string | undefined; /** RFC3339 time when the purchase order was last updated. */ updatedAtTime?: string | undefined; vendor?: Samsara.EntityUpdatePurchaseOrderVendorRefPublicVariant07Ae4B76C2BaTypeResponseBody | undefined; } export declare namespace EntityUpdatePurchaseOrderTypeResponseBody { /** Source that created the purchase order. Valid values: `Unknown`, `User`, `ScanPackingList` */ const CreationSource: { readonly Unknown: "Unknown"; readonly User: "User"; readonly ScanPackingList: "ScanPackingList"; }; type CreationSource = (typeof CreationSource)[keyof typeof CreationSource]; /** Current customer-visible status of the purchase order. Valid values: `Unknown`, `Draft`, `Open`, `InReview`, `Approved`, `Rejected`, `SentToVendor`, `PartiallyReceived`, `FullyReceived`, `Returned`, `Cancelled`, `Closed` */ const OrderStatus: { readonly Unknown: "Unknown"; readonly Draft: "Draft"; readonly Open: "Open"; readonly InReview: "InReview"; readonly Approved: "Approved"; readonly Rejected: "Rejected"; readonly SentToVendor: "SentToVendor"; readonly PartiallyReceived: "PartiallyReceived"; readonly FullyReceived: "FullyReceived"; readonly Returned: "Returned"; readonly Cancelled: "Cancelled"; readonly Closed: "Closed"; }; type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus]; }