@deliverart/sdk-js-customer 0.0.1

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 (36) hide show
  1. package/.changeset/config.json +11 -0
  2. package/.github/workflows/workflow.yml +47 -0
  3. package/.prettierrc +7 -0
  4. package/CHANGELOG.md +37 -0
  5. package/README.md +3 -0
  6. package/dist/index.cjs +747 -0
  7. package/dist/index.d.cts +4485 -0
  8. package/dist/index.d.ts +4485 -0
  9. package/dist/index.js +667 -0
  10. package/eslint.config.js +41 -0
  11. package/package.json +48 -0
  12. package/src/index.ts +3 -0
  13. package/src/models.ts +102 -0
  14. package/src/requests/customer-addresses/CreateCustomerAddress.ts +36 -0
  15. package/src/requests/customer-addresses/DeleteCustomerAddress.ts +27 -0
  16. package/src/requests/customer-addresses/GetCustomerAddressDetails.ts +33 -0
  17. package/src/requests/customer-addresses/GetCustomerAddresses.ts +57 -0
  18. package/src/requests/customer-addresses/GetCustomerAddressesForCustomer.ts +55 -0
  19. package/src/requests/customer-addresses/UpdateCustomerAddress.ts +39 -0
  20. package/src/requests/customer-addresses/index.ts +6 -0
  21. package/src/requests/customer-business-profiles/CreateCustomerBusinessProfile.ts +39 -0
  22. package/src/requests/customer-business-profiles/DeleteCustomerBusinessProfile.ts +27 -0
  23. package/src/requests/customer-business-profiles/GetCustomerBusinessProfileDetails.ts +33 -0
  24. package/src/requests/customer-business-profiles/GetCustomerBusinessProfiles.ts +67 -0
  25. package/src/requests/customer-business-profiles/GetCustomerBusinessProfilesForCustomer.ts +61 -0
  26. package/src/requests/customer-business-profiles/UpdateCustomerBusinessProfile.ts +42 -0
  27. package/src/requests/customer-business-profiles/index.ts +6 -0
  28. package/src/requests/customers/CreateCustomer.ts +32 -0
  29. package/src/requests/customers/DeleteCustomer.ts +27 -0
  30. package/src/requests/customers/GetCustomerDetails.ts +30 -0
  31. package/src/requests/customers/GetCustomers.ts +72 -0
  32. package/src/requests/customers/UpdateCustomer.ts +35 -0
  33. package/src/requests/customers/index.ts +5 -0
  34. package/src/requests/index.ts +3 -0
  35. package/src/types.ts +66 -0
  36. package/tsconfig.json +15 -0
@@ -0,0 +1,4485 @@
1
+ import { z } from 'zod';
2
+ import { AbstractApiRequest } from '@deliverart/sdk-js-core';
3
+ import { Paginated } from '@deliverart/sdk-js-global-types';
4
+ import { AxiosResponse } from 'axios';
5
+
6
+ declare const customerSchema: z.ZodObject<{
7
+ id: z.ZodString;
8
+ firstName: z.ZodNullable<z.ZodString>;
9
+ lastName: z.ZodNullable<z.ZodString>;
10
+ email: z.ZodNullable<z.ZodString>;
11
+ phoneNumber: z.ZodNullable<z.ZodString>;
12
+ hasBusinessProfiles: z.ZodBoolean;
13
+ hasAddresses: z.ZodBoolean;
14
+ ordersPlaced: z.ZodNumber;
15
+ totalSpent: z.ZodNumber;
16
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
17
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ id: string;
20
+ firstName: string | null;
21
+ lastName: string | null;
22
+ email: string | null;
23
+ phoneNumber: string | null;
24
+ hasBusinessProfiles: boolean;
25
+ hasAddresses: boolean;
26
+ ordersPlaced: number;
27
+ totalSpent: number;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ }, {
31
+ id: string;
32
+ firstName: string | null;
33
+ lastName: string | null;
34
+ email: string | null;
35
+ phoneNumber: string | null;
36
+ hasBusinessProfiles: boolean;
37
+ hasAddresses: boolean;
38
+ ordersPlaced: number;
39
+ totalSpent: number;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ }>;
43
+ type Customer = z.infer<typeof customerSchema>;
44
+ declare const customerDetailsSchema: z.ZodObject<{
45
+ id: z.ZodString;
46
+ firstName: z.ZodNullable<z.ZodString>;
47
+ lastName: z.ZodNullable<z.ZodString>;
48
+ email: z.ZodNullable<z.ZodString>;
49
+ phoneNumber: z.ZodNullable<z.ZodString>;
50
+ hasBusinessProfiles: z.ZodBoolean;
51
+ hasAddresses: z.ZodBoolean;
52
+ ordersPlaced: z.ZodNumber;
53
+ totalSpent: z.ZodNumber;
54
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
55
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
56
+ } & {
57
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
58
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
59
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
60
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ id: string;
63
+ firstName: string | null;
64
+ lastName: string | null;
65
+ email: string | null;
66
+ phoneNumber: string | null;
67
+ hasBusinessProfiles: boolean;
68
+ hasAddresses: boolean;
69
+ ordersPlaced: number;
70
+ totalSpent: number;
71
+ createdAt: string;
72
+ updatedAt: string;
73
+ pointOfSale: string | null;
74
+ owner: string | null;
75
+ addresses: string[];
76
+ businessProfiles: string[];
77
+ }, {
78
+ id: string;
79
+ firstName: string | null;
80
+ lastName: string | null;
81
+ email: string | null;
82
+ phoneNumber: string | null;
83
+ hasBusinessProfiles: boolean;
84
+ hasAddresses: boolean;
85
+ ordersPlaced: number;
86
+ totalSpent: number;
87
+ createdAt: string;
88
+ updatedAt: string;
89
+ pointOfSale: string | null;
90
+ owner: string | null;
91
+ addresses: string[];
92
+ businessProfiles: string[];
93
+ }>;
94
+ type CustomerDetails = z.infer<typeof customerDetailsSchema>;
95
+ declare const writableCreateCustomerSchema: z.ZodObject<Pick<{
96
+ id: z.ZodString;
97
+ firstName: z.ZodNullable<z.ZodString>;
98
+ lastName: z.ZodNullable<z.ZodString>;
99
+ email: z.ZodNullable<z.ZodString>;
100
+ phoneNumber: z.ZodNullable<z.ZodString>;
101
+ hasBusinessProfiles: z.ZodBoolean;
102
+ hasAddresses: z.ZodBoolean;
103
+ ordersPlaced: z.ZodNumber;
104
+ totalSpent: z.ZodNumber;
105
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
106
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
107
+ } & {
108
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
109
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
110
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
111
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
112
+ }, "firstName" | "lastName" | "email" | "phoneNumber" | "pointOfSale">, "strip", z.ZodTypeAny, {
113
+ firstName: string | null;
114
+ lastName: string | null;
115
+ email: string | null;
116
+ phoneNumber: string | null;
117
+ pointOfSale: string | null;
118
+ }, {
119
+ firstName: string | null;
120
+ lastName: string | null;
121
+ email: string | null;
122
+ phoneNumber: string | null;
123
+ pointOfSale: string | null;
124
+ }>;
125
+ declare const writableCustomerSchema: z.ZodObject<Omit<Pick<{
126
+ id: z.ZodString;
127
+ firstName: z.ZodNullable<z.ZodString>;
128
+ lastName: z.ZodNullable<z.ZodString>;
129
+ email: z.ZodNullable<z.ZodString>;
130
+ phoneNumber: z.ZodNullable<z.ZodString>;
131
+ hasBusinessProfiles: z.ZodBoolean;
132
+ hasAddresses: z.ZodBoolean;
133
+ ordersPlaced: z.ZodNumber;
134
+ totalSpent: z.ZodNumber;
135
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
136
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
137
+ } & {
138
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
139
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
140
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
141
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
142
+ }, "firstName" | "lastName" | "email" | "phoneNumber" | "pointOfSale">, "pointOfSale">, "strip", z.ZodTypeAny, {
143
+ firstName: string | null;
144
+ lastName: string | null;
145
+ email: string | null;
146
+ phoneNumber: string | null;
147
+ }, {
148
+ firstName: string | null;
149
+ lastName: string | null;
150
+ email: string | null;
151
+ phoneNumber: string | null;
152
+ }>;
153
+ declare const customerAddressSchema: z.ZodObject<{
154
+ id: z.ZodString;
155
+ address: z.ZodObject<{
156
+ line1: z.ZodString;
157
+ line2: z.ZodOptional<z.ZodString>;
158
+ city: z.ZodString;
159
+ region: z.ZodString;
160
+ postalCode: z.ZodString;
161
+ country: z.ZodString;
162
+ }, "strip", z.ZodTypeAny, {
163
+ line1: string;
164
+ city: string;
165
+ region: string;
166
+ postalCode: string;
167
+ country: string;
168
+ line2?: string | undefined;
169
+ }, {
170
+ line1: string;
171
+ city: string;
172
+ region: string;
173
+ postalCode: string;
174
+ country: string;
175
+ line2?: string | undefined;
176
+ }>;
177
+ location: z.ZodObject<{
178
+ latitude: z.ZodNumber;
179
+ longitude: z.ZodNumber;
180
+ }, "strip", z.ZodTypeAny, {
181
+ latitude: number;
182
+ longitude: number;
183
+ }, {
184
+ latitude: number;
185
+ longitude: number;
186
+ }>;
187
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
188
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ id: string;
191
+ createdAt: string;
192
+ updatedAt: string;
193
+ address: {
194
+ line1: string;
195
+ city: string;
196
+ region: string;
197
+ postalCode: string;
198
+ country: string;
199
+ line2?: string | undefined;
200
+ };
201
+ location: {
202
+ latitude: number;
203
+ longitude: number;
204
+ };
205
+ }, {
206
+ id: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
+ address: {
210
+ line1: string;
211
+ city: string;
212
+ region: string;
213
+ postalCode: string;
214
+ country: string;
215
+ line2?: string | undefined;
216
+ };
217
+ location: {
218
+ latitude: number;
219
+ longitude: number;
220
+ };
221
+ }>;
222
+ type CustomerAddress = z.infer<typeof customerAddressSchema>;
223
+ declare const customerAddressDetailsSchema: z.ZodObject<{
224
+ id: z.ZodString;
225
+ address: z.ZodObject<{
226
+ line1: z.ZodString;
227
+ line2: z.ZodOptional<z.ZodString>;
228
+ city: z.ZodString;
229
+ region: z.ZodString;
230
+ postalCode: z.ZodString;
231
+ country: z.ZodString;
232
+ }, "strip", z.ZodTypeAny, {
233
+ line1: string;
234
+ city: string;
235
+ region: string;
236
+ postalCode: string;
237
+ country: string;
238
+ line2?: string | undefined;
239
+ }, {
240
+ line1: string;
241
+ city: string;
242
+ region: string;
243
+ postalCode: string;
244
+ country: string;
245
+ line2?: string | undefined;
246
+ }>;
247
+ location: z.ZodObject<{
248
+ latitude: z.ZodNumber;
249
+ longitude: z.ZodNumber;
250
+ }, "strip", z.ZodTypeAny, {
251
+ latitude: number;
252
+ longitude: number;
253
+ }, {
254
+ latitude: number;
255
+ longitude: number;
256
+ }>;
257
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
258
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
259
+ } & {
260
+ customer: z.ZodEffects<z.ZodString, string, string>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ id: string;
263
+ createdAt: string;
264
+ updatedAt: string;
265
+ address: {
266
+ line1: string;
267
+ city: string;
268
+ region: string;
269
+ postalCode: string;
270
+ country: string;
271
+ line2?: string | undefined;
272
+ };
273
+ location: {
274
+ latitude: number;
275
+ longitude: number;
276
+ };
277
+ customer: string;
278
+ }, {
279
+ id: string;
280
+ createdAt: string;
281
+ updatedAt: string;
282
+ address: {
283
+ line1: string;
284
+ city: string;
285
+ region: string;
286
+ postalCode: string;
287
+ country: string;
288
+ line2?: string | undefined;
289
+ };
290
+ location: {
291
+ latitude: number;
292
+ longitude: number;
293
+ };
294
+ customer: string;
295
+ }>;
296
+ type CustomerAddressDetails = z.infer<typeof customerAddressDetailsSchema>;
297
+ declare const writableCreateCustomerAddressSchema: z.ZodObject<Pick<{
298
+ id: z.ZodString;
299
+ address: z.ZodObject<{
300
+ line1: z.ZodString;
301
+ line2: z.ZodOptional<z.ZodString>;
302
+ city: z.ZodString;
303
+ region: z.ZodString;
304
+ postalCode: z.ZodString;
305
+ country: z.ZodString;
306
+ }, "strip", z.ZodTypeAny, {
307
+ line1: string;
308
+ city: string;
309
+ region: string;
310
+ postalCode: string;
311
+ country: string;
312
+ line2?: string | undefined;
313
+ }, {
314
+ line1: string;
315
+ city: string;
316
+ region: string;
317
+ postalCode: string;
318
+ country: string;
319
+ line2?: string | undefined;
320
+ }>;
321
+ location: z.ZodObject<{
322
+ latitude: z.ZodNumber;
323
+ longitude: z.ZodNumber;
324
+ }, "strip", z.ZodTypeAny, {
325
+ latitude: number;
326
+ longitude: number;
327
+ }, {
328
+ latitude: number;
329
+ longitude: number;
330
+ }>;
331
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
332
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
333
+ } & {
334
+ customer: z.ZodEffects<z.ZodString, string, string>;
335
+ }, "address" | "customer">, "strip", z.ZodTypeAny, {
336
+ address: {
337
+ line1: string;
338
+ city: string;
339
+ region: string;
340
+ postalCode: string;
341
+ country: string;
342
+ line2?: string | undefined;
343
+ };
344
+ customer: string;
345
+ }, {
346
+ address: {
347
+ line1: string;
348
+ city: string;
349
+ region: string;
350
+ postalCode: string;
351
+ country: string;
352
+ line2?: string | undefined;
353
+ };
354
+ customer: string;
355
+ }>;
356
+ declare const writableCustomerAddressSchema: z.ZodObject<Omit<Pick<{
357
+ id: z.ZodString;
358
+ address: z.ZodObject<{
359
+ line1: z.ZodString;
360
+ line2: z.ZodOptional<z.ZodString>;
361
+ city: z.ZodString;
362
+ region: z.ZodString;
363
+ postalCode: z.ZodString;
364
+ country: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ line1: string;
367
+ city: string;
368
+ region: string;
369
+ postalCode: string;
370
+ country: string;
371
+ line2?: string | undefined;
372
+ }, {
373
+ line1: string;
374
+ city: string;
375
+ region: string;
376
+ postalCode: string;
377
+ country: string;
378
+ line2?: string | undefined;
379
+ }>;
380
+ location: z.ZodObject<{
381
+ latitude: z.ZodNumber;
382
+ longitude: z.ZodNumber;
383
+ }, "strip", z.ZodTypeAny, {
384
+ latitude: number;
385
+ longitude: number;
386
+ }, {
387
+ latitude: number;
388
+ longitude: number;
389
+ }>;
390
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
391
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
392
+ } & {
393
+ customer: z.ZodEffects<z.ZodString, string, string>;
394
+ }, "address" | "customer">, "customer">, "strip", z.ZodTypeAny, {
395
+ address: {
396
+ line1: string;
397
+ city: string;
398
+ region: string;
399
+ postalCode: string;
400
+ country: string;
401
+ line2?: string | undefined;
402
+ };
403
+ }, {
404
+ address: {
405
+ line1: string;
406
+ city: string;
407
+ region: string;
408
+ postalCode: string;
409
+ country: string;
410
+ line2?: string | undefined;
411
+ };
412
+ }>;
413
+ declare const customerBusinessProfileSchema: z.ZodObject<{
414
+ id: z.ZodString;
415
+ businessName: z.ZodString;
416
+ vat: z.ZodString;
417
+ taxCode: z.ZodString;
418
+ billingAddress: z.ZodObject<{
419
+ line1: z.ZodString;
420
+ line2: z.ZodOptional<z.ZodString>;
421
+ city: z.ZodString;
422
+ region: z.ZodString;
423
+ postalCode: z.ZodString;
424
+ country: z.ZodString;
425
+ }, "strip", z.ZodTypeAny, {
426
+ line1: string;
427
+ city: string;
428
+ region: string;
429
+ postalCode: string;
430
+ country: string;
431
+ line2?: string | undefined;
432
+ }, {
433
+ line1: string;
434
+ city: string;
435
+ region: string;
436
+ postalCode: string;
437
+ country: string;
438
+ line2?: string | undefined;
439
+ }>;
440
+ billingData: z.ZodEffects<z.ZodObject<{
441
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
442
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ sdi?: string | null | undefined;
445
+ pec?: string | null | undefined;
446
+ }, {
447
+ sdi?: string | null | undefined;
448
+ pec?: string | null | undefined;
449
+ }>, {
450
+ sdi?: string | null | undefined;
451
+ pec?: string | null | undefined;
452
+ }, {
453
+ sdi?: string | null | undefined;
454
+ pec?: string | null | undefined;
455
+ }>;
456
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
457
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ id: string;
460
+ createdAt: string;
461
+ updatedAt: string;
462
+ businessName: string;
463
+ vat: string;
464
+ taxCode: string;
465
+ billingAddress: {
466
+ line1: string;
467
+ city: string;
468
+ region: string;
469
+ postalCode: string;
470
+ country: string;
471
+ line2?: string | undefined;
472
+ };
473
+ billingData: {
474
+ sdi?: string | null | undefined;
475
+ pec?: string | null | undefined;
476
+ };
477
+ }, {
478
+ id: string;
479
+ createdAt: string;
480
+ updatedAt: string;
481
+ businessName: string;
482
+ vat: string;
483
+ taxCode: string;
484
+ billingAddress: {
485
+ line1: string;
486
+ city: string;
487
+ region: string;
488
+ postalCode: string;
489
+ country: string;
490
+ line2?: string | undefined;
491
+ };
492
+ billingData: {
493
+ sdi?: string | null | undefined;
494
+ pec?: string | null | undefined;
495
+ };
496
+ }>;
497
+ type CustomerBusinessProfile = z.infer<typeof customerBusinessProfileSchema>;
498
+ declare const customerBusinessProfileDetailsSchema: z.ZodObject<{
499
+ id: z.ZodString;
500
+ businessName: z.ZodString;
501
+ vat: z.ZodString;
502
+ taxCode: z.ZodString;
503
+ billingAddress: z.ZodObject<{
504
+ line1: z.ZodString;
505
+ line2: z.ZodOptional<z.ZodString>;
506
+ city: z.ZodString;
507
+ region: z.ZodString;
508
+ postalCode: z.ZodString;
509
+ country: z.ZodString;
510
+ }, "strip", z.ZodTypeAny, {
511
+ line1: string;
512
+ city: string;
513
+ region: string;
514
+ postalCode: string;
515
+ country: string;
516
+ line2?: string | undefined;
517
+ }, {
518
+ line1: string;
519
+ city: string;
520
+ region: string;
521
+ postalCode: string;
522
+ country: string;
523
+ line2?: string | undefined;
524
+ }>;
525
+ billingData: z.ZodEffects<z.ZodObject<{
526
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
527
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ sdi?: string | null | undefined;
530
+ pec?: string | null | undefined;
531
+ }, {
532
+ sdi?: string | null | undefined;
533
+ pec?: string | null | undefined;
534
+ }>, {
535
+ sdi?: string | null | undefined;
536
+ pec?: string | null | undefined;
537
+ }, {
538
+ sdi?: string | null | undefined;
539
+ pec?: string | null | undefined;
540
+ }>;
541
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
542
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
543
+ } & {
544
+ customer: z.ZodEffects<z.ZodString, string, string>;
545
+ }, "strip", z.ZodTypeAny, {
546
+ id: string;
547
+ createdAt: string;
548
+ updatedAt: string;
549
+ customer: string;
550
+ businessName: string;
551
+ vat: string;
552
+ taxCode: string;
553
+ billingAddress: {
554
+ line1: string;
555
+ city: string;
556
+ region: string;
557
+ postalCode: string;
558
+ country: string;
559
+ line2?: string | undefined;
560
+ };
561
+ billingData: {
562
+ sdi?: string | null | undefined;
563
+ pec?: string | null | undefined;
564
+ };
565
+ }, {
566
+ id: string;
567
+ createdAt: string;
568
+ updatedAt: string;
569
+ customer: string;
570
+ businessName: string;
571
+ vat: string;
572
+ taxCode: string;
573
+ billingAddress: {
574
+ line1: string;
575
+ city: string;
576
+ region: string;
577
+ postalCode: string;
578
+ country: string;
579
+ line2?: string | undefined;
580
+ };
581
+ billingData: {
582
+ sdi?: string | null | undefined;
583
+ pec?: string | null | undefined;
584
+ };
585
+ }>;
586
+ type CustomerBusinessProfileDetails = z.infer<typeof customerBusinessProfileDetailsSchema>;
587
+ declare const writableCreateCustomerBusinessProfileSchema: z.ZodObject<Pick<{
588
+ id: z.ZodString;
589
+ businessName: z.ZodString;
590
+ vat: z.ZodString;
591
+ taxCode: z.ZodString;
592
+ billingAddress: z.ZodObject<{
593
+ line1: z.ZodString;
594
+ line2: z.ZodOptional<z.ZodString>;
595
+ city: z.ZodString;
596
+ region: z.ZodString;
597
+ postalCode: z.ZodString;
598
+ country: z.ZodString;
599
+ }, "strip", z.ZodTypeAny, {
600
+ line1: string;
601
+ city: string;
602
+ region: string;
603
+ postalCode: string;
604
+ country: string;
605
+ line2?: string | undefined;
606
+ }, {
607
+ line1: string;
608
+ city: string;
609
+ region: string;
610
+ postalCode: string;
611
+ country: string;
612
+ line2?: string | undefined;
613
+ }>;
614
+ billingData: z.ZodEffects<z.ZodObject<{
615
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
616
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ sdi?: string | null | undefined;
619
+ pec?: string | null | undefined;
620
+ }, {
621
+ sdi?: string | null | undefined;
622
+ pec?: string | null | undefined;
623
+ }>, {
624
+ sdi?: string | null | undefined;
625
+ pec?: string | null | undefined;
626
+ }, {
627
+ sdi?: string | null | undefined;
628
+ pec?: string | null | undefined;
629
+ }>;
630
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
631
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
632
+ } & {
633
+ customer: z.ZodEffects<z.ZodString, string, string>;
634
+ }, "customer" | "businessName" | "vat" | "taxCode" | "billingAddress" | "billingData">, "strip", z.ZodTypeAny, {
635
+ customer: string;
636
+ businessName: string;
637
+ vat: string;
638
+ taxCode: string;
639
+ billingAddress: {
640
+ line1: string;
641
+ city: string;
642
+ region: string;
643
+ postalCode: string;
644
+ country: string;
645
+ line2?: string | undefined;
646
+ };
647
+ billingData: {
648
+ sdi?: string | null | undefined;
649
+ pec?: string | null | undefined;
650
+ };
651
+ }, {
652
+ customer: string;
653
+ businessName: string;
654
+ vat: string;
655
+ taxCode: string;
656
+ billingAddress: {
657
+ line1: string;
658
+ city: string;
659
+ region: string;
660
+ postalCode: string;
661
+ country: string;
662
+ line2?: string | undefined;
663
+ };
664
+ billingData: {
665
+ sdi?: string | null | undefined;
666
+ pec?: string | null | undefined;
667
+ };
668
+ }>;
669
+ declare const writableCustomerBusinessProfileSchema: z.ZodObject<Omit<Pick<{
670
+ id: z.ZodString;
671
+ businessName: z.ZodString;
672
+ vat: z.ZodString;
673
+ taxCode: z.ZodString;
674
+ billingAddress: z.ZodObject<{
675
+ line1: z.ZodString;
676
+ line2: z.ZodOptional<z.ZodString>;
677
+ city: z.ZodString;
678
+ region: z.ZodString;
679
+ postalCode: z.ZodString;
680
+ country: z.ZodString;
681
+ }, "strip", z.ZodTypeAny, {
682
+ line1: string;
683
+ city: string;
684
+ region: string;
685
+ postalCode: string;
686
+ country: string;
687
+ line2?: string | undefined;
688
+ }, {
689
+ line1: string;
690
+ city: string;
691
+ region: string;
692
+ postalCode: string;
693
+ country: string;
694
+ line2?: string | undefined;
695
+ }>;
696
+ billingData: z.ZodEffects<z.ZodObject<{
697
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
698
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ sdi?: string | null | undefined;
701
+ pec?: string | null | undefined;
702
+ }, {
703
+ sdi?: string | null | undefined;
704
+ pec?: string | null | undefined;
705
+ }>, {
706
+ sdi?: string | null | undefined;
707
+ pec?: string | null | undefined;
708
+ }, {
709
+ sdi?: string | null | undefined;
710
+ pec?: string | null | undefined;
711
+ }>;
712
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
713
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
714
+ } & {
715
+ customer: z.ZodEffects<z.ZodString, string, string>;
716
+ }, "customer" | "businessName" | "vat" | "taxCode" | "billingAddress" | "billingData">, "customer">, "strip", z.ZodTypeAny, {
717
+ businessName: string;
718
+ vat: string;
719
+ taxCode: string;
720
+ billingAddress: {
721
+ line1: string;
722
+ city: string;
723
+ region: string;
724
+ postalCode: string;
725
+ country: string;
726
+ line2?: string | undefined;
727
+ };
728
+ billingData: {
729
+ sdi?: string | null | undefined;
730
+ pec?: string | null | undefined;
731
+ };
732
+ }, {
733
+ businessName: string;
734
+ vat: string;
735
+ taxCode: string;
736
+ billingAddress: {
737
+ line1: string;
738
+ city: string;
739
+ region: string;
740
+ postalCode: string;
741
+ country: string;
742
+ line2?: string | undefined;
743
+ };
744
+ billingData: {
745
+ sdi?: string | null | undefined;
746
+ pec?: string | null | undefined;
747
+ };
748
+ }>;
749
+
750
+ declare const createCustomerAddressInputSchema: z.ZodObject<{
751
+ address: z.ZodObject<{
752
+ line1: z.ZodString;
753
+ line2: z.ZodOptional<z.ZodString>;
754
+ city: z.ZodString;
755
+ region: z.ZodString;
756
+ postalCode: z.ZodString;
757
+ country: z.ZodString;
758
+ }, "strip", z.ZodTypeAny, {
759
+ line1: string;
760
+ city: string;
761
+ region: string;
762
+ postalCode: string;
763
+ country: string;
764
+ line2?: string | undefined;
765
+ }, {
766
+ line1: string;
767
+ city: string;
768
+ region: string;
769
+ postalCode: string;
770
+ country: string;
771
+ line2?: string | undefined;
772
+ }>;
773
+ customer: z.ZodEffects<z.ZodString, string, string>;
774
+ }, "strip", z.ZodTypeAny, {
775
+ address: {
776
+ line1: string;
777
+ city: string;
778
+ region: string;
779
+ postalCode: string;
780
+ country: string;
781
+ line2?: string | undefined;
782
+ };
783
+ customer: string;
784
+ }, {
785
+ address: {
786
+ line1: string;
787
+ city: string;
788
+ region: string;
789
+ postalCode: string;
790
+ country: string;
791
+ line2?: string | undefined;
792
+ };
793
+ customer: string;
794
+ }>;
795
+ type CreateCustomerAddressInput = z.infer<typeof createCustomerAddressInputSchema>;
796
+ declare const createCustomerAddressResponseSchema: z.ZodObject<{
797
+ id: z.ZodString;
798
+ address: z.ZodObject<{
799
+ line1: z.ZodString;
800
+ line2: z.ZodOptional<z.ZodString>;
801
+ city: z.ZodString;
802
+ region: z.ZodString;
803
+ postalCode: z.ZodString;
804
+ country: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ line1: string;
807
+ city: string;
808
+ region: string;
809
+ postalCode: string;
810
+ country: string;
811
+ line2?: string | undefined;
812
+ }, {
813
+ line1: string;
814
+ city: string;
815
+ region: string;
816
+ postalCode: string;
817
+ country: string;
818
+ line2?: string | undefined;
819
+ }>;
820
+ location: z.ZodObject<{
821
+ latitude: z.ZodNumber;
822
+ longitude: z.ZodNumber;
823
+ }, "strip", z.ZodTypeAny, {
824
+ latitude: number;
825
+ longitude: number;
826
+ }, {
827
+ latitude: number;
828
+ longitude: number;
829
+ }>;
830
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
831
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
832
+ } & {
833
+ customer: z.ZodEffects<z.ZodString, string, string>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ id: string;
836
+ createdAt: string;
837
+ updatedAt: string;
838
+ address: {
839
+ line1: string;
840
+ city: string;
841
+ region: string;
842
+ postalCode: string;
843
+ country: string;
844
+ line2?: string | undefined;
845
+ };
846
+ location: {
847
+ latitude: number;
848
+ longitude: number;
849
+ };
850
+ customer: string;
851
+ }, {
852
+ id: string;
853
+ createdAt: string;
854
+ updatedAt: string;
855
+ address: {
856
+ line1: string;
857
+ city: string;
858
+ region: string;
859
+ postalCode: string;
860
+ country: string;
861
+ line2?: string | undefined;
862
+ };
863
+ location: {
864
+ latitude: number;
865
+ longitude: number;
866
+ };
867
+ customer: string;
868
+ }>;
869
+ type CreateCustomerAddressResponse = CustomerAddressDetails;
870
+ declare class CreateCustomerAddress extends AbstractApiRequest<CreateCustomerAddressInput, CreateCustomerAddressResponse> {
871
+ readonly method = "POST";
872
+ readonly contentType = "application/json";
873
+ readonly accept = "application/json";
874
+ readonly inputSchema: z.ZodObject<{
875
+ address: z.ZodObject<{
876
+ line1: z.ZodString;
877
+ line2: z.ZodOptional<z.ZodString>;
878
+ city: z.ZodString;
879
+ region: z.ZodString;
880
+ postalCode: z.ZodString;
881
+ country: z.ZodString;
882
+ }, "strip", z.ZodTypeAny, {
883
+ line1: string;
884
+ city: string;
885
+ region: string;
886
+ postalCode: string;
887
+ country: string;
888
+ line2?: string | undefined;
889
+ }, {
890
+ line1: string;
891
+ city: string;
892
+ region: string;
893
+ postalCode: string;
894
+ country: string;
895
+ line2?: string | undefined;
896
+ }>;
897
+ customer: z.ZodEffects<z.ZodString, string, string>;
898
+ }, "strip", z.ZodTypeAny, {
899
+ address: {
900
+ line1: string;
901
+ city: string;
902
+ region: string;
903
+ postalCode: string;
904
+ country: string;
905
+ line2?: string | undefined;
906
+ };
907
+ customer: string;
908
+ }, {
909
+ address: {
910
+ line1: string;
911
+ city: string;
912
+ region: string;
913
+ postalCode: string;
914
+ country: string;
915
+ line2?: string | undefined;
916
+ };
917
+ customer: string;
918
+ }>;
919
+ readonly outputSchema: z.ZodObject<{
920
+ id: z.ZodString;
921
+ address: z.ZodObject<{
922
+ line1: z.ZodString;
923
+ line2: z.ZodOptional<z.ZodString>;
924
+ city: z.ZodString;
925
+ region: z.ZodString;
926
+ postalCode: z.ZodString;
927
+ country: z.ZodString;
928
+ }, "strip", z.ZodTypeAny, {
929
+ line1: string;
930
+ city: string;
931
+ region: string;
932
+ postalCode: string;
933
+ country: string;
934
+ line2?: string | undefined;
935
+ }, {
936
+ line1: string;
937
+ city: string;
938
+ region: string;
939
+ postalCode: string;
940
+ country: string;
941
+ line2?: string | undefined;
942
+ }>;
943
+ location: z.ZodObject<{
944
+ latitude: z.ZodNumber;
945
+ longitude: z.ZodNumber;
946
+ }, "strip", z.ZodTypeAny, {
947
+ latitude: number;
948
+ longitude: number;
949
+ }, {
950
+ latitude: number;
951
+ longitude: number;
952
+ }>;
953
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
954
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
955
+ } & {
956
+ customer: z.ZodEffects<z.ZodString, string, string>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ id: string;
959
+ createdAt: string;
960
+ updatedAt: string;
961
+ address: {
962
+ line1: string;
963
+ city: string;
964
+ region: string;
965
+ postalCode: string;
966
+ country: string;
967
+ line2?: string | undefined;
968
+ };
969
+ location: {
970
+ latitude: number;
971
+ longitude: number;
972
+ };
973
+ customer: string;
974
+ }, {
975
+ id: string;
976
+ createdAt: string;
977
+ updatedAt: string;
978
+ address: {
979
+ line1: string;
980
+ city: string;
981
+ region: string;
982
+ postalCode: string;
983
+ country: string;
984
+ line2?: string | undefined;
985
+ };
986
+ location: {
987
+ latitude: number;
988
+ longitude: number;
989
+ };
990
+ customer: string;
991
+ }>;
992
+ readonly querySchema: undefined;
993
+ readonly headersSchema: undefined;
994
+ constructor(input: CreateCustomerAddressInput);
995
+ getPath(): string;
996
+ }
997
+
998
+ declare const deleteCustomerAddressInputSchema: z.ZodUndefined;
999
+ declare const deleteCustomerAddressResponseSchema: z.ZodUndefined;
1000
+ declare class DeleteCustomerAddress extends AbstractApiRequest<void, void> {
1001
+ readonly method = "DELETE";
1002
+ readonly contentType = "application/json";
1003
+ readonly accept = "application/json";
1004
+ readonly inputSchema: z.ZodUndefined;
1005
+ readonly outputSchema: z.ZodUndefined;
1006
+ readonly querySchema: undefined;
1007
+ readonly headersSchema: undefined;
1008
+ private readonly customerAddressId;
1009
+ constructor(customerAddressId: string);
1010
+ getPath(): string;
1011
+ }
1012
+
1013
+ declare const getCustomerAddressDetailsInputSchema: z.ZodUndefined;
1014
+ declare const getCustomerAddressDetailsResponseSchema: z.ZodObject<{
1015
+ id: z.ZodString;
1016
+ address: z.ZodObject<{
1017
+ line1: z.ZodString;
1018
+ line2: z.ZodOptional<z.ZodString>;
1019
+ city: z.ZodString;
1020
+ region: z.ZodString;
1021
+ postalCode: z.ZodString;
1022
+ country: z.ZodString;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ line1: string;
1025
+ city: string;
1026
+ region: string;
1027
+ postalCode: string;
1028
+ country: string;
1029
+ line2?: string | undefined;
1030
+ }, {
1031
+ line1: string;
1032
+ city: string;
1033
+ region: string;
1034
+ postalCode: string;
1035
+ country: string;
1036
+ line2?: string | undefined;
1037
+ }>;
1038
+ location: z.ZodObject<{
1039
+ latitude: z.ZodNumber;
1040
+ longitude: z.ZodNumber;
1041
+ }, "strip", z.ZodTypeAny, {
1042
+ latitude: number;
1043
+ longitude: number;
1044
+ }, {
1045
+ latitude: number;
1046
+ longitude: number;
1047
+ }>;
1048
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1049
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1050
+ } & {
1051
+ customer: z.ZodEffects<z.ZodString, string, string>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ id: string;
1054
+ createdAt: string;
1055
+ updatedAt: string;
1056
+ address: {
1057
+ line1: string;
1058
+ city: string;
1059
+ region: string;
1060
+ postalCode: string;
1061
+ country: string;
1062
+ line2?: string | undefined;
1063
+ };
1064
+ location: {
1065
+ latitude: number;
1066
+ longitude: number;
1067
+ };
1068
+ customer: string;
1069
+ }, {
1070
+ id: string;
1071
+ createdAt: string;
1072
+ updatedAt: string;
1073
+ address: {
1074
+ line1: string;
1075
+ city: string;
1076
+ region: string;
1077
+ postalCode: string;
1078
+ country: string;
1079
+ line2?: string | undefined;
1080
+ };
1081
+ location: {
1082
+ latitude: number;
1083
+ longitude: number;
1084
+ };
1085
+ customer: string;
1086
+ }>;
1087
+ type GetCustomerAddressDetailsResponse = CustomerAddressDetails;
1088
+ declare class GetCustomerAddressDetails extends AbstractApiRequest<void, GetCustomerAddressDetailsResponse> {
1089
+ readonly method = "GET";
1090
+ readonly contentType = "application/json";
1091
+ readonly accept = "application/json";
1092
+ readonly inputSchema: z.ZodUndefined;
1093
+ readonly outputSchema: z.ZodObject<{
1094
+ id: z.ZodString;
1095
+ address: z.ZodObject<{
1096
+ line1: z.ZodString;
1097
+ line2: z.ZodOptional<z.ZodString>;
1098
+ city: z.ZodString;
1099
+ region: z.ZodString;
1100
+ postalCode: z.ZodString;
1101
+ country: z.ZodString;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ line1: string;
1104
+ city: string;
1105
+ region: string;
1106
+ postalCode: string;
1107
+ country: string;
1108
+ line2?: string | undefined;
1109
+ }, {
1110
+ line1: string;
1111
+ city: string;
1112
+ region: string;
1113
+ postalCode: string;
1114
+ country: string;
1115
+ line2?: string | undefined;
1116
+ }>;
1117
+ location: z.ZodObject<{
1118
+ latitude: z.ZodNumber;
1119
+ longitude: z.ZodNumber;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ latitude: number;
1122
+ longitude: number;
1123
+ }, {
1124
+ latitude: number;
1125
+ longitude: number;
1126
+ }>;
1127
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1128
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1129
+ } & {
1130
+ customer: z.ZodEffects<z.ZodString, string, string>;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ id: string;
1133
+ createdAt: string;
1134
+ updatedAt: string;
1135
+ address: {
1136
+ line1: string;
1137
+ city: string;
1138
+ region: string;
1139
+ postalCode: string;
1140
+ country: string;
1141
+ line2?: string | undefined;
1142
+ };
1143
+ location: {
1144
+ latitude: number;
1145
+ longitude: number;
1146
+ };
1147
+ customer: string;
1148
+ }, {
1149
+ id: string;
1150
+ createdAt: string;
1151
+ updatedAt: string;
1152
+ address: {
1153
+ line1: string;
1154
+ city: string;
1155
+ region: string;
1156
+ postalCode: string;
1157
+ country: string;
1158
+ line2?: string | undefined;
1159
+ };
1160
+ location: {
1161
+ latitude: number;
1162
+ longitude: number;
1163
+ };
1164
+ customer: string;
1165
+ }>;
1166
+ readonly querySchema: undefined;
1167
+ readonly headersSchema: undefined;
1168
+ private readonly customerAddressId;
1169
+ constructor(customerAddressId: string);
1170
+ getPath(): string;
1171
+ }
1172
+
1173
+ declare const getCustomerAddressesQuerySchema: z.ZodObject<{
1174
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1175
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1176
+ page: z.ZodOptional<z.ZodNumber>;
1177
+ } & {
1178
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
1179
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1180
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
1181
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1182
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1183
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1184
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1185
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1188
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1189
+ page?: number | undefined;
1190
+ 'createdAt[before]'?: string | undefined;
1191
+ 'createdAt[strictly_before]'?: string | undefined;
1192
+ 'createdAt[after]'?: string | undefined;
1193
+ 'createdAt[strictly_after]'?: string | undefined;
1194
+ 'updatedAt[before]'?: string | undefined;
1195
+ 'updatedAt[strictly_before]'?: string | undefined;
1196
+ 'updatedAt[after]'?: string | undefined;
1197
+ 'updatedAt[strictly_after]'?: string | undefined;
1198
+ }, {
1199
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1200
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1201
+ page?: number | undefined;
1202
+ 'createdAt[before]'?: string | undefined;
1203
+ 'createdAt[strictly_before]'?: string | undefined;
1204
+ 'createdAt[after]'?: string | undefined;
1205
+ 'createdAt[strictly_after]'?: string | undefined;
1206
+ 'updatedAt[before]'?: string | undefined;
1207
+ 'updatedAt[strictly_before]'?: string | undefined;
1208
+ 'updatedAt[after]'?: string | undefined;
1209
+ 'updatedAt[strictly_after]'?: string | undefined;
1210
+ }>;
1211
+ type GetCustomerAddressesQueryParams = z.infer<typeof getCustomerAddressesQuerySchema>;
1212
+ declare const getCustomerAddressesResponseSchema: z.ZodObject<{
1213
+ data: z.ZodArray<z.ZodObject<{
1214
+ id: z.ZodString;
1215
+ address: z.ZodObject<{
1216
+ line1: z.ZodString;
1217
+ line2: z.ZodOptional<z.ZodString>;
1218
+ city: z.ZodString;
1219
+ region: z.ZodString;
1220
+ postalCode: z.ZodString;
1221
+ country: z.ZodString;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ line1: string;
1224
+ city: string;
1225
+ region: string;
1226
+ postalCode: string;
1227
+ country: string;
1228
+ line2?: string | undefined;
1229
+ }, {
1230
+ line1: string;
1231
+ city: string;
1232
+ region: string;
1233
+ postalCode: string;
1234
+ country: string;
1235
+ line2?: string | undefined;
1236
+ }>;
1237
+ location: z.ZodObject<{
1238
+ latitude: z.ZodNumber;
1239
+ longitude: z.ZodNumber;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ latitude: number;
1242
+ longitude: number;
1243
+ }, {
1244
+ latitude: number;
1245
+ longitude: number;
1246
+ }>;
1247
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1248
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ id: string;
1251
+ createdAt: string;
1252
+ updatedAt: string;
1253
+ address: {
1254
+ line1: string;
1255
+ city: string;
1256
+ region: string;
1257
+ postalCode: string;
1258
+ country: string;
1259
+ line2?: string | undefined;
1260
+ };
1261
+ location: {
1262
+ latitude: number;
1263
+ longitude: number;
1264
+ };
1265
+ }, {
1266
+ id: string;
1267
+ createdAt: string;
1268
+ updatedAt: string;
1269
+ address: {
1270
+ line1: string;
1271
+ city: string;
1272
+ region: string;
1273
+ postalCode: string;
1274
+ country: string;
1275
+ line2?: string | undefined;
1276
+ };
1277
+ location: {
1278
+ latitude: number;
1279
+ longitude: number;
1280
+ };
1281
+ }>, "many">;
1282
+ pagination: z.ZodObject<{
1283
+ from: z.ZodNumber;
1284
+ to: z.ZodNumber;
1285
+ itemsPerPage: z.ZodNumber;
1286
+ totalItems: z.ZodNumber;
1287
+ currentPage: z.ZodNumber;
1288
+ lastPage: z.ZodNumber;
1289
+ }, "strip", z.ZodTypeAny, {
1290
+ from: number;
1291
+ to: number;
1292
+ itemsPerPage: number;
1293
+ totalItems: number;
1294
+ currentPage: number;
1295
+ lastPage: number;
1296
+ }, {
1297
+ from: number;
1298
+ to: number;
1299
+ itemsPerPage: number;
1300
+ totalItems: number;
1301
+ currentPage: number;
1302
+ lastPage: number;
1303
+ }>;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ data: {
1306
+ id: string;
1307
+ createdAt: string;
1308
+ updatedAt: string;
1309
+ address: {
1310
+ line1: string;
1311
+ city: string;
1312
+ region: string;
1313
+ postalCode: string;
1314
+ country: string;
1315
+ line2?: string | undefined;
1316
+ };
1317
+ location: {
1318
+ latitude: number;
1319
+ longitude: number;
1320
+ };
1321
+ }[];
1322
+ pagination: {
1323
+ from: number;
1324
+ to: number;
1325
+ itemsPerPage: number;
1326
+ totalItems: number;
1327
+ currentPage: number;
1328
+ lastPage: number;
1329
+ };
1330
+ }, {
1331
+ data: {
1332
+ id: string;
1333
+ createdAt: string;
1334
+ updatedAt: string;
1335
+ address: {
1336
+ line1: string;
1337
+ city: string;
1338
+ region: string;
1339
+ postalCode: string;
1340
+ country: string;
1341
+ line2?: string | undefined;
1342
+ };
1343
+ location: {
1344
+ latitude: number;
1345
+ longitude: number;
1346
+ };
1347
+ }[];
1348
+ pagination: {
1349
+ from: number;
1350
+ to: number;
1351
+ itemsPerPage: number;
1352
+ totalItems: number;
1353
+ currentPage: number;
1354
+ lastPage: number;
1355
+ };
1356
+ }>;
1357
+ type GetCustomerAddressesResponse = z.infer<typeof getCustomerAddressesResponseSchema>;
1358
+ declare const getCustomerAddressesInputSchema: z.ZodUndefined;
1359
+ declare class GetCustomerAddresses extends AbstractApiRequest<void, GetCustomerAddressesResponse, GetCustomerAddressesQueryParams> {
1360
+ readonly method = "GET";
1361
+ readonly contentType = "application/json";
1362
+ readonly accept = "application/json";
1363
+ readonly inputSchema: z.ZodUndefined;
1364
+ readonly outputSchema: z.ZodObject<{
1365
+ data: z.ZodArray<z.ZodObject<{
1366
+ id: z.ZodString;
1367
+ address: z.ZodObject<{
1368
+ line1: z.ZodString;
1369
+ line2: z.ZodOptional<z.ZodString>;
1370
+ city: z.ZodString;
1371
+ region: z.ZodString;
1372
+ postalCode: z.ZodString;
1373
+ country: z.ZodString;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ line1: string;
1376
+ city: string;
1377
+ region: string;
1378
+ postalCode: string;
1379
+ country: string;
1380
+ line2?: string | undefined;
1381
+ }, {
1382
+ line1: string;
1383
+ city: string;
1384
+ region: string;
1385
+ postalCode: string;
1386
+ country: string;
1387
+ line2?: string | undefined;
1388
+ }>;
1389
+ location: z.ZodObject<{
1390
+ latitude: z.ZodNumber;
1391
+ longitude: z.ZodNumber;
1392
+ }, "strip", z.ZodTypeAny, {
1393
+ latitude: number;
1394
+ longitude: number;
1395
+ }, {
1396
+ latitude: number;
1397
+ longitude: number;
1398
+ }>;
1399
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1400
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ id: string;
1403
+ createdAt: string;
1404
+ updatedAt: string;
1405
+ address: {
1406
+ line1: string;
1407
+ city: string;
1408
+ region: string;
1409
+ postalCode: string;
1410
+ country: string;
1411
+ line2?: string | undefined;
1412
+ };
1413
+ location: {
1414
+ latitude: number;
1415
+ longitude: number;
1416
+ };
1417
+ }, {
1418
+ id: string;
1419
+ createdAt: string;
1420
+ updatedAt: string;
1421
+ address: {
1422
+ line1: string;
1423
+ city: string;
1424
+ region: string;
1425
+ postalCode: string;
1426
+ country: string;
1427
+ line2?: string | undefined;
1428
+ };
1429
+ location: {
1430
+ latitude: number;
1431
+ longitude: number;
1432
+ };
1433
+ }>, "many">;
1434
+ pagination: z.ZodObject<{
1435
+ from: z.ZodNumber;
1436
+ to: z.ZodNumber;
1437
+ itemsPerPage: z.ZodNumber;
1438
+ totalItems: z.ZodNumber;
1439
+ currentPage: z.ZodNumber;
1440
+ lastPage: z.ZodNumber;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ from: number;
1443
+ to: number;
1444
+ itemsPerPage: number;
1445
+ totalItems: number;
1446
+ currentPage: number;
1447
+ lastPage: number;
1448
+ }, {
1449
+ from: number;
1450
+ to: number;
1451
+ itemsPerPage: number;
1452
+ totalItems: number;
1453
+ currentPage: number;
1454
+ lastPage: number;
1455
+ }>;
1456
+ }, "strip", z.ZodTypeAny, {
1457
+ data: {
1458
+ id: string;
1459
+ createdAt: string;
1460
+ updatedAt: string;
1461
+ address: {
1462
+ line1: string;
1463
+ city: string;
1464
+ region: string;
1465
+ postalCode: string;
1466
+ country: string;
1467
+ line2?: string | undefined;
1468
+ };
1469
+ location: {
1470
+ latitude: number;
1471
+ longitude: number;
1472
+ };
1473
+ }[];
1474
+ pagination: {
1475
+ from: number;
1476
+ to: number;
1477
+ itemsPerPage: number;
1478
+ totalItems: number;
1479
+ currentPage: number;
1480
+ lastPage: number;
1481
+ };
1482
+ }, {
1483
+ data: {
1484
+ id: string;
1485
+ createdAt: string;
1486
+ updatedAt: string;
1487
+ address: {
1488
+ line1: string;
1489
+ city: string;
1490
+ region: string;
1491
+ postalCode: string;
1492
+ country: string;
1493
+ line2?: string | undefined;
1494
+ };
1495
+ location: {
1496
+ latitude: number;
1497
+ longitude: number;
1498
+ };
1499
+ }[];
1500
+ pagination: {
1501
+ from: number;
1502
+ to: number;
1503
+ itemsPerPage: number;
1504
+ totalItems: number;
1505
+ currentPage: number;
1506
+ lastPage: number;
1507
+ };
1508
+ }>;
1509
+ readonly querySchema: z.ZodObject<{
1510
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1511
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1512
+ page: z.ZodOptional<z.ZodNumber>;
1513
+ } & {
1514
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
1515
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1516
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
1517
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1518
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1519
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1520
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1521
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1524
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1525
+ page?: number | undefined;
1526
+ 'createdAt[before]'?: string | undefined;
1527
+ 'createdAt[strictly_before]'?: string | undefined;
1528
+ 'createdAt[after]'?: string | undefined;
1529
+ 'createdAt[strictly_after]'?: string | undefined;
1530
+ 'updatedAt[before]'?: string | undefined;
1531
+ 'updatedAt[strictly_before]'?: string | undefined;
1532
+ 'updatedAt[after]'?: string | undefined;
1533
+ 'updatedAt[strictly_after]'?: string | undefined;
1534
+ }, {
1535
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1536
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1537
+ page?: number | undefined;
1538
+ 'createdAt[before]'?: string | undefined;
1539
+ 'createdAt[strictly_before]'?: string | undefined;
1540
+ 'createdAt[after]'?: string | undefined;
1541
+ 'createdAt[strictly_after]'?: string | undefined;
1542
+ 'updatedAt[before]'?: string | undefined;
1543
+ 'updatedAt[strictly_before]'?: string | undefined;
1544
+ 'updatedAt[after]'?: string | undefined;
1545
+ 'updatedAt[strictly_after]'?: string | undefined;
1546
+ }>;
1547
+ readonly headersSchema: undefined;
1548
+ constructor(options?: {
1549
+ query?: GetCustomerAddressesQueryParams;
1550
+ });
1551
+ getPath(): string;
1552
+ parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<CustomerAddress>;
1553
+ }
1554
+
1555
+ declare const getCustomerAddressesForCustomerQuerySchema: z.ZodObject<{
1556
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1557
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1558
+ } & {
1559
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
1560
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1561
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
1562
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1563
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1564
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1565
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1566
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1567
+ }, "strip", z.ZodTypeAny, {
1568
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1569
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1570
+ 'createdAt[before]'?: string | undefined;
1571
+ 'createdAt[strictly_before]'?: string | undefined;
1572
+ 'createdAt[after]'?: string | undefined;
1573
+ 'createdAt[strictly_after]'?: string | undefined;
1574
+ 'updatedAt[before]'?: string | undefined;
1575
+ 'updatedAt[strictly_before]'?: string | undefined;
1576
+ 'updatedAt[after]'?: string | undefined;
1577
+ 'updatedAt[strictly_after]'?: string | undefined;
1578
+ }, {
1579
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1580
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1581
+ 'createdAt[before]'?: string | undefined;
1582
+ 'createdAt[strictly_before]'?: string | undefined;
1583
+ 'createdAt[after]'?: string | undefined;
1584
+ 'createdAt[strictly_after]'?: string | undefined;
1585
+ 'updatedAt[before]'?: string | undefined;
1586
+ 'updatedAt[strictly_before]'?: string | undefined;
1587
+ 'updatedAt[after]'?: string | undefined;
1588
+ 'updatedAt[strictly_after]'?: string | undefined;
1589
+ }>;
1590
+ type GetCustomerAddressesForCustomerQueryParams = z.infer<typeof getCustomerAddressesForCustomerQuerySchema>;
1591
+ declare const getCustomerAddressesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
1592
+ id: z.ZodString;
1593
+ address: z.ZodObject<{
1594
+ line1: z.ZodString;
1595
+ line2: z.ZodOptional<z.ZodString>;
1596
+ city: z.ZodString;
1597
+ region: z.ZodString;
1598
+ postalCode: z.ZodString;
1599
+ country: z.ZodString;
1600
+ }, "strip", z.ZodTypeAny, {
1601
+ line1: string;
1602
+ city: string;
1603
+ region: string;
1604
+ postalCode: string;
1605
+ country: string;
1606
+ line2?: string | undefined;
1607
+ }, {
1608
+ line1: string;
1609
+ city: string;
1610
+ region: string;
1611
+ postalCode: string;
1612
+ country: string;
1613
+ line2?: string | undefined;
1614
+ }>;
1615
+ location: z.ZodObject<{
1616
+ latitude: z.ZodNumber;
1617
+ longitude: z.ZodNumber;
1618
+ }, "strip", z.ZodTypeAny, {
1619
+ latitude: number;
1620
+ longitude: number;
1621
+ }, {
1622
+ latitude: number;
1623
+ longitude: number;
1624
+ }>;
1625
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1626
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ id: string;
1629
+ createdAt: string;
1630
+ updatedAt: string;
1631
+ address: {
1632
+ line1: string;
1633
+ city: string;
1634
+ region: string;
1635
+ postalCode: string;
1636
+ country: string;
1637
+ line2?: string | undefined;
1638
+ };
1639
+ location: {
1640
+ latitude: number;
1641
+ longitude: number;
1642
+ };
1643
+ }, {
1644
+ id: string;
1645
+ createdAt: string;
1646
+ updatedAt: string;
1647
+ address: {
1648
+ line1: string;
1649
+ city: string;
1650
+ region: string;
1651
+ postalCode: string;
1652
+ country: string;
1653
+ line2?: string | undefined;
1654
+ };
1655
+ location: {
1656
+ latitude: number;
1657
+ longitude: number;
1658
+ };
1659
+ }>, "many">;
1660
+ type GetCustomerAddressesForCustomerResponse = z.infer<typeof getCustomerAddressesForCustomerResponseSchema>;
1661
+ declare const getCustomerAddressesForCustomerInputSchema: z.ZodUndefined;
1662
+ declare class GetCustomerAddressesForCustomer extends AbstractApiRequest<void, GetCustomerAddressesForCustomerResponse, GetCustomerAddressesForCustomerQueryParams> {
1663
+ readonly method = "GET";
1664
+ readonly contentType = "application/json";
1665
+ readonly accept = "application/json";
1666
+ readonly inputSchema: z.ZodUndefined;
1667
+ readonly outputSchema: z.ZodArray<z.ZodObject<{
1668
+ id: z.ZodString;
1669
+ address: z.ZodObject<{
1670
+ line1: z.ZodString;
1671
+ line2: z.ZodOptional<z.ZodString>;
1672
+ city: z.ZodString;
1673
+ region: z.ZodString;
1674
+ postalCode: z.ZodString;
1675
+ country: z.ZodString;
1676
+ }, "strip", z.ZodTypeAny, {
1677
+ line1: string;
1678
+ city: string;
1679
+ region: string;
1680
+ postalCode: string;
1681
+ country: string;
1682
+ line2?: string | undefined;
1683
+ }, {
1684
+ line1: string;
1685
+ city: string;
1686
+ region: string;
1687
+ postalCode: string;
1688
+ country: string;
1689
+ line2?: string | undefined;
1690
+ }>;
1691
+ location: z.ZodObject<{
1692
+ latitude: z.ZodNumber;
1693
+ longitude: z.ZodNumber;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ latitude: number;
1696
+ longitude: number;
1697
+ }, {
1698
+ latitude: number;
1699
+ longitude: number;
1700
+ }>;
1701
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1702
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ id: string;
1705
+ createdAt: string;
1706
+ updatedAt: string;
1707
+ address: {
1708
+ line1: string;
1709
+ city: string;
1710
+ region: string;
1711
+ postalCode: string;
1712
+ country: string;
1713
+ line2?: string | undefined;
1714
+ };
1715
+ location: {
1716
+ latitude: number;
1717
+ longitude: number;
1718
+ };
1719
+ }, {
1720
+ id: string;
1721
+ createdAt: string;
1722
+ updatedAt: string;
1723
+ address: {
1724
+ line1: string;
1725
+ city: string;
1726
+ region: string;
1727
+ postalCode: string;
1728
+ country: string;
1729
+ line2?: string | undefined;
1730
+ };
1731
+ location: {
1732
+ latitude: number;
1733
+ longitude: number;
1734
+ };
1735
+ }>, "many">;
1736
+ readonly querySchema: z.ZodObject<{
1737
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1738
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1739
+ } & {
1740
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
1741
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1742
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
1743
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1744
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1745
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1746
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1747
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1748
+ }, "strip", z.ZodTypeAny, {
1749
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1750
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1751
+ 'createdAt[before]'?: string | undefined;
1752
+ 'createdAt[strictly_before]'?: string | undefined;
1753
+ 'createdAt[after]'?: string | undefined;
1754
+ 'createdAt[strictly_after]'?: string | undefined;
1755
+ 'updatedAt[before]'?: string | undefined;
1756
+ 'updatedAt[strictly_before]'?: string | undefined;
1757
+ 'updatedAt[after]'?: string | undefined;
1758
+ 'updatedAt[strictly_after]'?: string | undefined;
1759
+ }, {
1760
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
1761
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
1762
+ 'createdAt[before]'?: string | undefined;
1763
+ 'createdAt[strictly_before]'?: string | undefined;
1764
+ 'createdAt[after]'?: string | undefined;
1765
+ 'createdAt[strictly_after]'?: string | undefined;
1766
+ 'updatedAt[before]'?: string | undefined;
1767
+ 'updatedAt[strictly_before]'?: string | undefined;
1768
+ 'updatedAt[after]'?: string | undefined;
1769
+ 'updatedAt[strictly_after]'?: string | undefined;
1770
+ }>;
1771
+ readonly headersSchema: undefined;
1772
+ private readonly customerId;
1773
+ constructor(customerId: string, options?: {
1774
+ query?: GetCustomerAddressesForCustomerQueryParams;
1775
+ });
1776
+ getPath(): string;
1777
+ parseResponse(data: unknown): CustomerAddress[];
1778
+ }
1779
+
1780
+ declare const updateCustomerAddressInputSchema: z.ZodObject<{
1781
+ address: z.ZodOptional<z.ZodObject<{
1782
+ line1: z.ZodString;
1783
+ line2: z.ZodOptional<z.ZodString>;
1784
+ city: z.ZodString;
1785
+ region: z.ZodString;
1786
+ postalCode: z.ZodString;
1787
+ country: z.ZodString;
1788
+ }, "strip", z.ZodTypeAny, {
1789
+ line1: string;
1790
+ city: string;
1791
+ region: string;
1792
+ postalCode: string;
1793
+ country: string;
1794
+ line2?: string | undefined;
1795
+ }, {
1796
+ line1: string;
1797
+ city: string;
1798
+ region: string;
1799
+ postalCode: string;
1800
+ country: string;
1801
+ line2?: string | undefined;
1802
+ }>>;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ address?: {
1805
+ line1: string;
1806
+ city: string;
1807
+ region: string;
1808
+ postalCode: string;
1809
+ country: string;
1810
+ line2?: string | undefined;
1811
+ } | undefined;
1812
+ }, {
1813
+ address?: {
1814
+ line1: string;
1815
+ city: string;
1816
+ region: string;
1817
+ postalCode: string;
1818
+ country: string;
1819
+ line2?: string | undefined;
1820
+ } | undefined;
1821
+ }>;
1822
+ type UpdateCustomerAddressInput = z.infer<typeof updateCustomerAddressInputSchema>;
1823
+ declare const updateCustomerAddressResponseSchema: z.ZodObject<{
1824
+ id: z.ZodString;
1825
+ address: z.ZodObject<{
1826
+ line1: z.ZodString;
1827
+ line2: z.ZodOptional<z.ZodString>;
1828
+ city: z.ZodString;
1829
+ region: z.ZodString;
1830
+ postalCode: z.ZodString;
1831
+ country: z.ZodString;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ line1: string;
1834
+ city: string;
1835
+ region: string;
1836
+ postalCode: string;
1837
+ country: string;
1838
+ line2?: string | undefined;
1839
+ }, {
1840
+ line1: string;
1841
+ city: string;
1842
+ region: string;
1843
+ postalCode: string;
1844
+ country: string;
1845
+ line2?: string | undefined;
1846
+ }>;
1847
+ location: z.ZodObject<{
1848
+ latitude: z.ZodNumber;
1849
+ longitude: z.ZodNumber;
1850
+ }, "strip", z.ZodTypeAny, {
1851
+ latitude: number;
1852
+ longitude: number;
1853
+ }, {
1854
+ latitude: number;
1855
+ longitude: number;
1856
+ }>;
1857
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1858
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1859
+ } & {
1860
+ customer: z.ZodEffects<z.ZodString, string, string>;
1861
+ }, "strip", z.ZodTypeAny, {
1862
+ id: string;
1863
+ createdAt: string;
1864
+ updatedAt: string;
1865
+ address: {
1866
+ line1: string;
1867
+ city: string;
1868
+ region: string;
1869
+ postalCode: string;
1870
+ country: string;
1871
+ line2?: string | undefined;
1872
+ };
1873
+ location: {
1874
+ latitude: number;
1875
+ longitude: number;
1876
+ };
1877
+ customer: string;
1878
+ }, {
1879
+ id: string;
1880
+ createdAt: string;
1881
+ updatedAt: string;
1882
+ address: {
1883
+ line1: string;
1884
+ city: string;
1885
+ region: string;
1886
+ postalCode: string;
1887
+ country: string;
1888
+ line2?: string | undefined;
1889
+ };
1890
+ location: {
1891
+ latitude: number;
1892
+ longitude: number;
1893
+ };
1894
+ customer: string;
1895
+ }>;
1896
+ type UpdateCustomerAddressResponse = CustomerAddressDetails;
1897
+ declare class UpdateCustomerAddress extends AbstractApiRequest<UpdateCustomerAddressInput, UpdateCustomerAddressResponse> {
1898
+ readonly method = "PATCH";
1899
+ readonly contentType = "application/merge-patch+json";
1900
+ readonly accept = "application/json";
1901
+ readonly inputSchema: z.ZodObject<{
1902
+ address: z.ZodOptional<z.ZodObject<{
1903
+ line1: z.ZodString;
1904
+ line2: z.ZodOptional<z.ZodString>;
1905
+ city: z.ZodString;
1906
+ region: z.ZodString;
1907
+ postalCode: z.ZodString;
1908
+ country: z.ZodString;
1909
+ }, "strip", z.ZodTypeAny, {
1910
+ line1: string;
1911
+ city: string;
1912
+ region: string;
1913
+ postalCode: string;
1914
+ country: string;
1915
+ line2?: string | undefined;
1916
+ }, {
1917
+ line1: string;
1918
+ city: string;
1919
+ region: string;
1920
+ postalCode: string;
1921
+ country: string;
1922
+ line2?: string | undefined;
1923
+ }>>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ address?: {
1926
+ line1: string;
1927
+ city: string;
1928
+ region: string;
1929
+ postalCode: string;
1930
+ country: string;
1931
+ line2?: string | undefined;
1932
+ } | undefined;
1933
+ }, {
1934
+ address?: {
1935
+ line1: string;
1936
+ city: string;
1937
+ region: string;
1938
+ postalCode: string;
1939
+ country: string;
1940
+ line2?: string | undefined;
1941
+ } | undefined;
1942
+ }>;
1943
+ readonly outputSchema: z.ZodObject<{
1944
+ id: z.ZodString;
1945
+ address: z.ZodObject<{
1946
+ line1: z.ZodString;
1947
+ line2: z.ZodOptional<z.ZodString>;
1948
+ city: z.ZodString;
1949
+ region: z.ZodString;
1950
+ postalCode: z.ZodString;
1951
+ country: z.ZodString;
1952
+ }, "strip", z.ZodTypeAny, {
1953
+ line1: string;
1954
+ city: string;
1955
+ region: string;
1956
+ postalCode: string;
1957
+ country: string;
1958
+ line2?: string | undefined;
1959
+ }, {
1960
+ line1: string;
1961
+ city: string;
1962
+ region: string;
1963
+ postalCode: string;
1964
+ country: string;
1965
+ line2?: string | undefined;
1966
+ }>;
1967
+ location: z.ZodObject<{
1968
+ latitude: z.ZodNumber;
1969
+ longitude: z.ZodNumber;
1970
+ }, "strip", z.ZodTypeAny, {
1971
+ latitude: number;
1972
+ longitude: number;
1973
+ }, {
1974
+ latitude: number;
1975
+ longitude: number;
1976
+ }>;
1977
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
1978
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
1979
+ } & {
1980
+ customer: z.ZodEffects<z.ZodString, string, string>;
1981
+ }, "strip", z.ZodTypeAny, {
1982
+ id: string;
1983
+ createdAt: string;
1984
+ updatedAt: string;
1985
+ address: {
1986
+ line1: string;
1987
+ city: string;
1988
+ region: string;
1989
+ postalCode: string;
1990
+ country: string;
1991
+ line2?: string | undefined;
1992
+ };
1993
+ location: {
1994
+ latitude: number;
1995
+ longitude: number;
1996
+ };
1997
+ customer: string;
1998
+ }, {
1999
+ id: string;
2000
+ createdAt: string;
2001
+ updatedAt: string;
2002
+ address: {
2003
+ line1: string;
2004
+ city: string;
2005
+ region: string;
2006
+ postalCode: string;
2007
+ country: string;
2008
+ line2?: string | undefined;
2009
+ };
2010
+ location: {
2011
+ latitude: number;
2012
+ longitude: number;
2013
+ };
2014
+ customer: string;
2015
+ }>;
2016
+ readonly querySchema: undefined;
2017
+ readonly headersSchema: undefined;
2018
+ private readonly customerId;
2019
+ constructor(customerId: string, input: UpdateCustomerAddressInput);
2020
+ getPath(): string;
2021
+ }
2022
+
2023
+ declare const createCustomerBusinessProfileInputSchema: z.ZodObject<{
2024
+ customer: z.ZodEffects<z.ZodString, string, string>;
2025
+ businessName: z.ZodString;
2026
+ vat: z.ZodString;
2027
+ taxCode: z.ZodString;
2028
+ billingAddress: z.ZodObject<{
2029
+ line1: z.ZodString;
2030
+ line2: z.ZodOptional<z.ZodString>;
2031
+ city: z.ZodString;
2032
+ region: z.ZodString;
2033
+ postalCode: z.ZodString;
2034
+ country: z.ZodString;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ line1: string;
2037
+ city: string;
2038
+ region: string;
2039
+ postalCode: string;
2040
+ country: string;
2041
+ line2?: string | undefined;
2042
+ }, {
2043
+ line1: string;
2044
+ city: string;
2045
+ region: string;
2046
+ postalCode: string;
2047
+ country: string;
2048
+ line2?: string | undefined;
2049
+ }>;
2050
+ billingData: z.ZodEffects<z.ZodObject<{
2051
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2052
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ sdi?: string | null | undefined;
2055
+ pec?: string | null | undefined;
2056
+ }, {
2057
+ sdi?: string | null | undefined;
2058
+ pec?: string | null | undefined;
2059
+ }>, {
2060
+ sdi?: string | null | undefined;
2061
+ pec?: string | null | undefined;
2062
+ }, {
2063
+ sdi?: string | null | undefined;
2064
+ pec?: string | null | undefined;
2065
+ }>;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ customer: string;
2068
+ businessName: string;
2069
+ vat: string;
2070
+ taxCode: string;
2071
+ billingAddress: {
2072
+ line1: string;
2073
+ city: string;
2074
+ region: string;
2075
+ postalCode: string;
2076
+ country: string;
2077
+ line2?: string | undefined;
2078
+ };
2079
+ billingData: {
2080
+ sdi?: string | null | undefined;
2081
+ pec?: string | null | undefined;
2082
+ };
2083
+ }, {
2084
+ customer: string;
2085
+ businessName: string;
2086
+ vat: string;
2087
+ taxCode: string;
2088
+ billingAddress: {
2089
+ line1: string;
2090
+ city: string;
2091
+ region: string;
2092
+ postalCode: string;
2093
+ country: string;
2094
+ line2?: string | undefined;
2095
+ };
2096
+ billingData: {
2097
+ sdi?: string | null | undefined;
2098
+ pec?: string | null | undefined;
2099
+ };
2100
+ }>;
2101
+ type CreateCustomerBusinessProfileInput = z.infer<typeof createCustomerBusinessProfileInputSchema>;
2102
+ declare const createCustomerBusinessProfileResponseSchema: z.ZodObject<{
2103
+ id: z.ZodString;
2104
+ businessName: z.ZodString;
2105
+ vat: z.ZodString;
2106
+ taxCode: z.ZodString;
2107
+ billingAddress: z.ZodObject<{
2108
+ line1: z.ZodString;
2109
+ line2: z.ZodOptional<z.ZodString>;
2110
+ city: z.ZodString;
2111
+ region: z.ZodString;
2112
+ postalCode: z.ZodString;
2113
+ country: z.ZodString;
2114
+ }, "strip", z.ZodTypeAny, {
2115
+ line1: string;
2116
+ city: string;
2117
+ region: string;
2118
+ postalCode: string;
2119
+ country: string;
2120
+ line2?: string | undefined;
2121
+ }, {
2122
+ line1: string;
2123
+ city: string;
2124
+ region: string;
2125
+ postalCode: string;
2126
+ country: string;
2127
+ line2?: string | undefined;
2128
+ }>;
2129
+ billingData: z.ZodEffects<z.ZodObject<{
2130
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2131
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2132
+ }, "strip", z.ZodTypeAny, {
2133
+ sdi?: string | null | undefined;
2134
+ pec?: string | null | undefined;
2135
+ }, {
2136
+ sdi?: string | null | undefined;
2137
+ pec?: string | null | undefined;
2138
+ }>, {
2139
+ sdi?: string | null | undefined;
2140
+ pec?: string | null | undefined;
2141
+ }, {
2142
+ sdi?: string | null | undefined;
2143
+ pec?: string | null | undefined;
2144
+ }>;
2145
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
2146
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
2147
+ } & {
2148
+ customer: z.ZodEffects<z.ZodString, string, string>;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ id: string;
2151
+ createdAt: string;
2152
+ updatedAt: string;
2153
+ customer: string;
2154
+ businessName: string;
2155
+ vat: string;
2156
+ taxCode: string;
2157
+ billingAddress: {
2158
+ line1: string;
2159
+ city: string;
2160
+ region: string;
2161
+ postalCode: string;
2162
+ country: string;
2163
+ line2?: string | undefined;
2164
+ };
2165
+ billingData: {
2166
+ sdi?: string | null | undefined;
2167
+ pec?: string | null | undefined;
2168
+ };
2169
+ }, {
2170
+ id: string;
2171
+ createdAt: string;
2172
+ updatedAt: string;
2173
+ customer: string;
2174
+ businessName: string;
2175
+ vat: string;
2176
+ taxCode: string;
2177
+ billingAddress: {
2178
+ line1: string;
2179
+ city: string;
2180
+ region: string;
2181
+ postalCode: string;
2182
+ country: string;
2183
+ line2?: string | undefined;
2184
+ };
2185
+ billingData: {
2186
+ sdi?: string | null | undefined;
2187
+ pec?: string | null | undefined;
2188
+ };
2189
+ }>;
2190
+ type CreateCustomerBusinessProfileResponse = CustomerBusinessProfileDetails;
2191
+ declare class CreateCustomerBusinessProfile extends AbstractApiRequest<CreateCustomerBusinessProfileInput, CreateCustomerBusinessProfileResponse> {
2192
+ readonly method = "POST";
2193
+ readonly contentType = "application/json";
2194
+ readonly accept = "application/json";
2195
+ readonly inputSchema: z.ZodObject<{
2196
+ customer: z.ZodEffects<z.ZodString, string, string>;
2197
+ businessName: z.ZodString;
2198
+ vat: z.ZodString;
2199
+ taxCode: z.ZodString;
2200
+ billingAddress: z.ZodObject<{
2201
+ line1: z.ZodString;
2202
+ line2: z.ZodOptional<z.ZodString>;
2203
+ city: z.ZodString;
2204
+ region: z.ZodString;
2205
+ postalCode: z.ZodString;
2206
+ country: z.ZodString;
2207
+ }, "strip", z.ZodTypeAny, {
2208
+ line1: string;
2209
+ city: string;
2210
+ region: string;
2211
+ postalCode: string;
2212
+ country: string;
2213
+ line2?: string | undefined;
2214
+ }, {
2215
+ line1: string;
2216
+ city: string;
2217
+ region: string;
2218
+ postalCode: string;
2219
+ country: string;
2220
+ line2?: string | undefined;
2221
+ }>;
2222
+ billingData: z.ZodEffects<z.ZodObject<{
2223
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2224
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2225
+ }, "strip", z.ZodTypeAny, {
2226
+ sdi?: string | null | undefined;
2227
+ pec?: string | null | undefined;
2228
+ }, {
2229
+ sdi?: string | null | undefined;
2230
+ pec?: string | null | undefined;
2231
+ }>, {
2232
+ sdi?: string | null | undefined;
2233
+ pec?: string | null | undefined;
2234
+ }, {
2235
+ sdi?: string | null | undefined;
2236
+ pec?: string | null | undefined;
2237
+ }>;
2238
+ }, "strip", z.ZodTypeAny, {
2239
+ customer: string;
2240
+ businessName: string;
2241
+ vat: string;
2242
+ taxCode: string;
2243
+ billingAddress: {
2244
+ line1: string;
2245
+ city: string;
2246
+ region: string;
2247
+ postalCode: string;
2248
+ country: string;
2249
+ line2?: string | undefined;
2250
+ };
2251
+ billingData: {
2252
+ sdi?: string | null | undefined;
2253
+ pec?: string | null | undefined;
2254
+ };
2255
+ }, {
2256
+ customer: string;
2257
+ businessName: string;
2258
+ vat: string;
2259
+ taxCode: string;
2260
+ billingAddress: {
2261
+ line1: string;
2262
+ city: string;
2263
+ region: string;
2264
+ postalCode: string;
2265
+ country: string;
2266
+ line2?: string | undefined;
2267
+ };
2268
+ billingData: {
2269
+ sdi?: string | null | undefined;
2270
+ pec?: string | null | undefined;
2271
+ };
2272
+ }>;
2273
+ readonly outputSchema: z.ZodObject<{
2274
+ id: z.ZodString;
2275
+ businessName: z.ZodString;
2276
+ vat: z.ZodString;
2277
+ taxCode: z.ZodString;
2278
+ billingAddress: z.ZodObject<{
2279
+ line1: z.ZodString;
2280
+ line2: z.ZodOptional<z.ZodString>;
2281
+ city: z.ZodString;
2282
+ region: z.ZodString;
2283
+ postalCode: z.ZodString;
2284
+ country: z.ZodString;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ line1: string;
2287
+ city: string;
2288
+ region: string;
2289
+ postalCode: string;
2290
+ country: string;
2291
+ line2?: string | undefined;
2292
+ }, {
2293
+ line1: string;
2294
+ city: string;
2295
+ region: string;
2296
+ postalCode: string;
2297
+ country: string;
2298
+ line2?: string | undefined;
2299
+ }>;
2300
+ billingData: z.ZodEffects<z.ZodObject<{
2301
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2302
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2303
+ }, "strip", z.ZodTypeAny, {
2304
+ sdi?: string | null | undefined;
2305
+ pec?: string | null | undefined;
2306
+ }, {
2307
+ sdi?: string | null | undefined;
2308
+ pec?: string | null | undefined;
2309
+ }>, {
2310
+ sdi?: string | null | undefined;
2311
+ pec?: string | null | undefined;
2312
+ }, {
2313
+ sdi?: string | null | undefined;
2314
+ pec?: string | null | undefined;
2315
+ }>;
2316
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
2317
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
2318
+ } & {
2319
+ customer: z.ZodEffects<z.ZodString, string, string>;
2320
+ }, "strip", z.ZodTypeAny, {
2321
+ id: string;
2322
+ createdAt: string;
2323
+ updatedAt: string;
2324
+ customer: string;
2325
+ businessName: string;
2326
+ vat: string;
2327
+ taxCode: string;
2328
+ billingAddress: {
2329
+ line1: string;
2330
+ city: string;
2331
+ region: string;
2332
+ postalCode: string;
2333
+ country: string;
2334
+ line2?: string | undefined;
2335
+ };
2336
+ billingData: {
2337
+ sdi?: string | null | undefined;
2338
+ pec?: string | null | undefined;
2339
+ };
2340
+ }, {
2341
+ id: string;
2342
+ createdAt: string;
2343
+ updatedAt: string;
2344
+ customer: string;
2345
+ businessName: string;
2346
+ vat: string;
2347
+ taxCode: string;
2348
+ billingAddress: {
2349
+ line1: string;
2350
+ city: string;
2351
+ region: string;
2352
+ postalCode: string;
2353
+ country: string;
2354
+ line2?: string | undefined;
2355
+ };
2356
+ billingData: {
2357
+ sdi?: string | null | undefined;
2358
+ pec?: string | null | undefined;
2359
+ };
2360
+ }>;
2361
+ readonly querySchema: undefined;
2362
+ readonly headersSchema: undefined;
2363
+ constructor(input: CreateCustomerBusinessProfileInput);
2364
+ getPath(): string;
2365
+ }
2366
+
2367
+ declare const deleteCustomerBusinessProfileInputSchema: z.ZodUndefined;
2368
+ declare const deleteCustomerBusinessProfileResponseSchema: z.ZodUndefined;
2369
+ declare class DeleteCustomerBusinessProfile extends AbstractApiRequest<void, void> {
2370
+ readonly method = "DELETE";
2371
+ readonly contentType = "application/json";
2372
+ readonly accept = "application/json";
2373
+ readonly inputSchema: z.ZodUndefined;
2374
+ readonly outputSchema: z.ZodUndefined;
2375
+ readonly querySchema: undefined;
2376
+ readonly headersSchema: undefined;
2377
+ private readonly customerBusinessProfileId;
2378
+ constructor(customerBusinessProfileId: string);
2379
+ getPath(): string;
2380
+ }
2381
+
2382
+ declare const getCustomerBusinessProfileDetailsInputSchema: z.ZodUndefined;
2383
+ declare const getCustomerBusinessProfileDetailsResponseSchema: z.ZodObject<{
2384
+ id: z.ZodString;
2385
+ businessName: z.ZodString;
2386
+ vat: z.ZodString;
2387
+ taxCode: z.ZodString;
2388
+ billingAddress: z.ZodObject<{
2389
+ line1: z.ZodString;
2390
+ line2: z.ZodOptional<z.ZodString>;
2391
+ city: z.ZodString;
2392
+ region: z.ZodString;
2393
+ postalCode: z.ZodString;
2394
+ country: z.ZodString;
2395
+ }, "strip", z.ZodTypeAny, {
2396
+ line1: string;
2397
+ city: string;
2398
+ region: string;
2399
+ postalCode: string;
2400
+ country: string;
2401
+ line2?: string | undefined;
2402
+ }, {
2403
+ line1: string;
2404
+ city: string;
2405
+ region: string;
2406
+ postalCode: string;
2407
+ country: string;
2408
+ line2?: string | undefined;
2409
+ }>;
2410
+ billingData: z.ZodEffects<z.ZodObject<{
2411
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2412
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2413
+ }, "strip", z.ZodTypeAny, {
2414
+ sdi?: string | null | undefined;
2415
+ pec?: string | null | undefined;
2416
+ }, {
2417
+ sdi?: string | null | undefined;
2418
+ pec?: string | null | undefined;
2419
+ }>, {
2420
+ sdi?: string | null | undefined;
2421
+ pec?: string | null | undefined;
2422
+ }, {
2423
+ sdi?: string | null | undefined;
2424
+ pec?: string | null | undefined;
2425
+ }>;
2426
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
2427
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
2428
+ } & {
2429
+ customer: z.ZodEffects<z.ZodString, string, string>;
2430
+ }, "strip", z.ZodTypeAny, {
2431
+ id: string;
2432
+ createdAt: string;
2433
+ updatedAt: string;
2434
+ customer: string;
2435
+ businessName: string;
2436
+ vat: string;
2437
+ taxCode: string;
2438
+ billingAddress: {
2439
+ line1: string;
2440
+ city: string;
2441
+ region: string;
2442
+ postalCode: string;
2443
+ country: string;
2444
+ line2?: string | undefined;
2445
+ };
2446
+ billingData: {
2447
+ sdi?: string | null | undefined;
2448
+ pec?: string | null | undefined;
2449
+ };
2450
+ }, {
2451
+ id: string;
2452
+ createdAt: string;
2453
+ updatedAt: string;
2454
+ customer: string;
2455
+ businessName: string;
2456
+ vat: string;
2457
+ taxCode: string;
2458
+ billingAddress: {
2459
+ line1: string;
2460
+ city: string;
2461
+ region: string;
2462
+ postalCode: string;
2463
+ country: string;
2464
+ line2?: string | undefined;
2465
+ };
2466
+ billingData: {
2467
+ sdi?: string | null | undefined;
2468
+ pec?: string | null | undefined;
2469
+ };
2470
+ }>;
2471
+ type GetCustomerBusinessProfileDetailsResponse = CustomerBusinessProfileDetails;
2472
+ declare class GetCustomerBusinessProfileDetails extends AbstractApiRequest<void, GetCustomerBusinessProfileDetailsResponse> {
2473
+ readonly method = "GET";
2474
+ readonly contentType = "application/json";
2475
+ readonly accept = "application/json";
2476
+ readonly inputSchema: z.ZodUndefined;
2477
+ readonly outputSchema: z.ZodObject<{
2478
+ id: z.ZodString;
2479
+ businessName: z.ZodString;
2480
+ vat: z.ZodString;
2481
+ taxCode: z.ZodString;
2482
+ billingAddress: z.ZodObject<{
2483
+ line1: z.ZodString;
2484
+ line2: z.ZodOptional<z.ZodString>;
2485
+ city: z.ZodString;
2486
+ region: z.ZodString;
2487
+ postalCode: z.ZodString;
2488
+ country: z.ZodString;
2489
+ }, "strip", z.ZodTypeAny, {
2490
+ line1: string;
2491
+ city: string;
2492
+ region: string;
2493
+ postalCode: string;
2494
+ country: string;
2495
+ line2?: string | undefined;
2496
+ }, {
2497
+ line1: string;
2498
+ city: string;
2499
+ region: string;
2500
+ postalCode: string;
2501
+ country: string;
2502
+ line2?: string | undefined;
2503
+ }>;
2504
+ billingData: z.ZodEffects<z.ZodObject<{
2505
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2506
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2507
+ }, "strip", z.ZodTypeAny, {
2508
+ sdi?: string | null | undefined;
2509
+ pec?: string | null | undefined;
2510
+ }, {
2511
+ sdi?: string | null | undefined;
2512
+ pec?: string | null | undefined;
2513
+ }>, {
2514
+ sdi?: string | null | undefined;
2515
+ pec?: string | null | undefined;
2516
+ }, {
2517
+ sdi?: string | null | undefined;
2518
+ pec?: string | null | undefined;
2519
+ }>;
2520
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
2521
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
2522
+ } & {
2523
+ customer: z.ZodEffects<z.ZodString, string, string>;
2524
+ }, "strip", z.ZodTypeAny, {
2525
+ id: string;
2526
+ createdAt: string;
2527
+ updatedAt: string;
2528
+ customer: string;
2529
+ businessName: string;
2530
+ vat: string;
2531
+ taxCode: string;
2532
+ billingAddress: {
2533
+ line1: string;
2534
+ city: string;
2535
+ region: string;
2536
+ postalCode: string;
2537
+ country: string;
2538
+ line2?: string | undefined;
2539
+ };
2540
+ billingData: {
2541
+ sdi?: string | null | undefined;
2542
+ pec?: string | null | undefined;
2543
+ };
2544
+ }, {
2545
+ id: string;
2546
+ createdAt: string;
2547
+ updatedAt: string;
2548
+ customer: string;
2549
+ businessName: string;
2550
+ vat: string;
2551
+ taxCode: string;
2552
+ billingAddress: {
2553
+ line1: string;
2554
+ city: string;
2555
+ region: string;
2556
+ postalCode: string;
2557
+ country: string;
2558
+ line2?: string | undefined;
2559
+ };
2560
+ billingData: {
2561
+ sdi?: string | null | undefined;
2562
+ pec?: string | null | undefined;
2563
+ };
2564
+ }>;
2565
+ readonly querySchema: undefined;
2566
+ readonly headersSchema: undefined;
2567
+ private readonly customerBusinessProfileId;
2568
+ constructor(customerBusinessProfileId: string);
2569
+ getPath(): string;
2570
+ }
2571
+
2572
+ declare const getCustomerBusinessProfilesQuerySchema: z.ZodObject<{
2573
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2574
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2575
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2576
+ businessName: z.ZodOptional<z.ZodString>;
2577
+ vat: z.ZodOptional<z.ZodString>;
2578
+ taxCode: z.ZodOptional<z.ZodString>;
2579
+ page: z.ZodOptional<z.ZodNumber>;
2580
+ } & {
2581
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
2582
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
2583
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
2584
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
2585
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
2586
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
2587
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
2588
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2589
+ }, "strip", z.ZodTypeAny, {
2590
+ businessName?: string | undefined;
2591
+ vat?: string | undefined;
2592
+ taxCode?: string | undefined;
2593
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
2594
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
2595
+ page?: number | undefined;
2596
+ 'createdAt[before]'?: string | undefined;
2597
+ 'createdAt[strictly_before]'?: string | undefined;
2598
+ 'createdAt[after]'?: string | undefined;
2599
+ 'createdAt[strictly_after]'?: string | undefined;
2600
+ 'updatedAt[before]'?: string | undefined;
2601
+ 'updatedAt[strictly_before]'?: string | undefined;
2602
+ 'updatedAt[after]'?: string | undefined;
2603
+ 'updatedAt[strictly_after]'?: string | undefined;
2604
+ 'order[businessName]'?: "asc" | "desc" | undefined;
2605
+ }, {
2606
+ businessName?: string | undefined;
2607
+ vat?: string | undefined;
2608
+ taxCode?: string | undefined;
2609
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
2610
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
2611
+ page?: number | undefined;
2612
+ 'createdAt[before]'?: string | undefined;
2613
+ 'createdAt[strictly_before]'?: string | undefined;
2614
+ 'createdAt[after]'?: string | undefined;
2615
+ 'createdAt[strictly_after]'?: string | undefined;
2616
+ 'updatedAt[before]'?: string | undefined;
2617
+ 'updatedAt[strictly_before]'?: string | undefined;
2618
+ 'updatedAt[after]'?: string | undefined;
2619
+ 'updatedAt[strictly_after]'?: string | undefined;
2620
+ 'order[businessName]'?: "asc" | "desc" | undefined;
2621
+ }>;
2622
+ type GetCustomerBusinessProfilesQueryParams = z.infer<typeof getCustomerBusinessProfilesQuerySchema>;
2623
+ declare const getCustomerBusinessProfilesResponseSchema: z.ZodObject<{
2624
+ data: z.ZodArray<z.ZodObject<{
2625
+ id: z.ZodString;
2626
+ businessName: z.ZodString;
2627
+ vat: z.ZodString;
2628
+ taxCode: z.ZodString;
2629
+ billingAddress: z.ZodObject<{
2630
+ line1: z.ZodString;
2631
+ line2: z.ZodOptional<z.ZodString>;
2632
+ city: z.ZodString;
2633
+ region: z.ZodString;
2634
+ postalCode: z.ZodString;
2635
+ country: z.ZodString;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ line1: string;
2638
+ city: string;
2639
+ region: string;
2640
+ postalCode: string;
2641
+ country: string;
2642
+ line2?: string | undefined;
2643
+ }, {
2644
+ line1: string;
2645
+ city: string;
2646
+ region: string;
2647
+ postalCode: string;
2648
+ country: string;
2649
+ line2?: string | undefined;
2650
+ }>;
2651
+ billingData: z.ZodEffects<z.ZodObject<{
2652
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2653
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2654
+ }, "strip", z.ZodTypeAny, {
2655
+ sdi?: string | null | undefined;
2656
+ pec?: string | null | undefined;
2657
+ }, {
2658
+ sdi?: string | null | undefined;
2659
+ pec?: string | null | undefined;
2660
+ }>, {
2661
+ sdi?: string | null | undefined;
2662
+ pec?: string | null | undefined;
2663
+ }, {
2664
+ sdi?: string | null | undefined;
2665
+ pec?: string | null | undefined;
2666
+ }>;
2667
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
2668
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
2669
+ }, "strip", z.ZodTypeAny, {
2670
+ id: string;
2671
+ createdAt: string;
2672
+ updatedAt: string;
2673
+ businessName: string;
2674
+ vat: string;
2675
+ taxCode: string;
2676
+ billingAddress: {
2677
+ line1: string;
2678
+ city: string;
2679
+ region: string;
2680
+ postalCode: string;
2681
+ country: string;
2682
+ line2?: string | undefined;
2683
+ };
2684
+ billingData: {
2685
+ sdi?: string | null | undefined;
2686
+ pec?: string | null | undefined;
2687
+ };
2688
+ }, {
2689
+ id: string;
2690
+ createdAt: string;
2691
+ updatedAt: string;
2692
+ businessName: string;
2693
+ vat: string;
2694
+ taxCode: string;
2695
+ billingAddress: {
2696
+ line1: string;
2697
+ city: string;
2698
+ region: string;
2699
+ postalCode: string;
2700
+ country: string;
2701
+ line2?: string | undefined;
2702
+ };
2703
+ billingData: {
2704
+ sdi?: string | null | undefined;
2705
+ pec?: string | null | undefined;
2706
+ };
2707
+ }>, "many">;
2708
+ pagination: z.ZodObject<{
2709
+ from: z.ZodNumber;
2710
+ to: z.ZodNumber;
2711
+ itemsPerPage: z.ZodNumber;
2712
+ totalItems: z.ZodNumber;
2713
+ currentPage: z.ZodNumber;
2714
+ lastPage: z.ZodNumber;
2715
+ }, "strip", z.ZodTypeAny, {
2716
+ from: number;
2717
+ to: number;
2718
+ itemsPerPage: number;
2719
+ totalItems: number;
2720
+ currentPage: number;
2721
+ lastPage: number;
2722
+ }, {
2723
+ from: number;
2724
+ to: number;
2725
+ itemsPerPage: number;
2726
+ totalItems: number;
2727
+ currentPage: number;
2728
+ lastPage: number;
2729
+ }>;
2730
+ }, "strip", z.ZodTypeAny, {
2731
+ data: {
2732
+ id: string;
2733
+ createdAt: string;
2734
+ updatedAt: string;
2735
+ businessName: string;
2736
+ vat: string;
2737
+ taxCode: string;
2738
+ billingAddress: {
2739
+ line1: string;
2740
+ city: string;
2741
+ region: string;
2742
+ postalCode: string;
2743
+ country: string;
2744
+ line2?: string | undefined;
2745
+ };
2746
+ billingData: {
2747
+ sdi?: string | null | undefined;
2748
+ pec?: string | null | undefined;
2749
+ };
2750
+ }[];
2751
+ pagination: {
2752
+ from: number;
2753
+ to: number;
2754
+ itemsPerPage: number;
2755
+ totalItems: number;
2756
+ currentPage: number;
2757
+ lastPage: number;
2758
+ };
2759
+ }, {
2760
+ data: {
2761
+ id: string;
2762
+ createdAt: string;
2763
+ updatedAt: string;
2764
+ businessName: string;
2765
+ vat: string;
2766
+ taxCode: string;
2767
+ billingAddress: {
2768
+ line1: string;
2769
+ city: string;
2770
+ region: string;
2771
+ postalCode: string;
2772
+ country: string;
2773
+ line2?: string | undefined;
2774
+ };
2775
+ billingData: {
2776
+ sdi?: string | null | undefined;
2777
+ pec?: string | null | undefined;
2778
+ };
2779
+ }[];
2780
+ pagination: {
2781
+ from: number;
2782
+ to: number;
2783
+ itemsPerPage: number;
2784
+ totalItems: number;
2785
+ currentPage: number;
2786
+ lastPage: number;
2787
+ };
2788
+ }>;
2789
+ type GetCustomerBusinessProfilesResponse = z.infer<typeof getCustomerBusinessProfilesResponseSchema>;
2790
+ declare const getCustomerBusinessProfilesInputSchema: z.ZodUndefined;
2791
+ declare class GetCustomerBusinessProfiles extends AbstractApiRequest<void, GetCustomerBusinessProfilesResponse, GetCustomerBusinessProfilesQueryParams> {
2792
+ readonly method = "GET";
2793
+ readonly contentType = "application/json";
2794
+ readonly accept = "application/json";
2795
+ readonly inputSchema: z.ZodUndefined;
2796
+ readonly outputSchema: z.ZodObject<{
2797
+ data: z.ZodArray<z.ZodObject<{
2798
+ id: z.ZodString;
2799
+ businessName: z.ZodString;
2800
+ vat: z.ZodString;
2801
+ taxCode: z.ZodString;
2802
+ billingAddress: z.ZodObject<{
2803
+ line1: z.ZodString;
2804
+ line2: z.ZodOptional<z.ZodString>;
2805
+ city: z.ZodString;
2806
+ region: z.ZodString;
2807
+ postalCode: z.ZodString;
2808
+ country: z.ZodString;
2809
+ }, "strip", z.ZodTypeAny, {
2810
+ line1: string;
2811
+ city: string;
2812
+ region: string;
2813
+ postalCode: string;
2814
+ country: string;
2815
+ line2?: string | undefined;
2816
+ }, {
2817
+ line1: string;
2818
+ city: string;
2819
+ region: string;
2820
+ postalCode: string;
2821
+ country: string;
2822
+ line2?: string | undefined;
2823
+ }>;
2824
+ billingData: z.ZodEffects<z.ZodObject<{
2825
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2826
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2827
+ }, "strip", z.ZodTypeAny, {
2828
+ sdi?: string | null | undefined;
2829
+ pec?: string | null | undefined;
2830
+ }, {
2831
+ sdi?: string | null | undefined;
2832
+ pec?: string | null | undefined;
2833
+ }>, {
2834
+ sdi?: string | null | undefined;
2835
+ pec?: string | null | undefined;
2836
+ }, {
2837
+ sdi?: string | null | undefined;
2838
+ pec?: string | null | undefined;
2839
+ }>;
2840
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
2841
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
2842
+ }, "strip", z.ZodTypeAny, {
2843
+ id: string;
2844
+ createdAt: string;
2845
+ updatedAt: string;
2846
+ businessName: string;
2847
+ vat: string;
2848
+ taxCode: string;
2849
+ billingAddress: {
2850
+ line1: string;
2851
+ city: string;
2852
+ region: string;
2853
+ postalCode: string;
2854
+ country: string;
2855
+ line2?: string | undefined;
2856
+ };
2857
+ billingData: {
2858
+ sdi?: string | null | undefined;
2859
+ pec?: string | null | undefined;
2860
+ };
2861
+ }, {
2862
+ id: string;
2863
+ createdAt: string;
2864
+ updatedAt: string;
2865
+ businessName: string;
2866
+ vat: string;
2867
+ taxCode: string;
2868
+ billingAddress: {
2869
+ line1: string;
2870
+ city: string;
2871
+ region: string;
2872
+ postalCode: string;
2873
+ country: string;
2874
+ line2?: string | undefined;
2875
+ };
2876
+ billingData: {
2877
+ sdi?: string | null | undefined;
2878
+ pec?: string | null | undefined;
2879
+ };
2880
+ }>, "many">;
2881
+ pagination: z.ZodObject<{
2882
+ from: z.ZodNumber;
2883
+ to: z.ZodNumber;
2884
+ itemsPerPage: z.ZodNumber;
2885
+ totalItems: z.ZodNumber;
2886
+ currentPage: z.ZodNumber;
2887
+ lastPage: z.ZodNumber;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ from: number;
2890
+ to: number;
2891
+ itemsPerPage: number;
2892
+ totalItems: number;
2893
+ currentPage: number;
2894
+ lastPage: number;
2895
+ }, {
2896
+ from: number;
2897
+ to: number;
2898
+ itemsPerPage: number;
2899
+ totalItems: number;
2900
+ currentPage: number;
2901
+ lastPage: number;
2902
+ }>;
2903
+ }, "strip", z.ZodTypeAny, {
2904
+ data: {
2905
+ id: string;
2906
+ createdAt: string;
2907
+ updatedAt: string;
2908
+ businessName: string;
2909
+ vat: string;
2910
+ taxCode: string;
2911
+ billingAddress: {
2912
+ line1: string;
2913
+ city: string;
2914
+ region: string;
2915
+ postalCode: string;
2916
+ country: string;
2917
+ line2?: string | undefined;
2918
+ };
2919
+ billingData: {
2920
+ sdi?: string | null | undefined;
2921
+ pec?: string | null | undefined;
2922
+ };
2923
+ }[];
2924
+ pagination: {
2925
+ from: number;
2926
+ to: number;
2927
+ itemsPerPage: number;
2928
+ totalItems: number;
2929
+ currentPage: number;
2930
+ lastPage: number;
2931
+ };
2932
+ }, {
2933
+ data: {
2934
+ id: string;
2935
+ createdAt: string;
2936
+ updatedAt: string;
2937
+ businessName: string;
2938
+ vat: string;
2939
+ taxCode: string;
2940
+ billingAddress: {
2941
+ line1: string;
2942
+ city: string;
2943
+ region: string;
2944
+ postalCode: string;
2945
+ country: string;
2946
+ line2?: string | undefined;
2947
+ };
2948
+ billingData: {
2949
+ sdi?: string | null | undefined;
2950
+ pec?: string | null | undefined;
2951
+ };
2952
+ }[];
2953
+ pagination: {
2954
+ from: number;
2955
+ to: number;
2956
+ itemsPerPage: number;
2957
+ totalItems: number;
2958
+ currentPage: number;
2959
+ lastPage: number;
2960
+ };
2961
+ }>;
2962
+ readonly querySchema: z.ZodObject<{
2963
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2964
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2965
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2966
+ businessName: z.ZodOptional<z.ZodString>;
2967
+ vat: z.ZodOptional<z.ZodString>;
2968
+ taxCode: z.ZodOptional<z.ZodString>;
2969
+ page: z.ZodOptional<z.ZodNumber>;
2970
+ } & {
2971
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
2972
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
2973
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
2974
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
2975
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
2976
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
2977
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
2978
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ businessName?: string | undefined;
2981
+ vat?: string | undefined;
2982
+ taxCode?: string | undefined;
2983
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
2984
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
2985
+ page?: number | undefined;
2986
+ 'createdAt[before]'?: string | undefined;
2987
+ 'createdAt[strictly_before]'?: string | undefined;
2988
+ 'createdAt[after]'?: string | undefined;
2989
+ 'createdAt[strictly_after]'?: string | undefined;
2990
+ 'updatedAt[before]'?: string | undefined;
2991
+ 'updatedAt[strictly_before]'?: string | undefined;
2992
+ 'updatedAt[after]'?: string | undefined;
2993
+ 'updatedAt[strictly_after]'?: string | undefined;
2994
+ 'order[businessName]'?: "asc" | "desc" | undefined;
2995
+ }, {
2996
+ businessName?: string | undefined;
2997
+ vat?: string | undefined;
2998
+ taxCode?: string | undefined;
2999
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3000
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3001
+ page?: number | undefined;
3002
+ 'createdAt[before]'?: string | undefined;
3003
+ 'createdAt[strictly_before]'?: string | undefined;
3004
+ 'createdAt[after]'?: string | undefined;
3005
+ 'createdAt[strictly_after]'?: string | undefined;
3006
+ 'updatedAt[before]'?: string | undefined;
3007
+ 'updatedAt[strictly_before]'?: string | undefined;
3008
+ 'updatedAt[after]'?: string | undefined;
3009
+ 'updatedAt[strictly_after]'?: string | undefined;
3010
+ 'order[businessName]'?: "asc" | "desc" | undefined;
3011
+ }>;
3012
+ readonly headersSchema: undefined;
3013
+ constructor(options?: {
3014
+ query?: GetCustomerBusinessProfilesQueryParams;
3015
+ });
3016
+ getPath(): string;
3017
+ parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<CustomerBusinessProfile>;
3018
+ }
3019
+
3020
+ declare const getCustomerBusinessProfilesForCustomerQuerySchema: z.ZodObject<{
3021
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3022
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3023
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3024
+ businessName: z.ZodOptional<z.ZodString>;
3025
+ vat: z.ZodOptional<z.ZodString>;
3026
+ taxCode: z.ZodOptional<z.ZodString>;
3027
+ } & {
3028
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
3029
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3030
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
3031
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3032
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3033
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3034
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3035
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3036
+ }, "strip", z.ZodTypeAny, {
3037
+ businessName?: string | undefined;
3038
+ vat?: string | undefined;
3039
+ taxCode?: string | undefined;
3040
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3041
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3042
+ 'createdAt[before]'?: string | undefined;
3043
+ 'createdAt[strictly_before]'?: string | undefined;
3044
+ 'createdAt[after]'?: string | undefined;
3045
+ 'createdAt[strictly_after]'?: string | undefined;
3046
+ 'updatedAt[before]'?: string | undefined;
3047
+ 'updatedAt[strictly_before]'?: string | undefined;
3048
+ 'updatedAt[after]'?: string | undefined;
3049
+ 'updatedAt[strictly_after]'?: string | undefined;
3050
+ 'order[businessName]'?: "asc" | "desc" | undefined;
3051
+ }, {
3052
+ businessName?: string | undefined;
3053
+ vat?: string | undefined;
3054
+ taxCode?: string | undefined;
3055
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3056
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3057
+ 'createdAt[before]'?: string | undefined;
3058
+ 'createdAt[strictly_before]'?: string | undefined;
3059
+ 'createdAt[after]'?: string | undefined;
3060
+ 'createdAt[strictly_after]'?: string | undefined;
3061
+ 'updatedAt[before]'?: string | undefined;
3062
+ 'updatedAt[strictly_before]'?: string | undefined;
3063
+ 'updatedAt[after]'?: string | undefined;
3064
+ 'updatedAt[strictly_after]'?: string | undefined;
3065
+ 'order[businessName]'?: "asc" | "desc" | undefined;
3066
+ }>;
3067
+ type GetCustomerBusinessProfilesForCustomerQueryParams = z.infer<typeof getCustomerBusinessProfilesForCustomerQuerySchema>;
3068
+ declare const getCustomerBusinessProfilesForCustomerResponseSchema: z.ZodArray<z.ZodObject<{
3069
+ id: z.ZodString;
3070
+ businessName: z.ZodString;
3071
+ vat: z.ZodString;
3072
+ taxCode: z.ZodString;
3073
+ billingAddress: z.ZodObject<{
3074
+ line1: z.ZodString;
3075
+ line2: z.ZodOptional<z.ZodString>;
3076
+ city: z.ZodString;
3077
+ region: z.ZodString;
3078
+ postalCode: z.ZodString;
3079
+ country: z.ZodString;
3080
+ }, "strip", z.ZodTypeAny, {
3081
+ line1: string;
3082
+ city: string;
3083
+ region: string;
3084
+ postalCode: string;
3085
+ country: string;
3086
+ line2?: string | undefined;
3087
+ }, {
3088
+ line1: string;
3089
+ city: string;
3090
+ region: string;
3091
+ postalCode: string;
3092
+ country: string;
3093
+ line2?: string | undefined;
3094
+ }>;
3095
+ billingData: z.ZodEffects<z.ZodObject<{
3096
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3097
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3098
+ }, "strip", z.ZodTypeAny, {
3099
+ sdi?: string | null | undefined;
3100
+ pec?: string | null | undefined;
3101
+ }, {
3102
+ sdi?: string | null | undefined;
3103
+ pec?: string | null | undefined;
3104
+ }>, {
3105
+ sdi?: string | null | undefined;
3106
+ pec?: string | null | undefined;
3107
+ }, {
3108
+ sdi?: string | null | undefined;
3109
+ pec?: string | null | undefined;
3110
+ }>;
3111
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3112
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3113
+ }, "strip", z.ZodTypeAny, {
3114
+ id: string;
3115
+ createdAt: string;
3116
+ updatedAt: string;
3117
+ businessName: string;
3118
+ vat: string;
3119
+ taxCode: string;
3120
+ billingAddress: {
3121
+ line1: string;
3122
+ city: string;
3123
+ region: string;
3124
+ postalCode: string;
3125
+ country: string;
3126
+ line2?: string | undefined;
3127
+ };
3128
+ billingData: {
3129
+ sdi?: string | null | undefined;
3130
+ pec?: string | null | undefined;
3131
+ };
3132
+ }, {
3133
+ id: string;
3134
+ createdAt: string;
3135
+ updatedAt: string;
3136
+ businessName: string;
3137
+ vat: string;
3138
+ taxCode: string;
3139
+ billingAddress: {
3140
+ line1: string;
3141
+ city: string;
3142
+ region: string;
3143
+ postalCode: string;
3144
+ country: string;
3145
+ line2?: string | undefined;
3146
+ };
3147
+ billingData: {
3148
+ sdi?: string | null | undefined;
3149
+ pec?: string | null | undefined;
3150
+ };
3151
+ }>, "many">;
3152
+ type GetCustomerBusinessProfilesForCustomerResponse = z.infer<typeof getCustomerBusinessProfilesForCustomerResponseSchema>;
3153
+ declare const getCustomerBusinessProfilesForCustomerInputSchema: z.ZodUndefined;
3154
+ declare class GetCustomerBusinessProfilesForCustomer extends AbstractApiRequest<void, GetCustomerBusinessProfilesForCustomerResponse, GetCustomerBusinessProfilesForCustomerQueryParams> {
3155
+ readonly method = "GET";
3156
+ readonly contentType = "application/json";
3157
+ readonly accept = "application/json";
3158
+ readonly inputSchema: z.ZodUndefined;
3159
+ readonly outputSchema: z.ZodArray<z.ZodObject<{
3160
+ id: z.ZodString;
3161
+ businessName: z.ZodString;
3162
+ vat: z.ZodString;
3163
+ taxCode: z.ZodString;
3164
+ billingAddress: z.ZodObject<{
3165
+ line1: z.ZodString;
3166
+ line2: z.ZodOptional<z.ZodString>;
3167
+ city: z.ZodString;
3168
+ region: z.ZodString;
3169
+ postalCode: z.ZodString;
3170
+ country: z.ZodString;
3171
+ }, "strip", z.ZodTypeAny, {
3172
+ line1: string;
3173
+ city: string;
3174
+ region: string;
3175
+ postalCode: string;
3176
+ country: string;
3177
+ line2?: string | undefined;
3178
+ }, {
3179
+ line1: string;
3180
+ city: string;
3181
+ region: string;
3182
+ postalCode: string;
3183
+ country: string;
3184
+ line2?: string | undefined;
3185
+ }>;
3186
+ billingData: z.ZodEffects<z.ZodObject<{
3187
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3188
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3189
+ }, "strip", z.ZodTypeAny, {
3190
+ sdi?: string | null | undefined;
3191
+ pec?: string | null | undefined;
3192
+ }, {
3193
+ sdi?: string | null | undefined;
3194
+ pec?: string | null | undefined;
3195
+ }>, {
3196
+ sdi?: string | null | undefined;
3197
+ pec?: string | null | undefined;
3198
+ }, {
3199
+ sdi?: string | null | undefined;
3200
+ pec?: string | null | undefined;
3201
+ }>;
3202
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3203
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3204
+ }, "strip", z.ZodTypeAny, {
3205
+ id: string;
3206
+ createdAt: string;
3207
+ updatedAt: string;
3208
+ businessName: string;
3209
+ vat: string;
3210
+ taxCode: string;
3211
+ billingAddress: {
3212
+ line1: string;
3213
+ city: string;
3214
+ region: string;
3215
+ postalCode: string;
3216
+ country: string;
3217
+ line2?: string | undefined;
3218
+ };
3219
+ billingData: {
3220
+ sdi?: string | null | undefined;
3221
+ pec?: string | null | undefined;
3222
+ };
3223
+ }, {
3224
+ id: string;
3225
+ createdAt: string;
3226
+ updatedAt: string;
3227
+ businessName: string;
3228
+ vat: string;
3229
+ taxCode: string;
3230
+ billingAddress: {
3231
+ line1: string;
3232
+ city: string;
3233
+ region: string;
3234
+ postalCode: string;
3235
+ country: string;
3236
+ line2?: string | undefined;
3237
+ };
3238
+ billingData: {
3239
+ sdi?: string | null | undefined;
3240
+ pec?: string | null | undefined;
3241
+ };
3242
+ }>, "many">;
3243
+ readonly querySchema: z.ZodObject<{
3244
+ 'order[businessName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3245
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3246
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3247
+ businessName: z.ZodOptional<z.ZodString>;
3248
+ vat: z.ZodOptional<z.ZodString>;
3249
+ taxCode: z.ZodOptional<z.ZodString>;
3250
+ } & {
3251
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
3252
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3253
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
3254
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3255
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3256
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3257
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3258
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3259
+ }, "strip", z.ZodTypeAny, {
3260
+ businessName?: string | undefined;
3261
+ vat?: string | undefined;
3262
+ taxCode?: string | undefined;
3263
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3264
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3265
+ 'createdAt[before]'?: string | undefined;
3266
+ 'createdAt[strictly_before]'?: string | undefined;
3267
+ 'createdAt[after]'?: string | undefined;
3268
+ 'createdAt[strictly_after]'?: string | undefined;
3269
+ 'updatedAt[before]'?: string | undefined;
3270
+ 'updatedAt[strictly_before]'?: string | undefined;
3271
+ 'updatedAt[after]'?: string | undefined;
3272
+ 'updatedAt[strictly_after]'?: string | undefined;
3273
+ 'order[businessName]'?: "asc" | "desc" | undefined;
3274
+ }, {
3275
+ businessName?: string | undefined;
3276
+ vat?: string | undefined;
3277
+ taxCode?: string | undefined;
3278
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3279
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3280
+ 'createdAt[before]'?: string | undefined;
3281
+ 'createdAt[strictly_before]'?: string | undefined;
3282
+ 'createdAt[after]'?: string | undefined;
3283
+ 'createdAt[strictly_after]'?: string | undefined;
3284
+ 'updatedAt[before]'?: string | undefined;
3285
+ 'updatedAt[strictly_before]'?: string | undefined;
3286
+ 'updatedAt[after]'?: string | undefined;
3287
+ 'updatedAt[strictly_after]'?: string | undefined;
3288
+ 'order[businessName]'?: "asc" | "desc" | undefined;
3289
+ }>;
3290
+ readonly headersSchema: undefined;
3291
+ private readonly customerId;
3292
+ constructor(customerId: string, options?: {
3293
+ query?: GetCustomerBusinessProfilesForCustomerQueryParams;
3294
+ });
3295
+ getPath(): string;
3296
+ parseResponse(data: unknown): CustomerBusinessProfile[];
3297
+ }
3298
+
3299
+ declare const updateCustomerBusinessProfileInputSchema: z.ZodObject<{
3300
+ businessName: z.ZodOptional<z.ZodString>;
3301
+ vat: z.ZodOptional<z.ZodString>;
3302
+ taxCode: z.ZodOptional<z.ZodString>;
3303
+ billingAddress: z.ZodOptional<z.ZodObject<{
3304
+ line1: z.ZodString;
3305
+ line2: z.ZodOptional<z.ZodString>;
3306
+ city: z.ZodString;
3307
+ region: z.ZodString;
3308
+ postalCode: z.ZodString;
3309
+ country: z.ZodString;
3310
+ }, "strip", z.ZodTypeAny, {
3311
+ line1: string;
3312
+ city: string;
3313
+ region: string;
3314
+ postalCode: string;
3315
+ country: string;
3316
+ line2?: string | undefined;
3317
+ }, {
3318
+ line1: string;
3319
+ city: string;
3320
+ region: string;
3321
+ postalCode: string;
3322
+ country: string;
3323
+ line2?: string | undefined;
3324
+ }>>;
3325
+ billingData: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3326
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3327
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3328
+ }, "strip", z.ZodTypeAny, {
3329
+ sdi?: string | null | undefined;
3330
+ pec?: string | null | undefined;
3331
+ }, {
3332
+ sdi?: string | null | undefined;
3333
+ pec?: string | null | undefined;
3334
+ }>, {
3335
+ sdi?: string | null | undefined;
3336
+ pec?: string | null | undefined;
3337
+ }, {
3338
+ sdi?: string | null | undefined;
3339
+ pec?: string | null | undefined;
3340
+ }>>;
3341
+ }, "strip", z.ZodTypeAny, {
3342
+ businessName?: string | undefined;
3343
+ vat?: string | undefined;
3344
+ taxCode?: string | undefined;
3345
+ billingAddress?: {
3346
+ line1: string;
3347
+ city: string;
3348
+ region: string;
3349
+ postalCode: string;
3350
+ country: string;
3351
+ line2?: string | undefined;
3352
+ } | undefined;
3353
+ billingData?: {
3354
+ sdi?: string | null | undefined;
3355
+ pec?: string | null | undefined;
3356
+ } | undefined;
3357
+ }, {
3358
+ businessName?: string | undefined;
3359
+ vat?: string | undefined;
3360
+ taxCode?: string | undefined;
3361
+ billingAddress?: {
3362
+ line1: string;
3363
+ city: string;
3364
+ region: string;
3365
+ postalCode: string;
3366
+ country: string;
3367
+ line2?: string | undefined;
3368
+ } | undefined;
3369
+ billingData?: {
3370
+ sdi?: string | null | undefined;
3371
+ pec?: string | null | undefined;
3372
+ } | undefined;
3373
+ }>;
3374
+ type UpdateCustomerBusinessProfileInput = z.infer<typeof updateCustomerBusinessProfileInputSchema>;
3375
+ declare const updateCustomerBusinessProfileResponseSchema: z.ZodObject<{
3376
+ id: z.ZodString;
3377
+ businessName: z.ZodString;
3378
+ vat: z.ZodString;
3379
+ taxCode: z.ZodString;
3380
+ billingAddress: z.ZodObject<{
3381
+ line1: z.ZodString;
3382
+ line2: z.ZodOptional<z.ZodString>;
3383
+ city: z.ZodString;
3384
+ region: z.ZodString;
3385
+ postalCode: z.ZodString;
3386
+ country: z.ZodString;
3387
+ }, "strip", z.ZodTypeAny, {
3388
+ line1: string;
3389
+ city: string;
3390
+ region: string;
3391
+ postalCode: string;
3392
+ country: string;
3393
+ line2?: string | undefined;
3394
+ }, {
3395
+ line1: string;
3396
+ city: string;
3397
+ region: string;
3398
+ postalCode: string;
3399
+ country: string;
3400
+ line2?: string | undefined;
3401
+ }>;
3402
+ billingData: z.ZodEffects<z.ZodObject<{
3403
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3404
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3405
+ }, "strip", z.ZodTypeAny, {
3406
+ sdi?: string | null | undefined;
3407
+ pec?: string | null | undefined;
3408
+ }, {
3409
+ sdi?: string | null | undefined;
3410
+ pec?: string | null | undefined;
3411
+ }>, {
3412
+ sdi?: string | null | undefined;
3413
+ pec?: string | null | undefined;
3414
+ }, {
3415
+ sdi?: string | null | undefined;
3416
+ pec?: string | null | undefined;
3417
+ }>;
3418
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3419
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3420
+ } & {
3421
+ customer: z.ZodEffects<z.ZodString, string, string>;
3422
+ }, "strip", z.ZodTypeAny, {
3423
+ id: string;
3424
+ createdAt: string;
3425
+ updatedAt: string;
3426
+ customer: string;
3427
+ businessName: string;
3428
+ vat: string;
3429
+ taxCode: string;
3430
+ billingAddress: {
3431
+ line1: string;
3432
+ city: string;
3433
+ region: string;
3434
+ postalCode: string;
3435
+ country: string;
3436
+ line2?: string | undefined;
3437
+ };
3438
+ billingData: {
3439
+ sdi?: string | null | undefined;
3440
+ pec?: string | null | undefined;
3441
+ };
3442
+ }, {
3443
+ id: string;
3444
+ createdAt: string;
3445
+ updatedAt: string;
3446
+ customer: string;
3447
+ businessName: string;
3448
+ vat: string;
3449
+ taxCode: string;
3450
+ billingAddress: {
3451
+ line1: string;
3452
+ city: string;
3453
+ region: string;
3454
+ postalCode: string;
3455
+ country: string;
3456
+ line2?: string | undefined;
3457
+ };
3458
+ billingData: {
3459
+ sdi?: string | null | undefined;
3460
+ pec?: string | null | undefined;
3461
+ };
3462
+ }>;
3463
+ type UpdateCustomerBusinessProfileResponse = CustomerBusinessProfileDetails;
3464
+ declare class UpdateCustomerBusinessProfile extends AbstractApiRequest<UpdateCustomerBusinessProfileInput, UpdateCustomerBusinessProfileResponse> {
3465
+ readonly method = "PATCH";
3466
+ readonly contentType = "application/merge-patch+json";
3467
+ readonly accept = "application/json";
3468
+ readonly inputSchema: z.ZodObject<{
3469
+ businessName: z.ZodOptional<z.ZodString>;
3470
+ vat: z.ZodOptional<z.ZodString>;
3471
+ taxCode: z.ZodOptional<z.ZodString>;
3472
+ billingAddress: z.ZodOptional<z.ZodObject<{
3473
+ line1: z.ZodString;
3474
+ line2: z.ZodOptional<z.ZodString>;
3475
+ city: z.ZodString;
3476
+ region: z.ZodString;
3477
+ postalCode: z.ZodString;
3478
+ country: z.ZodString;
3479
+ }, "strip", z.ZodTypeAny, {
3480
+ line1: string;
3481
+ city: string;
3482
+ region: string;
3483
+ postalCode: string;
3484
+ country: string;
3485
+ line2?: string | undefined;
3486
+ }, {
3487
+ line1: string;
3488
+ city: string;
3489
+ region: string;
3490
+ postalCode: string;
3491
+ country: string;
3492
+ line2?: string | undefined;
3493
+ }>>;
3494
+ billingData: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3495
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3496
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3497
+ }, "strip", z.ZodTypeAny, {
3498
+ sdi?: string | null | undefined;
3499
+ pec?: string | null | undefined;
3500
+ }, {
3501
+ sdi?: string | null | undefined;
3502
+ pec?: string | null | undefined;
3503
+ }>, {
3504
+ sdi?: string | null | undefined;
3505
+ pec?: string | null | undefined;
3506
+ }, {
3507
+ sdi?: string | null | undefined;
3508
+ pec?: string | null | undefined;
3509
+ }>>;
3510
+ }, "strip", z.ZodTypeAny, {
3511
+ businessName?: string | undefined;
3512
+ vat?: string | undefined;
3513
+ taxCode?: string | undefined;
3514
+ billingAddress?: {
3515
+ line1: string;
3516
+ city: string;
3517
+ region: string;
3518
+ postalCode: string;
3519
+ country: string;
3520
+ line2?: string | undefined;
3521
+ } | undefined;
3522
+ billingData?: {
3523
+ sdi?: string | null | undefined;
3524
+ pec?: string | null | undefined;
3525
+ } | undefined;
3526
+ }, {
3527
+ businessName?: string | undefined;
3528
+ vat?: string | undefined;
3529
+ taxCode?: string | undefined;
3530
+ billingAddress?: {
3531
+ line1: string;
3532
+ city: string;
3533
+ region: string;
3534
+ postalCode: string;
3535
+ country: string;
3536
+ line2?: string | undefined;
3537
+ } | undefined;
3538
+ billingData?: {
3539
+ sdi?: string | null | undefined;
3540
+ pec?: string | null | undefined;
3541
+ } | undefined;
3542
+ }>;
3543
+ readonly outputSchema: z.ZodObject<{
3544
+ id: z.ZodString;
3545
+ businessName: z.ZodString;
3546
+ vat: z.ZodString;
3547
+ taxCode: z.ZodString;
3548
+ billingAddress: z.ZodObject<{
3549
+ line1: z.ZodString;
3550
+ line2: z.ZodOptional<z.ZodString>;
3551
+ city: z.ZodString;
3552
+ region: z.ZodString;
3553
+ postalCode: z.ZodString;
3554
+ country: z.ZodString;
3555
+ }, "strip", z.ZodTypeAny, {
3556
+ line1: string;
3557
+ city: string;
3558
+ region: string;
3559
+ postalCode: string;
3560
+ country: string;
3561
+ line2?: string | undefined;
3562
+ }, {
3563
+ line1: string;
3564
+ city: string;
3565
+ region: string;
3566
+ postalCode: string;
3567
+ country: string;
3568
+ line2?: string | undefined;
3569
+ }>;
3570
+ billingData: z.ZodEffects<z.ZodObject<{
3571
+ sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3572
+ pec: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ sdi?: string | null | undefined;
3575
+ pec?: string | null | undefined;
3576
+ }, {
3577
+ sdi?: string | null | undefined;
3578
+ pec?: string | null | undefined;
3579
+ }>, {
3580
+ sdi?: string | null | undefined;
3581
+ pec?: string | null | undefined;
3582
+ }, {
3583
+ sdi?: string | null | undefined;
3584
+ pec?: string | null | undefined;
3585
+ }>;
3586
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3587
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3588
+ } & {
3589
+ customer: z.ZodEffects<z.ZodString, string, string>;
3590
+ }, "strip", z.ZodTypeAny, {
3591
+ id: string;
3592
+ createdAt: string;
3593
+ updatedAt: string;
3594
+ customer: string;
3595
+ businessName: string;
3596
+ vat: string;
3597
+ taxCode: string;
3598
+ billingAddress: {
3599
+ line1: string;
3600
+ city: string;
3601
+ region: string;
3602
+ postalCode: string;
3603
+ country: string;
3604
+ line2?: string | undefined;
3605
+ };
3606
+ billingData: {
3607
+ sdi?: string | null | undefined;
3608
+ pec?: string | null | undefined;
3609
+ };
3610
+ }, {
3611
+ id: string;
3612
+ createdAt: string;
3613
+ updatedAt: string;
3614
+ customer: string;
3615
+ businessName: string;
3616
+ vat: string;
3617
+ taxCode: string;
3618
+ billingAddress: {
3619
+ line1: string;
3620
+ city: string;
3621
+ region: string;
3622
+ postalCode: string;
3623
+ country: string;
3624
+ line2?: string | undefined;
3625
+ };
3626
+ billingData: {
3627
+ sdi?: string | null | undefined;
3628
+ pec?: string | null | undefined;
3629
+ };
3630
+ }>;
3631
+ readonly querySchema: undefined;
3632
+ readonly headersSchema: undefined;
3633
+ private readonly customerId;
3634
+ constructor(customerId: string, input: UpdateCustomerBusinessProfileInput);
3635
+ getPath(): string;
3636
+ }
3637
+
3638
+ declare const createCustomerInputSchema: z.ZodObject<{
3639
+ firstName: z.ZodNullable<z.ZodString>;
3640
+ lastName: z.ZodNullable<z.ZodString>;
3641
+ email: z.ZodNullable<z.ZodString>;
3642
+ phoneNumber: z.ZodNullable<z.ZodString>;
3643
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3644
+ }, "strip", z.ZodTypeAny, {
3645
+ firstName: string | null;
3646
+ lastName: string | null;
3647
+ email: string | null;
3648
+ phoneNumber: string | null;
3649
+ pointOfSale: string | null;
3650
+ }, {
3651
+ firstName: string | null;
3652
+ lastName: string | null;
3653
+ email: string | null;
3654
+ phoneNumber: string | null;
3655
+ pointOfSale: string | null;
3656
+ }>;
3657
+ type CreateCustomerInput = z.infer<typeof createCustomerInputSchema>;
3658
+ declare const createCustomerResponseSchema: z.ZodObject<{
3659
+ id: z.ZodString;
3660
+ firstName: z.ZodNullable<z.ZodString>;
3661
+ lastName: z.ZodNullable<z.ZodString>;
3662
+ email: z.ZodNullable<z.ZodString>;
3663
+ phoneNumber: z.ZodNullable<z.ZodString>;
3664
+ hasBusinessProfiles: z.ZodBoolean;
3665
+ hasAddresses: z.ZodBoolean;
3666
+ ordersPlaced: z.ZodNumber;
3667
+ totalSpent: z.ZodNumber;
3668
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3669
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3670
+ } & {
3671
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3672
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3673
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3674
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3675
+ }, "strip", z.ZodTypeAny, {
3676
+ id: string;
3677
+ firstName: string | null;
3678
+ lastName: string | null;
3679
+ email: string | null;
3680
+ phoneNumber: string | null;
3681
+ hasBusinessProfiles: boolean;
3682
+ hasAddresses: boolean;
3683
+ ordersPlaced: number;
3684
+ totalSpent: number;
3685
+ createdAt: string;
3686
+ updatedAt: string;
3687
+ pointOfSale: string | null;
3688
+ owner: string | null;
3689
+ addresses: string[];
3690
+ businessProfiles: string[];
3691
+ }, {
3692
+ id: string;
3693
+ firstName: string | null;
3694
+ lastName: string | null;
3695
+ email: string | null;
3696
+ phoneNumber: string | null;
3697
+ hasBusinessProfiles: boolean;
3698
+ hasAddresses: boolean;
3699
+ ordersPlaced: number;
3700
+ totalSpent: number;
3701
+ createdAt: string;
3702
+ updatedAt: string;
3703
+ pointOfSale: string | null;
3704
+ owner: string | null;
3705
+ addresses: string[];
3706
+ businessProfiles: string[];
3707
+ }>;
3708
+ type CreateCustomerResponse = CustomerDetails;
3709
+ declare class CreateCustomer extends AbstractApiRequest<CreateCustomerInput, CreateCustomerResponse> {
3710
+ readonly method = "POST";
3711
+ readonly contentType = "application/json";
3712
+ readonly accept = "application/json";
3713
+ readonly inputSchema: z.ZodObject<{
3714
+ firstName: z.ZodNullable<z.ZodString>;
3715
+ lastName: z.ZodNullable<z.ZodString>;
3716
+ email: z.ZodNullable<z.ZodString>;
3717
+ phoneNumber: z.ZodNullable<z.ZodString>;
3718
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3719
+ }, "strip", z.ZodTypeAny, {
3720
+ firstName: string | null;
3721
+ lastName: string | null;
3722
+ email: string | null;
3723
+ phoneNumber: string | null;
3724
+ pointOfSale: string | null;
3725
+ }, {
3726
+ firstName: string | null;
3727
+ lastName: string | null;
3728
+ email: string | null;
3729
+ phoneNumber: string | null;
3730
+ pointOfSale: string | null;
3731
+ }>;
3732
+ readonly outputSchema: z.ZodObject<{
3733
+ id: z.ZodString;
3734
+ firstName: z.ZodNullable<z.ZodString>;
3735
+ lastName: z.ZodNullable<z.ZodString>;
3736
+ email: z.ZodNullable<z.ZodString>;
3737
+ phoneNumber: z.ZodNullable<z.ZodString>;
3738
+ hasBusinessProfiles: z.ZodBoolean;
3739
+ hasAddresses: z.ZodBoolean;
3740
+ ordersPlaced: z.ZodNumber;
3741
+ totalSpent: z.ZodNumber;
3742
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3743
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3744
+ } & {
3745
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3746
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3747
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3748
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3749
+ }, "strip", z.ZodTypeAny, {
3750
+ id: string;
3751
+ firstName: string | null;
3752
+ lastName: string | null;
3753
+ email: string | null;
3754
+ phoneNumber: string | null;
3755
+ hasBusinessProfiles: boolean;
3756
+ hasAddresses: boolean;
3757
+ ordersPlaced: number;
3758
+ totalSpent: number;
3759
+ createdAt: string;
3760
+ updatedAt: string;
3761
+ pointOfSale: string | null;
3762
+ owner: string | null;
3763
+ addresses: string[];
3764
+ businessProfiles: string[];
3765
+ }, {
3766
+ id: string;
3767
+ firstName: string | null;
3768
+ lastName: string | null;
3769
+ email: string | null;
3770
+ phoneNumber: string | null;
3771
+ hasBusinessProfiles: boolean;
3772
+ hasAddresses: boolean;
3773
+ ordersPlaced: number;
3774
+ totalSpent: number;
3775
+ createdAt: string;
3776
+ updatedAt: string;
3777
+ pointOfSale: string | null;
3778
+ owner: string | null;
3779
+ addresses: string[];
3780
+ businessProfiles: string[];
3781
+ }>;
3782
+ readonly querySchema: undefined;
3783
+ readonly headersSchema: undefined;
3784
+ constructor(input: CreateCustomerInput);
3785
+ getPath(): string;
3786
+ }
3787
+
3788
+ declare const deleteCustomerInputSchema: z.ZodUndefined;
3789
+ declare const deleteCustomerResponseSchema: z.ZodUndefined;
3790
+ declare class DeleteCustomer extends AbstractApiRequest<void, void> {
3791
+ readonly method = "DELETE";
3792
+ readonly contentType = "application/json";
3793
+ readonly accept = "application/json";
3794
+ readonly inputSchema: z.ZodUndefined;
3795
+ readonly outputSchema: z.ZodUndefined;
3796
+ readonly querySchema: undefined;
3797
+ readonly headersSchema: undefined;
3798
+ private readonly customerId;
3799
+ constructor(customerId: string);
3800
+ getPath(): string;
3801
+ }
3802
+
3803
+ declare const getCustomerDetailsInputSchema: z.ZodUndefined;
3804
+ declare const getCustomerDetailsResponseSchema: z.ZodObject<{
3805
+ id: z.ZodString;
3806
+ firstName: z.ZodNullable<z.ZodString>;
3807
+ lastName: z.ZodNullable<z.ZodString>;
3808
+ email: z.ZodNullable<z.ZodString>;
3809
+ phoneNumber: z.ZodNullable<z.ZodString>;
3810
+ hasBusinessProfiles: z.ZodBoolean;
3811
+ hasAddresses: z.ZodBoolean;
3812
+ ordersPlaced: z.ZodNumber;
3813
+ totalSpent: z.ZodNumber;
3814
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3815
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3816
+ } & {
3817
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3818
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3819
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3820
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3821
+ }, "strip", z.ZodTypeAny, {
3822
+ id: string;
3823
+ firstName: string | null;
3824
+ lastName: string | null;
3825
+ email: string | null;
3826
+ phoneNumber: string | null;
3827
+ hasBusinessProfiles: boolean;
3828
+ hasAddresses: boolean;
3829
+ ordersPlaced: number;
3830
+ totalSpent: number;
3831
+ createdAt: string;
3832
+ updatedAt: string;
3833
+ pointOfSale: string | null;
3834
+ owner: string | null;
3835
+ addresses: string[];
3836
+ businessProfiles: string[];
3837
+ }, {
3838
+ id: string;
3839
+ firstName: string | null;
3840
+ lastName: string | null;
3841
+ email: string | null;
3842
+ phoneNumber: string | null;
3843
+ hasBusinessProfiles: boolean;
3844
+ hasAddresses: boolean;
3845
+ ordersPlaced: number;
3846
+ totalSpent: number;
3847
+ createdAt: string;
3848
+ updatedAt: string;
3849
+ pointOfSale: string | null;
3850
+ owner: string | null;
3851
+ addresses: string[];
3852
+ businessProfiles: string[];
3853
+ }>;
3854
+ type GetCustomerDetailsResponse = CustomerDetails;
3855
+ declare class GetCustomerDetails extends AbstractApiRequest<void, GetCustomerDetailsResponse> {
3856
+ readonly method = "GET";
3857
+ readonly contentType = "application/json";
3858
+ readonly accept = "application/json";
3859
+ readonly inputSchema: z.ZodUndefined;
3860
+ readonly outputSchema: z.ZodObject<{
3861
+ id: z.ZodString;
3862
+ firstName: z.ZodNullable<z.ZodString>;
3863
+ lastName: z.ZodNullable<z.ZodString>;
3864
+ email: z.ZodNullable<z.ZodString>;
3865
+ phoneNumber: z.ZodNullable<z.ZodString>;
3866
+ hasBusinessProfiles: z.ZodBoolean;
3867
+ hasAddresses: z.ZodBoolean;
3868
+ ordersPlaced: z.ZodNumber;
3869
+ totalSpent: z.ZodNumber;
3870
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
3871
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
3872
+ } & {
3873
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3874
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
3875
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3876
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
3877
+ }, "strip", z.ZodTypeAny, {
3878
+ id: string;
3879
+ firstName: string | null;
3880
+ lastName: string | null;
3881
+ email: string | null;
3882
+ phoneNumber: string | null;
3883
+ hasBusinessProfiles: boolean;
3884
+ hasAddresses: boolean;
3885
+ ordersPlaced: number;
3886
+ totalSpent: number;
3887
+ createdAt: string;
3888
+ updatedAt: string;
3889
+ pointOfSale: string | null;
3890
+ owner: string | null;
3891
+ addresses: string[];
3892
+ businessProfiles: string[];
3893
+ }, {
3894
+ id: string;
3895
+ firstName: string | null;
3896
+ lastName: string | null;
3897
+ email: string | null;
3898
+ phoneNumber: string | null;
3899
+ hasBusinessProfiles: boolean;
3900
+ hasAddresses: boolean;
3901
+ ordersPlaced: number;
3902
+ totalSpent: number;
3903
+ createdAt: string;
3904
+ updatedAt: string;
3905
+ pointOfSale: string | null;
3906
+ owner: string | null;
3907
+ addresses: string[];
3908
+ businessProfiles: string[];
3909
+ }>;
3910
+ readonly querySchema: undefined;
3911
+ readonly headersSchema: undefined;
3912
+ private readonly customerId;
3913
+ constructor(customerId: string);
3914
+ getPath(): string;
3915
+ }
3916
+
3917
+ declare const getCustomersQuerySchema: z.ZodObject<{
3918
+ firstName: z.ZodOptional<z.ZodString>;
3919
+ lastName: z.ZodOptional<z.ZodString>;
3920
+ email: z.ZodOptional<z.ZodString>;
3921
+ phoneNumber: z.ZodOptional<z.ZodString>;
3922
+ hasBusinessProfiles: z.ZodOptional<z.ZodBoolean>;
3923
+ hasAddresses: z.ZodOptional<z.ZodBoolean>;
3924
+ 'ordersPlaced[between]': z.ZodOptional<z.ZodNumber>;
3925
+ 'ordersPlaced[gt]': z.ZodOptional<z.ZodNumber>;
3926
+ 'ordersPlaced[gte]': z.ZodOptional<z.ZodNumber>;
3927
+ 'ordersPlaced[lt]': z.ZodOptional<z.ZodNumber>;
3928
+ 'ordersPlaced[lte]': z.ZodOptional<z.ZodNumber>;
3929
+ 'totalSpent[between]': z.ZodOptional<z.ZodNumber>;
3930
+ 'totalSpent[gt]': z.ZodOptional<z.ZodNumber>;
3931
+ 'totalSpent[gte]': z.ZodOptional<z.ZodNumber>;
3932
+ 'totalSpent[lt]': z.ZodOptional<z.ZodNumber>;
3933
+ 'totalSpent[lte]': z.ZodOptional<z.ZodNumber>;
3934
+ 'order[firstName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3935
+ 'order[lastName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3936
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3937
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3938
+ page: z.ZodOptional<z.ZodNumber>;
3939
+ } & {
3940
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
3941
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
3942
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
3943
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
3944
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
3945
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
3946
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
3947
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
3948
+ }, "strip", z.ZodTypeAny, {
3949
+ firstName?: string | undefined;
3950
+ lastName?: string | undefined;
3951
+ email?: string | undefined;
3952
+ phoneNumber?: string | undefined;
3953
+ hasBusinessProfiles?: boolean | undefined;
3954
+ hasAddresses?: boolean | undefined;
3955
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3956
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3957
+ page?: number | undefined;
3958
+ 'createdAt[before]'?: string | undefined;
3959
+ 'createdAt[strictly_before]'?: string | undefined;
3960
+ 'createdAt[after]'?: string | undefined;
3961
+ 'createdAt[strictly_after]'?: string | undefined;
3962
+ 'updatedAt[before]'?: string | undefined;
3963
+ 'updatedAt[strictly_before]'?: string | undefined;
3964
+ 'updatedAt[after]'?: string | undefined;
3965
+ 'updatedAt[strictly_after]'?: string | undefined;
3966
+ 'ordersPlaced[between]'?: number | undefined;
3967
+ 'ordersPlaced[gt]'?: number | undefined;
3968
+ 'ordersPlaced[gte]'?: number | undefined;
3969
+ 'ordersPlaced[lt]'?: number | undefined;
3970
+ 'ordersPlaced[lte]'?: number | undefined;
3971
+ 'totalSpent[between]'?: number | undefined;
3972
+ 'totalSpent[gt]'?: number | undefined;
3973
+ 'totalSpent[gte]'?: number | undefined;
3974
+ 'totalSpent[lt]'?: number | undefined;
3975
+ 'totalSpent[lte]'?: number | undefined;
3976
+ 'order[firstName]'?: "asc" | "desc" | undefined;
3977
+ 'order[lastName]'?: "asc" | "desc" | undefined;
3978
+ }, {
3979
+ firstName?: string | undefined;
3980
+ lastName?: string | undefined;
3981
+ email?: string | undefined;
3982
+ phoneNumber?: string | undefined;
3983
+ hasBusinessProfiles?: boolean | undefined;
3984
+ hasAddresses?: boolean | undefined;
3985
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
3986
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
3987
+ page?: number | undefined;
3988
+ 'createdAt[before]'?: string | undefined;
3989
+ 'createdAt[strictly_before]'?: string | undefined;
3990
+ 'createdAt[after]'?: string | undefined;
3991
+ 'createdAt[strictly_after]'?: string | undefined;
3992
+ 'updatedAt[before]'?: string | undefined;
3993
+ 'updatedAt[strictly_before]'?: string | undefined;
3994
+ 'updatedAt[after]'?: string | undefined;
3995
+ 'updatedAt[strictly_after]'?: string | undefined;
3996
+ 'ordersPlaced[between]'?: number | undefined;
3997
+ 'ordersPlaced[gt]'?: number | undefined;
3998
+ 'ordersPlaced[gte]'?: number | undefined;
3999
+ 'ordersPlaced[lt]'?: number | undefined;
4000
+ 'ordersPlaced[lte]'?: number | undefined;
4001
+ 'totalSpent[between]'?: number | undefined;
4002
+ 'totalSpent[gt]'?: number | undefined;
4003
+ 'totalSpent[gte]'?: number | undefined;
4004
+ 'totalSpent[lt]'?: number | undefined;
4005
+ 'totalSpent[lte]'?: number | undefined;
4006
+ 'order[firstName]'?: "asc" | "desc" | undefined;
4007
+ 'order[lastName]'?: "asc" | "desc" | undefined;
4008
+ }>;
4009
+ type GetCustomersQueryParams = z.infer<typeof getCustomersQuerySchema>;
4010
+ declare const getCustomersResponseSchema: z.ZodObject<{
4011
+ data: z.ZodArray<z.ZodObject<{
4012
+ id: z.ZodString;
4013
+ firstName: z.ZodNullable<z.ZodString>;
4014
+ lastName: z.ZodNullable<z.ZodString>;
4015
+ email: z.ZodNullable<z.ZodString>;
4016
+ phoneNumber: z.ZodNullable<z.ZodString>;
4017
+ hasBusinessProfiles: z.ZodBoolean;
4018
+ hasAddresses: z.ZodBoolean;
4019
+ ordersPlaced: z.ZodNumber;
4020
+ totalSpent: z.ZodNumber;
4021
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
4022
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
4023
+ }, "strip", z.ZodTypeAny, {
4024
+ id: string;
4025
+ firstName: string | null;
4026
+ lastName: string | null;
4027
+ email: string | null;
4028
+ phoneNumber: string | null;
4029
+ hasBusinessProfiles: boolean;
4030
+ hasAddresses: boolean;
4031
+ ordersPlaced: number;
4032
+ totalSpent: number;
4033
+ createdAt: string;
4034
+ updatedAt: string;
4035
+ }, {
4036
+ id: string;
4037
+ firstName: string | null;
4038
+ lastName: string | null;
4039
+ email: string | null;
4040
+ phoneNumber: string | null;
4041
+ hasBusinessProfiles: boolean;
4042
+ hasAddresses: boolean;
4043
+ ordersPlaced: number;
4044
+ totalSpent: number;
4045
+ createdAt: string;
4046
+ updatedAt: string;
4047
+ }>, "many">;
4048
+ pagination: z.ZodObject<{
4049
+ from: z.ZodNumber;
4050
+ to: z.ZodNumber;
4051
+ itemsPerPage: z.ZodNumber;
4052
+ totalItems: z.ZodNumber;
4053
+ currentPage: z.ZodNumber;
4054
+ lastPage: z.ZodNumber;
4055
+ }, "strip", z.ZodTypeAny, {
4056
+ from: number;
4057
+ to: number;
4058
+ itemsPerPage: number;
4059
+ totalItems: number;
4060
+ currentPage: number;
4061
+ lastPage: number;
4062
+ }, {
4063
+ from: number;
4064
+ to: number;
4065
+ itemsPerPage: number;
4066
+ totalItems: number;
4067
+ currentPage: number;
4068
+ lastPage: number;
4069
+ }>;
4070
+ }, "strip", z.ZodTypeAny, {
4071
+ data: {
4072
+ id: string;
4073
+ firstName: string | null;
4074
+ lastName: string | null;
4075
+ email: string | null;
4076
+ phoneNumber: string | null;
4077
+ hasBusinessProfiles: boolean;
4078
+ hasAddresses: boolean;
4079
+ ordersPlaced: number;
4080
+ totalSpent: number;
4081
+ createdAt: string;
4082
+ updatedAt: string;
4083
+ }[];
4084
+ pagination: {
4085
+ from: number;
4086
+ to: number;
4087
+ itemsPerPage: number;
4088
+ totalItems: number;
4089
+ currentPage: number;
4090
+ lastPage: number;
4091
+ };
4092
+ }, {
4093
+ data: {
4094
+ id: string;
4095
+ firstName: string | null;
4096
+ lastName: string | null;
4097
+ email: string | null;
4098
+ phoneNumber: string | null;
4099
+ hasBusinessProfiles: boolean;
4100
+ hasAddresses: boolean;
4101
+ ordersPlaced: number;
4102
+ totalSpent: number;
4103
+ createdAt: string;
4104
+ updatedAt: string;
4105
+ }[];
4106
+ pagination: {
4107
+ from: number;
4108
+ to: number;
4109
+ itemsPerPage: number;
4110
+ totalItems: number;
4111
+ currentPage: number;
4112
+ lastPage: number;
4113
+ };
4114
+ }>;
4115
+ type GetCustomersResponse = z.infer<typeof getCustomersResponseSchema>;
4116
+ declare const getCustomersInputSchema: z.ZodUndefined;
4117
+ declare class GetCustomers extends AbstractApiRequest<void, GetCustomersResponse, GetCustomersQueryParams> {
4118
+ readonly method = "GET";
4119
+ readonly contentType = "application/json";
4120
+ readonly accept = "application/json";
4121
+ readonly inputSchema: z.ZodUndefined;
4122
+ readonly outputSchema: z.ZodObject<{
4123
+ data: z.ZodArray<z.ZodObject<{
4124
+ id: z.ZodString;
4125
+ firstName: z.ZodNullable<z.ZodString>;
4126
+ lastName: z.ZodNullable<z.ZodString>;
4127
+ email: z.ZodNullable<z.ZodString>;
4128
+ phoneNumber: z.ZodNullable<z.ZodString>;
4129
+ hasBusinessProfiles: z.ZodBoolean;
4130
+ hasAddresses: z.ZodBoolean;
4131
+ ordersPlaced: z.ZodNumber;
4132
+ totalSpent: z.ZodNumber;
4133
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
4134
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
4135
+ }, "strip", z.ZodTypeAny, {
4136
+ id: string;
4137
+ firstName: string | null;
4138
+ lastName: string | null;
4139
+ email: string | null;
4140
+ phoneNumber: string | null;
4141
+ hasBusinessProfiles: boolean;
4142
+ hasAddresses: boolean;
4143
+ ordersPlaced: number;
4144
+ totalSpent: number;
4145
+ createdAt: string;
4146
+ updatedAt: string;
4147
+ }, {
4148
+ id: string;
4149
+ firstName: string | null;
4150
+ lastName: string | null;
4151
+ email: string | null;
4152
+ phoneNumber: string | null;
4153
+ hasBusinessProfiles: boolean;
4154
+ hasAddresses: boolean;
4155
+ ordersPlaced: number;
4156
+ totalSpent: number;
4157
+ createdAt: string;
4158
+ updatedAt: string;
4159
+ }>, "many">;
4160
+ pagination: z.ZodObject<{
4161
+ from: z.ZodNumber;
4162
+ to: z.ZodNumber;
4163
+ itemsPerPage: z.ZodNumber;
4164
+ totalItems: z.ZodNumber;
4165
+ currentPage: z.ZodNumber;
4166
+ lastPage: z.ZodNumber;
4167
+ }, "strip", z.ZodTypeAny, {
4168
+ from: number;
4169
+ to: number;
4170
+ itemsPerPage: number;
4171
+ totalItems: number;
4172
+ currentPage: number;
4173
+ lastPage: number;
4174
+ }, {
4175
+ from: number;
4176
+ to: number;
4177
+ itemsPerPage: number;
4178
+ totalItems: number;
4179
+ currentPage: number;
4180
+ lastPage: number;
4181
+ }>;
4182
+ }, "strip", z.ZodTypeAny, {
4183
+ data: {
4184
+ id: string;
4185
+ firstName: string | null;
4186
+ lastName: string | null;
4187
+ email: string | null;
4188
+ phoneNumber: string | null;
4189
+ hasBusinessProfiles: boolean;
4190
+ hasAddresses: boolean;
4191
+ ordersPlaced: number;
4192
+ totalSpent: number;
4193
+ createdAt: string;
4194
+ updatedAt: string;
4195
+ }[];
4196
+ pagination: {
4197
+ from: number;
4198
+ to: number;
4199
+ itemsPerPage: number;
4200
+ totalItems: number;
4201
+ currentPage: number;
4202
+ lastPage: number;
4203
+ };
4204
+ }, {
4205
+ data: {
4206
+ id: string;
4207
+ firstName: string | null;
4208
+ lastName: string | null;
4209
+ email: string | null;
4210
+ phoneNumber: string | null;
4211
+ hasBusinessProfiles: boolean;
4212
+ hasAddresses: boolean;
4213
+ ordersPlaced: number;
4214
+ totalSpent: number;
4215
+ createdAt: string;
4216
+ updatedAt: string;
4217
+ }[];
4218
+ pagination: {
4219
+ from: number;
4220
+ to: number;
4221
+ itemsPerPage: number;
4222
+ totalItems: number;
4223
+ currentPage: number;
4224
+ lastPage: number;
4225
+ };
4226
+ }>;
4227
+ readonly querySchema: z.ZodObject<{
4228
+ firstName: z.ZodOptional<z.ZodString>;
4229
+ lastName: z.ZodOptional<z.ZodString>;
4230
+ email: z.ZodOptional<z.ZodString>;
4231
+ phoneNumber: z.ZodOptional<z.ZodString>;
4232
+ hasBusinessProfiles: z.ZodOptional<z.ZodBoolean>;
4233
+ hasAddresses: z.ZodOptional<z.ZodBoolean>;
4234
+ 'ordersPlaced[between]': z.ZodOptional<z.ZodNumber>;
4235
+ 'ordersPlaced[gt]': z.ZodOptional<z.ZodNumber>;
4236
+ 'ordersPlaced[gte]': z.ZodOptional<z.ZodNumber>;
4237
+ 'ordersPlaced[lt]': z.ZodOptional<z.ZodNumber>;
4238
+ 'ordersPlaced[lte]': z.ZodOptional<z.ZodNumber>;
4239
+ 'totalSpent[between]': z.ZodOptional<z.ZodNumber>;
4240
+ 'totalSpent[gt]': z.ZodOptional<z.ZodNumber>;
4241
+ 'totalSpent[gte]': z.ZodOptional<z.ZodNumber>;
4242
+ 'totalSpent[lt]': z.ZodOptional<z.ZodNumber>;
4243
+ 'totalSpent[lte]': z.ZodOptional<z.ZodNumber>;
4244
+ 'order[firstName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4245
+ 'order[lastName]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4246
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4247
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4248
+ page: z.ZodOptional<z.ZodNumber>;
4249
+ } & {
4250
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
4251
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
4252
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
4253
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
4254
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
4255
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
4256
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
4257
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
4258
+ }, "strip", z.ZodTypeAny, {
4259
+ firstName?: string | undefined;
4260
+ lastName?: string | undefined;
4261
+ email?: string | undefined;
4262
+ phoneNumber?: string | undefined;
4263
+ hasBusinessProfiles?: boolean | undefined;
4264
+ hasAddresses?: boolean | undefined;
4265
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
4266
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
4267
+ page?: number | undefined;
4268
+ 'createdAt[before]'?: string | undefined;
4269
+ 'createdAt[strictly_before]'?: string | undefined;
4270
+ 'createdAt[after]'?: string | undefined;
4271
+ 'createdAt[strictly_after]'?: string | undefined;
4272
+ 'updatedAt[before]'?: string | undefined;
4273
+ 'updatedAt[strictly_before]'?: string | undefined;
4274
+ 'updatedAt[after]'?: string | undefined;
4275
+ 'updatedAt[strictly_after]'?: string | undefined;
4276
+ 'ordersPlaced[between]'?: number | undefined;
4277
+ 'ordersPlaced[gt]'?: number | undefined;
4278
+ 'ordersPlaced[gte]'?: number | undefined;
4279
+ 'ordersPlaced[lt]'?: number | undefined;
4280
+ 'ordersPlaced[lte]'?: number | undefined;
4281
+ 'totalSpent[between]'?: number | undefined;
4282
+ 'totalSpent[gt]'?: number | undefined;
4283
+ 'totalSpent[gte]'?: number | undefined;
4284
+ 'totalSpent[lt]'?: number | undefined;
4285
+ 'totalSpent[lte]'?: number | undefined;
4286
+ 'order[firstName]'?: "asc" | "desc" | undefined;
4287
+ 'order[lastName]'?: "asc" | "desc" | undefined;
4288
+ }, {
4289
+ firstName?: string | undefined;
4290
+ lastName?: string | undefined;
4291
+ email?: string | undefined;
4292
+ phoneNumber?: string | undefined;
4293
+ hasBusinessProfiles?: boolean | undefined;
4294
+ hasAddresses?: boolean | undefined;
4295
+ 'order[createdAt]'?: "asc" | "desc" | undefined;
4296
+ 'order[updatedAt]'?: "asc" | "desc" | undefined;
4297
+ page?: number | undefined;
4298
+ 'createdAt[before]'?: string | undefined;
4299
+ 'createdAt[strictly_before]'?: string | undefined;
4300
+ 'createdAt[after]'?: string | undefined;
4301
+ 'createdAt[strictly_after]'?: string | undefined;
4302
+ 'updatedAt[before]'?: string | undefined;
4303
+ 'updatedAt[strictly_before]'?: string | undefined;
4304
+ 'updatedAt[after]'?: string | undefined;
4305
+ 'updatedAt[strictly_after]'?: string | undefined;
4306
+ 'ordersPlaced[between]'?: number | undefined;
4307
+ 'ordersPlaced[gt]'?: number | undefined;
4308
+ 'ordersPlaced[gte]'?: number | undefined;
4309
+ 'ordersPlaced[lt]'?: number | undefined;
4310
+ 'ordersPlaced[lte]'?: number | undefined;
4311
+ 'totalSpent[between]'?: number | undefined;
4312
+ 'totalSpent[gt]'?: number | undefined;
4313
+ 'totalSpent[gte]'?: number | undefined;
4314
+ 'totalSpent[lt]'?: number | undefined;
4315
+ 'totalSpent[lte]'?: number | undefined;
4316
+ 'order[firstName]'?: "asc" | "desc" | undefined;
4317
+ 'order[lastName]'?: "asc" | "desc" | undefined;
4318
+ }>;
4319
+ readonly headersSchema: undefined;
4320
+ constructor(options?: {
4321
+ query?: GetCustomersQueryParams;
4322
+ });
4323
+ getPath(): string;
4324
+ parseResponse(data: unknown, rawResponse: AxiosResponse): Paginated<Customer>;
4325
+ }
4326
+
4327
+ declare const updateCustomerInputSchema: z.ZodObject<{
4328
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4329
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4330
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4331
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4332
+ }, "strip", z.ZodTypeAny, {
4333
+ firstName?: string | null | undefined;
4334
+ lastName?: string | null | undefined;
4335
+ email?: string | null | undefined;
4336
+ phoneNumber?: string | null | undefined;
4337
+ }, {
4338
+ firstName?: string | null | undefined;
4339
+ lastName?: string | null | undefined;
4340
+ email?: string | null | undefined;
4341
+ phoneNumber?: string | null | undefined;
4342
+ }>;
4343
+ type UpdateCustomerInput = z.infer<typeof updateCustomerInputSchema>;
4344
+ declare const updateCustomerResponseSchema: z.ZodObject<{
4345
+ id: z.ZodString;
4346
+ firstName: z.ZodNullable<z.ZodString>;
4347
+ lastName: z.ZodNullable<z.ZodString>;
4348
+ email: z.ZodNullable<z.ZodString>;
4349
+ phoneNumber: z.ZodNullable<z.ZodString>;
4350
+ hasBusinessProfiles: z.ZodBoolean;
4351
+ hasAddresses: z.ZodBoolean;
4352
+ ordersPlaced: z.ZodNumber;
4353
+ totalSpent: z.ZodNumber;
4354
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
4355
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
4356
+ } & {
4357
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4358
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4359
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
4360
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
4361
+ }, "strip", z.ZodTypeAny, {
4362
+ id: string;
4363
+ firstName: string | null;
4364
+ lastName: string | null;
4365
+ email: string | null;
4366
+ phoneNumber: string | null;
4367
+ hasBusinessProfiles: boolean;
4368
+ hasAddresses: boolean;
4369
+ ordersPlaced: number;
4370
+ totalSpent: number;
4371
+ createdAt: string;
4372
+ updatedAt: string;
4373
+ pointOfSale: string | null;
4374
+ owner: string | null;
4375
+ addresses: string[];
4376
+ businessProfiles: string[];
4377
+ }, {
4378
+ id: string;
4379
+ firstName: string | null;
4380
+ lastName: string | null;
4381
+ email: string | null;
4382
+ phoneNumber: string | null;
4383
+ hasBusinessProfiles: boolean;
4384
+ hasAddresses: boolean;
4385
+ ordersPlaced: number;
4386
+ totalSpent: number;
4387
+ createdAt: string;
4388
+ updatedAt: string;
4389
+ pointOfSale: string | null;
4390
+ owner: string | null;
4391
+ addresses: string[];
4392
+ businessProfiles: string[];
4393
+ }>;
4394
+ type UpdateCustomerResponse = CustomerDetails;
4395
+ declare class UpdateCustomer extends AbstractApiRequest<UpdateCustomerInput, UpdateCustomerResponse> {
4396
+ readonly method = "PATCH";
4397
+ readonly contentType = "application/merge-patch+json";
4398
+ readonly accept = "application/json";
4399
+ readonly inputSchema: z.ZodObject<{
4400
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4401
+ lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4402
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4403
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4404
+ }, "strip", z.ZodTypeAny, {
4405
+ firstName?: string | null | undefined;
4406
+ lastName?: string | null | undefined;
4407
+ email?: string | null | undefined;
4408
+ phoneNumber?: string | null | undefined;
4409
+ }, {
4410
+ firstName?: string | null | undefined;
4411
+ lastName?: string | null | undefined;
4412
+ email?: string | null | undefined;
4413
+ phoneNumber?: string | null | undefined;
4414
+ }>;
4415
+ readonly outputSchema: z.ZodObject<{
4416
+ id: z.ZodString;
4417
+ firstName: z.ZodNullable<z.ZodString>;
4418
+ lastName: z.ZodNullable<z.ZodString>;
4419
+ email: z.ZodNullable<z.ZodString>;
4420
+ phoneNumber: z.ZodNullable<z.ZodString>;
4421
+ hasBusinessProfiles: z.ZodBoolean;
4422
+ hasAddresses: z.ZodBoolean;
4423
+ ordersPlaced: z.ZodNumber;
4424
+ totalSpent: z.ZodNumber;
4425
+ createdAt: z.ZodEffects<z.ZodString, string, string>;
4426
+ updatedAt: z.ZodEffects<z.ZodString, string, string>;
4427
+ } & {
4428
+ pointOfSale: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4429
+ owner: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4430
+ addresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
4431
+ businessProfiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
4432
+ }, "strip", z.ZodTypeAny, {
4433
+ id: string;
4434
+ firstName: string | null;
4435
+ lastName: string | null;
4436
+ email: string | null;
4437
+ phoneNumber: string | null;
4438
+ hasBusinessProfiles: boolean;
4439
+ hasAddresses: boolean;
4440
+ ordersPlaced: number;
4441
+ totalSpent: number;
4442
+ createdAt: string;
4443
+ updatedAt: string;
4444
+ pointOfSale: string | null;
4445
+ owner: string | null;
4446
+ addresses: string[];
4447
+ businessProfiles: string[];
4448
+ }, {
4449
+ id: string;
4450
+ firstName: string | null;
4451
+ lastName: string | null;
4452
+ email: string | null;
4453
+ phoneNumber: string | null;
4454
+ hasBusinessProfiles: boolean;
4455
+ hasAddresses: boolean;
4456
+ ordersPlaced: number;
4457
+ totalSpent: number;
4458
+ createdAt: string;
4459
+ updatedAt: string;
4460
+ pointOfSale: string | null;
4461
+ owner: string | null;
4462
+ addresses: string[];
4463
+ businessProfiles: string[];
4464
+ }>;
4465
+ readonly querySchema: undefined;
4466
+ readonly headersSchema: undefined;
4467
+ private readonly customerId;
4468
+ constructor(customerId: string, input: UpdateCustomerInput);
4469
+ getPath(): string;
4470
+ }
4471
+
4472
+ declare const customerPathSchema: z.ZodEffects<z.ZodString, string, string>;
4473
+ type CustomerPath = z.infer<typeof customerPathSchema>;
4474
+ declare const customerNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4475
+ type CustomerNullablePath = z.infer<typeof customerNullablePathSchema>;
4476
+ declare const customerAddressPathSchema: z.ZodEffects<z.ZodString, string, string>;
4477
+ type CustomerAddressPath = z.infer<typeof customerAddressPathSchema>;
4478
+ declare const customerAddressNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4479
+ type CustomerAddressNullablePath = z.infer<typeof customerAddressNullablePathSchema>;
4480
+ declare const customerBusinessProfilePathSchema: z.ZodEffects<z.ZodString, string, string>;
4481
+ type CustomerBusinessProfilePath = z.infer<typeof customerBusinessProfilePathSchema>;
4482
+ declare const customerBusinessProfileNullablePathSchema: z.ZodEffects<z.ZodNullable<z.ZodString>, string | null, string | null>;
4483
+ type CustomerBusinessProfileNullablePath = z.infer<typeof customerBusinessProfileNullablePathSchema>;
4484
+
4485
+ export { CreateCustomer, CreateCustomerAddress, type CreateCustomerAddressInput, type CreateCustomerAddressResponse, CreateCustomerBusinessProfile, type CreateCustomerBusinessProfileInput, type CreateCustomerBusinessProfileResponse, type CreateCustomerInput, type CreateCustomerResponse, type Customer, type CustomerAddress, type CustomerAddressDetails, type CustomerAddressNullablePath, type CustomerAddressPath, type CustomerBusinessProfile, type CustomerBusinessProfileDetails, type CustomerBusinessProfileNullablePath, type CustomerBusinessProfilePath, type CustomerDetails, type CustomerNullablePath, type CustomerPath, DeleteCustomer, DeleteCustomerAddress, DeleteCustomerBusinessProfile, GetCustomerAddressDetails, type GetCustomerAddressDetailsResponse, GetCustomerAddresses, GetCustomerAddressesForCustomer, type GetCustomerAddressesForCustomerQueryParams, type GetCustomerAddressesForCustomerResponse, type GetCustomerAddressesQueryParams, type GetCustomerAddressesResponse, GetCustomerBusinessProfileDetails, type GetCustomerBusinessProfileDetailsResponse, GetCustomerBusinessProfiles, GetCustomerBusinessProfilesForCustomer, type GetCustomerBusinessProfilesForCustomerQueryParams, type GetCustomerBusinessProfilesForCustomerResponse, type GetCustomerBusinessProfilesQueryParams, type GetCustomerBusinessProfilesResponse, GetCustomerDetails, type GetCustomerDetailsResponse, GetCustomers, type GetCustomersQueryParams, type GetCustomersResponse, UpdateCustomer, UpdateCustomerAddress, type UpdateCustomerAddressInput, type UpdateCustomerAddressResponse, UpdateCustomerBusinessProfile, type UpdateCustomerBusinessProfileInput, type UpdateCustomerBusinessProfileResponse, type UpdateCustomerInput, type UpdateCustomerResponse, createCustomerAddressInputSchema, createCustomerAddressResponseSchema, createCustomerBusinessProfileInputSchema, createCustomerBusinessProfileResponseSchema, createCustomerInputSchema, createCustomerResponseSchema, customerAddressDetailsSchema, customerAddressNullablePathSchema, customerAddressPathSchema, customerAddressSchema, customerBusinessProfileDetailsSchema, customerBusinessProfileNullablePathSchema, customerBusinessProfilePathSchema, customerBusinessProfileSchema, customerDetailsSchema, customerNullablePathSchema, customerPathSchema, customerSchema, deleteCustomerAddressInputSchema, deleteCustomerAddressResponseSchema, deleteCustomerBusinessProfileInputSchema, deleteCustomerBusinessProfileResponseSchema, deleteCustomerInputSchema, deleteCustomerResponseSchema, getCustomerAddressDetailsInputSchema, getCustomerAddressDetailsResponseSchema, getCustomerAddressesForCustomerInputSchema, getCustomerAddressesForCustomerQuerySchema, getCustomerAddressesForCustomerResponseSchema, getCustomerAddressesInputSchema, getCustomerAddressesQuerySchema, getCustomerAddressesResponseSchema, getCustomerBusinessProfileDetailsInputSchema, getCustomerBusinessProfileDetailsResponseSchema, getCustomerBusinessProfilesForCustomerInputSchema, getCustomerBusinessProfilesForCustomerQuerySchema, getCustomerBusinessProfilesForCustomerResponseSchema, getCustomerBusinessProfilesInputSchema, getCustomerBusinessProfilesQuerySchema, getCustomerBusinessProfilesResponseSchema, getCustomerDetailsInputSchema, getCustomerDetailsResponseSchema, getCustomersInputSchema, getCustomersQuerySchema, getCustomersResponseSchema, updateCustomerAddressInputSchema, updateCustomerAddressResponseSchema, updateCustomerBusinessProfileInputSchema, updateCustomerBusinessProfileResponseSchema, updateCustomerInputSchema, updateCustomerResponseSchema, writableCreateCustomerAddressSchema, writableCreateCustomerBusinessProfileSchema, writableCreateCustomerSchema, writableCustomerAddressSchema, writableCustomerBusinessProfileSchema, writableCustomerSchema };