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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +213 -195
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +34 -7
  4. package/api.ts +1865 -254
  5. package/base.ts +1 -1
  6. package/common.ts +5 -5
  7. package/config.json +3 -3
  8. package/configuration.ts +1 -1
  9. package/dist/api.d.ts +1343 -146
  10. package/dist/api.js +1135 -197
  11. package/dist/base.d.ts +1 -1
  12. package/dist/base.js +1 -1
  13. package/dist/common.d.ts +1 -1
  14. package/dist/common.js +1 -1
  15. package/dist/configuration.d.ts +1 -1
  16. package/dist/configuration.js +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/docs/AbstractOrderRequestDTO.md +33 -0
  20. package/docs/AccountDetailedSummaryDTO.md +39 -0
  21. package/docs/AccountsApi.md +103 -0
  22. package/docs/AddressModel.md +2 -0
  23. package/docs/AdminItemRequestDTO.md +39 -0
  24. package/docs/AdminOrderRequestDTO.md +45 -0
  25. package/docs/AdminUserModel.md +29 -0
  26. package/docs/BasicItemDTO.md +23 -0
  27. package/docs/BasicProductDTO.md +23 -0
  28. package/docs/Class3CXApi.md +0 -55
  29. package/docs/ClientDetailsModel.md +0 -2
  30. package/docs/CourierPriceEntity.md +39 -0
  31. package/docs/CustomerItemRequestDTO.md +35 -0
  32. package/docs/CustomerOrderRequestDTO.md +33 -0
  33. package/docs/ItemDTO.md +12 -4
  34. package/docs/ItemEntity.md +2 -0
  35. package/docs/LinkedOrderEntity.md +23 -0
  36. package/docs/OrderSummaryDTO.md +8 -0
  37. package/docs/OrderTotalModel.md +2 -0
  38. package/docs/OrdersApi.md +356 -4
  39. package/docs/PostGetProductForCustomerRequest.md +24 -0
  40. package/docs/ProductSearchResultsModel.md +1 -1
  41. package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
  42. package/docs/ProductsApi.md +164 -43
  43. package/docs/ProvisioningApi.md +4 -4
  44. package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
  45. package/docs/ShipmentEntity.md +2 -2
  46. package/docs/ShippingApi.md +63 -0
  47. package/docs/ShippingConsignmentModel.md +26 -0
  48. package/docs/ShippingInformationDTO.md +25 -0
  49. package/docs/ShippingServiceDTO.md +23 -0
  50. package/docs/ShippingServiceModel.md +31 -0
  51. package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
  52. package/docs/StockManagementApi.md +2 -2
  53. package/docs/TcxSbcDTO.md +31 -0
  54. package/docs/TcxSbcModel.md +1 -1
  55. package/index.ts +1 -1
  56. package/openapitools.json +1 -1
  57. package/package.json +1 -1
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,6 +23,55 @@ 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
+ }
26
75
  /**
27
76
  * AccountContactsEntity
28
77
  * @export
@@ -254,6 +303,73 @@ export interface AccountContactRequestModel {
254
303
  */
255
304
  'despatchEmails'?: boolean;
256
305
  }
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
+ }
257
373
  /**
258
374
  * New Account Request
259
375
  * @export
@@ -503,6 +619,12 @@ export interface AddressModel {
503
619
  * @memberof AddressModel
504
620
  */
505
621
  'company'?: string;
622
+ /**
623
+ * Default
624
+ * @type {boolean}
625
+ * @memberof AddressModel
626
+ */
627
+ 'default'?: boolean;
506
628
  }
507
629
  /**
508
630
  * Address Request
@@ -535,6 +657,206 @@ export interface AddressRequestModel {
535
657
  */
536
658
  'addressPostcode'?: string;
537
659
  }
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
+
538
860
  /**
539
861
  * Agent Hours Graph
540
862
  * @export
@@ -764,6 +1086,44 @@ export interface AuthCodeResponseModel {
764
1086
  */
765
1087
  'redirect_uri'?: string | null;
766
1088
  }
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
+ }
767
1127
  /**
768
1128
  * BatchesEntity
769
1129
  * @export
@@ -958,12 +1318,6 @@ export interface ClientDetailsModel {
958
1318
  * @memberof ClientDetailsModel
959
1319
  */
960
1320
  'lastName'?: string;
961
- /**
962
- * User Profile Picture
963
- * @type {string}
964
- * @memberof ClientDetailsModel
965
- */
966
- 'image'?: string | null;
967
1321
  }
968
1322
  /**
969
1323
  * OAuth client details
@@ -1126,40 +1480,107 @@ export interface ConversationModel {
1126
1480
  'attachments'?: Array<AttachmentModel>;
1127
1481
  }
1128
1482
  /**
1129
- * Credit Account
1483
+ * CourierPricesEntity
1130
1484
  * @export
1131
- * @interface CreditAccountEntity
1485
+ * @interface CourierPriceEntity
1132
1486
  */
1133
- export interface CreditAccountEntity {
1487
+ export interface CourierPriceEntity {
1134
1488
  /**
1135
- * ID
1489
+ * id
1136
1490
  * @type {number}
1137
- * @memberof CreditAccountEntity
1491
+ * @memberof CourierPriceEntity
1138
1492
  */
1139
1493
  'id'?: number;
1140
1494
  /**
1141
- * Contact Name
1495
+ * courier
1142
1496
  * @type {string}
1143
- * @memberof CreditAccountEntity
1497
+ * @memberof CourierPriceEntity
1144
1498
  */
1145
- 'name'?: string;
1499
+ 'courier'?: string;
1146
1500
  /**
1147
- * Email
1501
+ * destinationIso
1148
1502
  * @type {string}
1149
- * @memberof CreditAccountEntity
1503
+ * @memberof CourierPriceEntity
1150
1504
  */
1151
- 'email'?: string;
1505
+ 'destinationIso'?: string;
1152
1506
  /**
1153
- * Phone Number
1507
+ * serviceDescription
1154
1508
  * @type {string}
1155
- * @memberof CreditAccountEntity
1509
+ * @memberof CourierPriceEntity
1156
1510
  */
1157
- 'phone'?: string;
1511
+ 'serviceDescription'?: string;
1158
1512
  /**
1159
- * Company Name
1160
- * @type {string}
1161
- * @memberof CreditAccountEntity
1162
- */
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;
1579
+ /**
1580
+ * Company Name
1581
+ * @type {string}
1582
+ * @memberof CreditAccountEntity
1583
+ */
1163
1584
  'company'?: string;
1164
1585
  /**
1165
1586
  * Company Registration Number
@@ -1307,6 +1728,110 @@ export interface CustomerInformationModel {
1307
1728
  */
1308
1729
  'contactLastName'?: string;
1309
1730
  }
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
+ }
1310
1835
  /**
1311
1836
  * Customer Price List
1312
1837
  * @export
@@ -1816,19 +2341,6 @@ export interface GenericFileModel {
1816
2341
  */
1817
2342
  'type'?: string;
1818
2343
  }
1819
- /**
1820
- *
1821
- * @export
1822
- * @interface GetGetPasswordHash200Response
1823
- */
1824
- export interface GetGetPasswordHash200Response {
1825
- /**
1826
- *
1827
- * @type {string}
1828
- * @memberof GetGetPasswordHash200Response
1829
- */
1830
- 'hash'?: string;
1831
- }
1832
2344
  /**
1833
2345
  *
1834
2346
  * @export
@@ -2430,35 +2942,35 @@ export interface InstanceUserCredentialsEntity {
2430
2942
  */
2431
2943
  export interface ItemDTO {
2432
2944
  /**
2433
- * ID
2434
- * @type {number}
2945
+ * SKU
2946
+ * @type {string}
2435
2947
  * @memberof ItemDTO
2436
2948
  */
2437
- 'id'?: number;
2949
+ 'sku'?: string;
2438
2950
  /**
2439
- * Order ID
2951
+ * Quantity
2440
2952
  * @type {number}
2441
2953
  * @memberof ItemDTO
2442
2954
  */
2443
- 'orderId'?: number;
2955
+ 'quantity'?: number;
2444
2956
  /**
2445
- * Title
2446
- * @type {string}
2957
+ * ID
2958
+ * @type {number}
2447
2959
  * @memberof ItemDTO
2448
2960
  */
2449
- 'title'?: string;
2961
+ 'id'?: number | null;
2450
2962
  /**
2451
- * SKU
2452
- * @type {string}
2963
+ * Order ID
2964
+ * @type {number}
2453
2965
  * @memberof ItemDTO
2454
2966
  */
2455
- 'sku'?: string;
2967
+ 'orderId'?: number | null;
2456
2968
  /**
2457
- * Quantity
2458
- * @type {number}
2969
+ * Title
2970
+ * @type {string}
2459
2971
  * @memberof ItemDTO
2460
2972
  */
2461
- 'quantity'?: number;
2973
+ 'title'?: string;
2462
2974
  /**
2463
2975
  * Price
2464
2976
  * @type {number}
@@ -2483,6 +2995,12 @@ export interface ItemDTO {
2483
2995
  * @memberof ItemDTO
2484
2996
  */
2485
2997
  'processDate'?: string;
2998
+ /**
2999
+ * 3CX Hosting
3000
+ * @type {boolean}
3001
+ * @memberof ItemDTO
3002
+ */
3003
+ 'hosting'?: boolean | null;
2486
3004
  /**
2487
3005
  * Promo Item
2488
3006
  * @type {boolean}
@@ -2494,7 +3012,25 @@ export interface ItemDTO {
2494
3012
  * @type {number}
2495
3013
  * @memberof ItemDTO
2496
3014
  */
2497
- 'refunded'?: number;
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;
2498
3034
  }
2499
3035
  /**
2500
3036
  * ItemsEntity
@@ -2628,6 +3164,31 @@ export interface ItemEntity {
2628
3164
  * @memberof ItemEntity
2629
3165
  */
2630
3166
  '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;
2631
3192
  }
2632
3193
  /**
2633
3194
  * MFA Required
@@ -3288,13 +3849,19 @@ export interface OrderSummaryDTO {
3288
3849
  * @type {string}
3289
3850
  * @memberof OrderSummaryDTO
3290
3851
  */
3291
- 'reference'?: string;
3852
+ 'reference'?: string | null;
3292
3853
  /**
3293
3854
  * Invoice Number
3294
3855
  * @type {string}
3295
3856
  * @memberof OrderSummaryDTO
3296
3857
  */
3297
3858
  'invoiceNumber'?: string;
3859
+ /**
3860
+ * Invoice ID
3861
+ * @type {string}
3862
+ * @memberof OrderSummaryDTO
3863
+ */
3864
+ 'invoiceId'?: string | null;
3298
3865
  /**
3299
3866
  * Date Time
3300
3867
  * @type {string}
@@ -3349,6 +3916,24 @@ export interface OrderSummaryDTO {
3349
3916
  * @memberof OrderSummaryDTO
3350
3917
  */
3351
3918
  '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;
3352
3937
  }
3353
3938
  /**
3354
3939
  * Order Totals
@@ -3398,6 +3983,12 @@ export interface OrderTotalModel {
3398
3983
  * @memberof OrderTotalModel
3399
3984
  */
3400
3985
  'currency'?: OrderTotalModelCurrencyEnum;
3986
+ /**
3987
+ * Delivery
3988
+ * @type {number}
3989
+ * @memberof OrderTotalModel
3990
+ */
3991
+ 'delivery'?: number | null;
3401
3992
  }
3402
3993
 
3403
3994
  export const OrderTotalModelCurrencyEnum = {
@@ -3779,6 +4370,31 @@ export interface PostGetClientCredentialsRequest {
3779
4370
  */
3780
4371
  'scopes'?: Array<string>;
3781
4372
  }
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
+ }
3782
4398
  /**
3783
4399
  * Price & Stock List
3784
4400
  * @export
@@ -3867,10 +4483,10 @@ export interface PrizesEntity {
3867
4483
  export interface ProductSearchResultsModel {
3868
4484
  /**
3869
4485
  * Results
3870
- * @type {Array<ProductSummaryModel>}
4486
+ * @type {Array<ProductSummaryDTO>}
3871
4487
  * @memberof ProductSearchResultsModel
3872
4488
  */
3873
- 'results'?: Array<ProductSummaryModel>;
4489
+ 'results'?: Array<ProductSummaryDTO>;
3874
4490
  }
3875
4491
  /**
3876
4492
  * Product Serial Info
@@ -3906,45 +4522,51 @@ export interface ProductSerialInfoModel {
3906
4522
  /**
3907
4523
  * Product Summary
3908
4524
  * @export
3909
- * @interface ProductSummaryModel
4525
+ * @interface ProductSummaryDTO
3910
4526
  */
3911
- export interface ProductSummaryModel {
4527
+ export interface ProductSummaryDTO {
3912
4528
  /**
3913
4529
  * SKU
3914
4530
  * @type {string}
3915
- * @memberof ProductSummaryModel
4531
+ * @memberof ProductSummaryDTO
3916
4532
  */
3917
4533
  'sku'?: string;
3918
4534
  /**
3919
4535
  * Title
3920
4536
  * @type {string}
3921
- * @memberof ProductSummaryModel
4537
+ * @memberof ProductSummaryDTO
3922
4538
  */
3923
4539
  'title'?: string;
3924
4540
  /**
3925
4541
  * Stock Quantity
3926
4542
  * @type {number}
3927
- * @memberof ProductSummaryModel
4543
+ * @memberof ProductSummaryDTO
3928
4544
  */
3929
4545
  'quantity'?: number | null;
3930
4546
  /**
3931
4547
  * Stock Product
3932
4548
  * @type {boolean}
3933
- * @memberof ProductSummaryModel
4549
+ * @memberof ProductSummaryDTO
3934
4550
  */
3935
4551
  'stockProduct'?: boolean;
3936
4552
  /**
3937
4553
  * Price
3938
4554
  * @type {number}
3939
- * @memberof ProductSummaryModel
4555
+ * @memberof ProductSummaryDTO
3940
4556
  */
3941
4557
  'price'?: number | null;
3942
4558
  /**
3943
4559
  * Carton Size
3944
4560
  * @type {number}
3945
- * @memberof ProductSummaryModel
4561
+ * @memberof ProductSummaryDTO
3946
4562
  */
3947
4563
  'cartonSize'?: number | null;
4564
+ /**
4565
+ * RRP Price
4566
+ * @type {number}
4567
+ * @memberof ProductSummaryDTO
4568
+ */
4569
+ 'rrp'?: number | null;
3948
4570
  }
3949
4571
  /**
3950
4572
  * PromoCodesEntity
@@ -4083,37 +4705,37 @@ export interface PromoItemsEntity {
4083
4705
  /**
4084
4706
  * Provisioning Group
4085
4707
  * @export
4086
- * @interface ProvisioningEntity
4708
+ * @interface ProvisioningModel
4087
4709
  */
4088
- export interface ProvisioningEntity {
4710
+ export interface ProvisioningModel {
4089
4711
  /**
4090
4712
  * Provisioning Group Name
4091
4713
  * @type {string}
4092
- * @memberof ProvisioningEntity
4714
+ * @memberof ProvisioningModel
4093
4715
  */
4094
4716
  'groupName'?: string;
4095
4717
  /**
4096
4718
  * Provisioning URL (Static Provisioning Server)
4097
4719
  * @type {string}
4098
- * @memberof ProvisioningEntity
4720
+ * @memberof ProvisioningModel
4099
4721
  */
4100
4722
  'provisioningUrl'?: string;
4101
4723
  /**
4102
4724
  * Additional Authentication Secret
4103
4725
  * @type {string}
4104
- * @memberof ProvisioningEntity
4726
+ * @memberof ProvisioningModel
4105
4727
  */
4106
4728
  'auth'?: string;
4107
4729
  /**
4108
4730
  * Provisioning Group ID
4109
4731
  * @type {number}
4110
- * @memberof ProvisioningEntity
4732
+ * @memberof ProvisioningModel
4111
4733
  */
4112
4734
  'id'?: number;
4113
4735
  /**
4114
4736
  * Owner ID
4115
4737
  * @type {number}
4116
- * @memberof ProvisioningEntity
4738
+ * @memberof ProvisioningModel
4117
4739
  */
4118
4740
  'customerId'?: number;
4119
4741
  }
@@ -4467,7 +5089,7 @@ export interface ShipmentEntity {
4467
5089
  * @type {string}
4468
5090
  * @memberof ShipmentEntity
4469
5091
  */
4470
- 'date'?: string;
5092
+ 'dateShipped'?: string;
4471
5093
  /**
4472
5094
  * requestDate
4473
5095
  * @type {string}
@@ -4519,37 +5141,186 @@ export interface ShipmentItemEntity {
4519
5141
  'itemId'?: string;
4520
5142
  }
4521
5143
  /**
4522
- * Change Response
5144
+ *
4523
5145
  * @export
4524
- * @interface SipTrunkChangeResponseModel
5146
+ * @interface ShippingConsignmentModel
4525
5147
  */
4526
- export interface SipTrunkChangeResponseModel {
4527
- /**
4528
- * ID
4529
- * @type {string}
4530
- * @memberof SipTrunkChangeResponseModel
4531
- */
4532
- 'changeId'?: string;
5148
+ export interface ShippingConsignmentModel {
4533
5149
  /**
4534
5150
  *
4535
- * @type {SipTrunkEntity}
4536
- * @memberof SipTrunkChangeResponseModel
5151
+ * @type {ShippingServiceModel}
5152
+ * @memberof ShippingConsignmentModel
4537
5153
  */
4538
- 'trunk'?: SipTrunkEntity;
5154
+ 'service'?: ShippingServiceModel;
4539
5155
  /**
4540
- * Type
5156
+ * ID/Number
4541
5157
  * @type {string}
4542
- * @memberof SipTrunkChangeResponseModel
5158
+ * @memberof ShippingConsignmentModel
4543
5159
  */
4544
- 'type'?: SipTrunkChangeResponseModelTypeEnum;
5160
+ 'id'?: string;
4545
5161
  /**
4546
- * Progress
4547
- * @type {number}
4548
- * @memberof SipTrunkChangeResponseModel
5162
+ * Tracking Number
5163
+ * @type {string}
5164
+ * @memberof ShippingConsignmentModel
4549
5165
  */
4550
- 'progress'?: number;
5166
+ 'trackingNumber'?: string;
4551
5167
  /**
4552
- * Service Provider
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
+ /**
5293
+ * Change Response
5294
+ * @export
5295
+ * @interface SipTrunkChangeResponseModel
5296
+ */
5297
+ export interface SipTrunkChangeResponseModel {
5298
+ /**
5299
+ * ID
5300
+ * @type {string}
5301
+ * @memberof SipTrunkChangeResponseModel
5302
+ */
5303
+ 'changeId'?: string;
5304
+ /**
5305
+ *
5306
+ * @type {SipTrunkEntity}
5307
+ * @memberof SipTrunkChangeResponseModel
5308
+ */
5309
+ 'trunk'?: SipTrunkEntity;
5310
+ /**
5311
+ * Type
5312
+ * @type {string}
5313
+ * @memberof SipTrunkChangeResponseModel
5314
+ */
5315
+ 'type'?: SipTrunkChangeResponseModelTypeEnum;
5316
+ /**
5317
+ * Progress
5318
+ * @type {number}
5319
+ * @memberof SipTrunkChangeResponseModel
5320
+ */
5321
+ 'progress'?: number;
5322
+ /**
5323
+ * Service Provider
4553
5324
  * @type {number}
4554
5325
  * @memberof SipTrunkChangeResponseModel
4555
5326
  */
@@ -7357,6 +8128,49 @@ export interface TcxRemoteStorageModel {
7357
8128
  */
7358
8129
  'secretAccessKey'?: string;
7359
8130
  }
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
+ }
7360
8174
  /**
7361
8175
  * 3CX Wizard SBC
7362
8176
  * @export
@@ -7461,7 +8275,7 @@ export interface TcxSbcEntity {
7461
8275
  'technicalContact'?: string;
7462
8276
  }
7463
8277
  /**
7464
- * 3CX SBC Model
8278
+ * 3CX Wizard SBC
7465
8279
  * @export
7466
8280
  * @interface TcxSbcModel
7467
8281
  */
@@ -8646,6 +9460,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8646
9460
 
8647
9461
 
8648
9462
 
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
+
8649
9497
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8650
9498
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8651
9499
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8944,6 +9792,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
8944
9792
  options: localVarRequestOptions,
8945
9793
  };
8946
9794
  },
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
+ },
8947
9825
  /**
8948
9826
  * Create client credentials
8949
9827
  * @summary Create client credentials
@@ -9193,6 +10071,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9193
10071
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
9194
10072
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9195
10073
  },
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
+ },
9196
10087
  /**
9197
10088
  * Get Accounts
9198
10089
  * @summary Get Accounts
@@ -9298,6 +10189,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
9298
10189
  const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
9299
10190
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9300
10191
  },
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
+ },
9301
10204
  /**
9302
10205
  * Create client credentials
9303
10206
  * @summary Create client credentials
@@ -9415,6 +10318,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9415
10318
  getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
9416
10319
  return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
9417
10320
  },
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
+ },
9418
10331
  /**
9419
10332
  * Get Accounts
9420
10333
  * @summary Get Accounts
@@ -9496,6 +10409,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
9496
10409
  postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
9497
10410
  return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
9498
10411
  },
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
+ },
9499
10421
  /**
9500
10422
  * Create client credentials
9501
10423
  * @summary Create client credentials
@@ -9606,6 +10528,18 @@ export class AccountsApi extends BaseAPI {
9606
10528
  return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
9607
10529
  }
9608
10530
 
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
+
9609
10543
  /**
9610
10544
  * Get Accounts
9611
10545
  * @summary Get Accounts
@@ -9703,6 +10637,17 @@ export class AccountsApi extends BaseAPI {
9703
10637
  return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
9704
10638
  }
9705
10639
 
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
+
9706
10651
  /**
9707
10652
  * Create client credentials
9708
10653
  * @summary Create client credentials
@@ -9803,43 +10748,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
9803
10748
 
9804
10749
 
9805
10750
 
9806
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9807
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9808
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9809
-
9810
- return {
9811
- url: toPathString(localVarUrlObj),
9812
- options: localVarRequestOptions,
9813
- };
9814
- },
9815
- /**
9816
- * Generate a 3CX hashed password for 3CX installation
9817
- * @summary Convert a password to a hashed 3CX password
9818
- * @param {string} password Desired 3CX web access password
9819
- * @param {*} [options] Override http request option.
9820
- * @throws {RequiredError}
9821
- */
9822
- getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9823
- // verify required parameter 'password' is not null or undefined
9824
- assertParamExists('getGetPasswordHash', 'password', password)
9825
- const localVarPath = `/tcx/pwd2hash`;
9826
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
9827
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9828
- let baseOptions;
9829
- if (configuration) {
9830
- baseOptions = configuration.baseOptions;
9831
- }
9832
-
9833
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9834
- const localVarHeaderParameter = {} as any;
9835
- const localVarQueryParameter = {} as any;
9836
-
9837
- if (password !== undefined) {
9838
- localVarQueryParameter['password'] = password;
9839
- }
9840
-
9841
-
9842
-
9843
10751
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9844
10752
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9845
10753
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9906,19 +10814,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
9906
10814
  const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
9907
10815
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9908
10816
  },
9909
- /**
9910
- * Generate a 3CX hashed password for 3CX installation
9911
- * @summary Convert a password to a hashed 3CX password
9912
- * @param {string} password Desired 3CX web access password
9913
- * @param {*} [options] Override http request option.
9914
- * @throws {RequiredError}
9915
- */
9916
- async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
9917
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
9918
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9919
- const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
9920
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9921
- },
9922
10817
  /**
9923
10818
  * Get Bulk 3CX Licence Details
9924
10819
  * @summary Get bulk 3CX Licence Details
@@ -9952,16 +10847,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
9952
10847
  getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
9953
10848
  return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
9954
10849
  },
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(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
9963
- return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
9964
- },
9965
10850
  /**
9966
10851
  * Get Bulk 3CX Licence Details
9967
10852
  * @summary Get bulk 3CX Licence Details
@@ -9994,18 +10879,6 @@ export class Class3CXApi extends BaseAPI {
9994
10879
  return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
9995
10880
  }
9996
10881
 
9997
- /**
9998
- * Generate a 3CX hashed password for 3CX installation
9999
- * @summary Convert a password to a hashed 3CX password
10000
- * @param {string} password Desired 3CX web access password
10001
- * @param {*} [options] Override http request option.
10002
- * @throws {RequiredError}
10003
- * @memberof Class3CXApi
10004
- */
10005
- public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
10006
- return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
10007
- }
10008
-
10009
10882
  /**
10010
10883
  * Get Bulk 3CX Licence Details
10011
10884
  * @summary Get bulk 3CX Licence Details
@@ -15162,13 +16035,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15162
16035
  return {
15163
16036
  /**
15164
16037
  * Delete Orders
16038
+ * @summary Delete Orders
15165
16039
  * @param {number} id Order ID
15166
16040
  * @param {*} [options] Override http request option.
15167
16041
  * @throws {RequiredError}
15168
16042
  */
15169
- deleteDeleteOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16043
+ deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15170
16044
  // verify required parameter 'id' is not null or undefined
15171
- assertParamExists('deleteDeleteOrder', 'id', id)
16045
+ assertParamExists('deleteUpdateOrder', 'id', id)
15172
16046
  const localVarPath = `/orders/{id}`
15173
16047
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15174
16048
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -15184,6 +16058,74 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15184
16058
 
15185
16059
 
15186
16060
 
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
+
15187
16129
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15188
16130
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15189
16131
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -15253,6 +16195,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
15253
16195
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15254
16196
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15255
16197
 
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
+
15256
16362
  return {
15257
16363
  url: toPathString(localVarUrlObj),
15258
16364
  options: localVarRequestOptions,
@@ -15270,14 +16376,41 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15270
16376
  return {
15271
16377
  /**
15272
16378
  * 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
+ * @param {number} id Order ID
16394
+ * @param {*} [options] Override http request option.
16395
+ * @throws {RequiredError}
16396
+ */
16397
+ async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
16398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
16399
+ 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
15273
16406
  * @param {number} id Order ID
15274
16407
  * @param {*} [options] Override http request option.
15275
16408
  * @throws {RequiredError}
15276
16409
  */
15277
- async deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
15278
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteOrder(id, options);
16410
+ async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerOrderRequestDTO>> {
16411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
15279
16412
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15280
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteOrder']?.[localVarOperationServerIndex]?.url;
16413
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
15281
16414
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15282
16415
  },
15283
16416
  /**
@@ -15299,6 +16432,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
15299
16432
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
15300
16433
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15301
16434
  },
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
+ },
15302
16493
  }
15303
16494
  };
15304
16495
 
@@ -15311,12 +16502,33 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15311
16502
  return {
15312
16503
  /**
15313
16504
  * Delete Orders
16505
+ * @summary Delete Orders
16506
+ * @param {number} id Order ID
16507
+ * @param {*} [options] Override http request option.
16508
+ * @throws {RequiredError}
16509
+ */
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
15314
16526
  * @param {number} id Order ID
15315
16527
  * @param {*} [options] Override http request option.
15316
16528
  * @throws {RequiredError}
15317
16529
  */
15318
- deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
15319
- return localVarFp.deleteDeleteOrder(id, options).then((request) => request(axios, basePath));
16530
+ getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<CustomerOrderRequestDTO> {
16531
+ return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
15320
16532
  },
15321
16533
  /**
15322
16534
  * Get Orders
@@ -15334,6 +16546,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15334
16546
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
15335
16547
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
15336
16548
  },
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
+ },
15337
16595
  };
15338
16596
  };
15339
16597
 
@@ -15346,13 +16604,38 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
15346
16604
  export class OrdersApi extends BaseAPI {
15347
16605
  /**
15348
16606
  * Delete Orders
16607
+ * @summary Delete Orders
15349
16608
  * @param {number} id Order ID
15350
16609
  * @param {*} [options] Override http request option.
15351
16610
  * @throws {RequiredError}
15352
16611
  * @memberof OrdersApi
15353
16612
  */
15354
- public deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig) {
15355
- return OrdersApiFp(this.configuration).deleteDeleteOrder(id, options).then((request) => request(this.axios, this.basePath));
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
+ * @param {number} id Order ID
16621
+ * @param {*} [options] Override http request option.
16622
+ * @throws {RequiredError}
16623
+ * @memberof OrdersApi
16624
+ */
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));
15356
16639
  }
15357
16640
 
15358
16641
  /**
@@ -15372,6 +16655,60 @@ export class OrdersApi extends BaseAPI {
15372
16655
  public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
15373
16656
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
15374
16657
  }
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
+ }
15375
16712
  }
15376
16713
 
15377
16714
  /**
@@ -15757,8 +17094,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15757
17094
  * @param {*} [options] Override http request option.
15758
17095
  * @throws {RequiredError}
15759
17096
  */
15760
- getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15761
- const localVarPath = `/products/attributes`;
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
17125
+ * @param {*} [options] Override http request option.
17126
+ * @deprecated
17127
+ * @throws {RequiredError}
17128
+ */
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`;
15762
17133
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15763
17134
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15764
17135
  let baseOptions;
@@ -15770,6 +17141,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15770
17141
  const localVarHeaderParameter = {} as any;
15771
17142
  const localVarQueryParameter = {} as any;
15772
17143
 
17144
+ if (format !== undefined) {
17145
+ localVarQueryParameter['format'] = format;
17146
+ }
17147
+
15773
17148
 
15774
17149
 
15775
17150
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15782,13 +17157,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15782
17157
  };
15783
17158
  },
15784
17159
  /**
15785
- * Get Customer Price Lists
15786
- * @summary Get Customer Price Lists
17160
+ * Get Products
17161
+ * @summary Get Products
15787
17162
  * @param {*} [options] Override http request option.
15788
17163
  * @throws {RequiredError}
15789
17164
  */
15790
- getGetCustomerPriceLists: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15791
- const localVarPath = `/products/prices/lists`;
17165
+ getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17166
+ const localVarPath = `/products`;
15792
17167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15793
17168
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15794
17169
  let baseOptions;
@@ -15814,15 +17189,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15814
17189
  /**
15815
17190
  * Get Current Stock & Pricing
15816
17191
  * @summary Get Current Stock & Pricing
15817
- * @param {GetGetLegacyStockListFormatEnum} format File Format
15818
17192
  * @param {*} [options] Override http request option.
15819
- * @deprecated
15820
17193
  * @throws {RequiredError}
15821
17194
  */
15822
- getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15823
- // verify required parameter 'format' is not null or undefined
15824
- assertParamExists('getGetLegacyStockList', 'format', format)
15825
- const localVarPath = `/products/stock/legacy`;
17195
+ getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17196
+ const localVarPath = `/products/stock`;
15826
17197
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15827
17198
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15828
17199
  let baseOptions;
@@ -15834,10 +17205,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15834
17205
  const localVarHeaderParameter = {} as any;
15835
17206
  const localVarQueryParameter = {} as any;
15836
17207
 
15837
- if (format !== undefined) {
15838
- localVarQueryParameter['format'] = format;
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;
15839
17232
  }
15840
17233
 
17234
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17235
+ const localVarHeaderParameter = {} as any;
17236
+ const localVarQueryParameter = {} as any;
17237
+
15841
17238
 
15842
17239
 
15843
17240
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -15850,15 +17247,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15850
17247
  };
15851
17248
  },
15852
17249
  /**
15853
- * Get Products
15854
- * @summary Get Products
17250
+ * Search Products
17251
+ * @summary Search Products
15855
17252
  * @param {number} [pageSize] Number Of Results
15856
17253
  * @param {number} [page] Page Number
15857
17254
  * @param {string} [search] Search
15858
17255
  * @param {*} [options] Override http request option.
15859
17256
  * @throws {RequiredError}
15860
17257
  */
15861
- getGetProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17258
+ getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15862
17259
  const localVarPath = `/products/search`;
15863
17260
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15864
17261
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15895,13 +17292,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15895
17292
  };
15896
17293
  },
15897
17294
  /**
15898
- * Get Current Stock & Pricing
15899
- * @summary Get Current Stock & Pricing
17295
+ * Get Product
17296
+ * @summary Get Product
17297
+ * @param {string} sku Product SKU
17298
+ * @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
15900
17299
  * @param {*} [options] Override http request option.
15901
17300
  * @throws {RequiredError}
15902
17301
  */
15903
- getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15904
- const localVarPath = `/products/stock`;
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)));
15905
17309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15906
17310
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15907
17311
  let baseOptions;
@@ -15909,15 +17313,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15909
17313
  baseOptions = configuration.baseOptions;
15910
17314
  }
15911
17315
 
15912
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17316
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15913
17317
  const localVarHeaderParameter = {} as any;
15914
17318
  const localVarQueryParameter = {} as any;
15915
17319
 
15916
17320
 
15917
17321
 
17322
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17323
+
15918
17324
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15919
17325
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15920
17326
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17327
+ localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
15921
17328
 
15922
17329
  return {
15923
17330
  url: toPathString(localVarUrlObj),
@@ -15925,13 +17332,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15925
17332
  };
15926
17333
  },
15927
17334
  /**
15928
- * Get 3CX Templates
15929
- * @summary Get 3CX Templates
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
15930
17340
  * @param {*} [options] Override http request option.
15931
17341
  * @throws {RequiredError}
15932
17342
  */
15933
- getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15934
- const localVarPath = `/products/attributes/tcx/templates`;
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)));
15935
17352
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15936
17353
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15937
17354
  let baseOptions;
@@ -15939,15 +17356,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
15939
17356
  baseOptions = configuration.baseOptions;
15940
17357
  }
15941
17358
 
15942
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17359
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15943
17360
  const localVarHeaderParameter = {} as any;
15944
17361
  const localVarQueryParameter = {} as any;
15945
17362
 
17363
+ if (customerId !== undefined) {
17364
+ localVarQueryParameter['customerId'] = customerId;
17365
+ }
17366
+
15946
17367
 
15947
17368
 
17369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17370
+
15948
17371
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15949
17372
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15950
17373
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17374
+ localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
15951
17375
 
15952
17376
  return {
15953
17377
  url: toPathString(localVarUrlObj),
@@ -15976,18 +17400,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
15976
17400
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
15977
17401
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15978
17402
  },
15979
- /**
15980
- * Get Customer Price Lists
15981
- * @summary Get Customer Price Lists
15982
- * @param {*} [options] Override http request option.
15983
- * @throws {RequiredError}
15984
- */
15985
- async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
15986
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
15987
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15988
- const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
15989
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15990
- },
15991
17403
  /**
15992
17404
  * Get Current Stock & Pricing
15993
17405
  * @summary Get Current Stock & Pricing
@@ -16005,14 +17417,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
16005
17417
  /**
16006
17418
  * Get Products
16007
17419
  * @summary Get Products
16008
- * @param {number} [pageSize] Number Of Results
16009
- * @param {number} [page] Page Number
16010
- * @param {string} [search] Search
16011
17420
  * @param {*} [options] Override http request option.
16012
17421
  * @throws {RequiredError}
16013
17422
  */
16014
- async getGetProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
16015
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(pageSize, page, search, options);
17423
+ async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
17424
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
16016
17425
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16017
17426
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
16018
17427
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -16041,6 +17450,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
16041
17450
  const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
16042
17451
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16043
17452
  },
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
+ },
16044
17497
  }
16045
17498
  };
16046
17499
 
@@ -16060,15 +17513,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
16060
17513
  getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
16061
17514
  return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
16062
17515
  },
16063
- /**
16064
- * Get Customer Price Lists
16065
- * @summary Get Customer Price Lists
16066
- * @param {*} [options] Override http request option.
16067
- * @throws {RequiredError}
16068
- */
16069
- getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
16070
- return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
16071
- },
16072
17516
  /**
16073
17517
  * Get Current Stock & Pricing
16074
17518
  * @summary Get Current Stock & Pricing
@@ -16083,14 +17527,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
16083
17527
  /**
16084
17528
  * Get Products
16085
17529
  * @summary Get Products
16086
- * @param {number} [pageSize] Number Of Results
16087
- * @param {number} [page] Page Number
16088
- * @param {string} [search] Search
16089
17530
  * @param {*} [options] Override http request option.
16090
17531
  * @throws {RequiredError}
16091
17532
  */
16092
- getGetProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
16093
- return localVarFp.getGetProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
17533
+ getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
17534
+ return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
16094
17535
  },
16095
17536
  /**
16096
17537
  * Get Current Stock & Pricing
@@ -16110,6 +17551,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
16110
17551
  getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
16111
17552
  return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
16112
17553
  },
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
+ },
16113
17589
  };
16114
17590
  };
16115
17591
 
@@ -16131,17 +17607,6 @@ export class ProductsApi extends BaseAPI {
16131
17607
  return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
16132
17608
  }
16133
17609
 
16134
- /**
16135
- * Get Customer Price Lists
16136
- * @summary Get Customer Price Lists
16137
- * @param {*} [options] Override http request option.
16138
- * @throws {RequiredError}
16139
- * @memberof ProductsApi
16140
- */
16141
- public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
16142
- return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
16143
- }
16144
-
16145
17610
  /**
16146
17611
  * Get Current Stock & Pricing
16147
17612
  * @summary Get Current Stock & Pricing
@@ -16158,15 +17623,12 @@ export class ProductsApi extends BaseAPI {
16158
17623
  /**
16159
17624
  * Get Products
16160
17625
  * @summary Get Products
16161
- * @param {number} [pageSize] Number Of Results
16162
- * @param {number} [page] Page Number
16163
- * @param {string} [search] Search
16164
17626
  * @param {*} [options] Override http request option.
16165
17627
  * @throws {RequiredError}
16166
17628
  * @memberof ProductsApi
16167
17629
  */
16168
- public getGetProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
16169
- return ProductsApiFp(this.configuration).getGetProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
17630
+ public getGetProducts(options?: RawAxiosRequestConfig) {
17631
+ return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
16170
17632
  }
16171
17633
 
16172
17634
  /**
@@ -16190,6 +17652,47 @@ export class ProductsApi extends BaseAPI {
16190
17652
  public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
16191
17653
  return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
16192
17654
  }
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
+ }
16193
17696
  }
16194
17697
 
16195
17698
  /**
@@ -16530,7 +18033,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
16530
18033
  * @param {*} [options] Override http request option.
16531
18034
  * @throws {RequiredError}
16532
18035
  */
16533
- async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningEntity>>> {
18036
+ async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
16534
18037
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
16535
18038
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16536
18039
  const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
@@ -16543,7 +18046,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
16543
18046
  * @param {*} [options] Override http request option.
16544
18047
  * @throws {RequiredError}
16545
18048
  */
16546
- async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningEntity>> {
18049
+ async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
16547
18050
  const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
16548
18051
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16549
18052
  const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
@@ -16622,7 +18125,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
16622
18125
  * @param {*} [options] Override http request option.
16623
18126
  * @throws {RequiredError}
16624
18127
  */
16625
- getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningEntity>> {
18128
+ getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
16626
18129
  return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
16627
18130
  },
16628
18131
  /**
@@ -16632,7 +18135,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
16632
18135
  * @param {*} [options] Override http request option.
16633
18136
  * @throws {RequiredError}
16634
18137
  */
16635
- postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningEntity> {
18138
+ postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
16636
18139
  return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
16637
18140
  },
16638
18141
  /**
@@ -18533,6 +20036,114 @@ export class SMSApi extends BaseAPI {
18533
20036
 
18534
20037
 
18535
20038
 
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
+
18536
20147
  /**
18537
20148
  * StockManagementApi - axios parameter creator
18538
20149
  * @export
@@ -19619,7 +21230,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
19619
21230
  * @param {*} [options] Override http request option.
19620
21231
  * @throws {RequiredError}
19621
21232
  */
19622
- async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryModel>>> {
21233
+ async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
19623
21234
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
19624
21235
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19625
21236
  const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
@@ -19922,7 +21533,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
19922
21533
  * @param {*} [options] Override http request option.
19923
21534
  * @throws {RequiredError}
19924
21535
  */
19925
- getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryModel>> {
21536
+ getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
19926
21537
  return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
19927
21538
  },
19928
21539
  /**