yellowgrid-api-ts 3.1.5-dev.0 → 3.1.6

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 (57) hide show
  1. package/.openapi-generator/FILES +197 -213
  2. package/README.md +9 -34
  3. package/api.ts +406 -1877
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/config.json +3 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +243 -1346
  9. package/dist/api.js +306 -1129
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/docs/AccountsApi.md +0 -103
  19. package/docs/AddressModel.md +0 -2
  20. package/docs/CRMApi.md +55 -0
  21. package/docs/Class3CXApi.md +55 -0
  22. package/docs/ClientDetailsModel.md +2 -0
  23. package/docs/CrmContactDTO.md +31 -0
  24. package/docs/{ShippingServicesModel.md → GetGetPasswordHash200Response.md} +5 -5
  25. package/docs/ItemDTO.md +4 -12
  26. package/docs/ItemEntity.md +0 -2
  27. package/docs/OrderSummaryDTO.md +0 -8
  28. package/docs/OrderTotalModel.md +0 -2
  29. package/docs/OrdersApi.md +4 -356
  30. package/docs/ProductSearchResultsModel.md +1 -1
  31. package/docs/{ProductSummaryDTO.md → ProductSummaryModel.md} +3 -5
  32. package/docs/ProductsApi.md +43 -164
  33. package/docs/ProvisioningApi.md +4 -4
  34. package/docs/{ProvisioningModel.md → ProvisioningEntity.md} +3 -3
  35. package/docs/ShipmentEntity.md +2 -2
  36. package/docs/StockManagementApi.md +2 -2
  37. package/docs/TcxSbcModel.md +1 -1
  38. package/index.ts +1 -1
  39. package/package.json +1 -1
  40. package/docs/AbstractOrderRequestDTO.md +0 -33
  41. package/docs/AccountDetailedSummaryDTO.md +0 -39
  42. package/docs/AdminItemRequestDTO.md +0 -39
  43. package/docs/AdminOrderRequestDTO.md +0 -45
  44. package/docs/AdminUserModel.md +0 -29
  45. package/docs/BasicItemDTO.md +0 -23
  46. package/docs/BasicProductDTO.md +0 -23
  47. package/docs/CourierPriceEntity.md +0 -39
  48. package/docs/CustomerItemRequestDTO.md +0 -35
  49. package/docs/CustomerOrderRequestDTO.md +0 -33
  50. package/docs/LinkedOrderEntity.md +0 -23
  51. package/docs/PostGetProductForCustomerRequest.md +0 -24
  52. package/docs/ShippingApi.md +0 -63
  53. package/docs/ShippingConsignmentModel.md +0 -26
  54. package/docs/ShippingInformationDTO.md +0 -25
  55. package/docs/ShippingServiceDTO.md +0 -23
  56. package/docs/ShippingServiceModel.md +0 -31
  57. package/docs/TcxSbcDTO.md +0 -31
package/api.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Yellowgrid
5
- * Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
5
+ * Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
6
6
  *
7
7
  * The version of the OpenAPI document: 0
8
8
  *
@@ -23,55 +23,6 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
- /**
27
- * Order Request
28
- * @export
29
- * @interface AbstractOrderRequestDTO
30
- */
31
- export interface AbstractOrderRequestDTO {
32
- /**
33
- * Order Reference
34
- * @type {string}
35
- * @memberof AbstractOrderRequestDTO
36
- */
37
- 'orderReference'?: string | null;
38
- /**
39
- * Items
40
- * @type {Array<CustomerItemRequestDTO>}
41
- * @memberof AbstractOrderRequestDTO
42
- */
43
- 'items'?: Array<CustomerItemRequestDTO>;
44
- /**
45
- *
46
- * @type {ShippingServiceDTO}
47
- * @memberof AbstractOrderRequestDTO
48
- */
49
- 'shippingService'?: ShippingServiceDTO;
50
- /**
51
- * Provisioning URL
52
- * @type {string}
53
- * @memberof AbstractOrderRequestDTO
54
- */
55
- 'provisioningUrl'?: string | null;
56
- /**
57
- *
58
- * @type {AddressModel}
59
- * @memberof AbstractOrderRequestDTO
60
- */
61
- 'shippingAddress'?: AddressModel | null;
62
- /**
63
- * Part Ship Order
64
- * @type {boolean}
65
- * @memberof AbstractOrderRequestDTO
66
- */
67
- 'partShip'?: boolean;
68
- /**
69
- * Quote
70
- * @type {boolean}
71
- * @memberof AbstractOrderRequestDTO
72
- */
73
- 'quote'?: boolean;
74
- }
75
26
  /**
76
27
  * AccountContactsEntity
77
28
  * @export
@@ -303,73 +254,6 @@ export interface AccountContactRequestModel {
303
254
  */
304
255
  'despatchEmails'?: boolean;
305
256
  }
306
- /**
307
- * Account Details
308
- * @export
309
- * @interface AccountDetailedSummaryDTO
310
- */
311
- export interface AccountDetailedSummaryDTO {
312
- /**
313
- * ID
314
- * @type {number}
315
- * @memberof AccountDetailedSummaryDTO
316
- */
317
- 'id'?: number;
318
- /**
319
- * Xero ID
320
- * @type {string}
321
- * @memberof AccountDetailedSummaryDTO
322
- */
323
- 'xeroId'?: string;
324
- /**
325
- * Company
326
- * @type {string}
327
- * @memberof AccountDetailedSummaryDTO
328
- */
329
- 'company'?: string;
330
- /**
331
- * Credit Limit
332
- * @type {number}
333
- * @memberof AccountDetailedSummaryDTO
334
- */
335
- 'creditLimit'?: number;
336
- /**
337
- * Contacts
338
- * @type {Array<AccountContactModel>}
339
- * @memberof AccountDetailedSummaryDTO
340
- */
341
- 'contacts'?: Array<AccountContactModel>;
342
- /**
343
- *
344
- * @type {AddressModel}
345
- * @memberof AccountDetailedSummaryDTO
346
- */
347
- 'billingAddress'?: AddressModel;
348
- /**
349
- * Addresses
350
- * @type {Array<AddressModel>}
351
- * @memberof AccountDetailedSummaryDTO
352
- */
353
- 'addresses'?: Array<AddressModel>;
354
- /**
355
- * Provisioning URLs
356
- * @type {Array<ProvisioningModel>}
357
- * @memberof AccountDetailedSummaryDTO
358
- */
359
- 'provisioningUrls'?: Array<ProvisioningModel>;
360
- /**
361
- * On Hold
362
- * @type {boolean}
363
- * @memberof AccountDetailedSummaryDTO
364
- */
365
- 'onHold'?: boolean;
366
- /**
367
- * Balance (£)
368
- * @type {number}
369
- * @memberof AccountDetailedSummaryDTO
370
- */
371
- 'balance'?: number | null;
372
- }
373
257
  /**
374
258
  * New Account Request
375
259
  * @export
@@ -619,12 +503,6 @@ export interface AddressModel {
619
503
  * @memberof AddressModel
620
504
  */
621
505
  'company'?: string;
622
- /**
623
- * Default
624
- * @type {boolean}
625
- * @memberof AddressModel
626
- */
627
- 'default'?: boolean;
628
506
  }
629
507
  /**
630
508
  * Address Request
@@ -657,206 +535,6 @@ export interface AddressRequestModel {
657
535
  */
658
536
  'addressPostcode'?: string;
659
537
  }
660
- /**
661
- * Admin Order Item Request
662
- * @export
663
- * @interface AdminItemRequestDTO
664
- */
665
- export interface AdminItemRequestDTO {
666
- /**
667
- * SKU
668
- * @type {string}
669
- * @memberof AdminItemRequestDTO
670
- */
671
- 'sku'?: string;
672
- /**
673
- * Quantity
674
- * @type {number}
675
- * @memberof AdminItemRequestDTO
676
- */
677
- 'quantity'?: number;
678
- /**
679
- * ID
680
- * @type {number}
681
- * @memberof AdminItemRequestDTO
682
- */
683
- 'id'?: number | null;
684
- /**
685
- * 3CX Licence Key
686
- * @type {string}
687
- * @memberof AdminItemRequestDTO
688
- */
689
- 'licenceKey'?: string | null;
690
- /**
691
- * 3CX Hosting
692
- * @type {boolean}
693
- * @memberof AdminItemRequestDTO
694
- */
695
- 'hosting'?: boolean | null;
696
- /**
697
- * Date Time
698
- * @type {string}
699
- * @memberof AdminItemRequestDTO
700
- */
701
- 'processDate'?: string;
702
- /**
703
- * 3CX Sales Code
704
- * @type {string}
705
- * @memberof AdminItemRequestDTO
706
- */
707
- 'tcxSalesCode'?: string | null;
708
- /**
709
- * SBCS
710
- * @type {Array<TcxSbcDTO>}
711
- * @memberof AdminItemRequestDTO
712
- */
713
- 'sbcs'?: Array<TcxSbcDTO>;
714
- /**
715
- * Title
716
- * @type {string}
717
- * @memberof AdminItemRequestDTO
718
- */
719
- 'title'?: string | null;
720
- /**
721
- * Price (£)
722
- * @type {number}
723
- * @memberof AdminItemRequestDTO
724
- */
725
- 'itemPrice'?: number | null;
726
- }
727
- /**
728
- * Admin Order Request
729
- * @export
730
- * @interface AdminOrderRequestDTO
731
- */
732
- export interface AdminOrderRequestDTO {
733
- /**
734
- * Order Reference
735
- * @type {string}
736
- * @memberof AdminOrderRequestDTO
737
- */
738
- 'orderReference'?: string | null;
739
- /**
740
- * Items
741
- * @type {Array<AdminItemRequestDTO>}
742
- * @memberof AdminOrderRequestDTO
743
- */
744
- 'items'?: Array<AdminItemRequestDTO>;
745
- /**
746
- *
747
- * @type {ShippingServiceDTO}
748
- * @memberof AdminOrderRequestDTO
749
- */
750
- 'shippingService'?: ShippingServiceDTO;
751
- /**
752
- * Provisioning URL
753
- * @type {string}
754
- * @memberof AdminOrderRequestDTO
755
- */
756
- 'provisioningUrl'?: string | null;
757
- /**
758
- *
759
- * @type {AddressModel}
760
- * @memberof AdminOrderRequestDTO
761
- */
762
- 'shippingAddress'?: AddressModel;
763
- /**
764
- * Part Ship Order
765
- * @type {boolean}
766
- * @memberof AdminOrderRequestDTO
767
- */
768
- 'partShip'?: boolean;
769
- /**
770
- * Quote
771
- * @type {boolean}
772
- * @memberof AdminOrderRequestDTO
773
- */
774
- 'quote'?: boolean;
775
- /**
776
- * Customer ID
777
- * @type {number}
778
- * @memberof AdminOrderRequestDTO
779
- */
780
- 'customerId'?: number;
781
- /**
782
- * Contact
783
- * @type {string}
784
- * @memberof AdminOrderRequestDTO
785
- */
786
- 'contact'?: string;
787
- /**
788
- * Ignore Customer On Hold
789
- * @type {boolean}
790
- * @memberof AdminOrderRequestDTO
791
- */
792
- 'ignoreOnHold'?: boolean;
793
- /**
794
- * Ignore Customer Credit Limit
795
- * @type {boolean}
796
- * @memberof AdminOrderRequestDTO
797
- */
798
- 'ignoreCreditLimit'?: boolean;
799
- /**
800
- * Include NFR Promos
801
- * @type {boolean}
802
- * @memberof AdminOrderRequestDTO
803
- */
804
- 'includeNfrPromos'?: boolean;
805
- /**
806
- * Carriage Charge
807
- * @type {number}
808
- * @memberof AdminOrderRequestDTO
809
- */
810
- 'carriageCharge'?: number;
811
- }
812
- /**
813
- * Admin User
814
- * @export
815
- * @interface AdminUserModel
816
- */
817
- export interface AdminUserModel {
818
- /**
819
- * First Name
820
- * @type {string}
821
- * @memberof AdminUserModel
822
- */
823
- 'firstName'?: string;
824
- /**
825
- * Last Name
826
- * @type {string}
827
- * @memberof AdminUserModel
828
- */
829
- 'lastName'?: string;
830
- /**
831
- * Avatar
832
- * @type {string}
833
- * @memberof AdminUserModel
834
- */
835
- 'avatar'?: string | null;
836
- /**
837
- * Role
838
- * @type {number}
839
- * @memberof AdminUserModel
840
- */
841
- 'role'?: AdminUserModelRoleEnum;
842
- /**
843
- * Email
844
- * @type {string}
845
- * @memberof AdminUserModel
846
- */
847
- 'email'?: string | null;
848
- }
849
-
850
- export const AdminUserModelRoleEnum = {
851
- NUMBER_0: 0,
852
- NUMBER_1: 1,
853
- NUMBER_2: 2,
854
- NUMBER_3: 3,
855
- NUMBER_4: 4
856
- } as const;
857
-
858
- export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
859
-
860
538
  /**
861
539
  * Agent Hours Graph
862
540
  * @export
@@ -1086,44 +764,6 @@ export interface AuthCodeResponseModel {
1086
764
  */
1087
765
  'redirect_uri'?: string | null;
1088
766
  }
1089
- /**
1090
- * Basic Order Item
1091
- * @export
1092
- * @interface BasicItemDTO
1093
- */
1094
- export interface BasicItemDTO {
1095
- /**
1096
- * SKU
1097
- * @type {string}
1098
- * @memberof BasicItemDTO
1099
- */
1100
- 'sku'?: string;
1101
- /**
1102
- * Quantity
1103
- * @type {number}
1104
- * @memberof BasicItemDTO
1105
- */
1106
- 'quantity'?: number;
1107
- }
1108
- /**
1109
- * Basic Product
1110
- * @export
1111
- * @interface BasicProductDTO
1112
- */
1113
- export interface BasicProductDTO {
1114
- /**
1115
- * SKU
1116
- * @type {string}
1117
- * @memberof BasicProductDTO
1118
- */
1119
- 'sku'?: string;
1120
- /**
1121
- * Title
1122
- * @type {string}
1123
- * @memberof BasicProductDTO
1124
- */
1125
- 'title'?: string;
1126
- }
1127
767
  /**
1128
768
  * BatchesEntity
1129
769
  * @export
@@ -1318,6 +958,12 @@ export interface ClientDetailsModel {
1318
958
  * @memberof ClientDetailsModel
1319
959
  */
1320
960
  'lastName'?: string;
961
+ /**
962
+ * User Profile Picture
963
+ * @type {string}
964
+ * @memberof ClientDetailsModel
965
+ */
966
+ 'image'?: string | null;
1321
967
  }
1322
968
  /**
1323
969
  * OAuth client details
@@ -1480,102 +1126,35 @@ export interface ConversationModel {
1480
1126
  'attachments'?: Array<AttachmentModel>;
1481
1127
  }
1482
1128
  /**
1483
- * CourierPricesEntity
1129
+ * Credit Account
1484
1130
  * @export
1485
- * @interface CourierPriceEntity
1131
+ * @interface CreditAccountEntity
1486
1132
  */
1487
- export interface CourierPriceEntity {
1133
+ export interface CreditAccountEntity {
1488
1134
  /**
1489
- * id
1135
+ * ID
1490
1136
  * @type {number}
1491
- * @memberof CourierPriceEntity
1137
+ * @memberof CreditAccountEntity
1492
1138
  */
1493
1139
  'id'?: number;
1494
1140
  /**
1495
- * courier
1141
+ * Contact Name
1496
1142
  * @type {string}
1497
- * @memberof CourierPriceEntity
1143
+ * @memberof CreditAccountEntity
1498
1144
  */
1499
- 'courier'?: string;
1145
+ 'name'?: string;
1500
1146
  /**
1501
- * destinationIso
1147
+ * Email
1502
1148
  * @type {string}
1503
- * @memberof CourierPriceEntity
1149
+ * @memberof CreditAccountEntity
1504
1150
  */
1505
- 'destinationIso'?: string;
1151
+ 'email'?: string;
1506
1152
  /**
1507
- * serviceDescription
1153
+ * Phone Number
1508
1154
  * @type {string}
1509
- * @memberof CourierPriceEntity
1155
+ * @memberof CreditAccountEntity
1510
1156
  */
1511
- 'serviceDescription'?: string;
1512
- /**
1513
- * flatRate
1514
- * @type {number}
1515
- * @memberof CourierPriceEntity
1516
- */
1517
- 'flatRate'?: number;
1518
- /**
1519
- * initialBox
1520
- * @type {number}
1521
- * @memberof CourierPriceEntity
1522
- */
1523
- 'initialBox'?: number;
1524
- /**
1525
- * initialKg
1526
- * @type {number}
1527
- * @memberof CourierPriceEntity
1528
- */
1529
- 'initialKg'?: number;
1530
- /**
1531
- * perBox
1532
- * @type {number}
1533
- * @memberof CourierPriceEntity
1534
- */
1535
- 'perBox'?: number;
1536
- /**
1537
- * perKg
1538
- * @type {number}
1539
- * @memberof CourierPriceEntity
1540
- */
1541
- 'perKg'?: number;
1542
- /**
1543
- * maxKg
1544
- * @type {number}
1545
- * @memberof CourierPriceEntity
1546
- */
1547
- 'maxKg'?: number;
1548
- }
1549
- /**
1550
- * Credit Account
1551
- * @export
1552
- * @interface CreditAccountEntity
1553
- */
1554
- export interface CreditAccountEntity {
1555
- /**
1556
- * ID
1557
- * @type {number}
1558
- * @memberof CreditAccountEntity
1559
- */
1560
- 'id'?: number;
1561
- /**
1562
- * Contact Name
1563
- * @type {string}
1564
- * @memberof CreditAccountEntity
1565
- */
1566
- 'name'?: string;
1567
- /**
1568
- * Email
1569
- * @type {string}
1570
- * @memberof CreditAccountEntity
1571
- */
1572
- 'email'?: string;
1573
- /**
1574
- * Phone Number
1575
- * @type {string}
1576
- * @memberof CreditAccountEntity
1577
- */
1578
- 'phone'?: string;
1157
+ 'phone'?: string;
1579
1158
  /**
1580
1159
  * Company Name
1581
1160
  * @type {string}
@@ -1679,6 +1258,49 @@ export interface CreditAccountEntity {
1679
1258
  */
1680
1259
  'prizePromo'?: boolean;
1681
1260
  }
1261
+ /**
1262
+ * CRM Contact
1263
+ * @export
1264
+ * @interface CrmContactDTO
1265
+ */
1266
+ export interface CrmContactDTO {
1267
+ /**
1268
+ * Contact ID
1269
+ * @type {string}
1270
+ * @memberof CrmContactDTO
1271
+ */
1272
+ 'id'?: string;
1273
+ /**
1274
+ * Contact Name
1275
+ * @type {string}
1276
+ * @memberof CrmContactDTO
1277
+ */
1278
+ 'name'?: string;
1279
+ /**
1280
+ * Phone Number
1281
+ * @type {string}
1282
+ * @memberof CrmContactDTO
1283
+ */
1284
+ 'phone'?: string;
1285
+ /**
1286
+ * Company Name
1287
+ * @type {string}
1288
+ * @memberof CrmContactDTO
1289
+ */
1290
+ 'company'?: string;
1291
+ /**
1292
+ * Email Address
1293
+ * @type {string}
1294
+ * @memberof CrmContactDTO
1295
+ */
1296
+ 'email'?: string;
1297
+ /**
1298
+ * URL
1299
+ * @type {string}
1300
+ * @memberof CrmContactDTO
1301
+ */
1302
+ 'url'?: string;
1303
+ }
1682
1304
  /**
1683
1305
  * SIP Trunk Customer
1684
1306
  * @export
@@ -1728,110 +1350,6 @@ export interface CustomerInformationModel {
1728
1350
  */
1729
1351
  'contactLastName'?: string;
1730
1352
  }
1731
- /**
1732
- * Order Item Request
1733
- * @export
1734
- * @interface CustomerItemRequestDTO
1735
- */
1736
- export interface CustomerItemRequestDTO {
1737
- /**
1738
- * SKU
1739
- * @type {string}
1740
- * @memberof CustomerItemRequestDTO
1741
- */
1742
- 'sku'?: string;
1743
- /**
1744
- * Quantity
1745
- * @type {number}
1746
- * @memberof CustomerItemRequestDTO
1747
- */
1748
- 'quantity'?: number;
1749
- /**
1750
- * ID
1751
- * @type {number}
1752
- * @memberof CustomerItemRequestDTO
1753
- */
1754
- 'id'?: number | null;
1755
- /**
1756
- * 3CX Licence Key
1757
- * @type {string}
1758
- * @memberof CustomerItemRequestDTO
1759
- */
1760
- 'licenceKey'?: string | null;
1761
- /**
1762
- * 3CX Hosting
1763
- * @type {boolean}
1764
- * @memberof CustomerItemRequestDTO
1765
- */
1766
- 'hosting'?: boolean | null;
1767
- /**
1768
- * Date Time
1769
- * @type {string}
1770
- * @memberof CustomerItemRequestDTO
1771
- */
1772
- 'processDate'?: string;
1773
- /**
1774
- * 3CX Sales Code
1775
- * @type {string}
1776
- * @memberof CustomerItemRequestDTO
1777
- */
1778
- 'tcxSalesCode'?: string | null;
1779
- /**
1780
- * SBCS
1781
- * @type {Array<TcxSbcDTO>}
1782
- * @memberof CustomerItemRequestDTO
1783
- */
1784
- 'sbcs'?: Array<TcxSbcDTO>;
1785
- }
1786
- /**
1787
- * Order Request
1788
- * @export
1789
- * @interface CustomerOrderRequestDTO
1790
- */
1791
- export interface CustomerOrderRequestDTO {
1792
- /**
1793
- * Order Reference
1794
- * @type {string}
1795
- * @memberof CustomerOrderRequestDTO
1796
- */
1797
- 'orderReference'?: string | null;
1798
- /**
1799
- * Items
1800
- * @type {Array<CustomerItemRequestDTO>}
1801
- * @memberof CustomerOrderRequestDTO
1802
- */
1803
- 'items'?: Array<CustomerItemRequestDTO>;
1804
- /**
1805
- *
1806
- * @type {ShippingServiceDTO}
1807
- * @memberof CustomerOrderRequestDTO
1808
- */
1809
- 'shippingService'?: ShippingServiceDTO;
1810
- /**
1811
- * Provisioning URL
1812
- * @type {string}
1813
- * @memberof CustomerOrderRequestDTO
1814
- */
1815
- 'provisioningUrl'?: string | null;
1816
- /**
1817
- *
1818
- * @type {AddressModel}
1819
- * @memberof CustomerOrderRequestDTO
1820
- */
1821
- 'shippingAddress'?: AddressModel;
1822
- /**
1823
- * Part Ship Order
1824
- * @type {boolean}
1825
- * @memberof CustomerOrderRequestDTO
1826
- */
1827
- 'partShip'?: boolean;
1828
- /**
1829
- * Quote
1830
- * @type {boolean}
1831
- * @memberof CustomerOrderRequestDTO
1832
- */
1833
- 'quote'?: boolean;
1834
- }
1835
1353
  /**
1836
1354
  * Customer Price List
1837
1355
  * @export
@@ -2341,6 +1859,19 @@ export interface GenericFileModel {
2341
1859
  */
2342
1860
  'type'?: string;
2343
1861
  }
1862
+ /**
1863
+ *
1864
+ * @export
1865
+ * @interface GetGetPasswordHash200Response
1866
+ */
1867
+ export interface GetGetPasswordHash200Response {
1868
+ /**
1869
+ *
1870
+ * @type {string}
1871
+ * @memberof GetGetPasswordHash200Response
1872
+ */
1873
+ 'hash'?: string;
1874
+ }
2344
1875
  /**
2345
1876
  *
2346
1877
  * @export
@@ -2941,36 +2472,36 @@ export interface InstanceUserCredentialsEntity {
2941
2472
  * @interface ItemDTO
2942
2473
  */
2943
2474
  export interface ItemDTO {
2944
- /**
2945
- * SKU
2946
- * @type {string}
2947
- * @memberof ItemDTO
2948
- */
2949
- 'sku'?: string;
2950
- /**
2951
- * Quantity
2952
- * @type {number}
2953
- * @memberof ItemDTO
2954
- */
2955
- 'quantity'?: number;
2956
2475
  /**
2957
2476
  * ID
2958
2477
  * @type {number}
2959
2478
  * @memberof ItemDTO
2960
2479
  */
2961
- 'id'?: number | null;
2480
+ 'id'?: number;
2962
2481
  /**
2963
2482
  * Order ID
2964
2483
  * @type {number}
2965
2484
  * @memberof ItemDTO
2966
2485
  */
2967
- 'orderId'?: number | null;
2486
+ 'orderId'?: number;
2968
2487
  /**
2969
2488
  * Title
2970
2489
  * @type {string}
2971
2490
  * @memberof ItemDTO
2972
2491
  */
2973
2492
  'title'?: string;
2493
+ /**
2494
+ * SKU
2495
+ * @type {string}
2496
+ * @memberof ItemDTO
2497
+ */
2498
+ 'sku'?: string;
2499
+ /**
2500
+ * Quantity
2501
+ * @type {number}
2502
+ * @memberof ItemDTO
2503
+ */
2504
+ 'quantity'?: number;
2974
2505
  /**
2975
2506
  * Price
2976
2507
  * @type {number}
@@ -2995,12 +2526,6 @@ export interface ItemDTO {
2995
2526
  * @memberof ItemDTO
2996
2527
  */
2997
2528
  'processDate'?: string;
2998
- /**
2999
- * 3CX Hosting
3000
- * @type {boolean}
3001
- * @memberof ItemDTO
3002
- */
3003
- 'hosting'?: boolean | null;
3004
2529
  /**
3005
2530
  * Promo Item
3006
2531
  * @type {boolean}
@@ -3012,25 +2537,7 @@ export interface ItemDTO {
3012
2537
  * @type {number}
3013
2538
  * @memberof ItemDTO
3014
2539
  */
3015
- 'refunded'?: number | null;
3016
- /**
3017
- * SBCs
3018
- * @type {Array<TcxSbcDTO>}
3019
- * @memberof ItemDTO
3020
- */
3021
- 'sbcs'?: Array<TcxSbcDTO> | null;
3022
- /**
3023
- * Readonly
3024
- * @type {boolean}
3025
- * @memberof ItemDTO
3026
- */
3027
- 'readonly'?: boolean;
3028
- /**
3029
- * 3CX Sales Code
3030
- * @type {string}
3031
- * @memberof ItemDTO
3032
- */
3033
- 'tcxSalesCode'?: string | null;
2540
+ 'refunded'?: number;
3034
2541
  }
3035
2542
  /**
3036
2543
  * ItemsEntity
@@ -3164,31 +2671,6 @@ export interface ItemEntity {
3164
2671
  * @memberof ItemEntity
3165
2672
  */
3166
2673
  'promoItem'?: number;
3167
- /**
3168
- * 3CX Sales Code
3169
- * @type {string}
3170
- * @memberof ItemEntity
3171
- */
3172
- 'tcxSalesCode'?: string | null;
3173
- }
3174
- /**
3175
- * LinkedOrdersEntity
3176
- * @export
3177
- * @interface LinkedOrderEntity
3178
- */
3179
- export interface LinkedOrderEntity {
3180
- /**
3181
- * orderId
3182
- * @type {number}
3183
- * @memberof LinkedOrderEntity
3184
- */
3185
- 'orderId'?: number;
3186
- /**
3187
- * linkedOrderId
3188
- * @type {number}
3189
- * @memberof LinkedOrderEntity
3190
- */
3191
- 'linkedOrderId'?: number;
3192
2674
  }
3193
2675
  /**
3194
2676
  * MFA Required
@@ -3849,19 +3331,13 @@ export interface OrderSummaryDTO {
3849
3331
  * @type {string}
3850
3332
  * @memberof OrderSummaryDTO
3851
3333
  */
3852
- 'reference'?: string | null;
3334
+ 'reference'?: string;
3853
3335
  /**
3854
3336
  * Invoice Number
3855
3337
  * @type {string}
3856
3338
  * @memberof OrderSummaryDTO
3857
3339
  */
3858
3340
  'invoiceNumber'?: string;
3859
- /**
3860
- * Invoice ID
3861
- * @type {string}
3862
- * @memberof OrderSummaryDTO
3863
- */
3864
- 'invoiceId'?: string | null;
3865
3341
  /**
3866
3342
  * Date Time
3867
3343
  * @type {string}
@@ -3916,24 +3392,6 @@ export interface OrderSummaryDTO {
3916
3392
  * @memberof OrderSummaryDTO
3917
3393
  */
3918
3394
  'fulfillable'?: boolean | null;
3919
- /**
3920
- * Provisioning URL
3921
- * @type {string}
3922
- * @memberof OrderSummaryDTO
3923
- */
3924
- 'provisioningUrl'?: string | null;
3925
- /**
3926
- *
3927
- * @type {ShippingServiceDTO}
3928
- * @memberof OrderSummaryDTO
3929
- */
3930
- 'shippingService'?: ShippingServiceDTO | null;
3931
- /**
3932
- * Readonly
3933
- * @type {boolean}
3934
- * @memberof OrderSummaryDTO
3935
- */
3936
- 'readonly'?: boolean;
3937
3395
  }
3938
3396
  /**
3939
3397
  * Order Totals
@@ -3983,12 +3441,6 @@ export interface OrderTotalModel {
3983
3441
  * @memberof OrderTotalModel
3984
3442
  */
3985
3443
  'currency'?: OrderTotalModelCurrencyEnum;
3986
- /**
3987
- * Delivery
3988
- * @type {number}
3989
- * @memberof OrderTotalModel
3990
- */
3991
- 'delivery'?: number | null;
3992
3444
  }
3993
3445
 
3994
3446
  export const OrderTotalModelCurrencyEnum = {
@@ -4370,31 +3822,6 @@ export interface PostGetClientCredentialsRequest {
4370
3822
  */
4371
3823
  'scopes'?: Array<string>;
4372
3824
  }
4373
- /**
4374
- *
4375
- * @export
4376
- * @interface PostGetProductForCustomerRequest
4377
- */
4378
- export interface PostGetProductForCustomerRequest {
4379
- /**
4380
- * Quantity
4381
- * @type {number}
4382
- * @memberof PostGetProductForCustomerRequest
4383
- */
4384
- 'quantity'?: number | null;
4385
- /**
4386
- * 3CX Licence Key
4387
- * @type {string}
4388
- * @memberof PostGetProductForCustomerRequest
4389
- */
4390
- 'licenceKey'?: string | null;
4391
- /**
4392
- * 3CX Hosting
4393
- * @type {boolean}
4394
- * @memberof PostGetProductForCustomerRequest
4395
- */
4396
- 'hosting'?: boolean | null;
4397
- }
4398
3825
  /**
4399
3826
  * Price & Stock List
4400
3827
  * @export
@@ -4483,10 +3910,10 @@ export interface PrizesEntity {
4483
3910
  export interface ProductSearchResultsModel {
4484
3911
  /**
4485
3912
  * Results
4486
- * @type {Array<ProductSummaryDTO>}
3913
+ * @type {Array<ProductSummaryModel>}
4487
3914
  * @memberof ProductSearchResultsModel
4488
3915
  */
4489
- 'results'?: Array<ProductSummaryDTO>;
3916
+ 'results'?: Array<ProductSummaryModel>;
4490
3917
  }
4491
3918
  /**
4492
3919
  * Product Serial Info
@@ -4522,51 +3949,45 @@ export interface ProductSerialInfoModel {
4522
3949
  /**
4523
3950
  * Product Summary
4524
3951
  * @export
4525
- * @interface ProductSummaryDTO
3952
+ * @interface ProductSummaryModel
4526
3953
  */
4527
- export interface ProductSummaryDTO {
3954
+ export interface ProductSummaryModel {
4528
3955
  /**
4529
3956
  * SKU
4530
3957
  * @type {string}
4531
- * @memberof ProductSummaryDTO
3958
+ * @memberof ProductSummaryModel
4532
3959
  */
4533
3960
  'sku'?: string;
4534
3961
  /**
4535
3962
  * Title
4536
3963
  * @type {string}
4537
- * @memberof ProductSummaryDTO
3964
+ * @memberof ProductSummaryModel
4538
3965
  */
4539
3966
  'title'?: string;
4540
3967
  /**
4541
3968
  * Stock Quantity
4542
3969
  * @type {number}
4543
- * @memberof ProductSummaryDTO
3970
+ * @memberof ProductSummaryModel
4544
3971
  */
4545
3972
  'quantity'?: number | null;
4546
3973
  /**
4547
3974
  * Stock Product
4548
3975
  * @type {boolean}
4549
- * @memberof ProductSummaryDTO
3976
+ * @memberof ProductSummaryModel
4550
3977
  */
4551
3978
  'stockProduct'?: boolean;
4552
3979
  /**
4553
3980
  * Price
4554
3981
  * @type {number}
4555
- * @memberof ProductSummaryDTO
3982
+ * @memberof ProductSummaryModel
4556
3983
  */
4557
3984
  'price'?: number | null;
4558
3985
  /**
4559
3986
  * Carton Size
4560
3987
  * @type {number}
4561
- * @memberof ProductSummaryDTO
3988
+ * @memberof ProductSummaryModel
4562
3989
  */
4563
3990
  'cartonSize'?: number | null;
4564
- /**
4565
- * RRP Price
4566
- * @type {number}
4567
- * @memberof ProductSummaryDTO
4568
- */
4569
- 'rrp'?: number | null;
4570
3991
  }
4571
3992
  /**
4572
3993
  * PromoCodesEntity
@@ -4705,37 +4126,37 @@ export interface PromoItemsEntity {
4705
4126
  /**
4706
4127
  * Provisioning Group
4707
4128
  * @export
4708
- * @interface ProvisioningModel
4129
+ * @interface ProvisioningEntity
4709
4130
  */
4710
- export interface ProvisioningModel {
4131
+ export interface ProvisioningEntity {
4711
4132
  /**
4712
4133
  * Provisioning Group Name
4713
4134
  * @type {string}
4714
- * @memberof ProvisioningModel
4135
+ * @memberof ProvisioningEntity
4715
4136
  */
4716
4137
  'groupName'?: string;
4717
4138
  /**
4718
4139
  * Provisioning URL (Static Provisioning Server)
4719
4140
  * @type {string}
4720
- * @memberof ProvisioningModel
4141
+ * @memberof ProvisioningEntity
4721
4142
  */
4722
4143
  'provisioningUrl'?: string;
4723
4144
  /**
4724
4145
  * Additional Authentication Secret
4725
4146
  * @type {string}
4726
- * @memberof ProvisioningModel
4147
+ * @memberof ProvisioningEntity
4727
4148
  */
4728
4149
  'auth'?: string;
4729
4150
  /**
4730
4151
  * Provisioning Group ID
4731
4152
  * @type {number}
4732
- * @memberof ProvisioningModel
4153
+ * @memberof ProvisioningEntity
4733
4154
  */
4734
4155
  'id'?: number;
4735
4156
  /**
4736
4157
  * Owner ID
4737
4158
  * @type {number}
4738
- * @memberof ProvisioningModel
4159
+ * @memberof ProvisioningEntity
4739
4160
  */
4740
4161
  'customerId'?: number;
4741
4162
  }
@@ -5089,7 +4510,7 @@ export interface ShipmentEntity {
5089
4510
  * @type {string}
5090
4511
  * @memberof ShipmentEntity
5091
4512
  */
5092
- 'dateShipped'?: string;
4513
+ 'date'?: string;
5093
4514
  /**
5094
4515
  * requestDate
5095
4516
  * @type {string}
@@ -5140,155 +4561,6 @@ export interface ShipmentItemEntity {
5140
4561
  */
5141
4562
  'itemId'?: string;
5142
4563
  }
5143
- /**
5144
- *
5145
- * @export
5146
- * @interface ShippingConsignmentModel
5147
- */
5148
- export interface ShippingConsignmentModel {
5149
- /**
5150
- *
5151
- * @type {ShippingServiceModel}
5152
- * @memberof ShippingConsignmentModel
5153
- */
5154
- 'service'?: ShippingServiceModel;
5155
- /**
5156
- * ID/Number
5157
- * @type {string}
5158
- * @memberof ShippingConsignmentModel
5159
- */
5160
- 'id'?: string;
5161
- /**
5162
- * Tracking Number
5163
- * @type {string}
5164
- * @memberof ShippingConsignmentModel
5165
- */
5166
- 'trackingNumber'?: string;
5167
- /**
5168
- * Parcels
5169
- * @type {Array<string>}
5170
- * @memberof ShippingConsignmentModel
5171
- */
5172
- 'parcelIds'?: Array<string>;
5173
- }
5174
- /**
5175
- * Shipping Information
5176
- * @export
5177
- * @interface ShippingInformationDTO
5178
- */
5179
- export interface ShippingInformationDTO {
5180
- /**
5181
- * Items
5182
- * @type {Array<BasicItemDTO>}
5183
- * @memberof ShippingInformationDTO
5184
- */
5185
- 'items'?: Array<BasicItemDTO>;
5186
- /**
5187
- * Destination Post Code
5188
- * @type {string}
5189
- * @memberof ShippingInformationDTO
5190
- */
5191
- 'postalCode'?: string;
5192
- /**
5193
- * Destination ISO
5194
- * @type {string}
5195
- * @memberof ShippingInformationDTO
5196
- */
5197
- 'iso'?: string;
5198
- }
5199
- /**
5200
- * Shipping Service
5201
- * @export
5202
- * @interface ShippingServiceDTO
5203
- */
5204
- export interface ShippingServiceDTO {
5205
- /**
5206
- * Courier
5207
- * @type {string}
5208
- * @memberof ShippingServiceDTO
5209
- */
5210
- 'courier'?: ShippingServiceDTOCourierEnum;
5211
- /**
5212
- * Service Name
5213
- * @type {string}
5214
- * @memberof ShippingServiceDTO
5215
- */
5216
- 'serviceName'?: string;
5217
- }
5218
-
5219
- export const ShippingServiceDTOCourierEnum = {
5220
- Dpd: 'DPD',
5221
- ChorltonPallet: 'Chorlton Pallet',
5222
- Pops: 'POPS'
5223
- } as const;
5224
-
5225
- export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
5226
-
5227
- /**
5228
- * Shipping Service
5229
- * @export
5230
- * @interface ShippingServiceModel
5231
- */
5232
- export interface ShippingServiceModel {
5233
- /**
5234
- * Courier
5235
- * @type {string}
5236
- * @memberof ShippingServiceModel
5237
- */
5238
- 'courier'?: ShippingServiceModelCourierEnum;
5239
- /**
5240
- * Code
5241
- * @type {string}
5242
- * @memberof ShippingServiceModel
5243
- */
5244
- 'code'?: string;
5245
- /**
5246
- * Name
5247
- * @type {string}
5248
- * @memberof ShippingServiceModel
5249
- */
5250
- 'name'?: string;
5251
- /**
5252
- * Description
5253
- * @type {string}
5254
- * @memberof ShippingServiceModel
5255
- */
5256
- 'description'?: string;
5257
- /**
5258
- * Label
5259
- * @type {string}
5260
- * @memberof ShippingServiceModel
5261
- */
5262
- 'label'?: string | null;
5263
- /**
5264
- * Price
5265
- * @type {number}
5266
- * @memberof ShippingServiceModel
5267
- */
5268
- 'price'?: number | null;
5269
- }
5270
-
5271
- export const ShippingServiceModelCourierEnum = {
5272
- Dpd: 'DPD',
5273
- ChorltonPallet: 'Chorlton Pallet',
5274
- Pops: 'POPS'
5275
- } as const;
5276
-
5277
- export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
5278
-
5279
- /**
5280
- *
5281
- * @export
5282
- * @interface ShippingServicesModel
5283
- */
5284
- export interface ShippingServicesModel {
5285
- /**
5286
- * Services
5287
- * @type {Array<ShippingServiceModel>}
5288
- * @memberof ShippingServicesModel
5289
- */
5290
- 'services'?: Array<ShippingServiceModel>;
5291
- }
5292
4564
  /**
5293
4565
  * Change Response
5294
4566
  * @export
@@ -8128,49 +7400,6 @@ export interface TcxRemoteStorageModel {
8128
7400
  */
8129
7401
  'secretAccessKey'?: string;
8130
7402
  }
8131
- /**
8132
- * SBC Data
8133
- * @export
8134
- * @interface TcxSbcDTO
8135
- */
8136
- export interface TcxSbcDTO {
8137
- /**
8138
- * LAN IP Address
8139
- * @type {string}
8140
- * @memberof TcxSbcDTO
8141
- */
8142
- 'ipAddress'?: string;
8143
- /**
8144
- * LAN Default Gateway
8145
- * @type {string}
8146
- * @memberof TcxSbcDTO
8147
- */
8148
- 'defaultGateway'?: string;
8149
- /**
8150
- * LAN Subnet Mask
8151
- * @type {string}
8152
- * @memberof TcxSbcDTO
8153
- */
8154
- 'netmask'?: string;
8155
- /**
8156
- * DNS
8157
- * @type {string}
8158
- * @memberof TcxSbcDTO
8159
- */
8160
- 'dns'?: string;
8161
- /**
8162
- * 3CX URL
8163
- * @type {string}
8164
- * @memberof TcxSbcDTO
8165
- */
8166
- 'tcxUrl'?: string;
8167
- /**
8168
- * 3CX SBC Key
8169
- * @type {string}
8170
- * @memberof TcxSbcDTO
8171
- */
8172
- 'tcxKey'?: string;
8173
- }
8174
7403
  /**
8175
7404
  * 3CX Wizard SBC
8176
7405
  * @export
@@ -8275,7 +7504,7 @@ export interface TcxSbcEntity {
8275
7504
  'technicalContact'?: string;
8276
7505
  }
8277
7506
  /**
8278
- * 3CX Wizard SBC
7507
+ * 3CX SBC Model
8279
7508
  * @export
8280
7509
  * @interface TcxSbcModel
8281
7510
  */
@@ -9460,40 +8689,6 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9460
8689
 
9461
8690
 
9462
8691
 
9463
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9464
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9465
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9466
-
9467
- return {
9468
- url: toPathString(localVarUrlObj),
9469
- options: localVarRequestOptions,
9470
- };
9471
- },
9472
- /**
9473
- * Get Account Detailed Summary
9474
- * @summary Get Account Detailed Summary
9475
- * @param {number} id Customer ID
9476
- * @param {*} [options] Override http request option.
9477
- * @throws {RequiredError}
9478
- */
9479
- getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9480
- // verify required parameter 'id' is not null or undefined
9481
- assertParamExists('getGetAccountDetailedSummary', 'id', id)
9482
- const localVarPath = `/accounts/{id}/summary`
9483
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9484
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9485
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9486
- let baseOptions;
9487
- if (configuration) {
9488
- baseOptions = configuration.baseOptions;
9489
- }
9490
-
9491
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9492
- const localVarHeaderParameter = {} as any;
9493
- const localVarQueryParameter = {} as any;
9494
-
9495
-
9496
-
9497
8692
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9498
8693
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9499
8694
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9792,36 +8987,6 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
9792
8987
  options: localVarRequestOptions,
9793
8988
  };
9794
8989
  },
9795
- /**
9796
- * Get Admin Account
9797
- * @summary Get Admin Account
9798
- * @param {*} [options] Override http request option.
9799
- * @throws {RequiredError}
9800
- */
9801
- postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9802
- const localVarPath = `/admin/me`;
9803
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9804
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9805
- let baseOptions;
9806
- if (configuration) {
9807
- baseOptions = configuration.baseOptions;
9808
- }
9809
-
9810
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
9811
- const localVarHeaderParameter = {} as any;
9812
- const localVarQueryParameter = {} as any;
9813
-
9814
-
9815
-
9816
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9817
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9818
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9819
-
9820
- return {
9821
- url: toPathString(localVarUrlObj),
9822
- options: localVarRequestOptions,
9823
- };
9824
- },
9825
8990
  /**
9826
8991
  * Create client credentials
9827
8992
  * @summary Create client credentials
@@ -10071,19 +9236,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
10071
9236
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
10072
9237
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10073
9238
  },
10074
- /**
10075
- * Get Account Detailed Summary
10076
- * @summary Get Account Detailed Summary
10077
- * @param {number} id Customer ID
10078
- * @param {*} [options] Override http request option.
10079
- * @throws {RequiredError}
10080
- */
10081
- async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
10082
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
10083
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10084
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
10085
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10086
- },
10087
9239
  /**
10088
9240
  * Get Accounts
10089
9241
  * @summary Get Accounts
@@ -10189,18 +9341,6 @@ export const AccountsApiFp = function(configuration?: Configuration) {
10189
9341
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
10190
9342
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10191
9343
  },
10192
- /**
10193
- * Get Admin Account
10194
- * @summary Get Admin Account
10195
- * @param {*} [options] Override http request option.
10196
- * @throws {RequiredError}
10197
- */
10198
- async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
10199
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
10200
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10201
- const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
10202
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10203
- },
10204
9344
  /**
10205
9345
  * Create client credentials
10206
9346
  * @summary Create client credentials
@@ -10318,16 +9458,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
10318
9458
  getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
10319
9459
  return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
10320
9460
  },
10321
- /**
10322
- * Get Account Detailed Summary
10323
- * @summary Get Account Detailed Summary
10324
- * @param {number} id Customer ID
10325
- * @param {*} [options] Override http request option.
10326
- * @throws {RequiredError}
10327
- */
10328
- getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
10329
- return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
10330
- },
10331
9461
  /**
10332
9462
  * Get Accounts
10333
9463
  * @summary Get Accounts
@@ -10409,15 +9539,6 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
10409
9539
  postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
10410
9540
  return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
10411
9541
  },
10412
- /**
10413
- * Get Admin Account
10414
- * @summary Get Admin Account
10415
- * @param {*} [options] Override http request option.
10416
- * @throws {RequiredError}
10417
- */
10418
- postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
10419
- return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
10420
- },
10421
9542
  /**
10422
9543
  * Create client credentials
10423
9544
  * @summary Create client credentials
@@ -10528,18 +9649,6 @@ export class AccountsApi extends BaseAPI {
10528
9649
  return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
10529
9650
  }
10530
9651
 
10531
- /**
10532
- * Get Account Detailed Summary
10533
- * @summary Get Account Detailed Summary
10534
- * @param {number} id Customer ID
10535
- * @param {*} [options] Override http request option.
10536
- * @throws {RequiredError}
10537
- * @memberof AccountsApi
10538
- */
10539
- public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
10540
- return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
10541
- }
10542
-
10543
9652
  /**
10544
9653
  * Get Accounts
10545
9654
  * @summary Get Accounts
@@ -10637,17 +9746,6 @@ export class AccountsApi extends BaseAPI {
10637
9746
  return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
10638
9747
  }
10639
9748
 
10640
- /**
10641
- * Get Admin Account
10642
- * @summary Get Admin Account
10643
- * @param {*} [options] Override http request option.
10644
- * @throws {RequiredError}
10645
- * @memberof AccountsApi
10646
- */
10647
- public postGetAdminAccount(options?: RawAxiosRequestConfig) {
10648
- return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
10649
- }
10650
-
10651
9749
  /**
10652
9750
  * Create client credentials
10653
9751
  * @summary Create client credentials
@@ -10715,22 +9813,18 @@ export class AccountsApi extends BaseAPI {
10715
9813
 
10716
9814
 
10717
9815
  /**
10718
- * Class3CXApi - axios parameter creator
9816
+ * CRMApi - axios parameter creator
10719
9817
  * @export
10720
9818
  */
10721
- export const Class3CXApiAxiosParamCreator = function (configuration?: Configuration) {
9819
+ export const CRMApiAxiosParamCreator = function (configuration?: Configuration) {
10722
9820
  return {
10723
9821
  /**
10724
- * Get 3CX Licence Details
10725
- * @summary Get 3CX Licence Details
10726
- * @param {string} key 3CX Licence Key
9822
+ * Search for contacts by phone number
10727
9823
  * @param {*} [options] Override http request option.
10728
9824
  * @throws {RequiredError}
10729
9825
  */
10730
- getGetLicenceDetails: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10731
- // verify required parameter 'key' is not null or undefined
10732
- assertParamExists('getGetLicenceDetails', 'key', key)
10733
- const localVarPath = `/tcx/licences/details`;
9826
+ getSearchByPhone: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9827
+ const localVarPath = `/crm/contact/search`;
10734
9828
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10735
9829
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10736
9830
  let baseOptions;
@@ -10742,10 +9836,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
10742
9836
  const localVarHeaderParameter = {} as any;
10743
9837
  const localVarQueryParameter = {} as any;
10744
9838
 
10745
- if (key !== undefined) {
10746
- localVarQueryParameter['key'] = key;
10747
- }
10748
-
10749
9839
 
10750
9840
 
10751
9841
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10757,32 +9847,174 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
10757
9847
  options: localVarRequestOptions,
10758
9848
  };
10759
9849
  },
9850
+ }
9851
+ };
9852
+
9853
+ /**
9854
+ * CRMApi - functional programming interface
9855
+ * @export
9856
+ */
9857
+ export const CRMApiFp = function(configuration?: Configuration) {
9858
+ const localVarAxiosParamCreator = CRMApiAxiosParamCreator(configuration)
9859
+ return {
10760
9860
  /**
10761
- * Get Bulk 3CX Licence Details
10762
- * @summary Get bulk 3CX Licence Details
10763
- * @param {Array<string>} [requestBody] Licence Lookup Request
9861
+ * Search for contacts by phone number
10764
9862
  * @param {*} [options] Override http request option.
10765
9863
  * @throws {RequiredError}
10766
9864
  */
10767
- postGetBulkLicenceDetails: async (requestBody?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10768
- const localVarPath = `/tcx/licences/bulk/details`;
10769
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
10770
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10771
- let baseOptions;
10772
- if (configuration) {
10773
- baseOptions = configuration.baseOptions;
10774
- }
10775
-
10776
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10777
- const localVarHeaderParameter = {} as any;
10778
- const localVarQueryParameter = {} as any;
10779
-
10780
-
10781
-
10782
- localVarHeaderParameter['Content-Type'] = 'application/json';
9865
+ async getSearchByPhone(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CrmContactDTO>> {
9866
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchByPhone(options);
9867
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9868
+ const localVarOperationServerBasePath = operationServerMap['CRMApi.getSearchByPhone']?.[localVarOperationServerIndex]?.url;
9869
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9870
+ },
9871
+ }
9872
+ };
10783
9873
 
10784
- setSearchParams(localVarUrlObj, localVarQueryParameter);
10785
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9874
+ /**
9875
+ * CRMApi - factory interface
9876
+ * @export
9877
+ */
9878
+ export const CRMApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9879
+ const localVarFp = CRMApiFp(configuration)
9880
+ return {
9881
+ /**
9882
+ * Search for contacts by phone number
9883
+ * @param {*} [options] Override http request option.
9884
+ * @throws {RequiredError}
9885
+ */
9886
+ getSearchByPhone(options?: RawAxiosRequestConfig): AxiosPromise<CrmContactDTO> {
9887
+ return localVarFp.getSearchByPhone(options).then((request) => request(axios, basePath));
9888
+ },
9889
+ };
9890
+ };
9891
+
9892
+ /**
9893
+ * CRMApi - object-oriented interface
9894
+ * @export
9895
+ * @class CRMApi
9896
+ * @extends {BaseAPI}
9897
+ */
9898
+ export class CRMApi extends BaseAPI {
9899
+ /**
9900
+ * Search for contacts by phone number
9901
+ * @param {*} [options] Override http request option.
9902
+ * @throws {RequiredError}
9903
+ * @memberof CRMApi
9904
+ */
9905
+ public getSearchByPhone(options?: RawAxiosRequestConfig) {
9906
+ return CRMApiFp(this.configuration).getSearchByPhone(options).then((request) => request(this.axios, this.basePath));
9907
+ }
9908
+ }
9909
+
9910
+
9911
+
9912
+ /**
9913
+ * Class3CXApi - axios parameter creator
9914
+ * @export
9915
+ */
9916
+ export const Class3CXApiAxiosParamCreator = function (configuration?: Configuration) {
9917
+ return {
9918
+ /**
9919
+ * Get 3CX Licence Details
9920
+ * @summary Get 3CX Licence Details
9921
+ * @param {string} key 3CX Licence Key
9922
+ * @param {*} [options] Override http request option.
9923
+ * @throws {RequiredError}
9924
+ */
9925
+ getGetLicenceDetails: async (key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9926
+ // verify required parameter 'key' is not null or undefined
9927
+ assertParamExists('getGetLicenceDetails', 'key', key)
9928
+ const localVarPath = `/tcx/licences/details`;
9929
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9930
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9931
+ let baseOptions;
9932
+ if (configuration) {
9933
+ baseOptions = configuration.baseOptions;
9934
+ }
9935
+
9936
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9937
+ const localVarHeaderParameter = {} as any;
9938
+ const localVarQueryParameter = {} as any;
9939
+
9940
+ if (key !== undefined) {
9941
+ localVarQueryParameter['key'] = key;
9942
+ }
9943
+
9944
+
9945
+
9946
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9947
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9948
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9949
+
9950
+ return {
9951
+ url: toPathString(localVarUrlObj),
9952
+ options: localVarRequestOptions,
9953
+ };
9954
+ },
9955
+ /**
9956
+ * Generate a 3CX hashed password for 3CX installation
9957
+ * @summary Convert a password to a hashed 3CX password
9958
+ * @param {string} password Desired 3CX web access password
9959
+ * @param {*} [options] Override http request option.
9960
+ * @throws {RequiredError}
9961
+ */
9962
+ getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9963
+ // verify required parameter 'password' is not null or undefined
9964
+ assertParamExists('getGetPasswordHash', 'password', password)
9965
+ const localVarPath = `/tcx/pwd2hash`;
9966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9968
+ let baseOptions;
9969
+ if (configuration) {
9970
+ baseOptions = configuration.baseOptions;
9971
+ }
9972
+
9973
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9974
+ const localVarHeaderParameter = {} as any;
9975
+ const localVarQueryParameter = {} as any;
9976
+
9977
+ if (password !== undefined) {
9978
+ localVarQueryParameter['password'] = password;
9979
+ }
9980
+
9981
+
9982
+
9983
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9985
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9986
+
9987
+ return {
9988
+ url: toPathString(localVarUrlObj),
9989
+ options: localVarRequestOptions,
9990
+ };
9991
+ },
9992
+ /**
9993
+ * Get Bulk 3CX Licence Details
9994
+ * @summary Get bulk 3CX Licence Details
9995
+ * @param {Array<string>} [requestBody] Licence Lookup Request
9996
+ * @param {*} [options] Override http request option.
9997
+ * @throws {RequiredError}
9998
+ */
9999
+ postGetBulkLicenceDetails: async (requestBody?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10000
+ const localVarPath = `/tcx/licences/bulk/details`;
10001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10003
+ let baseOptions;
10004
+ if (configuration) {
10005
+ baseOptions = configuration.baseOptions;
10006
+ }
10007
+
10008
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10009
+ const localVarHeaderParameter = {} as any;
10010
+ const localVarQueryParameter = {} as any;
10011
+
10012
+
10013
+
10014
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10015
+
10016
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10017
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10786
10018
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10787
10019
  localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
10788
10020
 
@@ -10814,6 +10046,19 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
10814
10046
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
10815
10047
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10816
10048
  },
10049
+ /**
10050
+ * Generate a 3CX hashed password for 3CX installation
10051
+ * @summary Convert a password to a hashed 3CX password
10052
+ * @param {string} password Desired 3CX web access password
10053
+ * @param {*} [options] Override http request option.
10054
+ * @throws {RequiredError}
10055
+ */
10056
+ async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
10057
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
10058
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10059
+ const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
10060
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10061
+ },
10817
10062
  /**
10818
10063
  * Get Bulk 3CX Licence Details
10819
10064
  * @summary Get bulk 3CX Licence Details
@@ -10847,6 +10092,16 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
10847
10092
  getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
10848
10093
  return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
10849
10094
  },
10095
+ /**
10096
+ * Generate a 3CX hashed password for 3CX installation
10097
+ * @summary Convert a password to a hashed 3CX password
10098
+ * @param {string} password Desired 3CX web access password
10099
+ * @param {*} [options] Override http request option.
10100
+ * @throws {RequiredError}
10101
+ */
10102
+ getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
10103
+ return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
10104
+ },
10850
10105
  /**
10851
10106
  * Get Bulk 3CX Licence Details
10852
10107
  * @summary Get bulk 3CX Licence Details
@@ -10879,6 +10134,18 @@ export class Class3CXApi extends BaseAPI {
10879
10134
  return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
10880
10135
  }
10881
10136
 
10137
+ /**
10138
+ * Generate a 3CX hashed password for 3CX installation
10139
+ * @summary Convert a password to a hashed 3CX password
10140
+ * @param {string} password Desired 3CX web access password
10141
+ * @param {*} [options] Override http request option.
10142
+ * @throws {RequiredError}
10143
+ * @memberof Class3CXApi
10144
+ */
10145
+ public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
10146
+ return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
10147
+ }
10148
+
10882
10149
  /**
10883
10150
  * Get Bulk 3CX Licence Details
10884
10151
  * @summary Get bulk 3CX Licence Details
@@ -16035,14 +15302,13 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
16035
15302
  return {
16036
15303
  /**
16037
15304
  * Delete Orders
16038
- * @summary Delete Orders
16039
15305
  * @param {number} id Order ID
16040
15306
  * @param {*} [options] Override http request option.
16041
15307
  * @throws {RequiredError}
16042
15308
  */
16043
- deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15309
+ deleteDeleteOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16044
15310
  // verify required parameter 'id' is not null or undefined
16045
- assertParamExists('deleteUpdateOrder', 'id', id)
15311
+ assertParamExists('deleteDeleteOrder', 'id', id)
16046
15312
  const localVarPath = `/orders/{id}`
16047
15313
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16048
15314
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -16058,74 +15324,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
16058
15324
 
16059
15325
 
16060
15326
 
16061
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16062
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16063
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16064
-
16065
- return {
16066
- url: toPathString(localVarUrlObj),
16067
- options: localVarRequestOptions,
16068
- };
16069
- },
16070
- /**
16071
- * Get Editable Order (Admin)
16072
- * @summary Get Editable Order (Admin)
16073
- * @param {number} id Order ID
16074
- * @param {*} [options] Override http request option.
16075
- * @throws {RequiredError}
16076
- */
16077
- getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16078
- // verify required parameter 'id' is not null or undefined
16079
- assertParamExists('getGetAdminEditableOrder', 'id', id)
16080
- const localVarPath = `/admin/orders/{id}/views/editable`
16081
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16082
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16083
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16084
- let baseOptions;
16085
- if (configuration) {
16086
- baseOptions = configuration.baseOptions;
16087
- }
16088
-
16089
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16090
- const localVarHeaderParameter = {} as any;
16091
- const localVarQueryParameter = {} as any;
16092
-
16093
-
16094
-
16095
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16096
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16097
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16098
-
16099
- return {
16100
- url: toPathString(localVarUrlObj),
16101
- options: localVarRequestOptions,
16102
- };
16103
- },
16104
- /**
16105
- * Get Editable Order
16106
- * @summary Get Editable Order
16107
- * @param {number} id Order ID
16108
- * @param {*} [options] Override http request option.
16109
- * @throws {RequiredError}
16110
- */
16111
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16112
- // verify required parameter 'id' is not null or undefined
16113
- assertParamExists('getGetEditableOrder', 'id', id)
16114
- const localVarPath = `/orders/{id}/views/editable`
16115
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16116
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16117
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16118
- let baseOptions;
16119
- if (configuration) {
16120
- baseOptions = configuration.baseOptions;
16121
- }
16122
-
16123
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16124
- const localVarHeaderParameter = {} as any;
16125
- const localVarQueryParameter = {} as any;
16126
-
16127
-
16128
-
16129
15327
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16130
15328
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16131
15329
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16195,170 +15393,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
16195
15393
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16196
15394
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16197
15395
 
16198
- return {
16199
- url: toPathString(localVarUrlObj),
16200
- options: localVarRequestOptions,
16201
- };
16202
- },
16203
- /**
16204
- * Create An Order (Admin)
16205
- * @summary Create An Order (Admin)
16206
- * @param {boolean} [readonly] Readonly Order
16207
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
16208
- * @param {*} [options] Override http request option.
16209
- * @throws {RequiredError}
16210
- */
16211
- postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16212
- const localVarPath = `/admin/orders`;
16213
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16214
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16215
- let baseOptions;
16216
- if (configuration) {
16217
- baseOptions = configuration.baseOptions;
16218
- }
16219
-
16220
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16221
- const localVarHeaderParameter = {} as any;
16222
- const localVarQueryParameter = {} as any;
16223
-
16224
- if (readonly !== undefined) {
16225
- localVarQueryParameter['readonly'] = readonly;
16226
- }
16227
-
16228
-
16229
-
16230
- localVarHeaderParameter['Content-Type'] = 'application/json';
16231
-
16232
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16233
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16234
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16235
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
16236
-
16237
- return {
16238
- url: toPathString(localVarUrlObj),
16239
- options: localVarRequestOptions,
16240
- };
16241
- },
16242
- /**
16243
- * Create An Order
16244
- * @summary Create An Order
16245
- * @param {boolean} [readonly] Readonly Order
16246
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16247
- * @param {*} [options] Override http request option.
16248
- * @throws {RequiredError}
16249
- */
16250
- postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16251
- const localVarPath = `/orders`;
16252
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16253
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16254
- let baseOptions;
16255
- if (configuration) {
16256
- baseOptions = configuration.baseOptions;
16257
- }
16258
-
16259
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16260
- const localVarHeaderParameter = {} as any;
16261
- const localVarQueryParameter = {} as any;
16262
-
16263
- if (readonly !== undefined) {
16264
- localVarQueryParameter['readonly'] = readonly;
16265
- }
16266
-
16267
-
16268
-
16269
- localVarHeaderParameter['Content-Type'] = 'application/json';
16270
-
16271
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16272
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16273
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16274
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
16275
-
16276
- return {
16277
- url: toPathString(localVarUrlObj),
16278
- options: localVarRequestOptions,
16279
- };
16280
- },
16281
- /**
16282
- * Update An Order (Admin)
16283
- * @summary Update An Order (Admin)
16284
- * @param {number} id Order ID
16285
- * @param {boolean} [readonly] Readonly Order
16286
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
16287
- * @param {*} [options] Override http request option.
16288
- * @throws {RequiredError}
16289
- */
16290
- putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16291
- // verify required parameter 'id' is not null or undefined
16292
- assertParamExists('putUpdateAdminOrder', 'id', id)
16293
- const localVarPath = `/admin/orders/{id}`
16294
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16295
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16296
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16297
- let baseOptions;
16298
- if (configuration) {
16299
- baseOptions = configuration.baseOptions;
16300
- }
16301
-
16302
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16303
- const localVarHeaderParameter = {} as any;
16304
- const localVarQueryParameter = {} as any;
16305
-
16306
- if (readonly !== undefined) {
16307
- localVarQueryParameter['readonly'] = readonly;
16308
- }
16309
-
16310
-
16311
-
16312
- localVarHeaderParameter['Content-Type'] = 'application/json';
16313
-
16314
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16315
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16316
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16317
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
16318
-
16319
- return {
16320
- url: toPathString(localVarUrlObj),
16321
- options: localVarRequestOptions,
16322
- };
16323
- },
16324
- /**
16325
- * Update An Order
16326
- * @summary Update An Order
16327
- * @param {number} id Order ID
16328
- * @param {boolean} [readonly] Readonly Order
16329
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16330
- * @param {*} [options] Override http request option.
16331
- * @throws {RequiredError}
16332
- */
16333
- putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16334
- // verify required parameter 'id' is not null or undefined
16335
- assertParamExists('putUpdateOrder', 'id', id)
16336
- const localVarPath = `/orders/{id}`
16337
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16338
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16339
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16340
- let baseOptions;
16341
- if (configuration) {
16342
- baseOptions = configuration.baseOptions;
16343
- }
16344
-
16345
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16346
- const localVarHeaderParameter = {} as any;
16347
- const localVarQueryParameter = {} as any;
16348
-
16349
- if (readonly !== undefined) {
16350
- localVarQueryParameter['readonly'] = readonly;
16351
- }
16352
-
16353
-
16354
-
16355
- localVarHeaderParameter['Content-Type'] = 'application/json';
16356
-
16357
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16358
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16359
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16360
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
16361
-
16362
15396
  return {
16363
15397
  url: toPathString(localVarUrlObj),
16364
15398
  options: localVarRequestOptions,
@@ -16376,41 +15410,14 @@ export const OrdersApiFp = function(configuration?: Configuration) {
16376
15410
  return {
16377
15411
  /**
16378
15412
  * Delete Orders
16379
- * @summary Delete Orders
16380
- * @param {number} id Order ID
16381
- * @param {*} [options] Override http request option.
16382
- * @throws {RequiredError}
16383
- */
16384
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16385
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
16386
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16387
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
16388
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16389
- },
16390
- /**
16391
- * Get Editable Order (Admin)
16392
- * @summary Get Editable Order (Admin)
16393
15413
  * @param {number} id Order ID
16394
15414
  * @param {*} [options] Override http request option.
16395
15415
  * @throws {RequiredError}
16396
15416
  */
16397
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
16398
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
15417
+ async deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15418
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteOrder(id, options);
16399
15419
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16400
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
16401
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16402
- },
16403
- /**
16404
- * Get Editable Order
16405
- * @summary Get Editable Order
16406
- * @param {number} id Order ID
16407
- * @param {*} [options] Override http request option.
16408
- * @throws {RequiredError}
16409
- */
16410
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerOrderRequestDTO>> {
16411
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
16412
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16413
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
15420
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteOrder']?.[localVarOperationServerIndex]?.url;
16414
15421
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16415
15422
  },
16416
15423
  /**
@@ -16432,64 +15439,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
16432
15439
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
16433
15440
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16434
15441
  },
16435
- /**
16436
- * Create An Order (Admin)
16437
- * @summary Create An Order (Admin)
16438
- * @param {boolean} [readonly] Readonly Order
16439
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
16440
- * @param {*} [options] Override http request option.
16441
- * @throws {RequiredError}
16442
- */
16443
- async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
16444
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
16445
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16446
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
16447
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16448
- },
16449
- /**
16450
- * Create An Order
16451
- * @summary Create An Order
16452
- * @param {boolean} [readonly] Readonly Order
16453
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16454
- * @param {*} [options] Override http request option.
16455
- * @throws {RequiredError}
16456
- */
16457
- async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
16458
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
16459
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16460
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
16461
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16462
- },
16463
- /**
16464
- * Update An Order (Admin)
16465
- * @summary Update An Order (Admin)
16466
- * @param {number} id Order ID
16467
- * @param {boolean} [readonly] Readonly Order
16468
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
16469
- * @param {*} [options] Override http request option.
16470
- * @throws {RequiredError}
16471
- */
16472
- async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
16473
- const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
16474
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16475
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
16476
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16477
- },
16478
- /**
16479
- * Update An Order
16480
- * @summary Update An Order
16481
- * @param {number} id Order ID
16482
- * @param {boolean} [readonly] Readonly Order
16483
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16484
- * @param {*} [options] Override http request option.
16485
- * @throws {RequiredError}
16486
- */
16487
- async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
16488
- const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
16489
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16490
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
16491
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16492
- },
16493
15442
  }
16494
15443
  };
16495
15444
 
@@ -16502,33 +15451,12 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
16502
15451
  return {
16503
15452
  /**
16504
15453
  * Delete Orders
16505
- * @summary Delete Orders
16506
15454
  * @param {number} id Order ID
16507
15455
  * @param {*} [options] Override http request option.
16508
15456
  * @throws {RequiredError}
16509
15457
  */
16510
- deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16511
- return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
16512
- },
16513
- /**
16514
- * Get Editable Order (Admin)
16515
- * @summary Get Editable Order (Admin)
16516
- * @param {number} id Order ID
16517
- * @param {*} [options] Override http request option.
16518
- * @throws {RequiredError}
16519
- */
16520
- getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
16521
- return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
16522
- },
16523
- /**
16524
- * Get Editable Order
16525
- * @summary Get Editable Order
16526
- * @param {number} id Order ID
16527
- * @param {*} [options] Override http request option.
16528
- * @throws {RequiredError}
16529
- */
16530
- getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<CustomerOrderRequestDTO> {
16531
- return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
15458
+ deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15459
+ return localVarFp.deleteDeleteOrder(id, options).then((request) => request(axios, basePath));
16532
15460
  },
16533
15461
  /**
16534
15462
  * Get Orders
@@ -16546,52 +15474,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
16546
15474
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
16547
15475
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
16548
15476
  },
16549
- /**
16550
- * Create An Order (Admin)
16551
- * @summary Create An Order (Admin)
16552
- * @param {boolean} [readonly] Readonly Order
16553
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
16554
- * @param {*} [options] Override http request option.
16555
- * @throws {RequiredError}
16556
- */
16557
- postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
16558
- return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
16559
- },
16560
- /**
16561
- * Create An Order
16562
- * @summary Create An Order
16563
- * @param {boolean} [readonly] Readonly Order
16564
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16565
- * @param {*} [options] Override http request option.
16566
- * @throws {RequiredError}
16567
- */
16568
- postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
16569
- return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
16570
- },
16571
- /**
16572
- * Update An Order (Admin)
16573
- * @summary Update An Order (Admin)
16574
- * @param {number} id Order ID
16575
- * @param {boolean} [readonly] Readonly Order
16576
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
16577
- * @param {*} [options] Override http request option.
16578
- * @throws {RequiredError}
16579
- */
16580
- putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
16581
- return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
16582
- },
16583
- /**
16584
- * Update An Order
16585
- * @summary Update An Order
16586
- * @param {number} id Order ID
16587
- * @param {boolean} [readonly] Readonly Order
16588
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16589
- * @param {*} [options] Override http request option.
16590
- * @throws {RequiredError}
16591
- */
16592
- putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
16593
- return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
16594
- },
16595
15477
  };
16596
15478
  };
16597
15479
 
@@ -16604,38 +15486,13 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
16604
15486
  export class OrdersApi extends BaseAPI {
16605
15487
  /**
16606
15488
  * Delete Orders
16607
- * @summary Delete Orders
16608
- * @param {number} id Order ID
16609
- * @param {*} [options] Override http request option.
16610
- * @throws {RequiredError}
16611
- * @memberof OrdersApi
16612
- */
16613
- public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
16614
- return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
16615
- }
16616
-
16617
- /**
16618
- * Get Editable Order (Admin)
16619
- * @summary Get Editable Order (Admin)
16620
15489
  * @param {number} id Order ID
16621
15490
  * @param {*} [options] Override http request option.
16622
15491
  * @throws {RequiredError}
16623
15492
  * @memberof OrdersApi
16624
15493
  */
16625
- public getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig) {
16626
- return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
16627
- }
16628
-
16629
- /**
16630
- * Get Editable Order
16631
- * @summary Get Editable Order
16632
- * @param {number} id Order ID
16633
- * @param {*} [options] Override http request option.
16634
- * @throws {RequiredError}
16635
- * @memberof OrdersApi
16636
- */
16637
- public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
16638
- return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
15494
+ public deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig) {
15495
+ return OrdersApiFp(this.configuration).deleteDeleteOrder(id, options).then((request) => request(this.axios, this.basePath));
16639
15496
  }
16640
15497
 
16641
15498
  /**
@@ -16655,60 +15512,6 @@ export class OrdersApi extends BaseAPI {
16655
15512
  public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
16656
15513
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
16657
15514
  }
16658
-
16659
- /**
16660
- * Create An Order (Admin)
16661
- * @summary Create An Order (Admin)
16662
- * @param {boolean} [readonly] Readonly Order
16663
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
16664
- * @param {*} [options] Override http request option.
16665
- * @throws {RequiredError}
16666
- * @memberof OrdersApi
16667
- */
16668
- public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
16669
- return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
16670
- }
16671
-
16672
- /**
16673
- * Create An Order
16674
- * @summary Create An Order
16675
- * @param {boolean} [readonly] Readonly Order
16676
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16677
- * @param {*} [options] Override http request option.
16678
- * @throws {RequiredError}
16679
- * @memberof OrdersApi
16680
- */
16681
- public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
16682
- return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
16683
- }
16684
-
16685
- /**
16686
- * Update An Order (Admin)
16687
- * @summary Update An Order (Admin)
16688
- * @param {number} id Order ID
16689
- * @param {boolean} [readonly] Readonly Order
16690
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
16691
- * @param {*} [options] Override http request option.
16692
- * @throws {RequiredError}
16693
- * @memberof OrdersApi
16694
- */
16695
- public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
16696
- return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
16697
- }
16698
-
16699
- /**
16700
- * Update An Order
16701
- * @summary Update An Order
16702
- * @param {number} id Order ID
16703
- * @param {boolean} [readonly] Readonly Order
16704
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
16705
- * @param {*} [options] Override http request option.
16706
- * @throws {RequiredError}
16707
- * @memberof OrdersApi
16708
- */
16709
- public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
16710
- return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
16711
- }
16712
15515
  }
16713
15516
 
16714
15517
  /**
@@ -17089,47 +15892,13 @@ export type PostSendPriceListCategoryEnum = typeof PostSendPriceListCategoryEnum
17089
15892
  export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
17090
15893
  return {
17091
15894
  /**
17092
- * Get Attribute Sets
17093
- * @summary Get Attribute Sets
17094
- * @param {*} [options] Override http request option.
17095
- * @throws {RequiredError}
17096
- */
17097
- getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17098
- const localVarPath = `/products/attributes`;
17099
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17100
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17101
- let baseOptions;
17102
- if (configuration) {
17103
- baseOptions = configuration.baseOptions;
17104
- }
17105
-
17106
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17107
- const localVarHeaderParameter = {} as any;
17108
- const localVarQueryParameter = {} as any;
17109
-
17110
-
17111
-
17112
- setSearchParams(localVarUrlObj, localVarQueryParameter);
17113
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17114
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17115
-
17116
- return {
17117
- url: toPathString(localVarUrlObj),
17118
- options: localVarRequestOptions,
17119
- };
17120
- },
17121
- /**
17122
- * Get Current Stock & Pricing
17123
- * @summary Get Current Stock & Pricing
17124
- * @param {GetGetLegacyStockListFormatEnum} format File Format
15895
+ * Get Attribute Sets
15896
+ * @summary Get Attribute Sets
17125
15897
  * @param {*} [options] Override http request option.
17126
- * @deprecated
17127
15898
  * @throws {RequiredError}
17128
15899
  */
17129
- getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17130
- // verify required parameter 'format' is not null or undefined
17131
- assertParamExists('getGetLegacyStockList', 'format', format)
17132
- const localVarPath = `/products/stock/legacy`;
15900
+ getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15901
+ const localVarPath = `/products/attributes`;
17133
15902
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17134
15903
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17135
15904
  let baseOptions;
@@ -17141,10 +15910,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17141
15910
  const localVarHeaderParameter = {} as any;
17142
15911
  const localVarQueryParameter = {} as any;
17143
15912
 
17144
- if (format !== undefined) {
17145
- localVarQueryParameter['format'] = format;
17146
- }
17147
-
17148
15913
 
17149
15914
 
17150
15915
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -17157,13 +15922,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17157
15922
  };
17158
15923
  },
17159
15924
  /**
17160
- * Get Products
17161
- * @summary Get Products
15925
+ * Get Customer Price Lists
15926
+ * @summary Get Customer Price Lists
17162
15927
  * @param {*} [options] Override http request option.
17163
15928
  * @throws {RequiredError}
17164
15929
  */
17165
- getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17166
- const localVarPath = `/products`;
15930
+ getGetCustomerPriceLists: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15931
+ const localVarPath = `/products/prices/lists`;
17167
15932
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17168
15933
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17169
15934
  let baseOptions;
@@ -17189,11 +15954,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17189
15954
  /**
17190
15955
  * Get Current Stock & Pricing
17191
15956
  * @summary Get Current Stock & Pricing
15957
+ * @param {GetGetLegacyStockListFormatEnum} format File Format
17192
15958
  * @param {*} [options] Override http request option.
15959
+ * @deprecated
17193
15960
  * @throws {RequiredError}
17194
15961
  */
17195
- getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17196
- const localVarPath = `/products/stock`;
15962
+ getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15963
+ // verify required parameter 'format' is not null or undefined
15964
+ assertParamExists('getGetLegacyStockList', 'format', format)
15965
+ const localVarPath = `/products/stock/legacy`;
17197
15966
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17198
15967
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17199
15968
  let baseOptions;
@@ -17205,36 +15974,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17205
15974
  const localVarHeaderParameter = {} as any;
17206
15975
  const localVarQueryParameter = {} as any;
17207
15976
 
17208
-
17209
-
17210
- setSearchParams(localVarUrlObj, localVarQueryParameter);
17211
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17212
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17213
-
17214
- return {
17215
- url: toPathString(localVarUrlObj),
17216
- options: localVarRequestOptions,
17217
- };
17218
- },
17219
- /**
17220
- * Get 3CX Templates
17221
- * @summary Get 3CX Templates
17222
- * @param {*} [options] Override http request option.
17223
- * @throws {RequiredError}
17224
- */
17225
- getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17226
- const localVarPath = `/products/attributes/tcx/templates`;
17227
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17228
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17229
- let baseOptions;
17230
- if (configuration) {
17231
- baseOptions = configuration.baseOptions;
15977
+ if (format !== undefined) {
15978
+ localVarQueryParameter['format'] = format;
17232
15979
  }
17233
15980
 
17234
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17235
- const localVarHeaderParameter = {} as any;
17236
- const localVarQueryParameter = {} as any;
17237
-
17238
15981
 
17239
15982
 
17240
15983
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -17247,15 +15990,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17247
15990
  };
17248
15991
  },
17249
15992
  /**
17250
- * Search Products
17251
- * @summary Search Products
15993
+ * Get Products
15994
+ * @summary Get Products
17252
15995
  * @param {number} [pageSize] Number Of Results
17253
15996
  * @param {number} [page] Page Number
17254
15997
  * @param {string} [search] Search
17255
15998
  * @param {*} [options] Override http request option.
17256
15999
  * @throws {RequiredError}
17257
16000
  */
17258
- getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16001
+ getGetProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17259
16002
  const localVarPath = `/products/search`;
17260
16003
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17261
16004
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -17292,20 +16035,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17292
16035
  };
17293
16036
  },
17294
16037
  /**
17295
- * Get Product
17296
- * @summary Get Product
17297
- * @param {string} sku Product SKU
17298
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
16038
+ * Get Current Stock & Pricing
16039
+ * @summary Get Current Stock & Pricing
17299
16040
  * @param {*} [options] Override http request option.
17300
16041
  * @throws {RequiredError}
17301
16042
  */
17302
- postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17303
- // verify required parameter 'sku' is not null or undefined
17304
- assertParamExists('postGetProduct', 'sku', sku)
17305
- // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
17306
- assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
17307
- const localVarPath = `/products/{sku}`
17308
- .replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
16043
+ getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16044
+ const localVarPath = `/products/stock`;
17309
16045
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17310
16046
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17311
16047
  let baseOptions;
@@ -17313,18 +16049,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17313
16049
  baseOptions = configuration.baseOptions;
17314
16050
  }
17315
16051
 
17316
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16052
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17317
16053
  const localVarHeaderParameter = {} as any;
17318
16054
  const localVarQueryParameter = {} as any;
17319
16055
 
17320
16056
 
17321
16057
 
17322
- localVarHeaderParameter['Content-Type'] = 'application/json';
17323
-
17324
16058
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17325
16059
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17326
16060
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17327
- localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
17328
16061
 
17329
16062
  return {
17330
16063
  url: toPathString(localVarUrlObj),
@@ -17332,23 +16065,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17332
16065
  };
17333
16066
  },
17334
16067
  /**
17335
- * Get Product For Customer
17336
- * @summary Get Product For Customer
17337
- * @param {number} customerId Customer ID
17338
- * @param {string} sku Product SKU
17339
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
16068
+ * Get 3CX Templates
16069
+ * @summary Get 3CX Templates
17340
16070
  * @param {*} [options] Override http request option.
17341
16071
  * @throws {RequiredError}
17342
16072
  */
17343
- postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17344
- // verify required parameter 'customerId' is not null or undefined
17345
- assertParamExists('postGetProductForCustomer', 'customerId', customerId)
17346
- // verify required parameter 'sku' is not null or undefined
17347
- assertParamExists('postGetProductForCustomer', 'sku', sku)
17348
- // verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
17349
- assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
17350
- const localVarPath = `/admin/products/{sku}`
17351
- .replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
16073
+ getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16074
+ const localVarPath = `/products/attributes/tcx/templates`;
17352
16075
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17353
16076
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17354
16077
  let baseOptions;
@@ -17356,22 +16079,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
17356
16079
  baseOptions = configuration.baseOptions;
17357
16080
  }
17358
16081
 
17359
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16082
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17360
16083
  const localVarHeaderParameter = {} as any;
17361
16084
  const localVarQueryParameter = {} as any;
17362
16085
 
17363
- if (customerId !== undefined) {
17364
- localVarQueryParameter['customerId'] = customerId;
17365
- }
17366
-
17367
16086
 
17368
16087
 
17369
- localVarHeaderParameter['Content-Type'] = 'application/json';
17370
-
17371
16088
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17372
16089
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17373
16090
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17374
- localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
17375
16091
 
17376
16092
  return {
17377
16093
  url: toPathString(localVarUrlObj),
@@ -17400,6 +16116,18 @@ export const ProductsApiFp = function(configuration?: Configuration) {
17400
16116
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
17401
16117
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17402
16118
  },
16119
+ /**
16120
+ * Get Customer Price Lists
16121
+ * @summary Get Customer Price Lists
16122
+ * @param {*} [options] Override http request option.
16123
+ * @throws {RequiredError}
16124
+ */
16125
+ async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
16126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
16127
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16128
+ const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
16129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16130
+ },
17403
16131
  /**
17404
16132
  * Get Current Stock & Pricing
17405
16133
  * @summary Get Current Stock & Pricing
@@ -17417,11 +16145,14 @@ export const ProductsApiFp = function(configuration?: Configuration) {
17417
16145
  /**
17418
16146
  * Get Products
17419
16147
  * @summary Get Products
16148
+ * @param {number} [pageSize] Number Of Results
16149
+ * @param {number} [page] Page Number
16150
+ * @param {string} [search] Search
17420
16151
  * @param {*} [options] Override http request option.
17421
16152
  * @throws {RequiredError}
17422
16153
  */
17423
- async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
17424
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
16154
+ async getGetProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
16155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options);
17425
16156
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17426
16157
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
17427
16158
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17450,50 +16181,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
17450
16181
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
17451
16182
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17452
16183
  },
17453
- /**
17454
- * Search Products
17455
- * @summary Search Products
17456
- * @param {number} [pageSize] Number Of Results
17457
- * @param {number} [page] Page Number
17458
- * @param {string} [search] Search
17459
- * @param {*} [options] Override http request option.
17460
- * @throws {RequiredError}
17461
- */
17462
- async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
17463
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
17464
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17465
- const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
17466
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17467
- },
17468
- /**
17469
- * Get Product
17470
- * @summary Get Product
17471
- * @param {string} sku Product SKU
17472
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17473
- * @param {*} [options] Override http request option.
17474
- * @throws {RequiredError}
17475
- */
17476
- async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
17477
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
17478
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17479
- const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
17480
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17481
- },
17482
- /**
17483
- * Get Product For Customer
17484
- * @summary Get Product For Customer
17485
- * @param {number} customerId Customer ID
17486
- * @param {string} sku Product SKU
17487
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17488
- * @param {*} [options] Override http request option.
17489
- * @throws {RequiredError}
17490
- */
17491
- async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
17492
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
17493
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17494
- const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
17495
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17496
- },
17497
16184
  }
17498
16185
  };
17499
16186
 
@@ -17513,6 +16200,15 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
17513
16200
  getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
17514
16201
  return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
17515
16202
  },
16203
+ /**
16204
+ * Get Customer Price Lists
16205
+ * @summary Get Customer Price Lists
16206
+ * @param {*} [options] Override http request option.
16207
+ * @throws {RequiredError}
16208
+ */
16209
+ getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
16210
+ return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
16211
+ },
17516
16212
  /**
17517
16213
  * Get Current Stock & Pricing
17518
16214
  * @summary Get Current Stock & Pricing
@@ -17527,11 +16223,14 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
17527
16223
  /**
17528
16224
  * Get Products
17529
16225
  * @summary Get Products
16226
+ * @param {number} [pageSize] Number Of Results
16227
+ * @param {number} [page] Page Number
16228
+ * @param {string} [search] Search
17530
16229
  * @param {*} [options] Override http request option.
17531
16230
  * @throws {RequiredError}
17532
16231
  */
17533
- getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
17534
- return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
16232
+ getGetProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
16233
+ return localVarFp.getGetProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
17535
16234
  },
17536
16235
  /**
17537
16236
  * Get Current Stock & Pricing
@@ -17551,41 +16250,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
17551
16250
  getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
17552
16251
  return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
17553
16252
  },
17554
- /**
17555
- * Search Products
17556
- * @summary Search Products
17557
- * @param {number} [pageSize] Number Of Results
17558
- * @param {number} [page] Page Number
17559
- * @param {string} [search] Search
17560
- * @param {*} [options] Override http request option.
17561
- * @throws {RequiredError}
17562
- */
17563
- getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
17564
- return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
17565
- },
17566
- /**
17567
- * Get Product
17568
- * @summary Get Product
17569
- * @param {string} sku Product SKU
17570
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17571
- * @param {*} [options] Override http request option.
17572
- * @throws {RequiredError}
17573
- */
17574
- postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
17575
- return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
17576
- },
17577
- /**
17578
- * Get Product For Customer
17579
- * @summary Get Product For Customer
17580
- * @param {number} customerId Customer ID
17581
- * @param {string} sku Product SKU
17582
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17583
- * @param {*} [options] Override http request option.
17584
- * @throws {RequiredError}
17585
- */
17586
- postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
17587
- return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
17588
- },
17589
16253
  };
17590
16254
  };
17591
16255
 
@@ -17607,6 +16271,17 @@ export class ProductsApi extends BaseAPI {
17607
16271
  return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
17608
16272
  }
17609
16273
 
16274
+ /**
16275
+ * Get Customer Price Lists
16276
+ * @summary Get Customer Price Lists
16277
+ * @param {*} [options] Override http request option.
16278
+ * @throws {RequiredError}
16279
+ * @memberof ProductsApi
16280
+ */
16281
+ public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
16282
+ return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
16283
+ }
16284
+
17610
16285
  /**
17611
16286
  * Get Current Stock & Pricing
17612
16287
  * @summary Get Current Stock & Pricing
@@ -17623,12 +16298,15 @@ export class ProductsApi extends BaseAPI {
17623
16298
  /**
17624
16299
  * Get Products
17625
16300
  * @summary Get Products
16301
+ * @param {number} [pageSize] Number Of Results
16302
+ * @param {number} [page] Page Number
16303
+ * @param {string} [search] Search
17626
16304
  * @param {*} [options] Override http request option.
17627
16305
  * @throws {RequiredError}
17628
16306
  * @memberof ProductsApi
17629
16307
  */
17630
- public getGetProducts(options?: RawAxiosRequestConfig) {
17631
- return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
16308
+ public getGetProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
16309
+ return ProductsApiFp(this.configuration).getGetProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
17632
16310
  }
17633
16311
 
17634
16312
  /**
@@ -17652,47 +16330,6 @@ export class ProductsApi extends BaseAPI {
17652
16330
  public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
17653
16331
  return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
17654
16332
  }
17655
-
17656
- /**
17657
- * Search Products
17658
- * @summary Search Products
17659
- * @param {number} [pageSize] Number Of Results
17660
- * @param {number} [page] Page Number
17661
- * @param {string} [search] Search
17662
- * @param {*} [options] Override http request option.
17663
- * @throws {RequiredError}
17664
- * @memberof ProductsApi
17665
- */
17666
- public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
17667
- return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
17668
- }
17669
-
17670
- /**
17671
- * Get Product
17672
- * @summary Get Product
17673
- * @param {string} sku Product SKU
17674
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17675
- * @param {*} [options] Override http request option.
17676
- * @throws {RequiredError}
17677
- * @memberof ProductsApi
17678
- */
17679
- public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
17680
- return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
17681
- }
17682
-
17683
- /**
17684
- * Get Product For Customer
17685
- * @summary Get Product For Customer
17686
- * @param {number} customerId Customer ID
17687
- * @param {string} sku Product SKU
17688
- * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
17689
- * @param {*} [options] Override http request option.
17690
- * @throws {RequiredError}
17691
- * @memberof ProductsApi
17692
- */
17693
- public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
17694
- return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
17695
- }
17696
16333
  }
17697
16334
 
17698
16335
  /**
@@ -18033,7 +16670,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
18033
16670
  * @param {*} [options] Override http request option.
18034
16671
  * @throws {RequiredError}
18035
16672
  */
18036
- async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
16673
+ async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningEntity>>> {
18037
16674
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
18038
16675
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18039
16676
  const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
@@ -18046,7 +16683,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
18046
16683
  * @param {*} [options] Override http request option.
18047
16684
  * @throws {RequiredError}
18048
16685
  */
18049
- async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
16686
+ async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningEntity>> {
18050
16687
  const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
18051
16688
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18052
16689
  const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
@@ -18125,7 +16762,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
18125
16762
  * @param {*} [options] Override http request option.
18126
16763
  * @throws {RequiredError}
18127
16764
  */
18128
- getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
16765
+ getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningEntity>> {
18129
16766
  return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
18130
16767
  },
18131
16768
  /**
@@ -18135,7 +16772,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
18135
16772
  * @param {*} [options] Override http request option.
18136
16773
  * @throws {RequiredError}
18137
16774
  */
18138
- postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
16775
+ postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningEntity> {
18139
16776
  return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
18140
16777
  },
18141
16778
  /**
@@ -20036,114 +18673,6 @@ export class SMSApi extends BaseAPI {
20036
18673
 
20037
18674
 
20038
18675
 
20039
- /**
20040
- * ShippingApi - axios parameter creator
20041
- * @export
20042
- */
20043
- export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
20044
- return {
20045
- /**
20046
- * Get Shipping Services
20047
- * @summary Get Shipping Services
20048
- * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
20049
- * @param {*} [options] Override http request option.
20050
- * @throws {RequiredError}
20051
- */
20052
- postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20053
- const localVarPath = `/shipping/services`;
20054
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
20055
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20056
- let baseOptions;
20057
- if (configuration) {
20058
- baseOptions = configuration.baseOptions;
20059
- }
20060
-
20061
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20062
- const localVarHeaderParameter = {} as any;
20063
- const localVarQueryParameter = {} as any;
20064
-
20065
-
20066
-
20067
- localVarHeaderParameter['Content-Type'] = 'application/json';
20068
-
20069
- setSearchParams(localVarUrlObj, localVarQueryParameter);
20070
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20071
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20072
- localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
20073
-
20074
- return {
20075
- url: toPathString(localVarUrlObj),
20076
- options: localVarRequestOptions,
20077
- };
20078
- },
20079
- }
20080
- };
20081
-
20082
- /**
20083
- * ShippingApi - functional programming interface
20084
- * @export
20085
- */
20086
- export const ShippingApiFp = function(configuration?: Configuration) {
20087
- const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
20088
- return {
20089
- /**
20090
- * Get Shipping Services
20091
- * @summary Get Shipping Services
20092
- * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
20093
- * @param {*} [options] Override http request option.
20094
- * @throws {RequiredError}
20095
- */
20096
- async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
20097
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
20098
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20099
- const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
20100
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20101
- },
20102
- }
20103
- };
20104
-
20105
- /**
20106
- * ShippingApi - factory interface
20107
- * @export
20108
- */
20109
- export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
20110
- const localVarFp = ShippingApiFp(configuration)
20111
- return {
20112
- /**
20113
- * Get Shipping Services
20114
- * @summary Get Shipping Services
20115
- * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
20116
- * @param {*} [options] Override http request option.
20117
- * @throws {RequiredError}
20118
- */
20119
- postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
20120
- return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
20121
- },
20122
- };
20123
- };
20124
-
20125
- /**
20126
- * ShippingApi - object-oriented interface
20127
- * @export
20128
- * @class ShippingApi
20129
- * @extends {BaseAPI}
20130
- */
20131
- export class ShippingApi extends BaseAPI {
20132
- /**
20133
- * Get Shipping Services
20134
- * @summary Get Shipping Services
20135
- * @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
20136
- * @param {*} [options] Override http request option.
20137
- * @throws {RequiredError}
20138
- * @memberof ShippingApi
20139
- */
20140
- public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
20141
- return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
20142
- }
20143
- }
20144
-
20145
-
20146
-
20147
18676
  /**
20148
18677
  * StockManagementApi - axios parameter creator
20149
18678
  * @export
@@ -21230,7 +19759,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
21230
19759
  * @param {*} [options] Override http request option.
21231
19760
  * @throws {RequiredError}
21232
19761
  */
21233
- async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
19762
+ async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryModel>>> {
21234
19763
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
21235
19764
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21236
19765
  const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
@@ -21533,7 +20062,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
21533
20062
  * @param {*} [options] Override http request option.
21534
20063
  * @throws {RequiredError}
21535
20064
  */
21536
- getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
20065
+ getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryModel>> {
21537
20066
  return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
21538
20067
  },
21539
20068
  /**