1 /**
2 * @schema AdminCreateFulfillment
3 * type: object
4 * description: The filfillment's details.
5 * x-schemaName: AdminCreateFulfillment
6 * required:
7 * - location_id
8 * - provider_id
9 * - delivery_address
10 * - items
11 * - labels
12 * - order_id
13 * properties:
14 * location_id:
15 * type: string
16 * title: location_id
17 * description: The ID of the location the items are fulfilled from.
18 * provider_id:
19 * type: string
20 * title: provider_id
21 * description: The ID of the provider handling this fulfillment.
22 * delivery_address:
23 * $ref: "#/components/schemas/AdminFulfillmentDeliveryAddress"
24 * items:
25 * type: array
26 * description: The items to fulfill.
27 * items:
28 * $ref: "#/components/schemas/AdminCreateFulfillmentItem"
29 * labels:
30 * type: array
31 * description: The labels for the fulfillment's shipments.
32 * items:
33 * $ref: "#/components/schemas/AdminCreateFulfillmentLabel"
34 * order_id:
35 * type: string
36 * title: order_id
37 * description: The ID of the order this fulfillment is created for.
38 * shipping_option_id:
39 * type: string
40 * title: shipping_option_id
41 * description: The ID of the shipping option used in the order.
42 * data:
43 * type: object
44 * description: Any data useful for the fulfillment provider to handle the fulfillment.
45 * externalDocs:
46 * url: https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property
47 * description: Learn more about the data property.
48 * packed_at:
49 * type: string
50 * title: packed_at
51 * description: The date and time the fulfillment was packed.
52 * format: date-time
53 * shipped_at:
54 * type: string
55 * title: shipped_at
56 * description: The date and time the fulfillment was shipped.
57 * format: date-time
58 * delivered_at:
59 * type: string
60 * title: delivered_at
61 * description: The date and time the fulfillment was delivered.
62 * format: date-time
63 * canceled_at:
64 * type: string
65 * title: canceled_at
66 * description: The date and time the fulfillment was canceled.
67 * format: date-time
68 * metadata:
69 * type: object
70 * description: The fulfillment's metadata, used to store custom key-value pairs.
71 * externalDocs:
72 * url: https://docs.medusajs.com/api/admin#manage-metadata
73 * description: Learn how to manage metadata
74 *
75 */
76