|
1
|
/** |
|
2
|
* @schema StoreCustomerAddress |
|
3
|
* type: object |
|
4
|
* description: The customer address's details |
|
5
|
* x-schemaName: StoreCustomerAddress |
|
6
|
* required: |
|
7
|
* - id |
|
8
|
* - address_name |
|
9
|
* - is_default_shipping |
|
10
|
* - is_default_billing |
|
11
|
* - customer_id |
|
12
|
* - company |
|
13
|
* - first_name |
|
14
|
* - last_name |
|
15
|
* - address_1 |
|
16
|
* - address_2 |
|
17
|
* - city |
|
18
|
* - country_code |
|
19
|
* - province |
|
20
|
* - postal_code |
|
21
|
* - phone |
|
22
|
* - metadata |
|
23
|
* - created_at |
|
24
|
* - updated_at |
|
25
|
* properties: |
|
26
|
* id: |
|
27
|
* type: string |
|
28
|
* title: id |
|
29
|
* description: The address's ID. |
|
30
|
* address_name: |
|
31
|
* type: string |
|
32
|
* title: address_name |
|
33
|
* description: The address's name. |
|
34
|
* is_default_shipping: |
|
35
|
* type: boolean |
|
36
|
* title: is_default_shipping |
|
37
|
* description: Whether the address is used for shipping by default. |
|
38
|
* is_default_billing: |
|
39
|
* type: boolean |
|
40
|
* title: is_default_billing |
|
41
|
* description: Whether the address is used for billing by default. |
|
42
|
* customer_id: |
|
43
|
* type: string |
|
44
|
* title: customer_id |
|
45
|
* description: The ID of the customer the address belongs to. |
|
46
|
* company: |
|
47
|
* type: string |
|
48
|
* title: company |
|
49
|
* description: The address's company. |
|
50
|
* first_name: |
|
51
|
* type: string |
|
52
|
* title: first_name |
|
53
|
* description: The address's first name. |
|
54
|
* last_name: |
|
55
|
* type: string |
|
56
|
* title: last_name |
|
57
|
* description: The address's last name. |
|
58
|
* address_1: |
|
59
|
* type: string |
|
60
|
* title: address_1 |
|
61
|
* description: The address's first line. |
|
62
|
* address_2: |
|
63
|
* type: string |
|
64
|
* title: address_2 |
|
65
|
* description: The address's second line. |
|
66
|
* city: |
|
67
|
* type: string |
|
68
|
* title: city |
|
69
|
* description: The address's city. |
|
70
|
* country_code: |
|
71
|
* type: string |
|
72
|
* title: country_code |
|
73
|
* description: The address's country code. |
|
74
|
* example: usd |
|
75
|
* province: |
|
76
|
* type: string |
|
77
|
* title: province |
|
78
|
* description: The address's lower-case ISO 3166-2 province code. |
|
79
|
* example: us-ca |
|
80
|
* externalDocs: |
|
81
|
* url: https://en.wikipedia.org/wiki/ISO_3166-2 |
|
82
|
* description: Learn more about ISO 3166-2 |
|
83
|
* postal_code: |
|
84
|
* type: string |
|
85
|
* title: postal_code |
|
86
|
* description: The address's postal code. |
|
87
|
* phone: |
|
88
|
* type: string |
|
89
|
* title: phone |
|
90
|
* description: The address's phone. |
|
91
|
* metadata: |
|
92
|
* type: object |
|
93
|
* description: The address's metadata, can hold custom key-value pairs. |
|
94
|
* externalDocs: |
|
95
|
* url: https://docs.medusajs.com/api/store#manage-metadata |
|
96
|
* description: Learn how to manage metadata |
|
97
|
* created_at: |
|
98
|
* type: string |
|
99
|
* format: date-time |
|
100
|
* title: created_at |
|
101
|
* description: The date the address was created. |
|
102
|
* updated_at: |
|
103
|
* type: string |
|
104
|
* format: date-time |
|
105
|
* title: updated_at |
|
106
|
* description: The date the address was updated. |
|
107
|
* |
|
108
|
*/ |
|
109
|
|