1 /**
2 * @schema StoreOrderAddress
3 * type: object
4 * description: An order address
5 * x-schemaName: StoreOrderAddress
6 * required:
7 * - id
8 * - metadata
9 * - created_at
10 * - updated_at
11 * properties:
12 * id:
13 * type: string
14 * title: id
15 * description: The address's ID.
16 * customer_id:
17 * type: string
18 * title: customer_id
19 * description: The ID of the customer this address belongs to.
20 * first_name:
21 * type: string
22 * title: first_name
23 * description: The address's first name.
24 * last_name:
25 * type: string
26 * title: last_name
27 * description: The address's last name.
28 * phone:
29 * type: string
30 * title: phone
31 * description: The address's phone.
32 * company:
33 * type: string
34 * title: company
35 * description: The address's company.
36 * address_1:
37 * type: string
38 * title: address_1
39 * description: The address's first line.
40 * address_2:
41 * type: string
42 * title: address_2
43 * description: The address's second line.
44 * city:
45 * type: string
46 * title: city
47 * description: The address's city.
48 * country_code:
49 * type: string
50 * title: country_code
51 * description: The address's country code.
52 * example: us
53 * country:
54 * $ref: "#/components/schemas/StoreRegionCountry"
55 * province:
56 * type: string
57 * title: province
58 * description: The address's lower-case ISO 3166-2 province code.
59 * example: us-ca
60 * externalDocs:
61 * url: https://en.wikipedia.org/wiki/ISO_3166-2
62 * description: Learn more about ISO 3166-2
63 * postal_code:
64 * type: string
65 * title: postal_code
66 * description: The address's postal code.
67 * metadata:
68 * type: object
69 * description: The address's metadata, can hold custom key-value pairs.
70 * externalDocs:
71 * url: https://docs.medusajs.com/api/store#manage-metadata
72 * description: Learn how to manage metadata
73 * created_at:
74 * type: string
75 * format: date-time
76 * title: created_at
77 * description: The date the address was created.
78 * updated_at:
79 * type: string
80 * format: date-time
81 * title: updated_at
82 * description: The date the address was updated.
83 *
84 */
85