@commercetools/importapi-sdk 1.20.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +100 -18
  3. package/dist/commercetools-importapi-sdk.browser.cjs.js +1964 -2190
  4. package/dist/commercetools-importapi-sdk.browser.esm.js +1964 -2190
  5. package/dist/commercetools-importapi-sdk.cjs.dev.js +1964 -2190
  6. package/dist/commercetools-importapi-sdk.cjs.prod.js +1964 -2190
  7. package/dist/commercetools-importapi-sdk.esm.js +1964 -2190
  8. package/dist/declarations/src/ctp/ctp-client.d.ts +2 -2
  9. package/dist/declarations/src/generated/client/api-root.d.ts +18 -18
  10. package/dist/declarations/src/generated/client/by-project-key-request-builder.d.ts +50 -52
  11. package/dist/declarations/src/generated/client/categories/by-project-key-categories-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  12. package/dist/declarations/src/generated/client/categories/by-project-key-categories-request-builder.d.ts +28 -28
  13. package/dist/declarations/src/generated/client/customers/by-project-key-customers-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  14. package/dist/declarations/src/generated/client/customers/by-project-key-customers-request-builder.d.ts +28 -28
  15. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  16. package/dist/declarations/src/generated/client/import-containers/by-project-key-categories-import-containers-request-builder.d.ts +26 -26
  17. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  18. package/dist/declarations/src/generated/client/import-containers/by-project-key-customers-import-containers-request-builder.d.ts +26 -26
  19. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-by-import-container-key-request-builder.d.ts +55 -55
  20. package/dist/declarations/src/generated/client/import-containers/by-project-key-import-containers-request-builder.d.ts +51 -51
  21. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  22. package/dist/declarations/src/generated/client/import-containers/by-project-key-order-patches-import-containers-request-builder.d.ts +26 -26
  23. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  24. package/dist/declarations/src/generated/client/import-containers/by-project-key-orders-import-containers-request-builder.d.ts +26 -26
  25. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  26. package/dist/declarations/src/generated/client/import-containers/by-project-key-prices-import-containers-request-builder.d.ts +26 -26
  27. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-by-import-container-key-request-builder.d.ts +36 -36
  28. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-drafts-import-containers-request-builder.d.ts +26 -26
  29. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  30. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-types-import-containers-request-builder.d.ts +26 -26
  31. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  32. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variant-patches-import-containers-request-builder.d.ts +26 -26
  33. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  34. package/dist/declarations/src/generated/client/import-containers/by-project-key-product-variants-import-containers-request-builder.d.ts +26 -26
  35. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-by-import-container-key-request-builder.d.ts +35 -35
  36. package/dist/declarations/src/generated/client/import-containers/by-project-key-products-import-containers-request-builder.d.ts +26 -26
  37. package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  38. package/dist/declarations/src/generated/client/import-operations/by-project-key-categories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +49 -49
  39. package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  40. package/dist/declarations/src/generated/client/import-operations/by-project-key-customers-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  41. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.d.ts +45 -45
  42. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-by-id-request-builder.d.ts +35 -35
  43. package/dist/declarations/src/generated/client/import-operations/by-project-key-import-operations-request-builder.d.ts +26 -26
  44. package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  45. package/dist/declarations/src/generated/client/import-operations/by-project-key-order-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  46. package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  47. package/dist/declarations/src/generated/client/import-operations/by-project-key-orders-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  48. package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  49. package/dist/declarations/src/generated/client/import-operations/by-project-key-prices-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  50. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  51. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-drafts-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  52. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  53. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-types-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  54. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  55. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  56. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  57. package/dist/declarations/src/generated/client/import-operations/by-project-key-product-variants-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  58. package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +37 -37
  59. package/dist/declarations/src/generated/client/import-operations/by-project-key-products-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +48 -48
  60. package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-by-import-sink-key-request-builder.d.ts +51 -51
  61. package/dist/declarations/src/generated/client/import-sinks/by-project-key-import-sinks-request-builder.d.ts +51 -51
  62. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-containers-by-import-container-key-import-summaries-request-builder.d.ts +35 -35
  63. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  64. package/dist/declarations/src/generated/client/import-summaries/by-project-key-import-summaries-request-builder.d.ts +26 -26
  65. package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  66. package/dist/declarations/src/generated/client/order-patches/by-project-key-order-patches-request-builder.d.ts +28 -28
  67. package/dist/declarations/src/generated/client/orders/by-project-key-orders-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  68. package/dist/declarations/src/generated/client/orders/by-project-key-orders-request-builder.d.ts +28 -28
  69. package/dist/declarations/src/generated/client/prices/by-project-key-prices-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  70. package/dist/declarations/src/generated/client/prices/by-project-key-prices-request-builder.d.ts +28 -28
  71. package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-import-sink-key-by-import-sink-key-request-builder.d.ts +38 -38
  72. package/dist/declarations/src/generated/client/product-drafts/by-project-key-product-drafts-request-builder.d.ts +28 -28
  73. package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  74. package/dist/declarations/src/generated/client/product-types/by-project-key-product-types-request-builder.d.ts +28 -28
  75. package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  76. package/dist/declarations/src/generated/client/product-variant-patches/by-project-key-product-variant-patches-request-builder.d.ts +28 -28
  77. package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  78. package/dist/declarations/src/generated/client/product-variants/by-project-key-product-variants-request-builder.d.ts +28 -28
  79. package/dist/declarations/src/generated/client/products/by-project-key-products-import-sink-key-by-import-sink-key-request-builder.d.ts +37 -37
  80. package/dist/declarations/src/generated/client/products/by-project-key-products-request-builder.d.ts +28 -28
  81. package/dist/declarations/src/generated/index.d.ts +25 -26
  82. package/dist/declarations/src/generated/models/categories.d.ts +79 -79
  83. package/dist/declarations/src/generated/models/common.d.ts +570 -570
  84. package/dist/declarations/src/generated/models/customers.d.ts +252 -252
  85. package/dist/declarations/src/generated/models/customfields.d.ts +260 -260
  86. package/dist/declarations/src/generated/models/errors.d.ts +356 -352
  87. package/dist/declarations/src/generated/models/importcontainers.d.ts +114 -114
  88. package/dist/declarations/src/generated/models/importoperations.d.ts +128 -128
  89. package/dist/declarations/src/generated/models/importrequests.d.ts +161 -175
  90. package/dist/declarations/src/generated/models/importsinks.d.ts +113 -113
  91. package/dist/declarations/src/generated/models/importsummaries.d.ts +55 -55
  92. package/dist/declarations/src/generated/models/order-patches.d.ts +227 -227
  93. package/dist/declarations/src/generated/models/orders.d.ts +778 -778
  94. package/dist/declarations/src/generated/models/prices.d.ts +130 -130
  95. package/dist/declarations/src/generated/models/productdrafts.d.ts +226 -224
  96. package/dist/declarations/src/generated/models/products.d.ts +181 -179
  97. package/dist/declarations/src/generated/models/producttypes.d.ts +173 -173
  98. package/dist/declarations/src/generated/models/productvariants.d.ts +529 -527
  99. package/dist/declarations/src/generated/shared/utils/common-types.d.ts +26 -26
  100. package/dist/declarations/src/generated/shared/utils/middleware.d.ts +8 -8
  101. package/dist/declarations/src/generated/shared/utils/requests-utils.d.ts +13 -13
  102. package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +7 -7
  103. package/dist/declarations/src/index.d.ts +2 -2
  104. package/package.json +5 -6
  105. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-by-import-container-key-request-builder.d.ts +0 -35
  106. package/dist/declarations/src/generated/client/import-containers/by-project-key-inventories-import-containers-request-builder.d.ts +0 -26
  107. package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-by-id-request-builder.d.ts +0 -37
  108. package/dist/declarations/src/generated/client/import-operations/by-project-key-inventories-import-sink-key-by-import-sink-key-import-operations-request-builder.d.ts +0 -48
  109. package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-import-sink-key-by-import-sink-key-request-builder.d.ts +0 -37
  110. package/dist/declarations/src/generated/client/inventories/by-project-key-inventories-request-builder.d.ts +0 -28
  111. package/dist/declarations/src/generated/models/inventories.d.ts +0 -44
@@ -1,252 +1,252 @@
1
- /**
2
- * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
- * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
- * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
- */
6
- import { CustomerGroupKeyReference, ImportResource, StoreKeyReference } from './common';
7
- import { Custom } from './customfields';
8
- /**
9
- * Different from Address in that `key` is required and `id` is not supported.
10
- *
11
- */
12
- export interface CustomerAddress {
13
- /**
14
- * User-defined identifier for the address.
15
- * Must follow the pattern `[a-zA-Z0-9_\-]{2,256}` and must be unique per customer.
16
- *
17
- *
18
- */
19
- readonly key: string;
20
- /**
21
- *
22
- */
23
- readonly title?: string;
24
- /**
25
- *
26
- */
27
- readonly salutation?: string;
28
- /**
29
- *
30
- */
31
- readonly firstName?: string;
32
- /**
33
- *
34
- */
35
- readonly lastName?: string;
36
- /**
37
- *
38
- */
39
- readonly streetName?: string;
40
- /**
41
- *
42
- */
43
- readonly streetNumber?: string;
44
- /**
45
- *
46
- */
47
- readonly additionalStreetInfo?: string;
48
- /**
49
- *
50
- */
51
- readonly postalCode?: string;
52
- /**
53
- *
54
- */
55
- readonly city?: string;
56
- /**
57
- *
58
- */
59
- readonly region?: string;
60
- /**
61
- *
62
- */
63
- readonly state?: string;
64
- /**
65
- * A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
66
- *
67
- *
68
- */
69
- readonly country: string;
70
- /**
71
- *
72
- */
73
- readonly company?: string;
74
- /**
75
- *
76
- */
77
- readonly department?: string;
78
- /**
79
- *
80
- */
81
- readonly building?: string;
82
- /**
83
- *
84
- */
85
- readonly apartment?: string;
86
- /**
87
- *
88
- */
89
- readonly pOBox?: string;
90
- /**
91
- *
92
- */
93
- readonly phone?: string;
94
- /**
95
- *
96
- */
97
- readonly mobile?: string;
98
- /**
99
- *
100
- */
101
- readonly email?: string;
102
- /**
103
- *
104
- */
105
- readonly fax?: string;
106
- /**
107
- *
108
- */
109
- readonly additionalAddressInfo?: string;
110
- /**
111
- *
112
- */
113
- readonly externalId?: string;
114
- }
115
- /**
116
- * The data representation for a Customer to be imported that is persisted as a [Customer](/../api/projects/customers#top) in the Project.
117
- *
118
- */
119
- export interface CustomerImport extends ImportResource {
120
- /**
121
- * Maps to `Customer.customerNumber`.
122
- *
123
- *
124
- */
125
- readonly customerNumber?: string;
126
- /**
127
- * Maps to `Customer.email`.
128
- *
129
- *
130
- */
131
- readonly email: string;
132
- /**
133
- * Maps to `Customer.password`.
134
- *
135
- *
136
- */
137
- readonly password: string;
138
- /**
139
- * The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Stores are created.
140
- *
141
- *
142
- */
143
- readonly stores?: StoreKeyReference[];
144
- /**
145
- * Maps to `Customer.firstName`.
146
- *
147
- *
148
- */
149
- readonly firstName?: string;
150
- /**
151
- * Maps to `Customer.lastName`.
152
- *
153
- *
154
- */
155
- readonly lastName?: string;
156
- /**
157
- * Maps to `Customer.middleName`.
158
- *
159
- *
160
- */
161
- readonly middleName?: string;
162
- /**
163
- * Maps to `Customer.title`.
164
- *
165
- *
166
- */
167
- readonly title?: string;
168
- /**
169
- * Maps to `Customer.salutation`.
170
- *
171
- *
172
- */
173
- readonly salutation?: string;
174
- /**
175
- * Maps to `Customer.externalId`.
176
- *
177
- *
178
- */
179
- readonly externalId?: string;
180
- /**
181
- * Maps to `Customer.dateOfBirth`.
182
- *
183
- *
184
- */
185
- readonly dateOfBirth?: string;
186
- /**
187
- * Maps to `Customer.companyName`.
188
- *
189
- *
190
- */
191
- readonly companyName?: string;
192
- /**
193
- * Maps to `Customer.vatId`.
194
- *
195
- *
196
- */
197
- readonly vatId?: string;
198
- /**
199
- * Maps to `Customer.isEmailVerified`.
200
- *
201
- *
202
- */
203
- readonly isEmailVerified?: boolean;
204
- /**
205
- * The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the Customer is associated.
206
- * If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary CustomerGroup is created.
207
- *
208
- *
209
- */
210
- readonly customerGroup?: CustomerGroupKeyReference;
211
- /**
212
- * Maps to `Customer.addresses`.
213
- *
214
- *
215
- */
216
- readonly addresses: CustomerAddress[];
217
- /**
218
- * The index of the address in the addresses array. The `defaultBillingAddressId` of the customer will be set to the ID of that address.
219
- *
220
- *
221
- */
222
- readonly defaultBillingAddress?: number;
223
- /**
224
- * The indices of the billing addresses in the addresses array. The `billingAddressIds` of the customer will be set to the IDs of that addresses.
225
- *
226
- *
227
- */
228
- readonly billingAddresses?: number[];
229
- /**
230
- * The index of the address in the addresses array. The `defaultShippingAddressId` of the customer will be set to the ID of that address.
231
- *
232
- *
233
- */
234
- readonly defaultShippingAddress?: number;
235
- /**
236
- * The indices of the shipping addresses in the addresses array. The `shippingAddressIds` of the customer will be set to the IDs of that addresses.
237
- *
238
- *
239
- */
240
- readonly shippingAddresses?: number[];
241
- /**
242
- * Maps to `Customer.locale`.
243
- *
244
- *
245
- */
246
- readonly locale?: string;
247
- /**
248
- * The custom fields for this Customer.
249
- *
250
- */
251
- readonly custom?: Custom;
252
- }
1
+ /**
2
+ * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
3
+ * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
4
+ * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
5
+ */
6
+ import { CustomerGroupKeyReference, ImportResource, StoreKeyReference } from './common';
7
+ import { Custom } from './customfields';
8
+ /**
9
+ * Different from Address in that `key` is required and `id` is not supported.
10
+ *
11
+ */
12
+ export interface CustomerAddress {
13
+ /**
14
+ * User-defined identifier for the address.
15
+ * Must follow the pattern `[a-zA-Z0-9_\-]{2,256}` and must be unique per customer.
16
+ *
17
+ *
18
+ */
19
+ readonly key: string;
20
+ /**
21
+ *
22
+ */
23
+ readonly title?: string;
24
+ /**
25
+ *
26
+ */
27
+ readonly salutation?: string;
28
+ /**
29
+ *
30
+ */
31
+ readonly firstName?: string;
32
+ /**
33
+ *
34
+ */
35
+ readonly lastName?: string;
36
+ /**
37
+ *
38
+ */
39
+ readonly streetName?: string;
40
+ /**
41
+ *
42
+ */
43
+ readonly streetNumber?: string;
44
+ /**
45
+ *
46
+ */
47
+ readonly additionalStreetInfo?: string;
48
+ /**
49
+ *
50
+ */
51
+ readonly postalCode?: string;
52
+ /**
53
+ *
54
+ */
55
+ readonly city?: string;
56
+ /**
57
+ *
58
+ */
59
+ readonly region?: string;
60
+ /**
61
+ *
62
+ */
63
+ readonly state?: string;
64
+ /**
65
+ * A two-digit country code as per [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
66
+ *
67
+ *
68
+ */
69
+ readonly country: string;
70
+ /**
71
+ *
72
+ */
73
+ readonly company?: string;
74
+ /**
75
+ *
76
+ */
77
+ readonly department?: string;
78
+ /**
79
+ *
80
+ */
81
+ readonly building?: string;
82
+ /**
83
+ *
84
+ */
85
+ readonly apartment?: string;
86
+ /**
87
+ *
88
+ */
89
+ readonly pOBox?: string;
90
+ /**
91
+ *
92
+ */
93
+ readonly phone?: string;
94
+ /**
95
+ *
96
+ */
97
+ readonly mobile?: string;
98
+ /**
99
+ *
100
+ */
101
+ readonly email?: string;
102
+ /**
103
+ *
104
+ */
105
+ readonly fax?: string;
106
+ /**
107
+ *
108
+ */
109
+ readonly additionalAddressInfo?: string;
110
+ /**
111
+ *
112
+ */
113
+ readonly externalId?: string;
114
+ }
115
+ /**
116
+ * The data representation for a Customer to be imported that is persisted as a [Customer](/../api/projects/customers#top) in the Project.
117
+ *
118
+ */
119
+ export interface CustomerImport extends ImportResource {
120
+ /**
121
+ * Maps to `Customer.customerNumber`.
122
+ *
123
+ *
124
+ */
125
+ readonly customerNumber?: string;
126
+ /**
127
+ * Maps to `Customer.email`.
128
+ *
129
+ *
130
+ */
131
+ readonly email: string;
132
+ /**
133
+ * Maps to `Customer.password`.
134
+ *
135
+ *
136
+ */
137
+ readonly password: string;
138
+ /**
139
+ * The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary Stores are created.
140
+ *
141
+ *
142
+ */
143
+ readonly stores?: StoreKeyReference[];
144
+ /**
145
+ * Maps to `Customer.firstName`.
146
+ *
147
+ *
148
+ */
149
+ readonly firstName?: string;
150
+ /**
151
+ * Maps to `Customer.lastName`.
152
+ *
153
+ *
154
+ */
155
+ readonly lastName?: string;
156
+ /**
157
+ * Maps to `Customer.middleName`.
158
+ *
159
+ *
160
+ */
161
+ readonly middleName?: string;
162
+ /**
163
+ * Maps to `Customer.title`.
164
+ *
165
+ *
166
+ */
167
+ readonly title?: string;
168
+ /**
169
+ * Maps to `Customer.salutation`.
170
+ *
171
+ *
172
+ */
173
+ readonly salutation?: string;
174
+ /**
175
+ * Maps to `Customer.externalId`.
176
+ *
177
+ *
178
+ */
179
+ readonly externalId?: string;
180
+ /**
181
+ * Maps to `Customer.dateOfBirth`.
182
+ *
183
+ *
184
+ */
185
+ readonly dateOfBirth?: string;
186
+ /**
187
+ * Maps to `Customer.companyName`.
188
+ *
189
+ *
190
+ */
191
+ readonly companyName?: string;
192
+ /**
193
+ * Maps to `Customer.vatId`.
194
+ *
195
+ *
196
+ */
197
+ readonly vatId?: string;
198
+ /**
199
+ * Maps to `Customer.isEmailVerified`.
200
+ *
201
+ *
202
+ */
203
+ readonly isEmailVerified?: boolean;
204
+ /**
205
+ * The Reference to the [CustomerGroup](/../api/projects/customerGroups#customergroup) with which the Customer is associated.
206
+ * If referenced CustomerGroup does not exist, the `state` of the [ImportOperation](/import-operation#importoperation) will be set to `unresolved` until the necessary CustomerGroup is created.
207
+ *
208
+ *
209
+ */
210
+ readonly customerGroup?: CustomerGroupKeyReference;
211
+ /**
212
+ * Maps to `Customer.addresses`.
213
+ *
214
+ *
215
+ */
216
+ readonly addresses: CustomerAddress[];
217
+ /**
218
+ * The index of the address in the addresses array. The `defaultBillingAddressId` of the customer will be set to the ID of that address.
219
+ *
220
+ *
221
+ */
222
+ readonly defaultBillingAddress?: number;
223
+ /**
224
+ * The indices of the billing addresses in the addresses array. The `billingAddressIds` of the customer will be set to the IDs of that addresses.
225
+ *
226
+ *
227
+ */
228
+ readonly billingAddresses?: number[];
229
+ /**
230
+ * The index of the address in the addresses array. The `defaultShippingAddressId` of the customer will be set to the ID of that address.
231
+ *
232
+ *
233
+ */
234
+ readonly defaultShippingAddress?: number;
235
+ /**
236
+ * The indices of the shipping addresses in the addresses array. The `shippingAddressIds` of the customer will be set to the IDs of that addresses.
237
+ *
238
+ *
239
+ */
240
+ readonly shippingAddresses?: number[];
241
+ /**
242
+ * Maps to `Customer.locale`.
243
+ *
244
+ *
245
+ */
246
+ readonly locale?: string;
247
+ /**
248
+ * The custom fields for this Customer.
249
+ *
250
+ */
251
+ readonly custom?: Custom;
252
+ }