import { OrderDTO } from "../../order"; import { StockLocationDTO } from "../../stock-location"; import { CreateFulfillmentAddressDTO } from "./fulfillment-address"; import { CreateFulfillmentItemDTO } from "./fulfillment-item"; import { CreateFulfillmentLabelDTO } from "./fulfillment-label"; /** * The fulfillment to be created. */ export interface CreateFulfillmentDTO { /** * The associated location's ID. */ location_id: string; /** * The associated location's data. */ location?: StockLocationDTO; /** * The date the fulfillment was packed. */ packed_at?: Date | null; /** * The date the fulfillment was shipped. */ shipped_at?: Date | null; /** * The id of the user that created the fulfillment */ created_by?: string | null; /** * The date the fulfillment was delivered. */ delivered_at?: Date | null; /** * The date the fulfillment was canceled. */ canceled_at?: Date | null; /** * The data necessary for the associated fulfillment provider to process the fulfillment. */ data?: Record | null; /** * The associated fulfillment provider's ID. */ provider_id: string; /** * The associated shipping option's ID. */ shipping_option_id?: string | null; /** * Flag to indicate whether shipping is required */ requires_shipping?: boolean; /** * Holds custom data in key-value pairs. */ metadata?: Record | null; /** * The address associated with the fulfillment. It's used for delivery. */ delivery_address: Omit; /** * The items associated with the fulfillment. */ items: Omit[]; /** * The labels associated with the fulfillment. */ labels?: Omit[]; /** * The associated order to be sent to the provider. */ order?: Partial; } /** * The attributes to update in the fulfillment. */ export interface UpdateFulfillmentDTO { /** * The associated location's ID. */ location_id?: string; /** * The date the fulfillment was packed. */ packed_at?: Date | null; /** * The date the fulfillment was shipped. */ shipped_at?: Date | null; /** * The date the fulfillment was delivered. */ delivered_at?: Date | null; /** * The data necessary for the associated fulfillment provider to process the fulfillment. */ data?: Record | null; /** * Holds custom data in key-value pairs. */ metadata?: Record | null; /** * The labels associated with the fulfillment. */ labels?: (Omit | { id: string; })[]; } //# sourceMappingURL=fulfillment.d.ts.map