1 /**
2 * @schema StoreCustomer
3 * type: object
4 * description: The customer's details.
5 * x-schemaName: StoreCustomer
6 * required:
7 * - addresses
8 * - id
9 * - email
10 * - company_name
11 * - first_name
12 * - last_name
13 * - default_billing_address_id
14 * - default_shipping_address_id
15 * properties:
16 * id:
17 * type: string
18 * title: id
19 * description: The customer's ID.
20 * email:
21 * type: string
22 * title: email
23 * description: The customer's email.
24 * format: email
25 * default_billing_address_id:
26 * type: string
27 * title: default_billing_address_id
28 * description: The ID of the address used for billing by default.
29 * default_shipping_address_id:
30 * type: string
31 * title: default_shipping_address_id
32 * description: The ID of the address used for shipping by default.
33 * company_name:
34 * type: string
35 * title: company_name
36 * description: The customer's company name.
37 * first_name:
38 * type: string
39 * title: first_name
40 * description: The customer's first name.
41 * last_name:
42 * type: string
43 * title: last_name
44 * description: The customer's last name.
45 * addresses:
46 * type: array
47 * description: The customer's addresses.
48 * items:
49 * $ref: "#/components/schemas/StoreCustomerAddress"
50 * phone:
51 * type: string
52 * title: phone
53 * description: The customer's phone.
54 * metadata:
55 * type: object
56 * description: The customer's metadata, can hold custom key-value pairs.
57 * externalDocs:
58 * url: https://docs.medusajs.com/api/store#manage-metadata
59 * description: Learn how to manage metadata
60 * created_at:
61 * type: string
62 * format: date-time
63 * title: created_at
64 * description: The date the customer was created.
65 * updated_at:
66 * type: string
67 * format: date-time
68 * title: updated_at
69 * description: The date the customer was updated.
70 * deleted_at:
71 * type: string
72 * format: date-time
73 * title: deleted_at
74 * description: The date the customer was deleted.
75 *
76 */
77