|
1
|
/** |
|
2
|
* @schema AdminCustomer |
|
3
|
* type: object |
|
4
|
* description: The customer's details. |
|
5
|
* x-schemaName: AdminCustomer |
|
6
|
* required: |
|
7
|
* - has_account |
|
8
|
* - addresses |
|
9
|
* - id |
|
10
|
* - email |
|
11
|
* - default_billing_address_id |
|
12
|
* - default_shipping_address_id |
|
13
|
* - company_name |
|
14
|
* - first_name |
|
15
|
* - last_name |
|
16
|
* properties: |
|
17
|
* id: |
|
18
|
* type: string |
|
19
|
* title: id |
|
20
|
* description: The customer's ID. |
|
21
|
* has_account: |
|
22
|
* type: boolean |
|
23
|
* title: has_account |
|
24
|
* description: Whether the customer is registered. |
|
25
|
* groups: |
|
26
|
* type: array |
|
27
|
* description: The customer's groups. |
|
28
|
* items: |
|
29
|
* $ref: "#/components/schemas/AdminCustomerGroup" |
|
30
|
* email: |
|
31
|
* type: string |
|
32
|
* title: email |
|
33
|
* description: The customer's email. |
|
34
|
* format: email |
|
35
|
* default_billing_address_id: |
|
36
|
* type: string |
|
37
|
* title: default_billing_address_id |
|
38
|
* description: The ID of the address used as the default billing address. |
|
39
|
* default_shipping_address_id: |
|
40
|
* type: string |
|
41
|
* title: default_shipping_address_id |
|
42
|
* description: The ID of the address used as the default shipping address. |
|
43
|
* company_name: |
|
44
|
* type: string |
|
45
|
* title: company_name |
|
46
|
* description: The customer's company name. |
|
47
|
* first_name: |
|
48
|
* type: string |
|
49
|
* title: first_name |
|
50
|
* description: The customer's first name. |
|
51
|
* last_name: |
|
52
|
* type: string |
|
53
|
* title: last_name |
|
54
|
* description: The customer's last name. |
|
55
|
* addresses: |
|
56
|
* type: array |
|
57
|
* description: The customer's addresses. |
|
58
|
* items: |
|
59
|
* $ref: "#/components/schemas/AdminCustomerAddress" |
|
60
|
* phone: |
|
61
|
* type: string |
|
62
|
* title: phone |
|
63
|
* description: The customer's phone. |
|
64
|
* metadata: |
|
65
|
* type: object |
|
66
|
* description: The customer's metadata, used to store custom key-value pairs. |
|
67
|
* externalDocs: |
|
68
|
* url: https://docs.medusajs.com/api/admin#manage-metadata |
|
69
|
* description: Learn how to manage metadata |
|
70
|
* created_by: |
|
71
|
* type: string |
|
72
|
* title: created_by |
|
73
|
* description: The ID of the user that created this customer, if available. |
|
74
|
* created_at: |
|
75
|
* type: string |
|
76
|
* format: date-time |
|
77
|
* title: created_at |
|
78
|
* description: The customer's creation date. |
|
79
|
* updated_at: |
|
80
|
* type: string |
|
81
|
* format: date-time |
|
82
|
* title: updated_at |
|
83
|
* description: The customer's update date. |
|
84
|
* deleted_at: |
|
85
|
* type: string |
|
86
|
* format: date-time |
|
87
|
* title: deleted_at |
|
88
|
* description: The customer's deletion date. |
|
89
|
* |
|
90
|
*/ |
|
91
|
|