doboxa-js 1.0.1 → 1.0.3

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 (56) hide show
  1. package/README.md +79 -72
  2. package/dist/chunk-CGJD4ZO5.mjs +107 -0
  3. package/dist/chunk-CGJD4ZO5.mjs.map +1 -0
  4. package/dist/chunk-WGEOQ35B.mjs +3097 -0
  5. package/dist/chunk-WGEOQ35B.mjs.map +1 -0
  6. package/dist/client-BfIS6ja2.d.mts +2759 -0
  7. package/dist/client-BfIS6ja2.d.ts +2759 -0
  8. package/dist/client.d.mts +1 -0
  9. package/dist/client.d.ts +1 -0
  10. package/dist/client.js +2066 -0
  11. package/dist/client.js.map +1 -0
  12. package/dist/client.mjs +8 -0
  13. package/dist/client.mjs.map +1 -0
  14. package/dist/errors-CtijMwu-.d.mts +161 -0
  15. package/dist/errors-CtijMwu-.d.ts +161 -0
  16. package/dist/errors.d.mts +1 -0
  17. package/dist/errors.d.ts +1 -0
  18. package/dist/errors.js +91 -0
  19. package/dist/errors.js.map +1 -0
  20. package/dist/errors.mjs +15 -0
  21. package/dist/errors.mjs.map +1 -0
  22. package/dist/index.d.mts +153 -0
  23. package/dist/index.d.ts +153 -0
  24. package/dist/index.js +3744 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/index.mjs +719 -0
  27. package/dist/index.mjs.map +1 -0
  28. package/dist/models.d.mts +2 -0
  29. package/dist/models.d.ts +2 -0
  30. package/dist/models.js +1 -0
  31. package/dist/models.js.map +1 -0
  32. package/dist/models.mjs +1 -0
  33. package/dist/models.mjs.map +1 -0
  34. package/package.json +8 -1
  35. package/api-doc.yaml +0 -2013
  36. package/openapi-generator-config.yaml +0 -15
  37. package/openapitools.json +0 -7
  38. package/src/client.ts +0 -99
  39. package/src/errors.ts +0 -90
  40. package/src/http/client.ts +0 -156
  41. package/src/index.ts +0 -31
  42. package/src/models.ts +0 -0
  43. package/src/resources/authentication.ts +0 -73
  44. package/src/resources/clients.ts +0 -32
  45. package/src/resources/discountCodes.ts +0 -32
  46. package/src/resources/invoices.ts +0 -46
  47. package/src/resources/orderComments.ts +0 -38
  48. package/src/resources/orderStatusChanges.ts +0 -38
  49. package/src/resources/orders.ts +0 -123
  50. package/src/resources/trackingNumbers.ts +0 -38
  51. package/src/resources/users.ts +0 -28
  52. package/src/types/index.ts +0 -59
  53. package/src/utils/config.ts +0 -10
  54. package/src/utils/tokenManager.ts +0 -68
  55. package/tsconfig.json +0 -12
  56. package/tsup.config.ts +0 -30
@@ -0,0 +1,2759 @@
1
+ /**
2
+ * Token manager for handling access tokens and refresh tokens
3
+ */
4
+ declare class TokenManager {
5
+ private accessToken;
6
+ private refreshToken;
7
+ private tokenExpiry;
8
+ private refreshPromise;
9
+ /**
10
+ * Set tokens and calculate expiry
11
+ */
12
+ setTokens(accessToken: string, refreshToken: string, expiresIn?: number): void;
13
+ /**
14
+ * Get current access token
15
+ */
16
+ getAccessToken(): string | null;
17
+ /**
18
+ * Get refresh token
19
+ */
20
+ getRefreshToken(): string | null;
21
+ /**
22
+ * Check if token is expired or will expire soon
23
+ */
24
+ isTokenExpired(): boolean;
25
+ /**
26
+ * Clear all tokens
27
+ */
28
+ clearTokens(): void;
29
+ /**
30
+ * Set refresh promise to prevent concurrent refresh requests
31
+ */
32
+ setRefreshPromise(promise: Promise<string> | null): void;
33
+ /**
34
+ * Get current refresh promise
35
+ */
36
+ getRefreshPromise(): Promise<string> | null;
37
+ }
38
+
39
+ interface HTTPClientConfig {
40
+ baseURL?: string;
41
+ tokenManager: TokenManager;
42
+ onTokenRefresh?: (token: string) => Promise<string>;
43
+ }
44
+ /**
45
+ * HTTP client wrapper around fetch with Bearer token injection and error handling
46
+ */
47
+ declare class HTTPClient {
48
+ private baseURL;
49
+ private tokenManager;
50
+ private onTokenRefresh?;
51
+ constructor(config: HTTPClientConfig);
52
+ /**
53
+ * Make an HTTP request
54
+ */
55
+ request<T>(path: string, options?: RequestInit): Promise<T>;
56
+ /**
57
+ * GET request
58
+ */
59
+ get<T>(path: string, options?: RequestInit): Promise<T>;
60
+ /**
61
+ * POST request
62
+ */
63
+ post<T>(path: string, body?: unknown, options?: RequestInit): Promise<T>;
64
+ /**
65
+ * PUT request
66
+ */
67
+ put<T>(path: string, body?: unknown, options?: RequestInit): Promise<T>;
68
+ /**
69
+ * DELETE request
70
+ */
71
+ delete<T>(path: string, options?: RequestInit): Promise<T>;
72
+ /**
73
+ * PATCH request
74
+ */
75
+ patch<T>(path: string, body?: unknown, options?: RequestInit): Promise<T>;
76
+ }
77
+
78
+ /**
79
+ * Boolean type alias
80
+ */
81
+ type Bool = boolean;
82
+ declare function BoolFromJSON(json: any): Bool;
83
+ declare function BoolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Bool;
84
+ declare function BoolToJSON(value?: Bool | null): any;
85
+ declare function BoolToJSONTyped(value?: Bool | null, ignoreDiscriminator?: boolean): any;
86
+
87
+ /**
88
+ * API V2
89
+ * API V2
90
+ *
91
+ * The version of the OpenAPI document: 1.0-alpha
92
+ *
93
+ *
94
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
95
+ * https://openapi-generator.tech
96
+ * Do not edit the class manually.
97
+ */
98
+ /**
99
+ *
100
+ * @export
101
+ * @interface ApiV2AuthenticationRefreshTokenPost200Response
102
+ */
103
+ interface ApiV2AuthenticationRefreshTokenPost200Response {
104
+ /**
105
+ *
106
+ * @type {string}
107
+ * @memberof ApiV2AuthenticationRefreshTokenPost200Response
108
+ */
109
+ token?: string;
110
+ /**
111
+ *
112
+ * @type {string}
113
+ * @memberof ApiV2AuthenticationRefreshTokenPost200Response
114
+ */
115
+ refresh_token?: string;
116
+ }
117
+ /**
118
+ * Check if a given object implements the ApiV2AuthenticationRefreshTokenPost200Response interface.
119
+ */
120
+ declare function instanceOfApiV2AuthenticationRefreshTokenPost200Response(value: object): value is ApiV2AuthenticationRefreshTokenPost200Response;
121
+ declare function ApiV2AuthenticationRefreshTokenPost200ResponseFromJSON(json: any): ApiV2AuthenticationRefreshTokenPost200Response;
122
+ declare function ApiV2AuthenticationRefreshTokenPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationRefreshTokenPost200Response;
123
+ declare function ApiV2AuthenticationRefreshTokenPost200ResponseToJSON(json: any): ApiV2AuthenticationRefreshTokenPost200Response;
124
+ declare function ApiV2AuthenticationRefreshTokenPost200ResponseToJSONTyped(value?: ApiV2AuthenticationRefreshTokenPost200Response | null, ignoreDiscriminator?: boolean): any;
125
+
126
+ /**
127
+ * API V2
128
+ * API V2
129
+ *
130
+ * The version of the OpenAPI document: 1.0-alpha
131
+ *
132
+ *
133
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
134
+ * https://openapi-generator.tech
135
+ * Do not edit the class manually.
136
+ */
137
+ /**
138
+ *
139
+ * @export
140
+ * @interface ApiV2AuthenticationTokenPost200Response
141
+ */
142
+ interface ApiV2AuthenticationTokenPost200Response {
143
+ /**
144
+ * JWT token, valid for 3600 seconds (1 hour)
145
+ * @type {string}
146
+ * @memberof ApiV2AuthenticationTokenPost200Response
147
+ */
148
+ token?: string;
149
+ /**
150
+ * Refresh token, valid for 2592000 seconds (30 days)
151
+ * @type {string}
152
+ * @memberof ApiV2AuthenticationTokenPost200Response
153
+ */
154
+ refresh_token?: string;
155
+ }
156
+ /**
157
+ * Check if a given object implements the ApiV2AuthenticationTokenPost200Response interface.
158
+ */
159
+ declare function instanceOfApiV2AuthenticationTokenPost200Response(value: object): value is ApiV2AuthenticationTokenPost200Response;
160
+ declare function ApiV2AuthenticationTokenPost200ResponseFromJSON(json: any): ApiV2AuthenticationTokenPost200Response;
161
+ declare function ApiV2AuthenticationTokenPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV2AuthenticationTokenPost200Response;
162
+ declare function ApiV2AuthenticationTokenPost200ResponseToJSON(json: any): ApiV2AuthenticationTokenPost200Response;
163
+ declare function ApiV2AuthenticationTokenPost200ResponseToJSONTyped(value?: ApiV2AuthenticationTokenPost200Response | null, ignoreDiscriminator?: boolean): any;
164
+
165
+ /**
166
+ * API V2
167
+ * API V2
168
+ *
169
+ * The version of the OpenAPI document: 1.0-alpha
170
+ *
171
+ *
172
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
173
+ * https://openapi-generator.tech
174
+ * Do not edit the class manually.
175
+ */
176
+ /**
177
+ *
178
+ * @export
179
+ * @interface Attachment
180
+ */
181
+ interface Attachment {
182
+ /**
183
+ * Attachment type
184
+ * @type {string}
185
+ * @memberof Attachment
186
+ */
187
+ type: string;
188
+ /**
189
+ * Path to a printable file (or file name)
190
+ * @type {string}
191
+ * @memberof Attachment
192
+ */
193
+ file_path: string;
194
+ /**
195
+ * Order articles (foreign_id) related to this waybill
196
+ * @type {Array<string>}
197
+ * @memberof Attachment
198
+ */
199
+ articles?: Array<string> | null;
200
+ }
201
+ /**
202
+ * Check if a given object implements the Attachment interface.
203
+ */
204
+ declare function instanceOfAttachment(value: object): value is Attachment;
205
+ declare function AttachmentFromJSON(json: any): Attachment;
206
+ declare function AttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Attachment;
207
+ declare function AttachmentToJSON(json: any): Attachment;
208
+ declare function AttachmentToJSONTyped(value?: Attachment | null, ignoreDiscriminator?: boolean): any;
209
+
210
+ /**
211
+ * API V2
212
+ * API V2
213
+ *
214
+ * The version of the OpenAPI document: 1.0-alpha
215
+ *
216
+ *
217
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
218
+ * https://openapi-generator.tech
219
+ * Do not edit the class manually.
220
+ */
221
+ /**
222
+ *
223
+ * @export
224
+ * @interface BillingAddress
225
+ */
226
+ interface BillingAddress {
227
+ /**
228
+ * Customer's first name
229
+ * @type {string}
230
+ * @memberof BillingAddress
231
+ */
232
+ first_name: string;
233
+ /**
234
+ * Customer's last name
235
+ * @type {string}
236
+ * @memberof BillingAddress
237
+ */
238
+ last_name: string;
239
+ /**
240
+ * Additional/company name (for delivery)
241
+ * @type {string}
242
+ * @memberof BillingAddress
243
+ */
244
+ company_name?: string | null;
245
+ /**
246
+ * Customer's phone number
247
+ * @type {string}
248
+ * @memberof BillingAddress
249
+ */
250
+ phone_number?: string;
251
+ /**
252
+ * Customer's e-mail address
253
+ * @type {string}
254
+ * @memberof BillingAddress
255
+ */
256
+ email?: string;
257
+ /**
258
+ * Delivery address
259
+ * @type {string}
260
+ * @memberof BillingAddress
261
+ */
262
+ address1: string;
263
+ /**
264
+ * Optional additional address line
265
+ * @type {string}
266
+ * @memberof BillingAddress
267
+ */
268
+ address2?: string | null;
269
+ /**
270
+ * City
271
+ * @type {string}
272
+ * @memberof BillingAddress
273
+ */
274
+ city: string;
275
+ /**
276
+ * Optional region name (required for delivery to some countries)
277
+ * @type {string}
278
+ * @memberof BillingAddress
279
+ */
280
+ region?: string | null;
281
+ /**
282
+ * Postal code
283
+ * @type {string}
284
+ * @memberof BillingAddress
285
+ */
286
+ post_code: string;
287
+ /**
288
+ * Country code - ISO 3166 alpha 2
289
+ * @type {string}
290
+ * @memberof BillingAddress
291
+ */
292
+ country_iso: string;
293
+ /**
294
+ * Tax identification number
295
+ * @type {string}
296
+ * @memberof BillingAddress
297
+ */
298
+ tax_id?: string | null;
299
+ }
300
+ /**
301
+ * Check if a given object implements the BillingAddress interface.
302
+ */
303
+ declare function instanceOfBillingAddress(value: object): value is BillingAddress;
304
+ declare function BillingAddressFromJSON(json: any): BillingAddress;
305
+ declare function BillingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAddress;
306
+ declare function BillingAddressToJSON(json: any): BillingAddress;
307
+ declare function BillingAddressToJSONTyped(value?: BillingAddress | null, ignoreDiscriminator?: boolean): any;
308
+
309
+ /**
310
+ * API V2
311
+ * API V2
312
+ *
313
+ * The version of the OpenAPI document: 1.0-alpha
314
+ *
315
+ *
316
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
317
+ * https://openapi-generator.tech
318
+ * Do not edit the class manually.
319
+ */
320
+ /**
321
+ *
322
+ * @export
323
+ * @interface Client
324
+ */
325
+ interface Client {
326
+ /**
327
+ * Client email
328
+ * @type {string}
329
+ * @memberof Client
330
+ */
331
+ email?: string;
332
+ /**
333
+ * Client token
334
+ * @type {string}
335
+ * @memberof Client
336
+ */
337
+ token?: string;
338
+ }
339
+ /**
340
+ * Check if a given object implements the Client interface.
341
+ */
342
+ declare function instanceOfClient(value: object): value is Client;
343
+ declare function ClientFromJSON(json: any): Client;
344
+ declare function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Client;
345
+ declare function ClientToJSON(json: any): Client;
346
+ declare function ClientToJSONTyped(value?: Client | null, ignoreDiscriminator?: boolean): any;
347
+
348
+ /**
349
+ * API V2
350
+ * API V2
351
+ *
352
+ * The version of the OpenAPI document: 1.0-alpha
353
+ *
354
+ *
355
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
356
+ * https://openapi-generator.tech
357
+ * Do not edit the class manually.
358
+ */
359
+ /**
360
+ *
361
+ * @export
362
+ * @interface CreateOrderComment
363
+ */
364
+ interface CreateOrderComment {
365
+ /**
366
+ * Author type
367
+ * @type {string}
368
+ * @memberof CreateOrderComment
369
+ */
370
+ author_type: CreateOrderCommentAuthorTypeEnum;
371
+ /**
372
+ * Author type
373
+ * @type {string}
374
+ * @memberof CreateOrderComment
375
+ */
376
+ author_email: string;
377
+ /**
378
+ * Comment content
379
+ * @type {string}
380
+ * @memberof CreateOrderComment
381
+ */
382
+ content: string;
383
+ /**
384
+ * Comment creation time
385
+ * @type {Date}
386
+ * @memberof CreateOrderComment
387
+ */
388
+ created_at: Date;
389
+ }
390
+ /**
391
+ * @export
392
+ * @enum {string}
393
+ */
394
+ declare enum CreateOrderCommentAuthorTypeEnum {
395
+ client = "client",
396
+ support = "support"
397
+ }
398
+ /**
399
+ * Check if a given object implements the CreateOrderComment interface.
400
+ */
401
+ declare function instanceOfCreateOrderComment(value: object): value is CreateOrderComment;
402
+ declare function CreateOrderCommentFromJSON(json: any): CreateOrderComment;
403
+ declare function CreateOrderCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderComment;
404
+ declare function CreateOrderCommentToJSON(json: any): CreateOrderComment;
405
+ declare function CreateOrderCommentToJSONTyped(value?: CreateOrderComment | null, ignoreDiscriminator?: boolean): any;
406
+
407
+ /**
408
+ * API V2
409
+ * API V2
410
+ *
411
+ * The version of the OpenAPI document: 1.0-alpha
412
+ *
413
+ *
414
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
415
+ * https://openapi-generator.tech
416
+ * Do not edit the class manually.
417
+ */
418
+ /**
419
+ *
420
+ * @export
421
+ * @interface DeliveryAddress
422
+ */
423
+ interface DeliveryAddress {
424
+ /**
425
+ * Customer's first name
426
+ * @type {string}
427
+ * @memberof DeliveryAddress
428
+ */
429
+ first_name: string;
430
+ /**
431
+ * Customer's last name
432
+ * @type {string}
433
+ * @memberof DeliveryAddress
434
+ */
435
+ last_name: string;
436
+ /**
437
+ * Additional/company name (for delivery)
438
+ * @type {string}
439
+ * @memberof DeliveryAddress
440
+ */
441
+ company_name?: string | null;
442
+ /**
443
+ * Customer's phone number
444
+ * @type {string}
445
+ * @memberof DeliveryAddress
446
+ */
447
+ phone_number: string;
448
+ /**
449
+ * Customer's e-mail address
450
+ * @type {string}
451
+ * @memberof DeliveryAddress
452
+ */
453
+ email: string;
454
+ /**
455
+ * Delivery address
456
+ * @type {string}
457
+ * @memberof DeliveryAddress
458
+ */
459
+ address1: string;
460
+ /**
461
+ * Optional additional address line
462
+ * @type {string}
463
+ * @memberof DeliveryAddress
464
+ */
465
+ address2?: string | null;
466
+ /**
467
+ * City
468
+ * @type {string}
469
+ * @memberof DeliveryAddress
470
+ */
471
+ city: string;
472
+ /**
473
+ *
474
+ * @type {string}
475
+ * @memberof DeliveryAddress
476
+ */
477
+ region?: string | null;
478
+ /**
479
+ * Postal code
480
+ * @type {string}
481
+ * @memberof DeliveryAddress
482
+ */
483
+ post_code: string;
484
+ /**
485
+ * Country code - ISO 3166 alpha 2
486
+ * @type {string}
487
+ * @memberof DeliveryAddress
488
+ */
489
+ country_iso: string;
490
+ /**
491
+ * Delivery point (e.g. paczkomat) id
492
+ * @type {string}
493
+ * @memberof DeliveryAddress
494
+ */
495
+ delivery_point_id?: string | null;
496
+ /**
497
+ * Allegro account id for processing smart orders
498
+ * @type {string}
499
+ * @memberof DeliveryAddress
500
+ */
501
+ allegro_smart_account_id?: string | null;
502
+ }
503
+ /**
504
+ * Check if a given object implements the DeliveryAddress interface.
505
+ */
506
+ declare function instanceOfDeliveryAddress(value: object): value is DeliveryAddress;
507
+ declare function DeliveryAddressFromJSON(json: any): DeliveryAddress;
508
+ declare function DeliveryAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeliveryAddress;
509
+ declare function DeliveryAddressToJSON(json: any): DeliveryAddress;
510
+ declare function DeliveryAddressToJSONTyped(value?: DeliveryAddress | null, ignoreDiscriminator?: boolean): any;
511
+
512
+ /**
513
+ * API V2
514
+ * API V2
515
+ *
516
+ * The version of the OpenAPI document: 1.0-alpha
517
+ *
518
+ *
519
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
520
+ * https://openapi-generator.tech
521
+ * Do not edit the class manually.
522
+ */
523
+ /**
524
+ *
525
+ * @export
526
+ * @interface GetApiV2DiscountCodesExternal200ResponseItemsInner
527
+ */
528
+ interface GetApiV2DiscountCodesExternal200ResponseItemsInner {
529
+ /**
530
+ * Discount code
531
+ * @type {string}
532
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
533
+ */
534
+ code?: string;
535
+ /**
536
+ * Discount type
537
+ * @type {string}
538
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
539
+ */
540
+ type?: string;
541
+ /**
542
+ * Client associated with the discount
543
+ * @type {string}
544
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
545
+ */
546
+ client_email?: string;
547
+ /**
548
+ * Domain associated with the discount
549
+ * @type {string}
550
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
551
+ */
552
+ domain?: string;
553
+ /**
554
+ * Discount currency
555
+ * @type {string}
556
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
557
+ */
558
+ currency?: string | null;
559
+ /**
560
+ * Discount amount
561
+ * @type {string}
562
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
563
+ */
564
+ action?: string;
565
+ /**
566
+ * Discount expiration time
567
+ * @type {string}
568
+ * @memberof GetApiV2DiscountCodesExternal200ResponseItemsInner
569
+ */
570
+ valid_until?: string | null;
571
+ }
572
+ /**
573
+ * Check if a given object implements the GetApiV2DiscountCodesExternal200ResponseItemsInner interface.
574
+ */
575
+ declare function instanceOfGetApiV2DiscountCodesExternal200ResponseItemsInner(value: object): value is GetApiV2DiscountCodesExternal200ResponseItemsInner;
576
+ declare function GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSON(json: any): GetApiV2DiscountCodesExternal200ResponseItemsInner;
577
+ declare function GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApiV2DiscountCodesExternal200ResponseItemsInner;
578
+ declare function GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSON(json: any): GetApiV2DiscountCodesExternal200ResponseItemsInner;
579
+ declare function GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSONTyped(value?: GetApiV2DiscountCodesExternal200ResponseItemsInner | null, ignoreDiscriminator?: boolean): any;
580
+
581
+ /**
582
+ * API V2
583
+ * API V2
584
+ *
585
+ * The version of the OpenAPI document: 1.0-alpha
586
+ *
587
+ *
588
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
589
+ * https://openapi-generator.tech
590
+ * Do not edit the class manually.
591
+ */
592
+
593
+ /**
594
+ *
595
+ * @export
596
+ * @interface GetApiV2DiscountCodesExternal200Response
597
+ */
598
+ interface GetApiV2DiscountCodesExternal200Response {
599
+ /**
600
+ *
601
+ * @type {Array<GetApiV2DiscountCodesExternal200ResponseItemsInner>}
602
+ * @memberof GetApiV2DiscountCodesExternal200Response
603
+ */
604
+ items?: Array<GetApiV2DiscountCodesExternal200ResponseItemsInner>;
605
+ /**
606
+ * Link to the next page of results
607
+ * @type {string}
608
+ * @memberof GetApiV2DiscountCodesExternal200Response
609
+ */
610
+ next_page?: string | null;
611
+ }
612
+ /**
613
+ * Check if a given object implements the GetApiV2DiscountCodesExternal200Response interface.
614
+ */
615
+ declare function instanceOfGetApiV2DiscountCodesExternal200Response(value: object): value is GetApiV2DiscountCodesExternal200Response;
616
+ declare function GetApiV2DiscountCodesExternal200ResponseFromJSON(json: any): GetApiV2DiscountCodesExternal200Response;
617
+ declare function GetApiV2DiscountCodesExternal200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApiV2DiscountCodesExternal200Response;
618
+ declare function GetApiV2DiscountCodesExternal200ResponseToJSON(json: any): GetApiV2DiscountCodesExternal200Response;
619
+ declare function GetApiV2DiscountCodesExternal200ResponseToJSONTyped(value?: GetApiV2DiscountCodesExternal200Response | null, ignoreDiscriminator?: boolean): any;
620
+
621
+ /**
622
+ * API V2
623
+ * API V2
624
+ *
625
+ * The version of the OpenAPI document: 1.0-alpha
626
+ *
627
+ *
628
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
629
+ * https://openapi-generator.tech
630
+ * Do not edit the class manually.
631
+ */
632
+ /**
633
+ *
634
+ * @export
635
+ * @interface InvoiceItem
636
+ */
637
+ interface InvoiceItem {
638
+ /**
639
+ * Doboxa item id. Can be null if invoice item cannot be mapped to order item.
640
+ * @type {string}
641
+ * @memberof InvoiceItem
642
+ */
643
+ doboxa_item_id?: string | null;
644
+ /**
645
+ * Order.items.foreign_id provided while creating order. Can be null if invoice item cannot be mapped to order item.
646
+ * @type {string}
647
+ * @memberof InvoiceItem
648
+ */
649
+ foreign_item_id?: string | null;
650
+ /**
651
+ * Item name
652
+ * @type {string}
653
+ * @memberof InvoiceItem
654
+ */
655
+ name?: string;
656
+ /**
657
+ * Quantity
658
+ * @type {string}
659
+ * @memberof InvoiceItem
660
+ */
661
+ qty?: string;
662
+ /**
663
+ * Unit type
664
+ * @type {string}
665
+ * @memberof InvoiceItem
666
+ */
667
+ unit?: string;
668
+ /**
669
+ * Unit net price
670
+ * @type {string}
671
+ * @memberof InvoiceItem
672
+ */
673
+ net_unit_price?: string;
674
+ /**
675
+ * Net position value
676
+ * @type {string}
677
+ * @memberof InvoiceItem
678
+ */
679
+ net_value?: string;
680
+ /**
681
+ * Tax amount
682
+ * @type {string}
683
+ * @memberof InvoiceItem
684
+ */
685
+ vat_value?: string;
686
+ /**
687
+ * Tax rate
688
+ * @type {string}
689
+ * @memberof InvoiceItem
690
+ */
691
+ vat_rate?: string;
692
+ /**
693
+ * Currency
694
+ * @type {string}
695
+ * @memberof InvoiceItem
696
+ */
697
+ currency?: string;
698
+ }
699
+ /**
700
+ * Check if a given object implements the InvoiceItem interface.
701
+ */
702
+ declare function instanceOfInvoiceItem(value: object): value is InvoiceItem;
703
+ declare function InvoiceItemFromJSON(json: any): InvoiceItem;
704
+ declare function InvoiceItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItem;
705
+ declare function InvoiceItemToJSON(json: any): InvoiceItem;
706
+ declare function InvoiceItemToJSONTyped(value?: InvoiceItem | null, ignoreDiscriminator?: boolean): any;
707
+
708
+ /**
709
+ * API V2
710
+ * API V2
711
+ *
712
+ * The version of the OpenAPI document: 1.0-alpha
713
+ *
714
+ *
715
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
716
+ * https://openapi-generator.tech
717
+ * Do not edit the class manually.
718
+ */
719
+ /**
720
+ *
721
+ * @export
722
+ * @interface InvoiceOrderItem
723
+ */
724
+ interface InvoiceOrderItem {
725
+ /**
726
+ * Order item id
727
+ * @type {string}
728
+ * @memberof InvoiceOrderItem
729
+ */
730
+ doboxa_item_id?: string | null;
731
+ /**
732
+ * Order item external id
733
+ * @type {string}
734
+ * @memberof InvoiceOrderItem
735
+ */
736
+ foreign_item_id?: string | null;
737
+ }
738
+ /**
739
+ * Check if a given object implements the InvoiceOrderItem interface.
740
+ */
741
+ declare function instanceOfInvoiceOrderItem(value: object): value is InvoiceOrderItem;
742
+ declare function InvoiceOrderItemFromJSON(json: any): InvoiceOrderItem;
743
+ declare function InvoiceOrderItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceOrderItem;
744
+ declare function InvoiceOrderItemToJSON(json: any): InvoiceOrderItem;
745
+ declare function InvoiceOrderItemToJSONTyped(value?: InvoiceOrderItem | null, ignoreDiscriminator?: boolean): any;
746
+
747
+ /**
748
+ * API V2
749
+ * API V2
750
+ *
751
+ * The version of the OpenAPI document: 1.0-alpha
752
+ *
753
+ *
754
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
755
+ * https://openapi-generator.tech
756
+ * Do not edit the class manually.
757
+ */
758
+
759
+ /**
760
+ *
761
+ * @export
762
+ * @interface InvoiceOrder
763
+ */
764
+ interface InvoiceOrder {
765
+ /**
766
+ * Order id
767
+ * @type {string}
768
+ * @memberof InvoiceOrder
769
+ */
770
+ doboxa_order_id?: string | null;
771
+ /**
772
+ * Order external id
773
+ * @type {string}
774
+ * @memberof InvoiceOrder
775
+ */
776
+ external_order_id?: string | null;
777
+ /**
778
+ *
779
+ * @type {Array<InvoiceOrderItem>}
780
+ * @memberof InvoiceOrder
781
+ */
782
+ items?: Array<InvoiceOrderItem>;
783
+ }
784
+ /**
785
+ * Check if a given object implements the InvoiceOrder interface.
786
+ */
787
+ declare function instanceOfInvoiceOrder(value: object): value is InvoiceOrder;
788
+ declare function InvoiceOrderFromJSON(json: any): InvoiceOrder;
789
+ declare function InvoiceOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceOrder;
790
+ declare function InvoiceOrderToJSON(json: any): InvoiceOrder;
791
+ declare function InvoiceOrderToJSONTyped(value?: InvoiceOrder | null, ignoreDiscriminator?: boolean): any;
792
+
793
+ /**
794
+ * API V2
795
+ * API V2
796
+ *
797
+ * The version of the OpenAPI document: 1.0-alpha
798
+ *
799
+ *
800
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
801
+ * https://openapi-generator.tech
802
+ * Do not edit the class manually.
803
+ */
804
+
805
+ /**
806
+ *
807
+ * @export
808
+ * @interface Invoice
809
+ */
810
+ interface Invoice {
811
+ /**
812
+ * Invoice id
813
+ * @type {string}
814
+ * @memberof Invoice
815
+ */
816
+ id?: string;
817
+ /**
818
+ * Client owning the Invoice
819
+ * @type {string}
820
+ * @memberof Invoice
821
+ */
822
+ client?: string;
823
+ /**
824
+ * Direct link to Invoice PDF file
825
+ * @type {string}
826
+ * @memberof Invoice
827
+ */
828
+ file?: string;
829
+ /**
830
+ * Invoice payment status
831
+ * @type {string}
832
+ * @memberof Invoice
833
+ */
834
+ state?: InvoiceStateEnum;
835
+ /**
836
+ * Invoice number
837
+ * @type {string}
838
+ * @memberof Invoice
839
+ */
840
+ document_number?: string;
841
+ /**
842
+ * Amount to pay
843
+ * @type {number}
844
+ * @memberof Invoice
845
+ */
846
+ document_amount?: number;
847
+ /**
848
+ * Net amount
849
+ * @type {number}
850
+ * @memberof Invoice
851
+ */
852
+ net_amount?: number;
853
+ /**
854
+ * Tax amount
855
+ * @type {number}
856
+ * @memberof Invoice
857
+ */
858
+ tax_amount?: number;
859
+ /**
860
+ * Tax rate
861
+ * @type {string}
862
+ * @memberof Invoice
863
+ */
864
+ tax_rate?: string | null;
865
+ /**
866
+ * Amount already paid
867
+ * @type {number}
868
+ * @memberof Invoice
869
+ */
870
+ paid_amount?: number;
871
+ /**
872
+ * Currency
873
+ * @type {string}
874
+ * @memberof Invoice
875
+ */
876
+ currency?: string;
877
+ /**
878
+ * Date of issue
879
+ * @type {Date}
880
+ * @memberof Invoice
881
+ */
882
+ date_of_issue?: Date;
883
+ /**
884
+ * Due date
885
+ * @type {Date}
886
+ * @memberof Invoice
887
+ */
888
+ due_date?: Date;
889
+ /**
890
+ * Document type
891
+ * @type {string}
892
+ * @memberof Invoice
893
+ */
894
+ document_type?: InvoiceDocumentTypeEnum;
895
+ /**
896
+ *
897
+ * @type {Array<InvoiceOrder>}
898
+ * @memberof Invoice
899
+ */
900
+ orders?: Array<InvoiceOrder>;
901
+ /**
902
+ *
903
+ * @type {Array<InvoiceItem>}
904
+ * @memberof Invoice
905
+ */
906
+ invoice_items?: Array<InvoiceItem>;
907
+ }
908
+ /**
909
+ * @export
910
+ * @enum {string}
911
+ */
912
+ declare enum InvoiceStateEnum {
913
+ PAID = "PAID",
914
+ UNPAID = "UNPAID"
915
+ }
916
+ /**
917
+ * @export
918
+ * @enum {string}
919
+ */
920
+ declare enum InvoiceDocumentTypeEnum {
921
+ main = "main"
922
+ }
923
+ /**
924
+ * Check if a given object implements the Invoice interface.
925
+ */
926
+ declare function instanceOfInvoice(value: object): value is Invoice;
927
+ declare function InvoiceFromJSON(json: any): Invoice;
928
+ declare function InvoiceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Invoice;
929
+ declare function InvoiceToJSON(json: any): Invoice;
930
+ declare function InvoiceToJSONTyped(value?: Invoice | null, ignoreDiscriminator?: boolean): any;
931
+
932
+ /**
933
+ * API V2
934
+ * API V2
935
+ *
936
+ * The version of the OpenAPI document: 1.0-alpha
937
+ *
938
+ *
939
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
940
+ * https://openapi-generator.tech
941
+ * Do not edit the class manually.
942
+ */
943
+ /**
944
+ *
945
+ * @export
946
+ * @interface Me
947
+ */
948
+ interface Me {
949
+ /**
950
+ *
951
+ * @type {string}
952
+ * @memberof Me
953
+ */
954
+ username?: string;
955
+ }
956
+ /**
957
+ * Check if a given object implements the Me interface.
958
+ */
959
+ declare function instanceOfMe(value: object): value is Me;
960
+ declare function MeFromJSON(json: any): Me;
961
+ declare function MeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Me;
962
+ declare function MeToJSON(json: any): Me;
963
+ declare function MeToJSONTyped(value?: Me | null, ignoreDiscriminator?: boolean): any;
964
+
965
+ /**
966
+ * API V2
967
+ * API V2
968
+ *
969
+ * The version of the OpenAPI document: 1.0-alpha
970
+ *
971
+ *
972
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
973
+ * https://openapi-generator.tech
974
+ * Do not edit the class manually.
975
+ */
976
+ /**
977
+ *
978
+ * @export
979
+ * @interface OrderItemCropData
980
+ */
981
+ interface OrderItemCropData {
982
+ /**
983
+ *
984
+ * @type {string}
985
+ * @memberof OrderItemCropData
986
+ */
987
+ left?: string | null;
988
+ /**
989
+ *
990
+ * @type {string}
991
+ * @memberof OrderItemCropData
992
+ */
993
+ top?: string | null;
994
+ /**
995
+ *
996
+ * @type {string}
997
+ * @memberof OrderItemCropData
998
+ */
999
+ width?: string | null;
1000
+ /**
1001
+ *
1002
+ * @type {string}
1003
+ * @memberof OrderItemCropData
1004
+ */
1005
+ height?: string | null;
1006
+ /**
1007
+ *
1008
+ * @type {string}
1009
+ * @memberof OrderItemCropData
1010
+ */
1011
+ original_photo_width?: string | null;
1012
+ /**
1013
+ *
1014
+ * @type {string}
1015
+ * @memberof OrderItemCropData
1016
+ */
1017
+ original_photo_height?: string | null;
1018
+ /**
1019
+ * Filter - none, blackwhite, sepia
1020
+ * @type {string}
1021
+ * @memberof OrderItemCropData
1022
+ */
1023
+ filter?: OrderItemCropDataFilterEnum | null;
1024
+ /**
1025
+ * Reflection - none, vertical, horizontal, both
1026
+ * @type {string}
1027
+ * @memberof OrderItemCropData
1028
+ */
1029
+ reflection?: OrderItemCropDataReflectionEnum | null;
1030
+ /**
1031
+ * Number of degrees to rotate the image clockwise
1032
+ * @type {number}
1033
+ * @memberof OrderItemCropData
1034
+ */
1035
+ rotation?: number | null;
1036
+ /**
1037
+ * Resize the original image by
1038
+ * @type {string}
1039
+ * @memberof OrderItemCropData
1040
+ */
1041
+ scale?: string | null;
1042
+ }
1043
+ /**
1044
+ * @export
1045
+ * @enum {string}
1046
+ */
1047
+ declare enum OrderItemCropDataFilterEnum {
1048
+ none = "none",
1049
+ blackwhite = "blackwhite",
1050
+ sepia = "sepia"
1051
+ }
1052
+ /**
1053
+ * @export
1054
+ * @enum {string}
1055
+ */
1056
+ declare enum OrderItemCropDataReflectionEnum {
1057
+ none = "none",
1058
+ vertical = "vertical",
1059
+ horizontal = "horizontal",
1060
+ both = "both"
1061
+ }
1062
+ /**
1063
+ * Check if a given object implements the OrderItemCropData interface.
1064
+ */
1065
+ declare function instanceOfOrderItemCropData(value: object): value is OrderItemCropData;
1066
+ declare function OrderItemCropDataFromJSON(json: any): OrderItemCropData;
1067
+ declare function OrderItemCropDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemCropData;
1068
+ declare function OrderItemCropDataToJSON(json: any): OrderItemCropData;
1069
+ declare function OrderItemCropDataToJSONTyped(value?: OrderItemCropData | null, ignoreDiscriminator?: boolean): any;
1070
+
1071
+ /**
1072
+ * API V2
1073
+ * API V2
1074
+ *
1075
+ * The version of the OpenAPI document: 1.0-alpha
1076
+ *
1077
+ *
1078
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1079
+ * https://openapi-generator.tech
1080
+ * Do not edit the class manually.
1081
+ */
1082
+ /**
1083
+ *
1084
+ * @export
1085
+ * @interface OrderItemOriginalData
1086
+ */
1087
+ interface OrderItemOriginalData {
1088
+ /**
1089
+ * Original item unit price (gross), 9999 = 99.99
1090
+ * @type {number}
1091
+ * @memberof OrderItemOriginalData
1092
+ */
1093
+ item_unit_price?: number;
1094
+ /**
1095
+ * Original item value (gross), 9999 = 99.99
1096
+ * @type {number}
1097
+ * @memberof OrderItemOriginalData
1098
+ */
1099
+ item_value?: number;
1100
+ }
1101
+ /**
1102
+ * Check if a given object implements the OrderItemOriginalData interface.
1103
+ */
1104
+ declare function instanceOfOrderItemOriginalData(value: object): value is OrderItemOriginalData;
1105
+ declare function OrderItemOriginalDataFromJSON(json: any): OrderItemOriginalData;
1106
+ declare function OrderItemOriginalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemOriginalData;
1107
+ declare function OrderItemOriginalDataToJSON(json: any): OrderItemOriginalData;
1108
+ declare function OrderItemOriginalDataToJSONTyped(value?: OrderItemOriginalData | null, ignoreDiscriminator?: boolean): any;
1109
+
1110
+ /**
1111
+ * API V2
1112
+ * API V2
1113
+ *
1114
+ * The version of the OpenAPI document: 1.0-alpha
1115
+ *
1116
+ *
1117
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1118
+ * https://openapi-generator.tech
1119
+ * Do not edit the class manually.
1120
+ */
1121
+
1122
+ /**
1123
+ *
1124
+ * @export
1125
+ * @interface OrderItem
1126
+ */
1127
+ interface OrderItem {
1128
+ /**
1129
+ * Your order item id
1130
+ * @type {string}
1131
+ * @memberof OrderItem
1132
+ */
1133
+ foreign_id?: string | null;
1134
+ /**
1135
+ * SKU
1136
+ * @type {string}
1137
+ * @memberof OrderItem
1138
+ */
1139
+ id: string;
1140
+ /**
1141
+ * Your sku
1142
+ * @type {string}
1143
+ * @memberof OrderItem
1144
+ */
1145
+ additional_sku?: string | null;
1146
+ /**
1147
+ * Product EAN
1148
+ * @type {string}
1149
+ * @memberof OrderItem
1150
+ */
1151
+ ean?: string | null;
1152
+ /**
1153
+ * Product symbol code
1154
+ * @type {string}
1155
+ * @memberof OrderItem
1156
+ */
1157
+ symbol_code?: string | null;
1158
+ /**
1159
+ * Article display name
1160
+ * @type {string}
1161
+ * @memberof OrderItem
1162
+ */
1163
+ name?: string;
1164
+ /**
1165
+ * Quantity (pieces)
1166
+ * @type {number}
1167
+ * @memberof OrderItem
1168
+ */
1169
+ qty: number;
1170
+ /**
1171
+ * Sale item price, 9999 = 99.99
1172
+ * @type {number}
1173
+ * @memberof OrderItem
1174
+ */
1175
+ item_price?: number;
1176
+ /**
1177
+ * Custom print width (in cm)
1178
+ * @type {string}
1179
+ * @memberof OrderItem
1180
+ */
1181
+ width_in_cm?: string | null;
1182
+ /**
1183
+ * Custom print height (in cm)
1184
+ * @type {string}
1185
+ * @memberof OrderItem
1186
+ */
1187
+ height_in_cm?: string | null;
1188
+ /**
1189
+ * Custom file path or name (e. g. from FTP server)
1190
+ * @type {string}
1191
+ * @memberof OrderItem
1192
+ */
1193
+ custom_file?: string | null;
1194
+ /**
1195
+ * Additional custom file path or name (e. g. from FTP server)
1196
+ * @type {string}
1197
+ * @memberof OrderItem
1198
+ */
1199
+ additional_custom_file?: string | null;
1200
+ /**
1201
+ * Optional additional info about the item
1202
+ * @type {string}
1203
+ * @memberof OrderItem
1204
+ */
1205
+ additional_info?: string | null;
1206
+ /**
1207
+ *
1208
+ * @type {OrderItemCropData}
1209
+ * @memberof OrderItem
1210
+ */
1211
+ crop_data?: OrderItemCropData | null;
1212
+ /**
1213
+ *
1214
+ * @type {number}
1215
+ * @memberof OrderItem
1216
+ */
1217
+ readonly initial_price?: number | null;
1218
+ /**
1219
+ *
1220
+ * @type {number}
1221
+ * @memberof OrderItem
1222
+ */
1223
+ readonly item_delivery_cost?: number | null;
1224
+ /**
1225
+ *
1226
+ * @type {OrderItemOriginalData}
1227
+ * @memberof OrderItem
1228
+ */
1229
+ readonly item_original_data?: OrderItemOriginalData | null;
1230
+ /**
1231
+ * PHP's RFC3339_EXTENDED date-time (see https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.rfc3339-extended)
1232
+ * @type {Date}
1233
+ * @memberof OrderItem
1234
+ */
1235
+ fulfillment_date?: Date;
1236
+ /**
1237
+ * Custom file id (to reuse in other orders)
1238
+ * @type {string}
1239
+ * @memberof OrderItem
1240
+ */
1241
+ custom_file_id?: string | null;
1242
+ /**
1243
+ *
1244
+ * @type {number}
1245
+ * @memberof OrderItem
1246
+ */
1247
+ readonly item_tax?: number | null;
1248
+ }
1249
+ /**
1250
+ * Check if a given object implements the OrderItem interface.
1251
+ */
1252
+ declare function instanceOfOrderItem(value: object): value is OrderItem;
1253
+ declare function OrderItemFromJSON(json: any): OrderItem;
1254
+ declare function OrderItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItem;
1255
+ declare function OrderItemToJSON(json: any): OrderItem;
1256
+ declare function OrderItemToJSONTyped(value?: Omit<OrderItem, 'initial_price' | 'item_delivery_cost' | 'item_original_data' | 'item_tax'> | null, ignoreDiscriminator?: boolean): any;
1257
+
1258
+ /**
1259
+ * API V2
1260
+ * API V2
1261
+ *
1262
+ * The version of the OpenAPI document: 1.0-alpha
1263
+ *
1264
+ *
1265
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1266
+ * https://openapi-generator.tech
1267
+ * Do not edit the class manually.
1268
+ */
1269
+ /**
1270
+ *
1271
+ * @export
1272
+ * @interface OrderOriginalData
1273
+ */
1274
+ interface OrderOriginalData {
1275
+ /**
1276
+ * Original/client currency
1277
+ * @type {string}
1278
+ * @memberof OrderOriginalData
1279
+ */
1280
+ currency?: string | null;
1281
+ /**
1282
+ * Original order sum (gross), 9999 = 99.99
1283
+ * @type {number}
1284
+ * @memberof OrderOriginalData
1285
+ */
1286
+ order_sum?: number;
1287
+ /**
1288
+ * Original order delivery cost, 999 = 9.99
1289
+ * @type {number}
1290
+ * @memberof OrderOriginalData
1291
+ */
1292
+ delivery_cost?: number | null;
1293
+ /**
1294
+ * Original order payment cost, 999 = 9.99
1295
+ * @type {number}
1296
+ * @memberof OrderOriginalData
1297
+ */
1298
+ payment_cost?: number | null;
1299
+ /**
1300
+ * Original order rebate, 999 = 9.99
1301
+ * @type {number}
1302
+ * @memberof OrderOriginalData
1303
+ */
1304
+ rebate?: number | null;
1305
+ }
1306
+ /**
1307
+ * Check if a given object implements the OrderOriginalData interface.
1308
+ */
1309
+ declare function instanceOfOrderOriginalData(value: object): value is OrderOriginalData;
1310
+ declare function OrderOriginalDataFromJSON(json: any): OrderOriginalData;
1311
+ declare function OrderOriginalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOriginalData;
1312
+ declare function OrderOriginalDataToJSON(json: any): OrderOriginalData;
1313
+ declare function OrderOriginalDataToJSONTyped(value?: OrderOriginalData | null, ignoreDiscriminator?: boolean): any;
1314
+
1315
+ /**
1316
+ * API V2
1317
+ * API V2
1318
+ *
1319
+ * The version of the OpenAPI document: 1.0-alpha
1320
+ *
1321
+ *
1322
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1323
+ * https://openapi-generator.tech
1324
+ * Do not edit the class manually.
1325
+ */
1326
+ /**
1327
+ *
1328
+ * @export
1329
+ * @interface Waybill
1330
+ */
1331
+ interface Waybill {
1332
+ /**
1333
+ * Bill number
1334
+ * @type {string}
1335
+ * @memberof Waybill
1336
+ */
1337
+ number?: string | null;
1338
+ /**
1339
+ * Company processing the delivery
1340
+ * @type {string}
1341
+ * @memberof Waybill
1342
+ */
1343
+ delivery_method?: WaybillDeliveryMethodEnum | null;
1344
+ /**
1345
+ * Path to a printable file (or file name)
1346
+ * @type {string}
1347
+ * @memberof Waybill
1348
+ */
1349
+ file_path: string;
1350
+ /**
1351
+ * Order articles (foreign_id) related to this waybill
1352
+ * @type {Array<string>}
1353
+ * @memberof Waybill
1354
+ */
1355
+ articles?: Array<string> | null;
1356
+ }
1357
+ /**
1358
+ * @export
1359
+ * @enum {string}
1360
+ */
1361
+ declare enum WaybillDeliveryMethodEnum {
1362
+ dpd = "dpd",
1363
+ dpd_de = "dpd_de",
1364
+ dpd_pl = "dpd_pl",
1365
+ gls = "gls",
1366
+ fedex = "fedex",
1367
+ fedex_pl = "fedex_pl",
1368
+ dhl = "dhl",
1369
+ dhl_de = "dhl_de",
1370
+ ups = "ups",
1371
+ inpost = "inpost",
1372
+ to_resolve_in_erp = "to_resolve_in_erp"
1373
+ }
1374
+ /**
1375
+ * Check if a given object implements the Waybill interface.
1376
+ */
1377
+ declare function instanceOfWaybill(value: object): value is Waybill;
1378
+ declare function WaybillFromJSON(json: any): Waybill;
1379
+ declare function WaybillFromJSONTyped(json: any, ignoreDiscriminator: boolean): Waybill;
1380
+ declare function WaybillToJSON(json: any): Waybill;
1381
+ declare function WaybillToJSONTyped(value?: Waybill | null, ignoreDiscriminator?: boolean): any;
1382
+
1383
+ /**
1384
+ * API V2
1385
+ * API V2
1386
+ *
1387
+ * The version of the OpenAPI document: 1.0-alpha
1388
+ *
1389
+ *
1390
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1391
+ * https://openapi-generator.tech
1392
+ * Do not edit the class manually.
1393
+ */
1394
+
1395
+ /**
1396
+ *
1397
+ * @export
1398
+ * @interface Order
1399
+ */
1400
+ interface Order {
1401
+ /**
1402
+ * Your order id
1403
+ * @type {string}
1404
+ * @memberof Order
1405
+ */
1406
+ external_id?: string;
1407
+ /**
1408
+ *
1409
+ * @type {BillingAddress}
1410
+ * @memberof Order
1411
+ */
1412
+ readonly billing_address?: BillingAddress | null;
1413
+ /**
1414
+ *
1415
+ * @type {DeliveryAddress}
1416
+ * @memberof Order
1417
+ */
1418
+ deliver_address: DeliveryAddress;
1419
+ /**
1420
+ *
1421
+ * @type {Array<OrderItem>}
1422
+ * @memberof Order
1423
+ */
1424
+ items: Array<OrderItem>;
1425
+ /**
1426
+ * PHP's RFC3339_EXTENDED date-time (see https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.rfc3339-extended)
1427
+ * @type {Date}
1428
+ * @memberof Order
1429
+ */
1430
+ order_time: Date;
1431
+ /**
1432
+ * PHP's RFC3339_EXTENDED date-time (see https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.rfc3339-extended)
1433
+ * @type {Date}
1434
+ * @memberof Order
1435
+ */
1436
+ payment_time?: Date | null;
1437
+ /**
1438
+ * Optional order description
1439
+ * @type {string}
1440
+ * @memberof Order
1441
+ */
1442
+ info?: string | null;
1443
+ /**
1444
+ * Order channel
1445
+ * @type {string}
1446
+ * @memberof Order
1447
+ */
1448
+ order_channel: string | null;
1449
+ /**
1450
+ * Order source
1451
+ * @type {string}
1452
+ * @memberof Order
1453
+ */
1454
+ readonly order_source?: string | null;
1455
+ /**
1456
+ * Currency code (ISO 4217)
1457
+ * @type {string}
1458
+ * @memberof Order
1459
+ */
1460
+ currency: string;
1461
+ /**
1462
+ * Billing company name/id
1463
+ * @type {string}
1464
+ * @memberof Order
1465
+ */
1466
+ company_name?: string | null;
1467
+ /**
1468
+ * If set to true, a shipping label is required for every order. Currently it is possible to upload shipping labels via FTP
1469
+ * @type {boolean}
1470
+ * @memberof Order
1471
+ */
1472
+ own_delivery?: boolean;
1473
+ /**
1474
+ * Discount code
1475
+ * @type {string}
1476
+ * @memberof Order
1477
+ */
1478
+ readonly discount_code?: string | null;
1479
+ /**
1480
+ * Partner code
1481
+ * @type {string}
1482
+ * @memberof Order
1483
+ */
1484
+ readonly partner_code?: string | null;
1485
+ /**
1486
+ *
1487
+ * @type {OrderOriginalData}
1488
+ * @memberof Order
1489
+ */
1490
+ readonly order_original_data?: OrderOriginalData | null;
1491
+ /**
1492
+ * Original order payment method
1493
+ * @type {string}
1494
+ * @memberof Order
1495
+ */
1496
+ readonly payment_method?: OrderPaymentMethodEnum | null;
1497
+ /**
1498
+ * Payment transaction id
1499
+ * @type {string}
1500
+ * @memberof Order
1501
+ */
1502
+ readonly payment_transaction_id?: string | null;
1503
+ /**
1504
+ *
1505
+ * @type {boolean}
1506
+ * @memberof Order
1507
+ */
1508
+ readonly ag_invoice_requested?: boolean | null;
1509
+ /**
1510
+ *
1511
+ * @type {Array<Waybill>}
1512
+ * @memberof Order
1513
+ */
1514
+ waybills?: Array<Waybill>;
1515
+ /**
1516
+ *
1517
+ * @type {Array<Attachment>}
1518
+ * @memberof Order
1519
+ */
1520
+ attachments?: Array<Attachment>;
1521
+ /**
1522
+ * Suggest delivery method (may be taken into consideration according to business agreements)
1523
+ * @type {string}
1524
+ * @memberof Order
1525
+ */
1526
+ readonly suggested_delivery_method?: string | null;
1527
+ }
1528
+ /**
1529
+ * @export
1530
+ * @enum {string}
1531
+ */
1532
+ declare enum OrderPaymentMethodEnum {
1533
+ gotwka = "got\u00F3wka",
1534
+ przelew = "przelew",
1535
+ karta = "karta",
1536
+ Przelewy_24 = "Przelewy 24",
1537
+ PayU = "PayU",
1538
+ PayU_DE = "PayU DE",
1539
+ PayU_EN = "PayU EN",
1540
+ PayU_PL = "PayU PL",
1541
+ Kompensata = "Kompensata",
1542
+ PayPal = "PayPal",
1543
+ Raty_PayU = "Raty PayU",
1544
+ pobranie = "pobranie",
1545
+ amazon = "amazon",
1546
+ allegro = "allegro",
1547
+ Allegro_PayU = "Allegro PayU",
1548
+ Allegro_P24 = "Allegro P24",
1549
+ etsy = "etsy",
1550
+ emag_ro = "emag.ro",
1551
+ emag_hu = "emag.hu",
1552
+ real = "real",
1553
+ ebay = "ebay",
1554
+ stripe = "stripe",
1555
+ BRW = "BRW",
1556
+ eMag_bg = "eMag.bg",
1557
+ Empik = "Empik",
1558
+ Homeyou = "Home&you",
1559
+ Home24 = "Home24",
1560
+ Kaufland = "Kaufland",
1561
+ Erli = "Erli",
1562
+ Leroy_Merlin = "Leroy Merlin",
1563
+ Castorama = "Castorama",
1564
+ Vivre = "Vivre",
1565
+ Vilandy = "Vilandy",
1566
+ Pigu = "Pigu",
1567
+ Fruugo = "Fruugo",
1568
+ Hood = "Hood",
1569
+ XXXLutz = "XXXLutz",
1570
+ BricoDepot = "BricoDepot",
1571
+ Adyen = "Adyen",
1572
+ Mirakl = "Mirakl",
1573
+ Payoneer = "Payoneer",
1574
+ Hitmeister = "Hitmeister"
1575
+ }
1576
+ /**
1577
+ * Check if a given object implements the Order interface.
1578
+ */
1579
+ declare function instanceOfOrder(value: object): value is Order;
1580
+ declare function OrderFromJSON(json: any): Order;
1581
+ declare function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order;
1582
+ declare function OrderToJSON(json: any): Order;
1583
+ declare function OrderToJSONTyped(value?: Omit<Order, 'billing_address' | 'order_source' | 'discount_code' | 'partner_code' | 'order_original_data' | 'payment_method' | 'payment_transaction_id' | 'ag_invoice_requested' | 'suggested_delivery_method'> | null, ignoreDiscriminator?: boolean): any;
1584
+
1585
+ /**
1586
+ * API V2
1587
+ * API V2
1588
+ *
1589
+ * The version of the OpenAPI document: 1.0-alpha
1590
+ *
1591
+ *
1592
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1593
+ * https://openapi-generator.tech
1594
+ * Do not edit the class manually.
1595
+ */
1596
+
1597
+ /**
1598
+ *
1599
+ * @export
1600
+ * @interface OrderCancellationResponse
1601
+ */
1602
+ interface OrderCancellationResponse {
1603
+ /**
1604
+ * Cancellation result
1605
+ * @type {Bool}
1606
+ * @memberof OrderCancellationResponse
1607
+ */
1608
+ cancelled?: Bool;
1609
+ /**
1610
+ * Additional details regarding the cancellation process
1611
+ * @type {string}
1612
+ * @memberof OrderCancellationResponse
1613
+ */
1614
+ details?: OrderCancellationResponseDetailsEnum;
1615
+ }
1616
+ /**
1617
+ * @export
1618
+ * @enum {string}
1619
+ */
1620
+ declare enum OrderCancellationResponseDetailsEnum {
1621
+ cancelled = "cancelled",
1622
+ already_in_production = "already_in_production"
1623
+ }
1624
+ /**
1625
+ * Check if a given object implements the OrderCancellationResponse interface.
1626
+ */
1627
+ declare function instanceOfOrderCancellationResponse(value: object): value is OrderCancellationResponse;
1628
+ declare function OrderCancellationResponseFromJSON(json: any): OrderCancellationResponse;
1629
+ declare function OrderCancellationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCancellationResponse;
1630
+ declare function OrderCancellationResponseToJSON(json: any): OrderCancellationResponse;
1631
+ declare function OrderCancellationResponseToJSONTyped(value?: OrderCancellationResponse | null, ignoreDiscriminator?: boolean): any;
1632
+
1633
+ /**
1634
+ * API V2
1635
+ * API V2
1636
+ *
1637
+ * The version of the OpenAPI document: 1.0-alpha
1638
+ *
1639
+ *
1640
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1641
+ * https://openapi-generator.tech
1642
+ * Do not edit the class manually.
1643
+ */
1644
+ /**
1645
+ *
1646
+ * @export
1647
+ * @interface OrderComment
1648
+ */
1649
+ interface OrderComment {
1650
+ /**
1651
+ * Doboxa comment id
1652
+ * @type {string}
1653
+ * @memberof OrderComment
1654
+ */
1655
+ comment_id?: string;
1656
+ /**
1657
+ * Author type
1658
+ * @type {string}
1659
+ * @memberof OrderComment
1660
+ */
1661
+ author_type?: OrderCommentAuthorTypeEnum;
1662
+ /**
1663
+ * Comment author. Can be empty
1664
+ * @type {string}
1665
+ * @memberof OrderComment
1666
+ */
1667
+ author?: string | null;
1668
+ /**
1669
+ * Comment content
1670
+ * @type {string}
1671
+ * @memberof OrderComment
1672
+ */
1673
+ content?: string;
1674
+ /**
1675
+ * Comment creation time
1676
+ * @type {Date}
1677
+ * @memberof OrderComment
1678
+ */
1679
+ created_at?: Date;
1680
+ }
1681
+ /**
1682
+ * @export
1683
+ * @enum {string}
1684
+ */
1685
+ declare enum OrderCommentAuthorTypeEnum {
1686
+ client = "client",
1687
+ support = "support"
1688
+ }
1689
+ /**
1690
+ * Check if a given object implements the OrderComment interface.
1691
+ */
1692
+ declare function instanceOfOrderComment(value: object): value is OrderComment;
1693
+ declare function OrderCommentFromJSON(json: any): OrderComment;
1694
+ declare function OrderCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderComment;
1695
+ declare function OrderCommentToJSON(json: any): OrderComment;
1696
+ declare function OrderCommentToJSONTyped(value?: OrderComment | null, ignoreDiscriminator?: boolean): any;
1697
+
1698
+ /**
1699
+ * API V2
1700
+ * API V2
1701
+ *
1702
+ * The version of the OpenAPI document: 1.0-alpha
1703
+ *
1704
+ *
1705
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1706
+ * https://openapi-generator.tech
1707
+ * Do not edit the class manually.
1708
+ */
1709
+ /**
1710
+ *
1711
+ * @export
1712
+ * @interface OrderItemStatus
1713
+ */
1714
+ interface OrderItemStatus {
1715
+ /**
1716
+ * Id assigned to order by doboxa (returned after successful order creation)
1717
+ * @type {string}
1718
+ * @memberof OrderItemStatus
1719
+ */
1720
+ doboxa_order_id?: string;
1721
+ /**
1722
+ * Id provided in external_id during order creation
1723
+ * @type {string}
1724
+ * @memberof OrderItemStatus
1725
+ */
1726
+ external_order_id?: string | null;
1727
+ /**
1728
+ * Item id assigned to item by doboxa
1729
+ * @type {string}
1730
+ * @memberof OrderItemStatus
1731
+ */
1732
+ doboxa_item_id?: string | null;
1733
+ /**
1734
+ * Id provided in items.foreign_id during order creation
1735
+ * @type {string}
1736
+ * @memberof OrderItemStatus
1737
+ */
1738
+ foreign_item_id?: string | null;
1739
+ /**
1740
+ * SKU of the product related to this item
1741
+ * @type {string}
1742
+ * @memberof OrderItemStatus
1743
+ */
1744
+ product_sku?: string | null;
1745
+ /**
1746
+ * Product status
1747
+ * @type {string}
1748
+ * @memberof OrderItemStatus
1749
+ */
1750
+ status?: OrderItemStatusStatusEnum;
1751
+ }
1752
+ /**
1753
+ * @export
1754
+ * @enum {string}
1755
+ */
1756
+ declare enum OrderItemStatusStatusEnum {
1757
+ new = "new",
1758
+ wait_for_payment = "wait_for_payment",
1759
+ paid = "paid",
1760
+ in_progress = "in_progress",
1761
+ ready_to_be_sent = "ready_to_be_sent",
1762
+ sent = "sent",
1763
+ cancelled = "cancelled",
1764
+ hold = "hold",
1765
+ refund = "refund"
1766
+ }
1767
+ /**
1768
+ * Check if a given object implements the OrderItemStatus interface.
1769
+ */
1770
+ declare function instanceOfOrderItemStatus(value: object): value is OrderItemStatus;
1771
+ declare function OrderItemStatusFromJSON(json: any): OrderItemStatus;
1772
+ declare function OrderItemStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemStatus;
1773
+ declare function OrderItemStatusToJSON(json: any): OrderItemStatus;
1774
+ declare function OrderItemStatusToJSONTyped(value?: OrderItemStatus | null, ignoreDiscriminator?: boolean): any;
1775
+
1776
+ /**
1777
+ * API V2
1778
+ * API V2
1779
+ *
1780
+ * The version of the OpenAPI document: 1.0-alpha
1781
+ *
1782
+ *
1783
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1784
+ * https://openapi-generator.tech
1785
+ * Do not edit the class manually.
1786
+ */
1787
+
1788
+ /**
1789
+ *
1790
+ * @export
1791
+ * @interface OrderStatus
1792
+ */
1793
+ interface OrderStatus {
1794
+ /**
1795
+ * Order status
1796
+ * @type {string}
1797
+ * @memberof OrderStatus
1798
+ */
1799
+ status?: OrderStatusStatusEnum;
1800
+ /**
1801
+ * Order items status
1802
+ * @type {Array<OrderItemStatus>}
1803
+ * @memberof OrderStatus
1804
+ */
1805
+ item_status?: Array<OrderItemStatus>;
1806
+ }
1807
+ /**
1808
+ * @export
1809
+ * @enum {string}
1810
+ */
1811
+ declare enum OrderStatusStatusEnum {
1812
+ new = "new",
1813
+ wait_for_payment = "wait_for_payment",
1814
+ paid = "paid",
1815
+ in_progress = "in_progress",
1816
+ ready_to_be_sent = "ready_to_be_sent",
1817
+ sent = "sent",
1818
+ cancelled = "cancelled",
1819
+ hold = "hold",
1820
+ refund = "refund"
1821
+ }
1822
+ /**
1823
+ * Check if a given object implements the OrderStatus interface.
1824
+ */
1825
+ declare function instanceOfOrderStatus(value: object): value is OrderStatus;
1826
+ declare function OrderStatusFromJSON(json: any): OrderStatus;
1827
+ declare function OrderStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatus;
1828
+ declare function OrderStatusToJSON(json: any): OrderStatus;
1829
+ declare function OrderStatusToJSONTyped(value?: OrderStatus | null, ignoreDiscriminator?: boolean): any;
1830
+
1831
+ /**
1832
+ * API V2
1833
+ * API V2
1834
+ *
1835
+ * The version of the OpenAPI document: 1.0-alpha
1836
+ *
1837
+ *
1838
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1839
+ * https://openapi-generator.tech
1840
+ * Do not edit the class manually.
1841
+ */
1842
+
1843
+ /**
1844
+ *
1845
+ * @export
1846
+ * @interface OrderStatusChange
1847
+ */
1848
+ interface OrderStatusChange {
1849
+ /**
1850
+ * Doboxa order id
1851
+ * @type {string}
1852
+ * @memberof OrderStatusChange
1853
+ */
1854
+ order_id?: string;
1855
+ /**
1856
+ * Order status
1857
+ * @type {string}
1858
+ * @memberof OrderStatusChange
1859
+ */
1860
+ status?: OrderStatusChangeStatusEnum;
1861
+ /**
1862
+ * Order status change time
1863
+ * @type {Date}
1864
+ * @memberof OrderStatusChange
1865
+ */
1866
+ change_time?: Date;
1867
+ /**
1868
+ * Order items status
1869
+ * @type {Array<OrderItemStatus>}
1870
+ * @memberof OrderStatusChange
1871
+ */
1872
+ item_status?: Array<OrderItemStatus>;
1873
+ }
1874
+ /**
1875
+ * @export
1876
+ * @enum {string}
1877
+ */
1878
+ declare enum OrderStatusChangeStatusEnum {
1879
+ new = "new",
1880
+ wait_for_payment = "wait_for_payment",
1881
+ paid = "paid",
1882
+ in_progress = "in_progress",
1883
+ ready_to_be_sent = "ready_to_be_sent",
1884
+ sent = "sent",
1885
+ cancelled = "cancelled",
1886
+ hold = "hold",
1887
+ refund = "refund"
1888
+ }
1889
+ /**
1890
+ * Check if a given object implements the OrderStatusChange interface.
1891
+ */
1892
+ declare function instanceOfOrderStatusChange(value: object): value is OrderStatusChange;
1893
+ declare function OrderStatusChangeFromJSON(json: any): OrderStatusChange;
1894
+ declare function OrderStatusChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderStatusChange;
1895
+ declare function OrderStatusChangeToJSON(json: any): OrderStatusChange;
1896
+ declare function OrderStatusChangeToJSONTyped(value?: OrderStatusChange | null, ignoreDiscriminator?: boolean): any;
1897
+
1898
+ /**
1899
+ * API V2
1900
+ * API V2
1901
+ *
1902
+ * The version of the OpenAPI document: 1.0-alpha
1903
+ *
1904
+ *
1905
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1906
+ * https://openapi-generator.tech
1907
+ * Do not edit the class manually.
1908
+ */
1909
+
1910
+ /**
1911
+ *
1912
+ * @export
1913
+ * @interface PageOfClients
1914
+ */
1915
+ interface PageOfClients {
1916
+ /**
1917
+ *
1918
+ * @type {Array<Client>}
1919
+ * @memberof PageOfClients
1920
+ */
1921
+ items?: Array<Client>;
1922
+ /**
1923
+ *
1924
+ * @type {string}
1925
+ * @memberof PageOfClients
1926
+ */
1927
+ next_page?: string | null;
1928
+ }
1929
+ /**
1930
+ * Check if a given object implements the PageOfClients interface.
1931
+ */
1932
+ declare function instanceOfPageOfClients(value: object): value is PageOfClients;
1933
+ declare function PageOfClientsFromJSON(json: any): PageOfClients;
1934
+ declare function PageOfClientsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageOfClients;
1935
+ declare function PageOfClientsToJSON(json: any): PageOfClients;
1936
+ declare function PageOfClientsToJSONTyped(value?: PageOfClients | null, ignoreDiscriminator?: boolean): any;
1937
+
1938
+ /**
1939
+ * API V2
1940
+ * API V2
1941
+ *
1942
+ * The version of the OpenAPI document: 1.0-alpha
1943
+ *
1944
+ *
1945
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1946
+ * https://openapi-generator.tech
1947
+ * Do not edit the class manually.
1948
+ */
1949
+
1950
+ /**
1951
+ *
1952
+ * @export
1953
+ * @interface PageOfInvoices
1954
+ */
1955
+ interface PageOfInvoices {
1956
+ /**
1957
+ *
1958
+ * @type {Array<Invoice>}
1959
+ * @memberof PageOfInvoices
1960
+ */
1961
+ items?: Array<Invoice>;
1962
+ /**
1963
+ *
1964
+ * @type {string}
1965
+ * @memberof PageOfInvoices
1966
+ */
1967
+ next_page?: string | null;
1968
+ }
1969
+ /**
1970
+ * Check if a given object implements the PageOfInvoices interface.
1971
+ */
1972
+ declare function instanceOfPageOfInvoices(value: object): value is PageOfInvoices;
1973
+ declare function PageOfInvoicesFromJSON(json: any): PageOfInvoices;
1974
+ declare function PageOfInvoicesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageOfInvoices;
1975
+ declare function PageOfInvoicesToJSON(json: any): PageOfInvoices;
1976
+ declare function PageOfInvoicesToJSONTyped(value?: PageOfInvoices | null, ignoreDiscriminator?: boolean): any;
1977
+
1978
+ /**
1979
+ * API V2
1980
+ * API V2
1981
+ *
1982
+ * The version of the OpenAPI document: 1.0-alpha
1983
+ *
1984
+ *
1985
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1986
+ * https://openapi-generator.tech
1987
+ * Do not edit the class manually.
1988
+ */
1989
+
1990
+ /**
1991
+ *
1992
+ * @export
1993
+ * @interface PageOfOrderComments
1994
+ */
1995
+ interface PageOfOrderComments {
1996
+ /**
1997
+ *
1998
+ * @type {Array<OrderComment>}
1999
+ * @memberof PageOfOrderComments
2000
+ */
2001
+ items?: Array<OrderComment>;
2002
+ /**
2003
+ *
2004
+ * @type {string}
2005
+ * @memberof PageOfOrderComments
2006
+ */
2007
+ next_page?: string | null;
2008
+ }
2009
+ /**
2010
+ * Check if a given object implements the PageOfOrderComments interface.
2011
+ */
2012
+ declare function instanceOfPageOfOrderComments(value: object): value is PageOfOrderComments;
2013
+ declare function PageOfOrderCommentsFromJSON(json: any): PageOfOrderComments;
2014
+ declare function PageOfOrderCommentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageOfOrderComments;
2015
+ declare function PageOfOrderCommentsToJSON(json: any): PageOfOrderComments;
2016
+ declare function PageOfOrderCommentsToJSONTyped(value?: PageOfOrderComments | null, ignoreDiscriminator?: boolean): any;
2017
+
2018
+ /**
2019
+ * API V2
2020
+ * API V2
2021
+ *
2022
+ * The version of the OpenAPI document: 1.0-alpha
2023
+ *
2024
+ *
2025
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2026
+ * https://openapi-generator.tech
2027
+ * Do not edit the class manually.
2028
+ */
2029
+
2030
+ /**
2031
+ *
2032
+ * @export
2033
+ * @interface PageOfOrderStatusChanges
2034
+ */
2035
+ interface PageOfOrderStatusChanges {
2036
+ /**
2037
+ *
2038
+ * @type {Array<OrderStatusChange>}
2039
+ * @memberof PageOfOrderStatusChanges
2040
+ */
2041
+ items?: Array<OrderStatusChange>;
2042
+ /**
2043
+ *
2044
+ * @type {string}
2045
+ * @memberof PageOfOrderStatusChanges
2046
+ */
2047
+ next_page?: string | null;
2048
+ }
2049
+ /**
2050
+ * Check if a given object implements the PageOfOrderStatusChanges interface.
2051
+ */
2052
+ declare function instanceOfPageOfOrderStatusChanges(value: object): value is PageOfOrderStatusChanges;
2053
+ declare function PageOfOrderStatusChangesFromJSON(json: any): PageOfOrderStatusChanges;
2054
+ declare function PageOfOrderStatusChangesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageOfOrderStatusChanges;
2055
+ declare function PageOfOrderStatusChangesToJSON(json: any): PageOfOrderStatusChanges;
2056
+ declare function PageOfOrderStatusChangesToJSONTyped(value?: PageOfOrderStatusChanges | null, ignoreDiscriminator?: boolean): any;
2057
+
2058
+ /**
2059
+ * API V2
2060
+ * API V2
2061
+ *
2062
+ * The version of the OpenAPI document: 1.0-alpha
2063
+ *
2064
+ *
2065
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2066
+ * https://openapi-generator.tech
2067
+ * Do not edit the class manually.
2068
+ */
2069
+ /**
2070
+ *
2071
+ * @export
2072
+ * @interface ReturnLabel
2073
+ */
2074
+ interface ReturnLabel {
2075
+ /**
2076
+ * Tracking number
2077
+ * @type {string}
2078
+ * @memberof ReturnLabel
2079
+ */
2080
+ number?: string;
2081
+ /**
2082
+ * Delivery method
2083
+ * @type {string}
2084
+ * @memberof ReturnLabel
2085
+ */
2086
+ delivery_method?: string;
2087
+ }
2088
+ /**
2089
+ * Check if a given object implements the ReturnLabel interface.
2090
+ */
2091
+ declare function instanceOfReturnLabel(value: object): value is ReturnLabel;
2092
+ declare function ReturnLabelFromJSON(json: any): ReturnLabel;
2093
+ declare function ReturnLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReturnLabel;
2094
+ declare function ReturnLabelToJSON(json: any): ReturnLabel;
2095
+ declare function ReturnLabelToJSONTyped(value?: ReturnLabel | null, ignoreDiscriminator?: boolean): any;
2096
+
2097
+ /**
2098
+ * API V2
2099
+ * API V2
2100
+ *
2101
+ * The version of the OpenAPI document: 1.0-alpha
2102
+ *
2103
+ *
2104
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2105
+ * https://openapi-generator.tech
2106
+ * Do not edit the class manually.
2107
+ */
2108
+ /**
2109
+ *
2110
+ * @export
2111
+ * @interface TrackingNumberItem
2112
+ */
2113
+ interface TrackingNumberItem {
2114
+ /**
2115
+ * Doboxa item id
2116
+ * @type {string}
2117
+ * @memberof TrackingNumberItem
2118
+ */
2119
+ doboxa_item_id?: string;
2120
+ /**
2121
+ * External item id
2122
+ * @type {string}
2123
+ * @memberof TrackingNumberItem
2124
+ */
2125
+ foreign_item_id?: string | null;
2126
+ /**
2127
+ * Product SKU
2128
+ * @type {string}
2129
+ * @memberof TrackingNumberItem
2130
+ */
2131
+ product_sku?: string;
2132
+ }
2133
+ /**
2134
+ * Check if a given object implements the TrackingNumberItem interface.
2135
+ */
2136
+ declare function instanceOfTrackingNumberItem(value: object): value is TrackingNumberItem;
2137
+ declare function TrackingNumberItemFromJSON(json: any): TrackingNumberItem;
2138
+ declare function TrackingNumberItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackingNumberItem;
2139
+ declare function TrackingNumberItemToJSON(json: any): TrackingNumberItem;
2140
+ declare function TrackingNumberItemToJSONTyped(value?: TrackingNumberItem | null, ignoreDiscriminator?: boolean): any;
2141
+
2142
+ /**
2143
+ * API V2
2144
+ * API V2
2145
+ *
2146
+ * The version of the OpenAPI document: 1.0-alpha
2147
+ *
2148
+ *
2149
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2150
+ * https://openapi-generator.tech
2151
+ * Do not edit the class manually.
2152
+ */
2153
+
2154
+ /**
2155
+ *
2156
+ * @export
2157
+ * @interface TrackingNumber
2158
+ */
2159
+ interface TrackingNumber {
2160
+ /**
2161
+ * Related order id
2162
+ * @type {string}
2163
+ * @memberof TrackingNumber
2164
+ */
2165
+ order_id?: string;
2166
+ /**
2167
+ * Tracking number
2168
+ * @type {string}
2169
+ * @memberof TrackingNumber
2170
+ */
2171
+ number?: string;
2172
+ /**
2173
+ * Delivery method
2174
+ * @type {string}
2175
+ * @memberof TrackingNumber
2176
+ */
2177
+ delivery_method?: string;
2178
+ /**
2179
+ * Sent time. Can be empty (if not yet sent)
2180
+ * @type {Date}
2181
+ * @memberof TrackingNumber
2182
+ */
2183
+ sent_at?: Date | null;
2184
+ /**
2185
+ * Creation time
2186
+ * @type {Date}
2187
+ * @memberof TrackingNumber
2188
+ */
2189
+ created_at?: Date;
2190
+ /**
2191
+ *
2192
+ * @type {ReturnLabel}
2193
+ * @memberof TrackingNumber
2194
+ */
2195
+ return_label?: ReturnLabel;
2196
+ /**
2197
+ * Order items assigned to the tracking number
2198
+ * @type {Array<TrackingNumberItem>}
2199
+ * @memberof TrackingNumber
2200
+ */
2201
+ order_items?: Array<TrackingNumberItem> | null;
2202
+ }
2203
+ /**
2204
+ * Check if a given object implements the TrackingNumber interface.
2205
+ */
2206
+ declare function instanceOfTrackingNumber(value: object): value is TrackingNumber;
2207
+ declare function TrackingNumberFromJSON(json: any): TrackingNumber;
2208
+ declare function TrackingNumberFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrackingNumber;
2209
+ declare function TrackingNumberToJSON(json: any): TrackingNumber;
2210
+ declare function TrackingNumberToJSONTyped(value?: TrackingNumber | null, ignoreDiscriminator?: boolean): any;
2211
+
2212
+ /**
2213
+ * API V2
2214
+ * API V2
2215
+ *
2216
+ * The version of the OpenAPI document: 1.0-alpha
2217
+ *
2218
+ *
2219
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2220
+ * https://openapi-generator.tech
2221
+ * Do not edit the class manually.
2222
+ */
2223
+
2224
+ /**
2225
+ *
2226
+ * @export
2227
+ * @interface PageOfTrackingNumbers
2228
+ */
2229
+ interface PageOfTrackingNumbers {
2230
+ /**
2231
+ *
2232
+ * @type {Array<TrackingNumber>}
2233
+ * @memberof PageOfTrackingNumbers
2234
+ */
2235
+ items?: Array<TrackingNumber>;
2236
+ /**
2237
+ *
2238
+ * @type {string}
2239
+ * @memberof PageOfTrackingNumbers
2240
+ */
2241
+ next_page?: string | null;
2242
+ }
2243
+ /**
2244
+ * Check if a given object implements the PageOfTrackingNumbers interface.
2245
+ */
2246
+ declare function instanceOfPageOfTrackingNumbers(value: object): value is PageOfTrackingNumbers;
2247
+ declare function PageOfTrackingNumbersFromJSON(json: any): PageOfTrackingNumbers;
2248
+ declare function PageOfTrackingNumbersFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageOfTrackingNumbers;
2249
+ declare function PageOfTrackingNumbersToJSON(json: any): PageOfTrackingNumbers;
2250
+ declare function PageOfTrackingNumbersToJSONTyped(value?: PageOfTrackingNumbers | null, ignoreDiscriminator?: boolean): any;
2251
+
2252
+ /**
2253
+ * API V2
2254
+ * API V2
2255
+ *
2256
+ * The version of the OpenAPI document: 1.0-alpha
2257
+ *
2258
+ *
2259
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2260
+ * https://openapi-generator.tech
2261
+ * Do not edit the class manually.
2262
+ */
2263
+ /**
2264
+ *
2265
+ * @export
2266
+ * @interface PostOrderCommentResponse
2267
+ */
2268
+ interface PostOrderCommentResponse {
2269
+ /**
2270
+ * HTTP status code
2271
+ * @type {number}
2272
+ * @memberof PostOrderCommentResponse
2273
+ */
2274
+ result_code?: number;
2275
+ /**
2276
+ * Comment id, if successfully created
2277
+ * @type {string}
2278
+ * @memberof PostOrderCommentResponse
2279
+ */
2280
+ comment_id?: string;
2281
+ }
2282
+ /**
2283
+ * Check if a given object implements the PostOrderCommentResponse interface.
2284
+ */
2285
+ declare function instanceOfPostOrderCommentResponse(value: object): value is PostOrderCommentResponse;
2286
+ declare function PostOrderCommentResponseFromJSON(json: any): PostOrderCommentResponse;
2287
+ declare function PostOrderCommentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOrderCommentResponse;
2288
+ declare function PostOrderCommentResponseToJSON(json: any): PostOrderCommentResponse;
2289
+ declare function PostOrderCommentResponseToJSONTyped(value?: PostOrderCommentResponse | null, ignoreDiscriminator?: boolean): any;
2290
+
2291
+ /**
2292
+ * API V2
2293
+ * API V2
2294
+ *
2295
+ * The version of the OpenAPI document: 1.0-alpha
2296
+ *
2297
+ *
2298
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2299
+ * https://openapi-generator.tech
2300
+ * Do not edit the class manually.
2301
+ */
2302
+ /**
2303
+ *
2304
+ * @export
2305
+ * @interface PostOrderResponse
2306
+ */
2307
+ interface PostOrderResponse {
2308
+ /**
2309
+ * HTTP status code
2310
+ * @type {number}
2311
+ * @memberof PostOrderResponse
2312
+ */
2313
+ result_code?: number;
2314
+ /**
2315
+ * Order id, if successfully created
2316
+ * @type {string}
2317
+ * @memberof PostOrderResponse
2318
+ */
2319
+ order_id?: string;
2320
+ }
2321
+ /**
2322
+ * Check if a given object implements the PostOrderResponse interface.
2323
+ */
2324
+ declare function instanceOfPostOrderResponse(value: object): value is PostOrderResponse;
2325
+ declare function PostOrderResponseFromJSON(json: any): PostOrderResponse;
2326
+ declare function PostOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOrderResponse;
2327
+ declare function PostOrderResponseToJSON(json: any): PostOrderResponse;
2328
+ declare function PostOrderResponseToJSONTyped(value?: PostOrderResponse | null, ignoreDiscriminator?: boolean): any;
2329
+
2330
+ /**
2331
+ * API V2
2332
+ * API V2
2333
+ *
2334
+ * The version of the OpenAPI document: 1.0-alpha
2335
+ *
2336
+ *
2337
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2338
+ * https://openapi-generator.tech
2339
+ * Do not edit the class manually.
2340
+ */
2341
+ /**
2342
+ *
2343
+ * @export
2344
+ * @interface PostOrderStatusItem
2345
+ */
2346
+ interface PostOrderStatusItem {
2347
+ /**
2348
+ * Item id assigned to item by doboxa
2349
+ * @type {string}
2350
+ * @memberof PostOrderStatusItem
2351
+ */
2352
+ doboxa_item_id: string | null;
2353
+ /**
2354
+ * Order status
2355
+ * @type {string}
2356
+ * @memberof PostOrderStatusItem
2357
+ */
2358
+ status: PostOrderStatusItemStatusEnum;
2359
+ }
2360
+ /**
2361
+ * @export
2362
+ * @enum {string}
2363
+ */
2364
+ declare enum PostOrderStatusItemStatusEnum {
2365
+ new = "new",
2366
+ wait_for_payment = "wait_for_payment",
2367
+ paid = "paid",
2368
+ in_progress = "in_progress",
2369
+ ready_to_be_sent = "ready_to_be_sent",
2370
+ sent = "sent",
2371
+ cancelled = "cancelled",
2372
+ hold = "hold",
2373
+ refund = "refund"
2374
+ }
2375
+ /**
2376
+ * Check if a given object implements the PostOrderStatusItem interface.
2377
+ */
2378
+ declare function instanceOfPostOrderStatusItem(value: object): value is PostOrderStatusItem;
2379
+ declare function PostOrderStatusItemFromJSON(json: any): PostOrderStatusItem;
2380
+ declare function PostOrderStatusItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOrderStatusItem;
2381
+ declare function PostOrderStatusItemToJSON(json: any): PostOrderStatusItem;
2382
+ declare function PostOrderStatusItemToJSONTyped(value?: PostOrderStatusItem | null, ignoreDiscriminator?: boolean): any;
2383
+
2384
+ /**
2385
+ * API V2
2386
+ * API V2
2387
+ *
2388
+ * The version of the OpenAPI document: 1.0-alpha
2389
+ *
2390
+ *
2391
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2392
+ * https://openapi-generator.tech
2393
+ * Do not edit the class manually.
2394
+ */
2395
+
2396
+ /**
2397
+ *
2398
+ * @export
2399
+ * @interface PostOrderStatus
2400
+ */
2401
+ interface PostOrderStatus {
2402
+ /**
2403
+ * Order status
2404
+ * @type {string}
2405
+ * @memberof PostOrderStatus
2406
+ */
2407
+ status: PostOrderStatusStatusEnum;
2408
+ /**
2409
+ * Order items status. If any item is not specified, its status will be changed to order status
2410
+ * @type {Array<PostOrderStatusItem>}
2411
+ * @memberof PostOrderStatus
2412
+ */
2413
+ item_status?: Array<PostOrderStatusItem> | null;
2414
+ }
2415
+ /**
2416
+ * @export
2417
+ * @enum {string}
2418
+ */
2419
+ declare enum PostOrderStatusStatusEnum {
2420
+ new = "new",
2421
+ wait_for_payment = "wait_for_payment",
2422
+ paid = "paid",
2423
+ in_progress = "in_progress",
2424
+ ready_to_be_sent = "ready_to_be_sent",
2425
+ sent = "sent",
2426
+ cancelled = "cancelled",
2427
+ hold = "hold",
2428
+ refund = "refund"
2429
+ }
2430
+ /**
2431
+ * Check if a given object implements the PostOrderStatus interface.
2432
+ */
2433
+ declare function instanceOfPostOrderStatus(value: object): value is PostOrderStatus;
2434
+ declare function PostOrderStatusFromJSON(json: any): PostOrderStatus;
2435
+ declare function PostOrderStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOrderStatus;
2436
+ declare function PostOrderStatusToJSON(json: any): PostOrderStatus;
2437
+ declare function PostOrderStatusToJSONTyped(value?: PostOrderStatus | null, ignoreDiscriminator?: boolean): any;
2438
+
2439
+ /**
2440
+ * API V2
2441
+ * API V2
2442
+ *
2443
+ * The version of the OpenAPI document: 1.0-alpha
2444
+ *
2445
+ *
2446
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2447
+ * https://openapi-generator.tech
2448
+ * Do not edit the class manually.
2449
+ */
2450
+ /**
2451
+ *
2452
+ * @export
2453
+ * @interface PostOrderStatusResponse
2454
+ */
2455
+ interface PostOrderStatusResponse {
2456
+ /**
2457
+ * HTTP status code
2458
+ * @type {number}
2459
+ * @memberof PostOrderStatusResponse
2460
+ */
2461
+ result_code?: number;
2462
+ }
2463
+ /**
2464
+ * Check if a given object implements the PostOrderStatusResponse interface.
2465
+ */
2466
+ declare function instanceOfPostOrderStatusResponse(value: object): value is PostOrderStatusResponse;
2467
+ declare function PostOrderStatusResponseFromJSON(json: any): PostOrderStatusResponse;
2468
+ declare function PostOrderStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostOrderStatusResponse;
2469
+ declare function PostOrderStatusResponseToJSON(json: any): PostOrderStatusResponse;
2470
+ declare function PostOrderStatusResponseToJSONTyped(value?: PostOrderStatusResponse | null, ignoreDiscriminator?: boolean): any;
2471
+
2472
+ interface LoginParams {
2473
+ username: string;
2474
+ password: string;
2475
+ }
2476
+ interface RefreshTokenParams {
2477
+ refresh_token: string;
2478
+ }
2479
+ /**
2480
+ * Authentication resource
2481
+ */
2482
+ declare class AuthenticationResource {
2483
+ private httpClient;
2484
+ private tokenManager;
2485
+ constructor(httpClient: HTTPClient, tokenManager: TokenManager);
2486
+ /**
2487
+ * Login with username and password
2488
+ */
2489
+ login(params: LoginParams): Promise<ApiV2AuthenticationTokenPost200Response>;
2490
+ /**
2491
+ * Refresh access token using refresh token
2492
+ */
2493
+ refreshToken(refreshToken: string): Promise<ApiV2AuthenticationRefreshTokenPost200Response>;
2494
+ }
2495
+
2496
+ interface ConfigurationParameters {
2497
+ basePath?: string;
2498
+ fetchApi?: FetchAPI;
2499
+ middleware?: Middleware[];
2500
+ queryParamsStringify?: (params: HTTPQuery) => string;
2501
+ username?: string;
2502
+ password?: string;
2503
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
2504
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
2505
+ headers?: HTTPHeaders;
2506
+ credentials?: RequestCredentials;
2507
+ }
2508
+ declare class Configuration {
2509
+ private configuration;
2510
+ constructor(configuration?: ConfigurationParameters);
2511
+ set config(configuration: Configuration);
2512
+ get basePath(): string;
2513
+ get fetchApi(): FetchAPI | undefined;
2514
+ get middleware(): Middleware[];
2515
+ get queryParamsStringify(): (params: HTTPQuery) => string;
2516
+ get username(): string | undefined;
2517
+ get password(): string | undefined;
2518
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
2519
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
2520
+ get headers(): HTTPHeaders | undefined;
2521
+ get credentials(): RequestCredentials | undefined;
2522
+ }
2523
+ type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
2524
+ type HTTPHeaders = {
2525
+ [key: string]: string;
2526
+ };
2527
+ type HTTPQuery = {
2528
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
2529
+ };
2530
+ interface FetchParams {
2531
+ url: string;
2532
+ init: RequestInit;
2533
+ }
2534
+ interface RequestContext {
2535
+ fetch: FetchAPI;
2536
+ url: string;
2537
+ init: RequestInit;
2538
+ }
2539
+ interface ResponseContext {
2540
+ fetch: FetchAPI;
2541
+ url: string;
2542
+ init: RequestInit;
2543
+ response: Response;
2544
+ }
2545
+ interface ErrorContext {
2546
+ fetch: FetchAPI;
2547
+ url: string;
2548
+ init: RequestInit;
2549
+ error: unknown;
2550
+ response?: Response;
2551
+ }
2552
+ interface Middleware {
2553
+ pre?(context: RequestContext): Promise<FetchParams | void>;
2554
+ post?(context: ResponseContext): Promise<Response | void>;
2555
+ onError?(context: ErrorContext): Promise<Response | void>;
2556
+ }
2557
+
2558
+ interface OrderCreateParams extends Omit<Order, 'billing_address' | 'order_source' | 'discount_code' | 'partner_code' | 'order_original_data' | 'payment_method' | 'payment_transaction_id' | 'ag_invoice_requested' | 'suggested_delivery_method'> {
2559
+ }
2560
+ interface OrderStatusUpdateParams extends PostOrderStatus {
2561
+ }
2562
+ interface OrderCommentCreateParams extends CreateOrderComment {
2563
+ }
2564
+ interface OrderCancelParams {
2565
+ order_id: string;
2566
+ }
2567
+ /**
2568
+ * Orders resource
2569
+ */
2570
+ declare class OrdersResource {
2571
+ private httpClient;
2572
+ private orderApi;
2573
+ private cancellationApi;
2574
+ constructor(httpClient: HTTPClient, config: Configuration);
2575
+ /**
2576
+ * Create an order
2577
+ */
2578
+ create(params: OrderCreateParams): Promise<PostOrderResponse>;
2579
+ /**
2580
+ * Get current order status
2581
+ */
2582
+ getStatus(orderId: string): Promise<OrderStatus>;
2583
+ /**
2584
+ * Update order status
2585
+ */
2586
+ updateStatus(orderId: string, params: OrderStatusUpdateParams): Promise<PostOrderStatusResponse>;
2587
+ /**
2588
+ * Get order comments
2589
+ */
2590
+ getComments(orderId: string): Promise<PageOfOrderComments>;
2591
+ /**
2592
+ * Create an order comment
2593
+ */
2594
+ createComment(orderId: string, params: OrderCommentCreateParams): Promise<PostOrderCommentResponse>;
2595
+ /**
2596
+ * Get order invoices
2597
+ */
2598
+ getInvoices(orderId: string): Promise<PageOfInvoices>;
2599
+ /**
2600
+ * Get order tracking numbers
2601
+ */
2602
+ getTrackingNumbers(orderId: string): Promise<PageOfTrackingNumbers>;
2603
+ /**
2604
+ * Cancel an order
2605
+ */
2606
+ cancel(params: OrderCancelParams): Promise<OrderCancellationResponse>;
2607
+ }
2608
+
2609
+ interface InvoiceListParams {
2610
+ page?: number;
2611
+ from?: string;
2612
+ to?: string;
2613
+ }
2614
+ /**
2615
+ * Invoices resource
2616
+ */
2617
+ declare class InvoicesResource {
2618
+ private httpClient;
2619
+ private invoiceApi;
2620
+ constructor(httpClient: HTTPClient, config: Configuration);
2621
+ /**
2622
+ * List invoices
2623
+ */
2624
+ list(params?: InvoiceListParams): Promise<PageOfInvoices>;
2625
+ /**
2626
+ * Retrieve a specific invoice
2627
+ */
2628
+ retrieve(invoiceId: string): Promise<Invoice>;
2629
+ }
2630
+
2631
+ interface ClientListParams {
2632
+ page?: number;
2633
+ }
2634
+ /**
2635
+ * Clients resource
2636
+ */
2637
+ declare class ClientsResource {
2638
+ private httpClient;
2639
+ private clientApi;
2640
+ constructor(httpClient: HTTPClient, config: Configuration);
2641
+ /**
2642
+ * List clients (only commission type)
2643
+ */
2644
+ list(params?: ClientListParams): Promise<PageOfClients>;
2645
+ }
2646
+
2647
+ interface DiscountCodeListParams {
2648
+ page?: number;
2649
+ }
2650
+ /**
2651
+ * Discount Codes resource
2652
+ */
2653
+ declare class DiscountCodesResource {
2654
+ private httpClient;
2655
+ private discountCodeApi;
2656
+ constructor(httpClient: HTTPClient, config: Configuration);
2657
+ /**
2658
+ * List discount codes (only commission type)
2659
+ */
2660
+ list(params?: DiscountCodeListParams): Promise<GetApiV2DiscountCodesExternal200Response>;
2661
+ }
2662
+
2663
+ interface TrackingNumberListParams {
2664
+ page?: number;
2665
+ from?: string;
2666
+ to?: string;
2667
+ }
2668
+ /**
2669
+ * Tracking Numbers resource
2670
+ */
2671
+ declare class TrackingNumbersResource {
2672
+ private httpClient;
2673
+ private trackingNumberApi;
2674
+ constructor(httpClient: HTTPClient, config: Configuration);
2675
+ /**
2676
+ * List tracking numbers
2677
+ */
2678
+ list(params?: TrackingNumberListParams): Promise<PageOfTrackingNumbers>;
2679
+ }
2680
+
2681
+ interface OrderCommentListParams {
2682
+ page?: number;
2683
+ from?: string;
2684
+ to?: string;
2685
+ }
2686
+ /**
2687
+ * Order Comments resource
2688
+ */
2689
+ declare class OrderCommentsResource {
2690
+ private httpClient;
2691
+ private orderCommentApi;
2692
+ constructor(httpClient: HTTPClient, config: Configuration);
2693
+ /**
2694
+ * List order comments
2695
+ */
2696
+ list(params?: OrderCommentListParams): Promise<PageOfOrderComments>;
2697
+ }
2698
+
2699
+ interface OrderStatusChangeListParams {
2700
+ page?: number;
2701
+ from?: string;
2702
+ to?: string;
2703
+ }
2704
+ /**
2705
+ * Order Status Changes resource
2706
+ */
2707
+ declare class OrderStatusChangesResource {
2708
+ private httpClient;
2709
+ private orderStatusChangeApi;
2710
+ constructor(httpClient: HTTPClient, config: Configuration);
2711
+ /**
2712
+ * List order status changes
2713
+ */
2714
+ list(params?: OrderStatusChangeListParams): Promise<PageOfOrderStatusChanges>;
2715
+ }
2716
+
2717
+ /**
2718
+ * Users resource
2719
+ */
2720
+ declare class UsersResource {
2721
+ private httpClient;
2722
+ private userApi;
2723
+ constructor(httpClient: HTTPClient, config: Configuration);
2724
+ /**
2725
+ * Get current user (validate access token)
2726
+ */
2727
+ me(): Promise<Me>;
2728
+ }
2729
+
2730
+ interface DoboxaConfig {
2731
+ /**
2732
+ * API key (access token). If not provided, you must call authentication.login() first.
2733
+ */
2734
+ apiKey?: string;
2735
+ /**
2736
+ * Base URL for the API. Defaults to DOBOXA_API_URL environment variable or http://localhost
2737
+ */
2738
+ baseURL?: string;
2739
+ }
2740
+ /**
2741
+ * Main Doboxa client class
2742
+ */
2743
+ declare class Doboxa {
2744
+ readonly authentication: AuthenticationResource;
2745
+ readonly orders: OrdersResource;
2746
+ readonly invoices: InvoicesResource;
2747
+ readonly clients: ClientsResource;
2748
+ readonly discountCodes: DiscountCodesResource;
2749
+ readonly trackingNumbers: TrackingNumbersResource;
2750
+ readonly orderComments: OrderCommentsResource;
2751
+ readonly orderStatusChanges: OrderStatusChangesResource;
2752
+ readonly users: UsersResource;
2753
+ private tokenManager;
2754
+ private httpClient;
2755
+ private config;
2756
+ constructor(config?: DoboxaConfig);
2757
+ }
2758
+
2759
+ export { instanceOfClient as $, AuthenticationResource as A, type Bool as B, ClientsResource as C, Doboxa as D, ApiV2AuthenticationTokenPost200ResponseFromJSON as E, ApiV2AuthenticationTokenPost200ResponseFromJSONTyped as F, ApiV2AuthenticationTokenPost200ResponseToJSON as G, ApiV2AuthenticationTokenPost200ResponseToJSONTyped as H, InvoicesResource as I, type Attachment as J, instanceOfAttachment as K, type LoginParams as L, AttachmentFromJSON as M, AttachmentFromJSONTyped as N, OrdersResource as O, AttachmentToJSON as P, AttachmentToJSONTyped as Q, type RefreshTokenParams as R, type BillingAddress as S, TrackingNumbersResource as T, UsersResource as U, instanceOfBillingAddress as V, BillingAddressFromJSON as W, BillingAddressFromJSONTyped as X, BillingAddressToJSON as Y, BillingAddressToJSONTyped as Z, type Client as _, type DoboxaConfig as a, OrderFromJSON as a$, ClientFromJSON as a0, ClientFromJSONTyped as a1, ClientToJSON as a2, ClientToJSONTyped as a3, type CreateOrderComment as a4, CreateOrderCommentAuthorTypeEnum as a5, instanceOfCreateOrderComment as a6, CreateOrderCommentFromJSON as a7, CreateOrderCommentFromJSONTyped as a8, CreateOrderCommentToJSON as a9, type InvoiceItem as aA, instanceOfInvoiceItem as aB, InvoiceItemFromJSON as aC, InvoiceItemFromJSONTyped as aD, InvoiceItemToJSON as aE, InvoiceItemToJSONTyped as aF, type InvoiceOrder as aG, instanceOfInvoiceOrder as aH, InvoiceOrderFromJSON as aI, InvoiceOrderFromJSONTyped as aJ, InvoiceOrderToJSON as aK, InvoiceOrderToJSONTyped as aL, type InvoiceOrderItem as aM, instanceOfInvoiceOrderItem as aN, InvoiceOrderItemFromJSON as aO, InvoiceOrderItemFromJSONTyped as aP, InvoiceOrderItemToJSON as aQ, InvoiceOrderItemToJSONTyped as aR, type Me as aS, instanceOfMe as aT, MeFromJSON as aU, MeFromJSONTyped as aV, MeToJSON as aW, MeToJSONTyped as aX, type Order as aY, OrderPaymentMethodEnum as aZ, instanceOfOrder as a_, CreateOrderCommentToJSONTyped as aa, type DeliveryAddress as ab, instanceOfDeliveryAddress as ac, DeliveryAddressFromJSON as ad, DeliveryAddressFromJSONTyped as ae, DeliveryAddressToJSON as af, DeliveryAddressToJSONTyped as ag, type GetApiV2DiscountCodesExternal200Response as ah, instanceOfGetApiV2DiscountCodesExternal200Response as ai, GetApiV2DiscountCodesExternal200ResponseFromJSON as aj, GetApiV2DiscountCodesExternal200ResponseFromJSONTyped as ak, GetApiV2DiscountCodesExternal200ResponseToJSON as al, GetApiV2DiscountCodesExternal200ResponseToJSONTyped as am, type GetApiV2DiscountCodesExternal200ResponseItemsInner as an, instanceOfGetApiV2DiscountCodesExternal200ResponseItemsInner as ao, GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSON as ap, GetApiV2DiscountCodesExternal200ResponseItemsInnerFromJSONTyped as aq, GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSON as ar, GetApiV2DiscountCodesExternal200ResponseItemsInnerToJSONTyped as as, type Invoice as at, InvoiceDocumentTypeEnum as au, instanceOfInvoice as av, InvoiceFromJSON as aw, InvoiceFromJSONTyped as ax, InvoiceToJSON as ay, InvoiceToJSONTyped as az, DiscountCodesResource as b, OrderStatusChangeToJSONTyped as b$, OrderFromJSONTyped as b0, OrderToJSON as b1, OrderToJSONTyped as b2, type OrderCancellationResponse as b3, OrderCancellationResponseDetailsEnum as b4, instanceOfOrderCancellationResponse as b5, OrderCancellationResponseFromJSON as b6, OrderCancellationResponseFromJSONTyped as b7, OrderCancellationResponseToJSON as b8, OrderCancellationResponseToJSONTyped as b9, OrderItemOriginalDataToJSONTyped as bA, type OrderItemStatus as bB, OrderItemStatusStatusEnum as bC, instanceOfOrderItemStatus as bD, OrderItemStatusFromJSON as bE, OrderItemStatusFromJSONTyped as bF, OrderItemStatusToJSON as bG, OrderItemStatusToJSONTyped as bH, type OrderOriginalData as bI, instanceOfOrderOriginalData as bJ, OrderOriginalDataFromJSON as bK, OrderOriginalDataFromJSONTyped as bL, OrderOriginalDataToJSON as bM, OrderOriginalDataToJSONTyped as bN, type OrderStatus as bO, OrderStatusStatusEnum as bP, instanceOfOrderStatus as bQ, OrderStatusFromJSON as bR, OrderStatusFromJSONTyped as bS, OrderStatusToJSON as bT, OrderStatusToJSONTyped as bU, type OrderStatusChange as bV, OrderStatusChangeStatusEnum as bW, instanceOfOrderStatusChange as bX, OrderStatusChangeFromJSON as bY, OrderStatusChangeFromJSONTyped as bZ, OrderStatusChangeToJSON as b_, type OrderComment as ba, OrderCommentAuthorTypeEnum as bb, instanceOfOrderComment as bc, OrderCommentFromJSON as bd, OrderCommentFromJSONTyped as be, OrderCommentToJSON as bf, OrderCommentToJSONTyped as bg, type OrderItem as bh, instanceOfOrderItem as bi, OrderItemFromJSON as bj, OrderItemFromJSONTyped as bk, OrderItemToJSON as bl, OrderItemToJSONTyped as bm, type OrderItemCropData as bn, OrderItemCropDataFilterEnum as bo, OrderItemCropDataReflectionEnum as bp, instanceOfOrderItemCropData as bq, OrderItemCropDataFromJSON as br, OrderItemCropDataFromJSONTyped as bs, OrderItemCropDataToJSON as bt, OrderItemCropDataToJSONTyped as bu, type OrderItemOriginalData as bv, instanceOfOrderItemOriginalData as bw, OrderItemOriginalDataFromJSON as bx, OrderItemOriginalDataFromJSONTyped as by, OrderItemOriginalDataToJSON as bz, OrderCommentsResource as c, instanceOfReturnLabel as c$, type PageOfClients as c0, instanceOfPageOfClients as c1, PageOfClientsFromJSON as c2, PageOfClientsFromJSONTyped as c3, PageOfClientsToJSON as c4, PageOfClientsToJSONTyped as c5, type PageOfInvoices as c6, instanceOfPageOfInvoices as c7, PageOfInvoicesFromJSON as c8, PageOfInvoicesFromJSONTyped as c9, type PostOrderResponse as cA, instanceOfPostOrderResponse as cB, PostOrderResponseFromJSON as cC, PostOrderResponseFromJSONTyped as cD, PostOrderResponseToJSON as cE, PostOrderResponseToJSONTyped as cF, type PostOrderStatus as cG, PostOrderStatusStatusEnum as cH, instanceOfPostOrderStatus as cI, PostOrderStatusFromJSON as cJ, PostOrderStatusFromJSONTyped as cK, PostOrderStatusToJSON as cL, PostOrderStatusToJSONTyped as cM, type PostOrderStatusItem as cN, PostOrderStatusItemStatusEnum as cO, instanceOfPostOrderStatusItem as cP, PostOrderStatusItemFromJSON as cQ, PostOrderStatusItemFromJSONTyped as cR, PostOrderStatusItemToJSON as cS, PostOrderStatusItemToJSONTyped as cT, type PostOrderStatusResponse as cU, instanceOfPostOrderStatusResponse as cV, PostOrderStatusResponseFromJSON as cW, PostOrderStatusResponseFromJSONTyped as cX, PostOrderStatusResponseToJSON as cY, PostOrderStatusResponseToJSONTyped as cZ, type ReturnLabel as c_, PageOfInvoicesToJSON as ca, PageOfInvoicesToJSONTyped as cb, type PageOfOrderComments as cc, instanceOfPageOfOrderComments as cd, PageOfOrderCommentsFromJSON as ce, PageOfOrderCommentsFromJSONTyped as cf, PageOfOrderCommentsToJSON as cg, PageOfOrderCommentsToJSONTyped as ch, type PageOfOrderStatusChanges as ci, instanceOfPageOfOrderStatusChanges as cj, PageOfOrderStatusChangesFromJSON as ck, PageOfOrderStatusChangesFromJSONTyped as cl, PageOfOrderStatusChangesToJSON as cm, PageOfOrderStatusChangesToJSONTyped as cn, type PageOfTrackingNumbers as co, instanceOfPageOfTrackingNumbers as cp, PageOfTrackingNumbersFromJSON as cq, PageOfTrackingNumbersFromJSONTyped as cr, PageOfTrackingNumbersToJSON as cs, PageOfTrackingNumbersToJSONTyped as ct, type PostOrderCommentResponse as cu, instanceOfPostOrderCommentResponse as cv, PostOrderCommentResponseFromJSON as cw, PostOrderCommentResponseFromJSONTyped as cx, PostOrderCommentResponseToJSON as cy, PostOrderCommentResponseToJSONTyped as cz, OrderStatusChangesResource as d, ReturnLabelFromJSON as d0, ReturnLabelFromJSONTyped as d1, ReturnLabelToJSON as d2, ReturnLabelToJSONTyped as d3, type TrackingNumber as d4, instanceOfTrackingNumber as d5, TrackingNumberFromJSON as d6, TrackingNumberFromJSONTyped as d7, TrackingNumberToJSON as d8, TrackingNumberToJSONTyped as d9, type TrackingNumberItem as da, instanceOfTrackingNumberItem as db, TrackingNumberItemFromJSON as dc, TrackingNumberItemFromJSONTyped as dd, TrackingNumberItemToJSON as de, TrackingNumberItemToJSONTyped as df, type Waybill as dg, WaybillDeliveryMethodEnum as dh, instanceOfWaybill as di, WaybillFromJSON as dj, WaybillFromJSONTyped as dk, WaybillToJSON as dl, WaybillToJSONTyped as dm, type OrderCreateParams as e, type OrderStatusUpdateParams as f, type OrderCommentCreateParams as g, type OrderCancelParams as h, type InvoiceListParams as i, type ClientListParams as j, type DiscountCodeListParams as k, type TrackingNumberListParams as l, type OrderCommentListParams as m, type OrderStatusChangeListParams as n, BoolFromJSON as o, BoolFromJSONTyped as p, BoolToJSON as q, BoolToJSONTyped as r, type ApiV2AuthenticationRefreshTokenPost200Response as s, instanceOfApiV2AuthenticationRefreshTokenPost200Response as t, ApiV2AuthenticationRefreshTokenPost200ResponseFromJSON as u, ApiV2AuthenticationRefreshTokenPost200ResponseFromJSONTyped as v, ApiV2AuthenticationRefreshTokenPost200ResponseToJSON as w, ApiV2AuthenticationRefreshTokenPost200ResponseToJSONTyped as x, type ApiV2AuthenticationTokenPost200Response as y, instanceOfApiV2AuthenticationTokenPost200Response as z };