yellowgrid-api-ts 3.0.83 → 3.0.84-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.
- package/.openapi-generator/FILES +208 -190
- package/README.md +34 -7
- package/api.ts +1821 -276
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/config.json +3 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1316 -163
- package/dist/api.js +1079 -201
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AbstractOrderRequestDTO.md +33 -0
- package/docs/AccountDetailedSummaryDTO.md +35 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AdminItemRequestDTO.md +37 -0
- package/docs/AdminOrderRequestDTO.md +41 -0
- package/docs/AdminUserModel.md +31 -0
- package/docs/BasicItemDTO.md +23 -0
- package/docs/BasicProductDTO.md +23 -0
- package/docs/Class3CXApi.md +0 -55
- package/docs/ClientDetailsModel.md +0 -2
- package/docs/CourierPriceEntity.md +39 -0
- package/docs/CustomerItemRequestDTO.md +33 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +10 -4
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/NavigationItemModel.md +27 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +301 -4
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +166 -35
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/ShippingApi.md +63 -0
- package/docs/ShippingConsignmentModel.md +26 -0
- package/docs/ShippingInformationDTO.md +25 -0
- package/docs/ShippingServiceDTO.md +23 -0
- package/docs/ShippingServiceModel.md +31 -0
- package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
- package/docs/StockManagementApi.md +2 -2
- package/docs/SubNavigationItemModel.md +25 -0
- package/docs/TcxBackupModel.md +0 -2
- package/docs/TcxSbcDTO.md +31 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- 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.
|
|
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;
|
|
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,61 @@ 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
|
+
}
|
|
257
361
|
/**
|
|
258
362
|
* New Account Request
|
|
259
363
|
* @export
|
|
@@ -535,6 +639,194 @@ export interface AddressRequestModel {
|
|
|
535
639
|
*/
|
|
536
640
|
'addressPostcode'?: string;
|
|
537
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* Admin Order Item Request
|
|
644
|
+
* @export
|
|
645
|
+
* @interface AdminItemRequestDTO
|
|
646
|
+
*/
|
|
647
|
+
export interface AdminItemRequestDTO {
|
|
648
|
+
/**
|
|
649
|
+
* SKU
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof AdminItemRequestDTO
|
|
652
|
+
*/
|
|
653
|
+
'sku'?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Quantity
|
|
656
|
+
* @type {number}
|
|
657
|
+
* @memberof AdminItemRequestDTO
|
|
658
|
+
*/
|
|
659
|
+
'quantity'?: number;
|
|
660
|
+
/**
|
|
661
|
+
* ID
|
|
662
|
+
* @type {number}
|
|
663
|
+
* @memberof AdminItemRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
'id'?: number | null;
|
|
666
|
+
/**
|
|
667
|
+
* 3CX Licence Key
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof AdminItemRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'licenceKey'?: string | null;
|
|
672
|
+
/**
|
|
673
|
+
* 3CX Hosting
|
|
674
|
+
* @type {boolean}
|
|
675
|
+
* @memberof AdminItemRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'hosting'?: boolean | null;
|
|
678
|
+
/**
|
|
679
|
+
* Date Time
|
|
680
|
+
* @type {string}
|
|
681
|
+
* @memberof AdminItemRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'processDate'?: string;
|
|
684
|
+
/**
|
|
685
|
+
* SBCS
|
|
686
|
+
* @type {Array<TcxSbcDTO>}
|
|
687
|
+
* @memberof AdminItemRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
690
|
+
/**
|
|
691
|
+
* Title
|
|
692
|
+
* @type {string}
|
|
693
|
+
* @memberof AdminItemRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'title'?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* Price (£)
|
|
698
|
+
* @type {number}
|
|
699
|
+
* @memberof AdminItemRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'itemPrice'?: number | null;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Admin Order Request
|
|
705
|
+
* @export
|
|
706
|
+
* @interface AdminOrderRequestDTO
|
|
707
|
+
*/
|
|
708
|
+
export interface AdminOrderRequestDTO {
|
|
709
|
+
/**
|
|
710
|
+
* Order Reference
|
|
711
|
+
* @type {string}
|
|
712
|
+
* @memberof AdminOrderRequestDTO
|
|
713
|
+
*/
|
|
714
|
+
'orderReference'?: string;
|
|
715
|
+
/**
|
|
716
|
+
* Items
|
|
717
|
+
* @type {Array<AdminItemRequestDTO>}
|
|
718
|
+
* @memberof AdminOrderRequestDTO
|
|
719
|
+
*/
|
|
720
|
+
'items'?: Array<AdminItemRequestDTO>;
|
|
721
|
+
/**
|
|
722
|
+
*
|
|
723
|
+
* @type {ShippingServiceDTO}
|
|
724
|
+
* @memberof AdminOrderRequestDTO
|
|
725
|
+
*/
|
|
726
|
+
'shippingService'?: ShippingServiceDTO;
|
|
727
|
+
/**
|
|
728
|
+
* Provisioning URL
|
|
729
|
+
* @type {string}
|
|
730
|
+
* @memberof AdminOrderRequestDTO
|
|
731
|
+
*/
|
|
732
|
+
'provisioningUrl'?: string | null;
|
|
733
|
+
/**
|
|
734
|
+
*
|
|
735
|
+
* @type {AddressModel}
|
|
736
|
+
* @memberof AdminOrderRequestDTO
|
|
737
|
+
*/
|
|
738
|
+
'shippingAddress'?: AddressModel;
|
|
739
|
+
/**
|
|
740
|
+
* Part Ship Order
|
|
741
|
+
* @type {boolean}
|
|
742
|
+
* @memberof AdminOrderRequestDTO
|
|
743
|
+
*/
|
|
744
|
+
'partShip'?: boolean;
|
|
745
|
+
/**
|
|
746
|
+
* Quote
|
|
747
|
+
* @type {boolean}
|
|
748
|
+
* @memberof AdminOrderRequestDTO
|
|
749
|
+
*/
|
|
750
|
+
'quote'?: boolean;
|
|
751
|
+
/**
|
|
752
|
+
* Customer ID
|
|
753
|
+
* @type {number}
|
|
754
|
+
* @memberof AdminOrderRequestDTO
|
|
755
|
+
*/
|
|
756
|
+
'customerId'?: number;
|
|
757
|
+
/**
|
|
758
|
+
* Ignore Customer On Hold
|
|
759
|
+
* @type {boolean}
|
|
760
|
+
* @memberof AdminOrderRequestDTO
|
|
761
|
+
*/
|
|
762
|
+
'ignoreOnHold'?: boolean;
|
|
763
|
+
/**
|
|
764
|
+
* Ignore Customer Credit Limit
|
|
765
|
+
* @type {boolean}
|
|
766
|
+
* @memberof AdminOrderRequestDTO
|
|
767
|
+
*/
|
|
768
|
+
'ignoreCreditLimit'?: boolean;
|
|
769
|
+
/**
|
|
770
|
+
* Include NFR Promos
|
|
771
|
+
* @type {boolean}
|
|
772
|
+
* @memberof AdminOrderRequestDTO
|
|
773
|
+
*/
|
|
774
|
+
'includeNfrPromos'?: boolean;
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Admin User
|
|
778
|
+
* @export
|
|
779
|
+
* @interface AdminUserModel
|
|
780
|
+
*/
|
|
781
|
+
export interface AdminUserModel {
|
|
782
|
+
/**
|
|
783
|
+
* First Name
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof AdminUserModel
|
|
786
|
+
*/
|
|
787
|
+
'firstName'?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Last Name
|
|
790
|
+
* @type {string}
|
|
791
|
+
* @memberof AdminUserModel
|
|
792
|
+
*/
|
|
793
|
+
'lastName'?: string;
|
|
794
|
+
/**
|
|
795
|
+
* Avatar
|
|
796
|
+
* @type {string}
|
|
797
|
+
* @memberof AdminUserModel
|
|
798
|
+
*/
|
|
799
|
+
'avatar'?: string | null;
|
|
800
|
+
/**
|
|
801
|
+
* Role
|
|
802
|
+
* @type {number}
|
|
803
|
+
* @memberof AdminUserModel
|
|
804
|
+
*/
|
|
805
|
+
'role'?: AdminUserModelRoleEnum;
|
|
806
|
+
/**
|
|
807
|
+
* Navigation
|
|
808
|
+
* @type {Array<NavigationItemModel>}
|
|
809
|
+
* @memberof AdminUserModel
|
|
810
|
+
*/
|
|
811
|
+
'navigation'?: Array<NavigationItemModel>;
|
|
812
|
+
/**
|
|
813
|
+
* Email
|
|
814
|
+
* @type {string}
|
|
815
|
+
* @memberof AdminUserModel
|
|
816
|
+
*/
|
|
817
|
+
'email'?: string | null;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export const AdminUserModelRoleEnum = {
|
|
821
|
+
NUMBER_0: 0,
|
|
822
|
+
NUMBER_1: 1,
|
|
823
|
+
NUMBER_2: 2,
|
|
824
|
+
NUMBER_3: 3,
|
|
825
|
+
NUMBER_4: 4
|
|
826
|
+
} as const;
|
|
827
|
+
|
|
828
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
829
|
+
|
|
538
830
|
/**
|
|
539
831
|
* Agent Hours Graph
|
|
540
832
|
* @export
|
|
@@ -764,6 +1056,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1056
|
*/
|
|
765
1057
|
'redirect_uri'?: string | null;
|
|
766
1058
|
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Basic Order Item
|
|
1061
|
+
* @export
|
|
1062
|
+
* @interface BasicItemDTO
|
|
1063
|
+
*/
|
|
1064
|
+
export interface BasicItemDTO {
|
|
1065
|
+
/**
|
|
1066
|
+
* SKU
|
|
1067
|
+
* @type {string}
|
|
1068
|
+
* @memberof BasicItemDTO
|
|
1069
|
+
*/
|
|
1070
|
+
'sku'?: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Quantity
|
|
1073
|
+
* @type {number}
|
|
1074
|
+
* @memberof BasicItemDTO
|
|
1075
|
+
*/
|
|
1076
|
+
'quantity'?: number;
|
|
1077
|
+
}
|
|
1078
|
+
/**
|
|
1079
|
+
* Basic Product
|
|
1080
|
+
* @export
|
|
1081
|
+
* @interface BasicProductDTO
|
|
1082
|
+
*/
|
|
1083
|
+
export interface BasicProductDTO {
|
|
1084
|
+
/**
|
|
1085
|
+
* SKU
|
|
1086
|
+
* @type {string}
|
|
1087
|
+
* @memberof BasicProductDTO
|
|
1088
|
+
*/
|
|
1089
|
+
'sku'?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* Title
|
|
1092
|
+
* @type {string}
|
|
1093
|
+
* @memberof BasicProductDTO
|
|
1094
|
+
*/
|
|
1095
|
+
'title'?: string;
|
|
1096
|
+
}
|
|
767
1097
|
/**
|
|
768
1098
|
* BatchesEntity
|
|
769
1099
|
* @export
|
|
@@ -958,12 +1288,6 @@ export interface ClientDetailsModel {
|
|
|
958
1288
|
* @memberof ClientDetailsModel
|
|
959
1289
|
*/
|
|
960
1290
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1291
|
}
|
|
968
1292
|
/**
|
|
969
1293
|
* OAuth client details
|
|
@@ -1125,6 +1449,73 @@ export interface ConversationModel {
|
|
|
1125
1449
|
*/
|
|
1126
1450
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1451
|
}
|
|
1452
|
+
/**
|
|
1453
|
+
* CourierPricesEntity
|
|
1454
|
+
* @export
|
|
1455
|
+
* @interface CourierPriceEntity
|
|
1456
|
+
*/
|
|
1457
|
+
export interface CourierPriceEntity {
|
|
1458
|
+
/**
|
|
1459
|
+
* id
|
|
1460
|
+
* @type {number}
|
|
1461
|
+
* @memberof CourierPriceEntity
|
|
1462
|
+
*/
|
|
1463
|
+
'id'?: number;
|
|
1464
|
+
/**
|
|
1465
|
+
* courier
|
|
1466
|
+
* @type {string}
|
|
1467
|
+
* @memberof CourierPriceEntity
|
|
1468
|
+
*/
|
|
1469
|
+
'courier'?: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* destinationIso
|
|
1472
|
+
* @type {string}
|
|
1473
|
+
* @memberof CourierPriceEntity
|
|
1474
|
+
*/
|
|
1475
|
+
'destinationIso'?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* serviceDescription
|
|
1478
|
+
* @type {string}
|
|
1479
|
+
* @memberof CourierPriceEntity
|
|
1480
|
+
*/
|
|
1481
|
+
'serviceDescription'?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* flatRate
|
|
1484
|
+
* @type {number}
|
|
1485
|
+
* @memberof CourierPriceEntity
|
|
1486
|
+
*/
|
|
1487
|
+
'flatRate'?: number;
|
|
1488
|
+
/**
|
|
1489
|
+
* initialBox
|
|
1490
|
+
* @type {number}
|
|
1491
|
+
* @memberof CourierPriceEntity
|
|
1492
|
+
*/
|
|
1493
|
+
'initialBox'?: number;
|
|
1494
|
+
/**
|
|
1495
|
+
* initialKg
|
|
1496
|
+
* @type {number}
|
|
1497
|
+
* @memberof CourierPriceEntity
|
|
1498
|
+
*/
|
|
1499
|
+
'initialKg'?: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* perBox
|
|
1502
|
+
* @type {number}
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1504
|
+
*/
|
|
1505
|
+
'perBox'?: number;
|
|
1506
|
+
/**
|
|
1507
|
+
* perKg
|
|
1508
|
+
* @type {number}
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1510
|
+
*/
|
|
1511
|
+
'perKg'?: number;
|
|
1512
|
+
/**
|
|
1513
|
+
* maxKg
|
|
1514
|
+
* @type {number}
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1516
|
+
*/
|
|
1517
|
+
'maxKg'?: number;
|
|
1518
|
+
}
|
|
1128
1519
|
/**
|
|
1129
1520
|
* Credit Account
|
|
1130
1521
|
* @export
|
|
@@ -1308,9 +1699,107 @@ export interface CustomerInformationModel {
|
|
|
1308
1699
|
'contactLastName'?: string;
|
|
1309
1700
|
}
|
|
1310
1701
|
/**
|
|
1311
|
-
*
|
|
1702
|
+
* Order Item Request
|
|
1312
1703
|
* @export
|
|
1313
|
-
* @interface
|
|
1704
|
+
* @interface CustomerItemRequestDTO
|
|
1705
|
+
*/
|
|
1706
|
+
export interface CustomerItemRequestDTO {
|
|
1707
|
+
/**
|
|
1708
|
+
* SKU
|
|
1709
|
+
* @type {string}
|
|
1710
|
+
* @memberof CustomerItemRequestDTO
|
|
1711
|
+
*/
|
|
1712
|
+
'sku'?: string;
|
|
1713
|
+
/**
|
|
1714
|
+
* Quantity
|
|
1715
|
+
* @type {number}
|
|
1716
|
+
* @memberof CustomerItemRequestDTO
|
|
1717
|
+
*/
|
|
1718
|
+
'quantity'?: number;
|
|
1719
|
+
/**
|
|
1720
|
+
* ID
|
|
1721
|
+
* @type {number}
|
|
1722
|
+
* @memberof CustomerItemRequestDTO
|
|
1723
|
+
*/
|
|
1724
|
+
'id'?: number | null;
|
|
1725
|
+
/**
|
|
1726
|
+
* 3CX Licence Key
|
|
1727
|
+
* @type {string}
|
|
1728
|
+
* @memberof CustomerItemRequestDTO
|
|
1729
|
+
*/
|
|
1730
|
+
'licenceKey'?: string | null;
|
|
1731
|
+
/**
|
|
1732
|
+
* 3CX Hosting
|
|
1733
|
+
* @type {boolean}
|
|
1734
|
+
* @memberof CustomerItemRequestDTO
|
|
1735
|
+
*/
|
|
1736
|
+
'hosting'?: boolean | null;
|
|
1737
|
+
/**
|
|
1738
|
+
* Date Time
|
|
1739
|
+
* @type {string}
|
|
1740
|
+
* @memberof CustomerItemRequestDTO
|
|
1741
|
+
*/
|
|
1742
|
+
'processDate'?: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* SBCS
|
|
1745
|
+
* @type {Array<TcxSbcDTO>}
|
|
1746
|
+
* @memberof CustomerItemRequestDTO
|
|
1747
|
+
*/
|
|
1748
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
* Order Request
|
|
1752
|
+
* @export
|
|
1753
|
+
* @interface CustomerOrderRequestDTO
|
|
1754
|
+
*/
|
|
1755
|
+
export interface CustomerOrderRequestDTO {
|
|
1756
|
+
/**
|
|
1757
|
+
* Order Reference
|
|
1758
|
+
* @type {string}
|
|
1759
|
+
* @memberof CustomerOrderRequestDTO
|
|
1760
|
+
*/
|
|
1761
|
+
'orderReference'?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* Items
|
|
1764
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1765
|
+
* @memberof CustomerOrderRequestDTO
|
|
1766
|
+
*/
|
|
1767
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1768
|
+
/**
|
|
1769
|
+
*
|
|
1770
|
+
* @type {ShippingServiceDTO}
|
|
1771
|
+
* @memberof CustomerOrderRequestDTO
|
|
1772
|
+
*/
|
|
1773
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1774
|
+
/**
|
|
1775
|
+
* Provisioning URL
|
|
1776
|
+
* @type {string}
|
|
1777
|
+
* @memberof CustomerOrderRequestDTO
|
|
1778
|
+
*/
|
|
1779
|
+
'provisioningUrl'?: string | null;
|
|
1780
|
+
/**
|
|
1781
|
+
*
|
|
1782
|
+
* @type {AddressModel}
|
|
1783
|
+
* @memberof CustomerOrderRequestDTO
|
|
1784
|
+
*/
|
|
1785
|
+
'shippingAddress'?: AddressModel;
|
|
1786
|
+
/**
|
|
1787
|
+
* Part Ship Order
|
|
1788
|
+
* @type {boolean}
|
|
1789
|
+
* @memberof CustomerOrderRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
'partShip'?: boolean;
|
|
1792
|
+
/**
|
|
1793
|
+
* Quote
|
|
1794
|
+
* @type {boolean}
|
|
1795
|
+
* @memberof CustomerOrderRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'quote'?: boolean;
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Customer Price List
|
|
1801
|
+
* @export
|
|
1802
|
+
* @interface CustomerPriceListEnum
|
|
1314
1803
|
*/
|
|
1315
1804
|
export interface CustomerPriceListEnum {
|
|
1316
1805
|
/**
|
|
@@ -1816,19 +2305,6 @@ export interface GenericFileModel {
|
|
|
1816
2305
|
*/
|
|
1817
2306
|
'type'?: string;
|
|
1818
2307
|
}
|
|
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
2308
|
/**
|
|
1833
2309
|
*
|
|
1834
2310
|
* @export
|
|
@@ -2390,35 +2866,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2390
2866
|
*/
|
|
2391
2867
|
export interface ItemDTO {
|
|
2392
2868
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
* @type {
|
|
2869
|
+
* SKU
|
|
2870
|
+
* @type {string}
|
|
2395
2871
|
* @memberof ItemDTO
|
|
2396
2872
|
*/
|
|
2397
|
-
'
|
|
2873
|
+
'sku'?: string;
|
|
2398
2874
|
/**
|
|
2399
|
-
*
|
|
2875
|
+
* Quantity
|
|
2400
2876
|
* @type {number}
|
|
2401
2877
|
* @memberof ItemDTO
|
|
2402
2878
|
*/
|
|
2403
|
-
'
|
|
2879
|
+
'quantity'?: number;
|
|
2404
2880
|
/**
|
|
2405
|
-
*
|
|
2406
|
-
* @type {
|
|
2881
|
+
* ID
|
|
2882
|
+
* @type {number}
|
|
2407
2883
|
* @memberof ItemDTO
|
|
2408
2884
|
*/
|
|
2409
|
-
'
|
|
2885
|
+
'id'?: number | null;
|
|
2410
2886
|
/**
|
|
2411
|
-
*
|
|
2412
|
-
* @type {
|
|
2887
|
+
* Order ID
|
|
2888
|
+
* @type {number}
|
|
2413
2889
|
* @memberof ItemDTO
|
|
2414
2890
|
*/
|
|
2415
|
-
'
|
|
2891
|
+
'orderId'?: number | null;
|
|
2416
2892
|
/**
|
|
2417
|
-
*
|
|
2418
|
-
* @type {
|
|
2893
|
+
* Title
|
|
2894
|
+
* @type {string}
|
|
2419
2895
|
* @memberof ItemDTO
|
|
2420
2896
|
*/
|
|
2421
|
-
'
|
|
2897
|
+
'title'?: string;
|
|
2422
2898
|
/**
|
|
2423
2899
|
* Price
|
|
2424
2900
|
* @type {number}
|
|
@@ -2443,6 +2919,12 @@ export interface ItemDTO {
|
|
|
2443
2919
|
* @memberof ItemDTO
|
|
2444
2920
|
*/
|
|
2445
2921
|
'processDate'?: string;
|
|
2922
|
+
/**
|
|
2923
|
+
* 3CX Hosting
|
|
2924
|
+
* @type {boolean}
|
|
2925
|
+
* @memberof ItemDTO
|
|
2926
|
+
*/
|
|
2927
|
+
'hosting'?: boolean | null;
|
|
2446
2928
|
/**
|
|
2447
2929
|
* Promo Item
|
|
2448
2930
|
* @type {boolean}
|
|
@@ -2454,7 +2936,19 @@ export interface ItemDTO {
|
|
|
2454
2936
|
* @type {number}
|
|
2455
2937
|
* @memberof ItemDTO
|
|
2456
2938
|
*/
|
|
2457
|
-
'refunded'?: number;
|
|
2939
|
+
'refunded'?: number | null;
|
|
2940
|
+
/**
|
|
2941
|
+
* SBCs
|
|
2942
|
+
* @type {Array<TcxSbcDTO>}
|
|
2943
|
+
* @memberof ItemDTO
|
|
2944
|
+
*/
|
|
2945
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
2946
|
+
/**
|
|
2947
|
+
* Readonly
|
|
2948
|
+
* @type {boolean}
|
|
2949
|
+
* @memberof ItemDTO
|
|
2950
|
+
*/
|
|
2951
|
+
'readonly'?: boolean;
|
|
2458
2952
|
}
|
|
2459
2953
|
/**
|
|
2460
2954
|
* ItemsEntity
|
|
@@ -2589,6 +3083,25 @@ export interface ItemEntity {
|
|
|
2589
3083
|
*/
|
|
2590
3084
|
'promoItem'?: number;
|
|
2591
3085
|
}
|
|
3086
|
+
/**
|
|
3087
|
+
* LinkedOrdersEntity
|
|
3088
|
+
* @export
|
|
3089
|
+
* @interface LinkedOrderEntity
|
|
3090
|
+
*/
|
|
3091
|
+
export interface LinkedOrderEntity {
|
|
3092
|
+
/**
|
|
3093
|
+
* orderId
|
|
3094
|
+
* @type {number}
|
|
3095
|
+
* @memberof LinkedOrderEntity
|
|
3096
|
+
*/
|
|
3097
|
+
'orderId'?: number;
|
|
3098
|
+
/**
|
|
3099
|
+
* linkedOrderId
|
|
3100
|
+
* @type {number}
|
|
3101
|
+
* @memberof LinkedOrderEntity
|
|
3102
|
+
*/
|
|
3103
|
+
'linkedOrderId'?: number;
|
|
3104
|
+
}
|
|
2592
3105
|
/**
|
|
2593
3106
|
* MFA Required
|
|
2594
3107
|
* @export
|
|
@@ -2678,6 +3191,37 @@ export const MultiTenantChangeResponseModelTypeEnum = {
|
|
|
2678
3191
|
|
|
2679
3192
|
export type MultiTenantChangeResponseModelTypeEnum = typeof MultiTenantChangeResponseModelTypeEnum[keyof typeof MultiTenantChangeResponseModelTypeEnum];
|
|
2680
3193
|
|
|
3194
|
+
/**
|
|
3195
|
+
* POPS Navigation Item
|
|
3196
|
+
* @export
|
|
3197
|
+
* @interface NavigationItemModel
|
|
3198
|
+
*/
|
|
3199
|
+
export interface NavigationItemModel {
|
|
3200
|
+
/**
|
|
3201
|
+
* Title
|
|
3202
|
+
* @type {string}
|
|
3203
|
+
* @memberof NavigationItemModel
|
|
3204
|
+
*/
|
|
3205
|
+
'title'?: string;
|
|
3206
|
+
/**
|
|
3207
|
+
* URL
|
|
3208
|
+
* @type {string}
|
|
3209
|
+
* @memberof NavigationItemModel
|
|
3210
|
+
*/
|
|
3211
|
+
'url'?: string | null;
|
|
3212
|
+
/**
|
|
3213
|
+
* Icon (Font Awesome)
|
|
3214
|
+
* @type {string}
|
|
3215
|
+
* @memberof NavigationItemModel
|
|
3216
|
+
*/
|
|
3217
|
+
'icon'?: string;
|
|
3218
|
+
/**
|
|
3219
|
+
* Sub Navigation
|
|
3220
|
+
* @type {Array<SubNavigationItemModel>}
|
|
3221
|
+
* @memberof NavigationItemModel
|
|
3222
|
+
*/
|
|
3223
|
+
'items'?: Array<SubNavigationItemModel>;
|
|
3224
|
+
}
|
|
2681
3225
|
/**
|
|
2682
3226
|
* Navigation Endpoint
|
|
2683
3227
|
* @export
|
|
@@ -3255,6 +3799,12 @@ export interface OrderSummaryDTO {
|
|
|
3255
3799
|
* @memberof OrderSummaryDTO
|
|
3256
3800
|
*/
|
|
3257
3801
|
'invoiceNumber'?: string;
|
|
3802
|
+
/**
|
|
3803
|
+
* Invoice ID
|
|
3804
|
+
* @type {string}
|
|
3805
|
+
* @memberof OrderSummaryDTO
|
|
3806
|
+
*/
|
|
3807
|
+
'invoiceId'?: string | null;
|
|
3258
3808
|
/**
|
|
3259
3809
|
* Date Time
|
|
3260
3810
|
* @type {string}
|
|
@@ -3309,6 +3859,24 @@ export interface OrderSummaryDTO {
|
|
|
3309
3859
|
* @memberof OrderSummaryDTO
|
|
3310
3860
|
*/
|
|
3311
3861
|
'fulfillable'?: boolean | null;
|
|
3862
|
+
/**
|
|
3863
|
+
* Provisioning URL
|
|
3864
|
+
* @type {string}
|
|
3865
|
+
* @memberof OrderSummaryDTO
|
|
3866
|
+
*/
|
|
3867
|
+
'provisioningUrl'?: string | null;
|
|
3868
|
+
/**
|
|
3869
|
+
*
|
|
3870
|
+
* @type {ShippingServiceDTO}
|
|
3871
|
+
* @memberof OrderSummaryDTO
|
|
3872
|
+
*/
|
|
3873
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
3874
|
+
/**
|
|
3875
|
+
* Readonly
|
|
3876
|
+
* @type {boolean}
|
|
3877
|
+
* @memberof OrderSummaryDTO
|
|
3878
|
+
*/
|
|
3879
|
+
'readonly'?: boolean;
|
|
3312
3880
|
}
|
|
3313
3881
|
/**
|
|
3314
3882
|
* Order Totals
|
|
@@ -3358,6 +3926,12 @@ export interface OrderTotalModel {
|
|
|
3358
3926
|
* @memberof OrderTotalModel
|
|
3359
3927
|
*/
|
|
3360
3928
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
3929
|
+
/**
|
|
3930
|
+
* Delivery
|
|
3931
|
+
* @type {number}
|
|
3932
|
+
* @memberof OrderTotalModel
|
|
3933
|
+
*/
|
|
3934
|
+
'delivery'?: number | null;
|
|
3361
3935
|
}
|
|
3362
3936
|
|
|
3363
3937
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3827,10 +4401,10 @@ export interface PrizesEntity {
|
|
|
3827
4401
|
export interface ProductSearchResultsModel {
|
|
3828
4402
|
/**
|
|
3829
4403
|
* Results
|
|
3830
|
-
* @type {Array<
|
|
4404
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3831
4405
|
* @memberof ProductSearchResultsModel
|
|
3832
4406
|
*/
|
|
3833
|
-
'results'?: Array<
|
|
4407
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3834
4408
|
}
|
|
3835
4409
|
/**
|
|
3836
4410
|
* Product Serial Info
|
|
@@ -3866,45 +4440,51 @@ export interface ProductSerialInfoModel {
|
|
|
3866
4440
|
/**
|
|
3867
4441
|
* Product Summary
|
|
3868
4442
|
* @export
|
|
3869
|
-
* @interface
|
|
4443
|
+
* @interface ProductSummaryDTO
|
|
3870
4444
|
*/
|
|
3871
|
-
export interface
|
|
4445
|
+
export interface ProductSummaryDTO {
|
|
3872
4446
|
/**
|
|
3873
4447
|
* SKU
|
|
3874
4448
|
* @type {string}
|
|
3875
|
-
* @memberof
|
|
4449
|
+
* @memberof ProductSummaryDTO
|
|
3876
4450
|
*/
|
|
3877
4451
|
'sku'?: string;
|
|
3878
4452
|
/**
|
|
3879
4453
|
* Title
|
|
3880
4454
|
* @type {string}
|
|
3881
|
-
* @memberof
|
|
4455
|
+
* @memberof ProductSummaryDTO
|
|
3882
4456
|
*/
|
|
3883
4457
|
'title'?: string;
|
|
3884
4458
|
/**
|
|
3885
4459
|
* Stock Quantity
|
|
3886
4460
|
* @type {number}
|
|
3887
|
-
* @memberof
|
|
4461
|
+
* @memberof ProductSummaryDTO
|
|
3888
4462
|
*/
|
|
3889
4463
|
'quantity'?: number | null;
|
|
3890
4464
|
/**
|
|
3891
4465
|
* Stock Product
|
|
3892
4466
|
* @type {boolean}
|
|
3893
|
-
* @memberof
|
|
4467
|
+
* @memberof ProductSummaryDTO
|
|
3894
4468
|
*/
|
|
3895
4469
|
'stockProduct'?: boolean;
|
|
3896
4470
|
/**
|
|
3897
4471
|
* Price
|
|
3898
4472
|
* @type {number}
|
|
3899
|
-
* @memberof
|
|
4473
|
+
* @memberof ProductSummaryDTO
|
|
3900
4474
|
*/
|
|
3901
4475
|
'price'?: number | null;
|
|
3902
4476
|
/**
|
|
3903
4477
|
* Carton Size
|
|
3904
4478
|
* @type {number}
|
|
3905
|
-
* @memberof
|
|
4479
|
+
* @memberof ProductSummaryDTO
|
|
3906
4480
|
*/
|
|
3907
4481
|
'cartonSize'?: number | null;
|
|
4482
|
+
/**
|
|
4483
|
+
* RRP Price
|
|
4484
|
+
* @type {number}
|
|
4485
|
+
* @memberof ProductSummaryDTO
|
|
4486
|
+
*/
|
|
4487
|
+
'rrp'?: number | null;
|
|
3908
4488
|
}
|
|
3909
4489
|
/**
|
|
3910
4490
|
* PromoCodesEntity
|
|
@@ -4043,37 +4623,37 @@ export interface PromoItemsEntity {
|
|
|
4043
4623
|
/**
|
|
4044
4624
|
* Provisioning Group
|
|
4045
4625
|
* @export
|
|
4046
|
-
* @interface
|
|
4626
|
+
* @interface ProvisioningModel
|
|
4047
4627
|
*/
|
|
4048
|
-
export interface
|
|
4628
|
+
export interface ProvisioningModel {
|
|
4049
4629
|
/**
|
|
4050
4630
|
* Provisioning Group Name
|
|
4051
4631
|
* @type {string}
|
|
4052
|
-
* @memberof
|
|
4632
|
+
* @memberof ProvisioningModel
|
|
4053
4633
|
*/
|
|
4054
4634
|
'groupName'?: string;
|
|
4055
4635
|
/**
|
|
4056
4636
|
* Provisioning URL (Static Provisioning Server)
|
|
4057
4637
|
* @type {string}
|
|
4058
|
-
* @memberof
|
|
4638
|
+
* @memberof ProvisioningModel
|
|
4059
4639
|
*/
|
|
4060
4640
|
'provisioningUrl'?: string;
|
|
4061
4641
|
/**
|
|
4062
4642
|
* Additional Authentication Secret
|
|
4063
4643
|
* @type {string}
|
|
4064
|
-
* @memberof
|
|
4644
|
+
* @memberof ProvisioningModel
|
|
4065
4645
|
*/
|
|
4066
4646
|
'auth'?: string;
|
|
4067
4647
|
/**
|
|
4068
4648
|
* Provisioning Group ID
|
|
4069
4649
|
* @type {number}
|
|
4070
|
-
* @memberof
|
|
4650
|
+
* @memberof ProvisioningModel
|
|
4071
4651
|
*/
|
|
4072
4652
|
'id'?: number;
|
|
4073
4653
|
/**
|
|
4074
4654
|
* Owner ID
|
|
4075
4655
|
* @type {number}
|
|
4076
|
-
* @memberof
|
|
4656
|
+
* @memberof ProvisioningModel
|
|
4077
4657
|
*/
|
|
4078
4658
|
'customerId'?: number;
|
|
4079
4659
|
}
|
|
@@ -4346,7 +4926,7 @@ export interface ShipmentEntity {
|
|
|
4346
4926
|
* @type {string}
|
|
4347
4927
|
* @memberof ShipmentEntity
|
|
4348
4928
|
*/
|
|
4349
|
-
'
|
|
4929
|
+
'dateShipped'?: string;
|
|
4350
4930
|
/**
|
|
4351
4931
|
* requestDate
|
|
4352
4932
|
* @type {string}
|
|
@@ -4397,6 +4977,155 @@ export interface ShipmentItemEntity {
|
|
|
4397
4977
|
*/
|
|
4398
4978
|
'itemId'?: string;
|
|
4399
4979
|
}
|
|
4980
|
+
/**
|
|
4981
|
+
*
|
|
4982
|
+
* @export
|
|
4983
|
+
* @interface ShippingConsignmentModel
|
|
4984
|
+
*/
|
|
4985
|
+
export interface ShippingConsignmentModel {
|
|
4986
|
+
/**
|
|
4987
|
+
*
|
|
4988
|
+
* @type {ShippingServiceModel}
|
|
4989
|
+
* @memberof ShippingConsignmentModel
|
|
4990
|
+
*/
|
|
4991
|
+
'service'?: ShippingServiceModel;
|
|
4992
|
+
/**
|
|
4993
|
+
* ID/Number
|
|
4994
|
+
* @type {string}
|
|
4995
|
+
* @memberof ShippingConsignmentModel
|
|
4996
|
+
*/
|
|
4997
|
+
'id'?: string;
|
|
4998
|
+
/**
|
|
4999
|
+
* Tracking Number
|
|
5000
|
+
* @type {string}
|
|
5001
|
+
* @memberof ShippingConsignmentModel
|
|
5002
|
+
*/
|
|
5003
|
+
'trackingNumber'?: string;
|
|
5004
|
+
/**
|
|
5005
|
+
* Parcels
|
|
5006
|
+
* @type {Array<string>}
|
|
5007
|
+
* @memberof ShippingConsignmentModel
|
|
5008
|
+
*/
|
|
5009
|
+
'parcelIds'?: Array<string>;
|
|
5010
|
+
}
|
|
5011
|
+
/**
|
|
5012
|
+
* Shipping Information
|
|
5013
|
+
* @export
|
|
5014
|
+
* @interface ShippingInformationDTO
|
|
5015
|
+
*/
|
|
5016
|
+
export interface ShippingInformationDTO {
|
|
5017
|
+
/**
|
|
5018
|
+
* Items
|
|
5019
|
+
* @type {Array<BasicItemDTO>}
|
|
5020
|
+
* @memberof ShippingInformationDTO
|
|
5021
|
+
*/
|
|
5022
|
+
'items'?: Array<BasicItemDTO>;
|
|
5023
|
+
/**
|
|
5024
|
+
* Destination Post Code
|
|
5025
|
+
* @type {string}
|
|
5026
|
+
* @memberof ShippingInformationDTO
|
|
5027
|
+
*/
|
|
5028
|
+
'postalCode'?: string;
|
|
5029
|
+
/**
|
|
5030
|
+
* Destination ISO
|
|
5031
|
+
* @type {string}
|
|
5032
|
+
* @memberof ShippingInformationDTO
|
|
5033
|
+
*/
|
|
5034
|
+
'iso'?: string;
|
|
5035
|
+
}
|
|
5036
|
+
/**
|
|
5037
|
+
* Shipping Service
|
|
5038
|
+
* @export
|
|
5039
|
+
* @interface ShippingServiceDTO
|
|
5040
|
+
*/
|
|
5041
|
+
export interface ShippingServiceDTO {
|
|
5042
|
+
/**
|
|
5043
|
+
* Courier
|
|
5044
|
+
* @type {string}
|
|
5045
|
+
* @memberof ShippingServiceDTO
|
|
5046
|
+
*/
|
|
5047
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5048
|
+
/**
|
|
5049
|
+
* Service Name
|
|
5050
|
+
* @type {string}
|
|
5051
|
+
* @memberof ShippingServiceDTO
|
|
5052
|
+
*/
|
|
5053
|
+
'serviceName'?: string;
|
|
5054
|
+
}
|
|
5055
|
+
|
|
5056
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5057
|
+
Dpd: 'DPD',
|
|
5058
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5059
|
+
Pops: 'POPS'
|
|
5060
|
+
} as const;
|
|
5061
|
+
|
|
5062
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5063
|
+
|
|
5064
|
+
/**
|
|
5065
|
+
* Shipping Service
|
|
5066
|
+
* @export
|
|
5067
|
+
* @interface ShippingServiceModel
|
|
5068
|
+
*/
|
|
5069
|
+
export interface ShippingServiceModel {
|
|
5070
|
+
/**
|
|
5071
|
+
* Courier
|
|
5072
|
+
* @type {string}
|
|
5073
|
+
* @memberof ShippingServiceModel
|
|
5074
|
+
*/
|
|
5075
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5076
|
+
/**
|
|
5077
|
+
* Code
|
|
5078
|
+
* @type {string}
|
|
5079
|
+
* @memberof ShippingServiceModel
|
|
5080
|
+
*/
|
|
5081
|
+
'code'?: string;
|
|
5082
|
+
/**
|
|
5083
|
+
* Name
|
|
5084
|
+
* @type {string}
|
|
5085
|
+
* @memberof ShippingServiceModel
|
|
5086
|
+
*/
|
|
5087
|
+
'name'?: string;
|
|
5088
|
+
/**
|
|
5089
|
+
* Description
|
|
5090
|
+
* @type {string}
|
|
5091
|
+
* @memberof ShippingServiceModel
|
|
5092
|
+
*/
|
|
5093
|
+
'description'?: string;
|
|
5094
|
+
/**
|
|
5095
|
+
* Label
|
|
5096
|
+
* @type {string}
|
|
5097
|
+
* @memberof ShippingServiceModel
|
|
5098
|
+
*/
|
|
5099
|
+
'label'?: string | null;
|
|
5100
|
+
/**
|
|
5101
|
+
* Price
|
|
5102
|
+
* @type {number}
|
|
5103
|
+
* @memberof ShippingServiceModel
|
|
5104
|
+
*/
|
|
5105
|
+
'price'?: number | null;
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5109
|
+
Dpd: 'DPD',
|
|
5110
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5111
|
+
Pops: 'POPS'
|
|
5112
|
+
} as const;
|
|
5113
|
+
|
|
5114
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5115
|
+
|
|
5116
|
+
/**
|
|
5117
|
+
*
|
|
5118
|
+
* @export
|
|
5119
|
+
* @interface ShippingServicesModel
|
|
5120
|
+
*/
|
|
5121
|
+
export interface ShippingServicesModel {
|
|
5122
|
+
/**
|
|
5123
|
+
* Services
|
|
5124
|
+
* @type {Array<ShippingServiceModel>}
|
|
5125
|
+
* @memberof ShippingServicesModel
|
|
5126
|
+
*/
|
|
5127
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5128
|
+
}
|
|
4400
5129
|
/**
|
|
4401
5130
|
* Change Response
|
|
4402
5131
|
* @export
|
|
@@ -5819,7 +6548,32 @@ export interface StockTransactionsEntity {
|
|
|
5819
6548
|
'user'?: number;
|
|
5820
6549
|
}
|
|
5821
6550
|
/**
|
|
5822
|
-
*
|
|
6551
|
+
* POPS Sub Navigation Item
|
|
6552
|
+
* @export
|
|
6553
|
+
* @interface SubNavigationItemModel
|
|
6554
|
+
*/
|
|
6555
|
+
export interface SubNavigationItemModel {
|
|
6556
|
+
/**
|
|
6557
|
+
* Title
|
|
6558
|
+
* @type {string}
|
|
6559
|
+
* @memberof SubNavigationItemModel
|
|
6560
|
+
*/
|
|
6561
|
+
'title'?: string;
|
|
6562
|
+
/**
|
|
6563
|
+
* URL
|
|
6564
|
+
* @type {string}
|
|
6565
|
+
* @memberof SubNavigationItemModel
|
|
6566
|
+
*/
|
|
6567
|
+
'url'?: string;
|
|
6568
|
+
/**
|
|
6569
|
+
* Icon (Font Awesome)
|
|
6570
|
+
* @type {string}
|
|
6571
|
+
* @memberof SubNavigationItemModel
|
|
6572
|
+
*/
|
|
6573
|
+
'icon'?: string | null;
|
|
6574
|
+
}
|
|
6575
|
+
/**
|
|
6576
|
+
* SuppliersEntity
|
|
5823
6577
|
* @export
|
|
5824
6578
|
* @interface SupplierEntity
|
|
5825
6579
|
*/
|
|
@@ -6109,12 +6863,6 @@ export interface TcxBackupModel {
|
|
|
6109
6863
|
* @memberof TcxBackupModel
|
|
6110
6864
|
*/
|
|
6111
6865
|
'phone'?: string | null;
|
|
6112
|
-
/**
|
|
6113
|
-
* Company Name
|
|
6114
|
-
* @type {string}
|
|
6115
|
-
* @memberof TcxBackupModel
|
|
6116
|
-
*/
|
|
6117
|
-
'companyName'?: string | null;
|
|
6118
6866
|
}
|
|
6119
6867
|
/**
|
|
6120
6868
|
* TcxBillingEntity
|
|
@@ -7205,6 +7953,49 @@ export interface TcxPhonesEntity {
|
|
|
7205
7953
|
*/
|
|
7206
7954
|
'sbcId'?: string;
|
|
7207
7955
|
}
|
|
7956
|
+
/**
|
|
7957
|
+
* SBC Data
|
|
7958
|
+
* @export
|
|
7959
|
+
* @interface TcxSbcDTO
|
|
7960
|
+
*/
|
|
7961
|
+
export interface TcxSbcDTO {
|
|
7962
|
+
/**
|
|
7963
|
+
* LAN IP Address
|
|
7964
|
+
* @type {string}
|
|
7965
|
+
* @memberof TcxSbcDTO
|
|
7966
|
+
*/
|
|
7967
|
+
'ipAddress'?: string;
|
|
7968
|
+
/**
|
|
7969
|
+
* LAN Default Gateway
|
|
7970
|
+
* @type {string}
|
|
7971
|
+
* @memberof TcxSbcDTO
|
|
7972
|
+
*/
|
|
7973
|
+
'defaultGateway'?: string;
|
|
7974
|
+
/**
|
|
7975
|
+
* LAN Subnet Mask
|
|
7976
|
+
* @type {string}
|
|
7977
|
+
* @memberof TcxSbcDTO
|
|
7978
|
+
*/
|
|
7979
|
+
'netmask'?: string;
|
|
7980
|
+
/**
|
|
7981
|
+
* DNS
|
|
7982
|
+
* @type {string}
|
|
7983
|
+
* @memberof TcxSbcDTO
|
|
7984
|
+
*/
|
|
7985
|
+
'dns'?: string;
|
|
7986
|
+
/**
|
|
7987
|
+
* 3CX URL
|
|
7988
|
+
* @type {string}
|
|
7989
|
+
* @memberof TcxSbcDTO
|
|
7990
|
+
*/
|
|
7991
|
+
'tcxUrl'?: string;
|
|
7992
|
+
/**
|
|
7993
|
+
* 3CX SBC Key
|
|
7994
|
+
* @type {string}
|
|
7995
|
+
* @memberof TcxSbcDTO
|
|
7996
|
+
*/
|
|
7997
|
+
'tcxKey'?: string;
|
|
7998
|
+
}
|
|
7208
7999
|
/**
|
|
7209
8000
|
* 3CX Wizard SBC
|
|
7210
8001
|
* @export
|
|
@@ -7309,7 +8100,7 @@ export interface TcxSbcEntity {
|
|
|
7309
8100
|
'technicalContact'?: string;
|
|
7310
8101
|
}
|
|
7311
8102
|
/**
|
|
7312
|
-
* 3CX SBC
|
|
8103
|
+
* 3CX Wizard SBC
|
|
7313
8104
|
* @export
|
|
7314
8105
|
* @interface TcxSbcModel
|
|
7315
8106
|
*/
|
|
@@ -8481,6 +9272,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8481
9272
|
|
|
8482
9273
|
|
|
8483
9274
|
|
|
9275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9277
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9278
|
+
|
|
9279
|
+
return {
|
|
9280
|
+
url: toPathString(localVarUrlObj),
|
|
9281
|
+
options: localVarRequestOptions,
|
|
9282
|
+
};
|
|
9283
|
+
},
|
|
9284
|
+
/**
|
|
9285
|
+
* Get Account Detailed Summary
|
|
9286
|
+
* @summary Get Account Detailed Summary
|
|
9287
|
+
* @param {number} id Customer ID
|
|
9288
|
+
* @param {*} [options] Override http request option.
|
|
9289
|
+
* @throws {RequiredError}
|
|
9290
|
+
*/
|
|
9291
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9292
|
+
// verify required parameter 'id' is not null or undefined
|
|
9293
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9294
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9295
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9296
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9297
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9298
|
+
let baseOptions;
|
|
9299
|
+
if (configuration) {
|
|
9300
|
+
baseOptions = configuration.baseOptions;
|
|
9301
|
+
}
|
|
9302
|
+
|
|
9303
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9304
|
+
const localVarHeaderParameter = {} as any;
|
|
9305
|
+
const localVarQueryParameter = {} as any;
|
|
9306
|
+
|
|
9307
|
+
|
|
9308
|
+
|
|
8484
9309
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8485
9310
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8486
9311
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8779,6 +9604,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8779
9604
|
options: localVarRequestOptions,
|
|
8780
9605
|
};
|
|
8781
9606
|
},
|
|
9607
|
+
/**
|
|
9608
|
+
* Get Admin Account
|
|
9609
|
+
* @summary Get Admin Account
|
|
9610
|
+
* @param {*} [options] Override http request option.
|
|
9611
|
+
* @throws {RequiredError}
|
|
9612
|
+
*/
|
|
9613
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9614
|
+
const localVarPath = `/admin/me`;
|
|
9615
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9616
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9617
|
+
let baseOptions;
|
|
9618
|
+
if (configuration) {
|
|
9619
|
+
baseOptions = configuration.baseOptions;
|
|
9620
|
+
}
|
|
9621
|
+
|
|
9622
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9623
|
+
const localVarHeaderParameter = {} as any;
|
|
9624
|
+
const localVarQueryParameter = {} as any;
|
|
9625
|
+
|
|
9626
|
+
|
|
9627
|
+
|
|
9628
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9629
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9630
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9631
|
+
|
|
9632
|
+
return {
|
|
9633
|
+
url: toPathString(localVarUrlObj),
|
|
9634
|
+
options: localVarRequestOptions,
|
|
9635
|
+
};
|
|
9636
|
+
},
|
|
8782
9637
|
/**
|
|
8783
9638
|
* Create client credentials
|
|
8784
9639
|
* @summary Create client credentials
|
|
@@ -9028,6 +9883,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9028
9883
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9029
9884
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9030
9885
|
},
|
|
9886
|
+
/**
|
|
9887
|
+
* Get Account Detailed Summary
|
|
9888
|
+
* @summary Get Account Detailed Summary
|
|
9889
|
+
* @param {number} id Customer ID
|
|
9890
|
+
* @param {*} [options] Override http request option.
|
|
9891
|
+
* @throws {RequiredError}
|
|
9892
|
+
*/
|
|
9893
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
9894
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
9895
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9896
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
9897
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9898
|
+
},
|
|
9031
9899
|
/**
|
|
9032
9900
|
* Get Accounts
|
|
9033
9901
|
* @summary Get Accounts
|
|
@@ -9133,6 +10001,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9133
10001
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9134
10002
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9135
10003
|
},
|
|
10004
|
+
/**
|
|
10005
|
+
* Get Admin Account
|
|
10006
|
+
* @summary Get Admin Account
|
|
10007
|
+
* @param {*} [options] Override http request option.
|
|
10008
|
+
* @throws {RequiredError}
|
|
10009
|
+
*/
|
|
10010
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10011
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10012
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10013
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10014
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10015
|
+
},
|
|
9136
10016
|
/**
|
|
9137
10017
|
* Create client credentials
|
|
9138
10018
|
* @summary Create client credentials
|
|
@@ -9250,6 +10130,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9250
10130
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9251
10131
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9252
10132
|
},
|
|
10133
|
+
/**
|
|
10134
|
+
* Get Account Detailed Summary
|
|
10135
|
+
* @summary Get Account Detailed Summary
|
|
10136
|
+
* @param {number} id Customer ID
|
|
10137
|
+
* @param {*} [options] Override http request option.
|
|
10138
|
+
* @throws {RequiredError}
|
|
10139
|
+
*/
|
|
10140
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10141
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10142
|
+
},
|
|
9253
10143
|
/**
|
|
9254
10144
|
* Get Accounts
|
|
9255
10145
|
* @summary Get Accounts
|
|
@@ -9331,6 +10221,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9331
10221
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9332
10222
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9333
10223
|
},
|
|
10224
|
+
/**
|
|
10225
|
+
* Get Admin Account
|
|
10226
|
+
* @summary Get Admin Account
|
|
10227
|
+
* @param {*} [options] Override http request option.
|
|
10228
|
+
* @throws {RequiredError}
|
|
10229
|
+
*/
|
|
10230
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10231
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10232
|
+
},
|
|
9334
10233
|
/**
|
|
9335
10234
|
* Create client credentials
|
|
9336
10235
|
* @summary Create client credentials
|
|
@@ -9441,6 +10340,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9441
10340
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9442
10341
|
}
|
|
9443
10342
|
|
|
10343
|
+
/**
|
|
10344
|
+
* Get Account Detailed Summary
|
|
10345
|
+
* @summary Get Account Detailed Summary
|
|
10346
|
+
* @param {number} id Customer ID
|
|
10347
|
+
* @param {*} [options] Override http request option.
|
|
10348
|
+
* @throws {RequiredError}
|
|
10349
|
+
* @memberof AccountsApi
|
|
10350
|
+
*/
|
|
10351
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10352
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10353
|
+
}
|
|
10354
|
+
|
|
9444
10355
|
/**
|
|
9445
10356
|
* Get Accounts
|
|
9446
10357
|
* @summary Get Accounts
|
|
@@ -9538,6 +10449,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9538
10449
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9539
10450
|
}
|
|
9540
10451
|
|
|
10452
|
+
/**
|
|
10453
|
+
* Get Admin Account
|
|
10454
|
+
* @summary Get Admin Account
|
|
10455
|
+
* @param {*} [options] Override http request option.
|
|
10456
|
+
* @throws {RequiredError}
|
|
10457
|
+
* @memberof AccountsApi
|
|
10458
|
+
*/
|
|
10459
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10460
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10461
|
+
}
|
|
10462
|
+
|
|
9541
10463
|
/**
|
|
9542
10464
|
* Create client credentials
|
|
9543
10465
|
* @summary Create client credentials
|
|
@@ -9638,43 +10560,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9638
10560
|
|
|
9639
10561
|
|
|
9640
10562
|
|
|
9641
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9642
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9643
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9644
|
-
|
|
9645
|
-
return {
|
|
9646
|
-
url: toPathString(localVarUrlObj),
|
|
9647
|
-
options: localVarRequestOptions,
|
|
9648
|
-
};
|
|
9649
|
-
},
|
|
9650
|
-
/**
|
|
9651
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9652
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9653
|
-
* @param {string} password Desired 3CX web access password
|
|
9654
|
-
* @param {*} [options] Override http request option.
|
|
9655
|
-
* @throws {RequiredError}
|
|
9656
|
-
*/
|
|
9657
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9658
|
-
// verify required parameter 'password' is not null or undefined
|
|
9659
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
9660
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
9661
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9662
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9663
|
-
let baseOptions;
|
|
9664
|
-
if (configuration) {
|
|
9665
|
-
baseOptions = configuration.baseOptions;
|
|
9666
|
-
}
|
|
9667
|
-
|
|
9668
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9669
|
-
const localVarHeaderParameter = {} as any;
|
|
9670
|
-
const localVarQueryParameter = {} as any;
|
|
9671
|
-
|
|
9672
|
-
if (password !== undefined) {
|
|
9673
|
-
localVarQueryParameter['password'] = password;
|
|
9674
|
-
}
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
10563
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9679
10564
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9680
10565
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9741,19 +10626,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
9741
10626
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
9742
10627
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9743
10628
|
},
|
|
9744
|
-
/**
|
|
9745
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9746
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9747
|
-
* @param {string} password Desired 3CX web access password
|
|
9748
|
-
* @param {*} [options] Override http request option.
|
|
9749
|
-
* @throws {RequiredError}
|
|
9750
|
-
*/
|
|
9751
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
9752
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
9753
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9754
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
9755
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9756
|
-
},
|
|
9757
10629
|
/**
|
|
9758
10630
|
* Get Bulk 3CX Licence Details
|
|
9759
10631
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -9787,16 +10659,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
9787
10659
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
9788
10660
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
9789
10661
|
},
|
|
9790
|
-
/**
|
|
9791
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9792
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9793
|
-
* @param {string} password Desired 3CX web access password
|
|
9794
|
-
* @param {*} [options] Override http request option.
|
|
9795
|
-
* @throws {RequiredError}
|
|
9796
|
-
*/
|
|
9797
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
9798
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
9799
|
-
},
|
|
9800
10662
|
/**
|
|
9801
10663
|
* Get Bulk 3CX Licence Details
|
|
9802
10664
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -9829,18 +10691,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
9829
10691
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
9830
10692
|
}
|
|
9831
10693
|
|
|
9832
|
-
/**
|
|
9833
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9834
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9835
|
-
* @param {string} password Desired 3CX web access password
|
|
9836
|
-
* @param {*} [options] Override http request option.
|
|
9837
|
-
* @throws {RequiredError}
|
|
9838
|
-
* @memberof Class3CXApi
|
|
9839
|
-
*/
|
|
9840
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
9841
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
9842
|
-
}
|
|
9843
|
-
|
|
9844
10694
|
/**
|
|
9845
10695
|
* Get Bulk 3CX Licence Details
|
|
9846
10696
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -14435,13 +15285,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14435
15285
|
return {
|
|
14436
15286
|
/**
|
|
14437
15287
|
* Delete Orders
|
|
15288
|
+
* @summary Delete Orders
|
|
14438
15289
|
* @param {number} id Order ID
|
|
14439
15290
|
* @param {*} [options] Override http request option.
|
|
14440
15291
|
* @throws {RequiredError}
|
|
14441
15292
|
*/
|
|
14442
|
-
|
|
15293
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14443
15294
|
// verify required parameter 'id' is not null or undefined
|
|
14444
|
-
assertParamExists('
|
|
15295
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
14445
15296
|
const localVarPath = `/orders/{id}`
|
|
14446
15297
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
14447
15298
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -14457,6 +15308,39 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14457
15308
|
|
|
14458
15309
|
|
|
14459
15310
|
|
|
15311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15313
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15314
|
+
|
|
15315
|
+
return {
|
|
15316
|
+
url: toPathString(localVarUrlObj),
|
|
15317
|
+
options: localVarRequestOptions,
|
|
15318
|
+
};
|
|
15319
|
+
},
|
|
15320
|
+
/**
|
|
15321
|
+
* Get Editable Order
|
|
15322
|
+
* @param {number} id Order ID
|
|
15323
|
+
* @param {*} [options] Override http request option.
|
|
15324
|
+
* @throws {RequiredError}
|
|
15325
|
+
*/
|
|
15326
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15327
|
+
// verify required parameter 'id' is not null or undefined
|
|
15328
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
15329
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
15330
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15332
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15333
|
+
let baseOptions;
|
|
15334
|
+
if (configuration) {
|
|
15335
|
+
baseOptions = configuration.baseOptions;
|
|
15336
|
+
}
|
|
15337
|
+
|
|
15338
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15339
|
+
const localVarHeaderParameter = {} as any;
|
|
15340
|
+
const localVarQueryParameter = {} as any;
|
|
15341
|
+
|
|
15342
|
+
|
|
15343
|
+
|
|
14460
15344
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14461
15345
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14462
15346
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -14531,50 +15415,285 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
14531
15415
|
options: localVarRequestOptions,
|
|
14532
15416
|
};
|
|
14533
15417
|
},
|
|
14534
|
-
}
|
|
14535
|
-
};
|
|
14536
|
-
|
|
14537
|
-
/**
|
|
14538
|
-
* OrdersApi - functional programming interface
|
|
14539
|
-
* @export
|
|
14540
|
-
*/
|
|
14541
|
-
export const OrdersApiFp = function(configuration?: Configuration) {
|
|
14542
|
-
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
14543
|
-
return {
|
|
14544
|
-
/**
|
|
14545
|
-
* Delete Orders
|
|
14546
|
-
* @param {number} id Order ID
|
|
14547
|
-
* @param {*} [options] Override http request option.
|
|
14548
|
-
* @throws {RequiredError}
|
|
14549
|
-
*/
|
|
14550
|
-
async deleteDeleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
14551
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteOrder(id, options);
|
|
14552
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14553
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteOrder']?.[localVarOperationServerIndex]?.url;
|
|
14554
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14555
|
-
},
|
|
14556
15418
|
/**
|
|
14557
|
-
*
|
|
14558
|
-
* @summary
|
|
14559
|
-
* @param {
|
|
14560
|
-
* @param {
|
|
14561
|
-
* @param {string} [search] Search
|
|
14562
|
-
* @param {boolean | null} [fulfillable] Fulfillable
|
|
14563
|
-
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
14564
|
-
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
14565
|
-
* @param {number | null} [customerId] Customer ID
|
|
15419
|
+
* Create An Order (Admin)
|
|
15420
|
+
* @summary Create An Order (Admin)
|
|
15421
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15422
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
14566
15423
|
* @param {*} [options] Override http request option.
|
|
14567
15424
|
* @throws {RequiredError}
|
|
14568
15425
|
*/
|
|
14569
|
-
async
|
|
14570
|
-
const
|
|
14571
|
-
|
|
14572
|
-
const
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
}
|
|
14577
|
-
|
|
15426
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15427
|
+
const localVarPath = `/admin/orders`;
|
|
15428
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15429
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15430
|
+
let baseOptions;
|
|
15431
|
+
if (configuration) {
|
|
15432
|
+
baseOptions = configuration.baseOptions;
|
|
15433
|
+
}
|
|
15434
|
+
|
|
15435
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15436
|
+
const localVarHeaderParameter = {} as any;
|
|
15437
|
+
const localVarQueryParameter = {} as any;
|
|
15438
|
+
|
|
15439
|
+
if (readonly !== undefined) {
|
|
15440
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
15441
|
+
}
|
|
15442
|
+
|
|
15443
|
+
|
|
15444
|
+
|
|
15445
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15446
|
+
|
|
15447
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15449
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15450
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
15451
|
+
|
|
15452
|
+
return {
|
|
15453
|
+
url: toPathString(localVarUrlObj),
|
|
15454
|
+
options: localVarRequestOptions,
|
|
15455
|
+
};
|
|
15456
|
+
},
|
|
15457
|
+
/**
|
|
15458
|
+
* Create An Order
|
|
15459
|
+
* @summary Create An Order
|
|
15460
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15461
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15462
|
+
* @param {*} [options] Override http request option.
|
|
15463
|
+
* @throws {RequiredError}
|
|
15464
|
+
*/
|
|
15465
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15466
|
+
const localVarPath = `/orders`;
|
|
15467
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15468
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15469
|
+
let baseOptions;
|
|
15470
|
+
if (configuration) {
|
|
15471
|
+
baseOptions = configuration.baseOptions;
|
|
15472
|
+
}
|
|
15473
|
+
|
|
15474
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15475
|
+
const localVarHeaderParameter = {} as any;
|
|
15476
|
+
const localVarQueryParameter = {} as any;
|
|
15477
|
+
|
|
15478
|
+
if (readonly !== undefined) {
|
|
15479
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
15480
|
+
}
|
|
15481
|
+
|
|
15482
|
+
|
|
15483
|
+
|
|
15484
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15485
|
+
|
|
15486
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15488
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15489
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
15490
|
+
|
|
15491
|
+
return {
|
|
15492
|
+
url: toPathString(localVarUrlObj),
|
|
15493
|
+
options: localVarRequestOptions,
|
|
15494
|
+
};
|
|
15495
|
+
},
|
|
15496
|
+
/**
|
|
15497
|
+
* Update An Order (Admin)
|
|
15498
|
+
* @summary Update An Order (Admin)
|
|
15499
|
+
* @param {number} id Order ID
|
|
15500
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15501
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
15502
|
+
* @param {*} [options] Override http request option.
|
|
15503
|
+
* @throws {RequiredError}
|
|
15504
|
+
*/
|
|
15505
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15506
|
+
// verify required parameter 'id' is not null or undefined
|
|
15507
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
15508
|
+
const localVarPath = `/admin/orders/{id}`
|
|
15509
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15510
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15511
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15512
|
+
let baseOptions;
|
|
15513
|
+
if (configuration) {
|
|
15514
|
+
baseOptions = configuration.baseOptions;
|
|
15515
|
+
}
|
|
15516
|
+
|
|
15517
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15518
|
+
const localVarHeaderParameter = {} as any;
|
|
15519
|
+
const localVarQueryParameter = {} as any;
|
|
15520
|
+
|
|
15521
|
+
if (readonly !== undefined) {
|
|
15522
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
15523
|
+
}
|
|
15524
|
+
|
|
15525
|
+
|
|
15526
|
+
|
|
15527
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15528
|
+
|
|
15529
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15530
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15531
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15532
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
15533
|
+
|
|
15534
|
+
return {
|
|
15535
|
+
url: toPathString(localVarUrlObj),
|
|
15536
|
+
options: localVarRequestOptions,
|
|
15537
|
+
};
|
|
15538
|
+
},
|
|
15539
|
+
/**
|
|
15540
|
+
* Update An Order
|
|
15541
|
+
* @summary Update An Order
|
|
15542
|
+
* @param {number} id Order ID
|
|
15543
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15544
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15545
|
+
* @param {*} [options] Override http request option.
|
|
15546
|
+
* @throws {RequiredError}
|
|
15547
|
+
*/
|
|
15548
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15549
|
+
// verify required parameter 'id' is not null or undefined
|
|
15550
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
15551
|
+
const localVarPath = `/orders/{id}`
|
|
15552
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15553
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15554
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15555
|
+
let baseOptions;
|
|
15556
|
+
if (configuration) {
|
|
15557
|
+
baseOptions = configuration.baseOptions;
|
|
15558
|
+
}
|
|
15559
|
+
|
|
15560
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
15561
|
+
const localVarHeaderParameter = {} as any;
|
|
15562
|
+
const localVarQueryParameter = {} as any;
|
|
15563
|
+
|
|
15564
|
+
if (readonly !== undefined) {
|
|
15565
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
15566
|
+
}
|
|
15567
|
+
|
|
15568
|
+
|
|
15569
|
+
|
|
15570
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15571
|
+
|
|
15572
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15574
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15575
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
15576
|
+
|
|
15577
|
+
return {
|
|
15578
|
+
url: toPathString(localVarUrlObj),
|
|
15579
|
+
options: localVarRequestOptions,
|
|
15580
|
+
};
|
|
15581
|
+
},
|
|
15582
|
+
}
|
|
15583
|
+
};
|
|
15584
|
+
|
|
15585
|
+
/**
|
|
15586
|
+
* OrdersApi - functional programming interface
|
|
15587
|
+
* @export
|
|
15588
|
+
*/
|
|
15589
|
+
export const OrdersApiFp = function(configuration?: Configuration) {
|
|
15590
|
+
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
15591
|
+
return {
|
|
15592
|
+
/**
|
|
15593
|
+
* Delete Orders
|
|
15594
|
+
* @summary Delete Orders
|
|
15595
|
+
* @param {number} id Order ID
|
|
15596
|
+
* @param {*} [options] Override http request option.
|
|
15597
|
+
* @throws {RequiredError}
|
|
15598
|
+
*/
|
|
15599
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
15600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
15601
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15602
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
15603
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15604
|
+
},
|
|
15605
|
+
/**
|
|
15606
|
+
* Get Editable Order
|
|
15607
|
+
* @param {number} id Order ID
|
|
15608
|
+
* @param {*} [options] Override http request option.
|
|
15609
|
+
* @throws {RequiredError}
|
|
15610
|
+
*/
|
|
15611
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
|
|
15612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
15613
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15614
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15616
|
+
},
|
|
15617
|
+
/**
|
|
15618
|
+
* Get Orders
|
|
15619
|
+
* @summary Get Orders
|
|
15620
|
+
* @param {number} [pageSize] Number Of Results
|
|
15621
|
+
* @param {number} [page] Page Number
|
|
15622
|
+
* @param {string} [search] Search
|
|
15623
|
+
* @param {boolean | null} [fulfillable] Fulfillable
|
|
15624
|
+
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
15625
|
+
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
15626
|
+
* @param {number | null} [customerId] Customer ID
|
|
15627
|
+
* @param {*} [options] Override http request option.
|
|
15628
|
+
* @throws {RequiredError}
|
|
15629
|
+
*/
|
|
15630
|
+
async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
|
|
15631
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
|
|
15632
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15633
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15634
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15635
|
+
},
|
|
15636
|
+
/**
|
|
15637
|
+
* Create An Order (Admin)
|
|
15638
|
+
* @summary Create An Order (Admin)
|
|
15639
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15640
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
15641
|
+
* @param {*} [options] Override http request option.
|
|
15642
|
+
* @throws {RequiredError}
|
|
15643
|
+
*/
|
|
15644
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
15645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
15646
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15647
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
15648
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15649
|
+
},
|
|
15650
|
+
/**
|
|
15651
|
+
* Create An Order
|
|
15652
|
+
* @summary Create An Order
|
|
15653
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15654
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15655
|
+
* @param {*} [options] Override http request option.
|
|
15656
|
+
* @throws {RequiredError}
|
|
15657
|
+
*/
|
|
15658
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
15659
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
15660
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15661
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15662
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15663
|
+
},
|
|
15664
|
+
/**
|
|
15665
|
+
* Update An Order (Admin)
|
|
15666
|
+
* @summary Update An Order (Admin)
|
|
15667
|
+
* @param {number} id Order ID
|
|
15668
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15669
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
15670
|
+
* @param {*} [options] Override http request option.
|
|
15671
|
+
* @throws {RequiredError}
|
|
15672
|
+
*/
|
|
15673
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
15674
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
15675
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15676
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
15677
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15678
|
+
},
|
|
15679
|
+
/**
|
|
15680
|
+
* Update An Order
|
|
15681
|
+
* @summary Update An Order
|
|
15682
|
+
* @param {number} id Order ID
|
|
15683
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15684
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15685
|
+
* @param {*} [options] Override http request option.
|
|
15686
|
+
* @throws {RequiredError}
|
|
15687
|
+
*/
|
|
15688
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
15689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
15690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15691
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
15692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15693
|
+
},
|
|
15694
|
+
}
|
|
15695
|
+
};
|
|
15696
|
+
|
|
14578
15697
|
/**
|
|
14579
15698
|
* OrdersApi - factory interface
|
|
14580
15699
|
* @export
|
|
@@ -14584,12 +15703,22 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
14584
15703
|
return {
|
|
14585
15704
|
/**
|
|
14586
15705
|
* Delete Orders
|
|
15706
|
+
* @summary Delete Orders
|
|
14587
15707
|
* @param {number} id Order ID
|
|
14588
15708
|
* @param {*} [options] Override http request option.
|
|
14589
15709
|
* @throws {RequiredError}
|
|
14590
15710
|
*/
|
|
14591
|
-
|
|
14592
|
-
return localVarFp.
|
|
15711
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
15712
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
15713
|
+
},
|
|
15714
|
+
/**
|
|
15715
|
+
* Get Editable Order
|
|
15716
|
+
* @param {number} id Order ID
|
|
15717
|
+
* @param {*} [options] Override http request option.
|
|
15718
|
+
* @throws {RequiredError}
|
|
15719
|
+
*/
|
|
15720
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
|
|
15721
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
14593
15722
|
},
|
|
14594
15723
|
/**
|
|
14595
15724
|
* Get Orders
|
|
@@ -14607,6 +15736,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
14607
15736
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
14608
15737
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
14609
15738
|
},
|
|
15739
|
+
/**
|
|
15740
|
+
* Create An Order (Admin)
|
|
15741
|
+
* @summary Create An Order (Admin)
|
|
15742
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15743
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
15744
|
+
* @param {*} [options] Override http request option.
|
|
15745
|
+
* @throws {RequiredError}
|
|
15746
|
+
*/
|
|
15747
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
15748
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
15749
|
+
},
|
|
15750
|
+
/**
|
|
15751
|
+
* Create An Order
|
|
15752
|
+
* @summary Create An Order
|
|
15753
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15754
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15755
|
+
* @param {*} [options] Override http request option.
|
|
15756
|
+
* @throws {RequiredError}
|
|
15757
|
+
*/
|
|
15758
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
15759
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
15760
|
+
},
|
|
15761
|
+
/**
|
|
15762
|
+
* Update An Order (Admin)
|
|
15763
|
+
* @summary Update An Order (Admin)
|
|
15764
|
+
* @param {number} id Order ID
|
|
15765
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15766
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
15767
|
+
* @param {*} [options] Override http request option.
|
|
15768
|
+
* @throws {RequiredError}
|
|
15769
|
+
*/
|
|
15770
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
15771
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
15772
|
+
},
|
|
15773
|
+
/**
|
|
15774
|
+
* Update An Order
|
|
15775
|
+
* @summary Update An Order
|
|
15776
|
+
* @param {number} id Order ID
|
|
15777
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15778
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15779
|
+
* @param {*} [options] Override http request option.
|
|
15780
|
+
* @throws {RequiredError}
|
|
15781
|
+
*/
|
|
15782
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
15783
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
15784
|
+
},
|
|
14610
15785
|
};
|
|
14611
15786
|
};
|
|
14612
15787
|
|
|
@@ -14619,13 +15794,25 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
14619
15794
|
export class OrdersApi extends BaseAPI {
|
|
14620
15795
|
/**
|
|
14621
15796
|
* Delete Orders
|
|
15797
|
+
* @summary Delete Orders
|
|
14622
15798
|
* @param {number} id Order ID
|
|
14623
15799
|
* @param {*} [options] Override http request option.
|
|
14624
15800
|
* @throws {RequiredError}
|
|
14625
15801
|
* @memberof OrdersApi
|
|
14626
15802
|
*/
|
|
14627
|
-
public
|
|
14628
|
-
return OrdersApiFp(this.configuration).
|
|
15803
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
15804
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15805
|
+
}
|
|
15806
|
+
|
|
15807
|
+
/**
|
|
15808
|
+
* Get Editable Order
|
|
15809
|
+
* @param {number} id Order ID
|
|
15810
|
+
* @param {*} [options] Override http request option.
|
|
15811
|
+
* @throws {RequiredError}
|
|
15812
|
+
* @memberof OrdersApi
|
|
15813
|
+
*/
|
|
15814
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
15815
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
14629
15816
|
}
|
|
14630
15817
|
|
|
14631
15818
|
/**
|
|
@@ -14645,6 +15832,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
14645
15832
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
14646
15833
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
14647
15834
|
}
|
|
15835
|
+
|
|
15836
|
+
/**
|
|
15837
|
+
* Create An Order (Admin)
|
|
15838
|
+
* @summary Create An Order (Admin)
|
|
15839
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15840
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
15841
|
+
* @param {*} [options] Override http request option.
|
|
15842
|
+
* @throws {RequiredError}
|
|
15843
|
+
* @memberof OrdersApi
|
|
15844
|
+
*/
|
|
15845
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
15846
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
15847
|
+
}
|
|
15848
|
+
|
|
15849
|
+
/**
|
|
15850
|
+
* Create An Order
|
|
15851
|
+
* @summary Create An Order
|
|
15852
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15853
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15854
|
+
* @param {*} [options] Override http request option.
|
|
15855
|
+
* @throws {RequiredError}
|
|
15856
|
+
* @memberof OrdersApi
|
|
15857
|
+
*/
|
|
15858
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
15859
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
15860
|
+
}
|
|
15861
|
+
|
|
15862
|
+
/**
|
|
15863
|
+
* Update An Order (Admin)
|
|
15864
|
+
* @summary Update An Order (Admin)
|
|
15865
|
+
* @param {number} id Order ID
|
|
15866
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15867
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
15868
|
+
* @param {*} [options] Override http request option.
|
|
15869
|
+
* @throws {RequiredError}
|
|
15870
|
+
* @memberof OrdersApi
|
|
15871
|
+
*/
|
|
15872
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
15873
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
15874
|
+
}
|
|
15875
|
+
|
|
15876
|
+
/**
|
|
15877
|
+
* Update An Order
|
|
15878
|
+
* @summary Update An Order
|
|
15879
|
+
* @param {number} id Order ID
|
|
15880
|
+
* @param {boolean} [readonly] Readonly Order
|
|
15881
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15882
|
+
* @param {*} [options] Override http request option.
|
|
15883
|
+
* @throws {RequiredError}
|
|
15884
|
+
* @memberof OrdersApi
|
|
15885
|
+
*/
|
|
15886
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
15887
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
15888
|
+
}
|
|
14648
15889
|
}
|
|
14649
15890
|
|
|
14650
15891
|
/**
|
|
@@ -15055,13 +16296,110 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15055
16296
|
};
|
|
15056
16297
|
},
|
|
15057
16298
|
/**
|
|
15058
|
-
* Get
|
|
15059
|
-
* @summary Get
|
|
16299
|
+
* Get Current Stock & Pricing
|
|
16300
|
+
* @summary Get Current Stock & Pricing
|
|
16301
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
16302
|
+
* @param {*} [options] Override http request option.
|
|
16303
|
+
* @deprecated
|
|
16304
|
+
* @throws {RequiredError}
|
|
16305
|
+
*/
|
|
16306
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16307
|
+
// verify required parameter 'format' is not null or undefined
|
|
16308
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
16309
|
+
const localVarPath = `/products/stock/legacy`;
|
|
16310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16312
|
+
let baseOptions;
|
|
16313
|
+
if (configuration) {
|
|
16314
|
+
baseOptions = configuration.baseOptions;
|
|
16315
|
+
}
|
|
16316
|
+
|
|
16317
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16318
|
+
const localVarHeaderParameter = {} as any;
|
|
16319
|
+
const localVarQueryParameter = {} as any;
|
|
16320
|
+
|
|
16321
|
+
if (format !== undefined) {
|
|
16322
|
+
localVarQueryParameter['format'] = format;
|
|
16323
|
+
}
|
|
16324
|
+
|
|
16325
|
+
|
|
16326
|
+
|
|
16327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16329
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16330
|
+
|
|
16331
|
+
return {
|
|
16332
|
+
url: toPathString(localVarUrlObj),
|
|
16333
|
+
options: localVarRequestOptions,
|
|
16334
|
+
};
|
|
16335
|
+
},
|
|
16336
|
+
/**
|
|
16337
|
+
* Get Product
|
|
16338
|
+
* @summary Get Product
|
|
16339
|
+
* @param {string} sku Product SKU
|
|
16340
|
+
* @param {number} [quantity] Quantity
|
|
16341
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16342
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
16343
|
+
* @param {*} [options] Override http request option.
|
|
16344
|
+
* @throws {RequiredError}
|
|
16345
|
+
*/
|
|
16346
|
+
getGetProduct: async (sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16347
|
+
// verify required parameter 'sku' is not null or undefined
|
|
16348
|
+
assertParamExists('getGetProduct', 'sku', sku)
|
|
16349
|
+
const localVarPath = `/products/{sku}`
|
|
16350
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16353
|
+
let baseOptions;
|
|
16354
|
+
if (configuration) {
|
|
16355
|
+
baseOptions = configuration.baseOptions;
|
|
16356
|
+
}
|
|
16357
|
+
|
|
16358
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16359
|
+
const localVarHeaderParameter = {} as any;
|
|
16360
|
+
const localVarQueryParameter = {} as any;
|
|
16361
|
+
|
|
16362
|
+
if (quantity !== undefined) {
|
|
16363
|
+
localVarQueryParameter['quantity'] = quantity;
|
|
16364
|
+
}
|
|
16365
|
+
|
|
16366
|
+
if (licenceKey !== undefined) {
|
|
16367
|
+
localVarQueryParameter['licenceKey'] = licenceKey;
|
|
16368
|
+
}
|
|
16369
|
+
|
|
16370
|
+
if (hosting !== undefined) {
|
|
16371
|
+
localVarQueryParameter['hosting'] = hosting;
|
|
16372
|
+
}
|
|
16373
|
+
|
|
16374
|
+
|
|
16375
|
+
|
|
16376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16378
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16379
|
+
|
|
16380
|
+
return {
|
|
16381
|
+
url: toPathString(localVarUrlObj),
|
|
16382
|
+
options: localVarRequestOptions,
|
|
16383
|
+
};
|
|
16384
|
+
},
|
|
16385
|
+
/**
|
|
16386
|
+
* Get Product For Customer
|
|
16387
|
+
* @summary Get Product For Customer
|
|
16388
|
+
* @param {number} customerId Customer ID
|
|
16389
|
+
* @param {string} sku Product SKU
|
|
16390
|
+
* @param {number} [quantity] Quantity
|
|
16391
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16392
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
15060
16393
|
* @param {*} [options] Override http request option.
|
|
15061
16394
|
* @throws {RequiredError}
|
|
15062
16395
|
*/
|
|
15063
|
-
|
|
15064
|
-
|
|
16396
|
+
getGetProductForCustomer: async (customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16397
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
16398
|
+
assertParamExists('getGetProductForCustomer', 'customerId', customerId)
|
|
16399
|
+
// verify required parameter 'sku' is not null or undefined
|
|
16400
|
+
assertParamExists('getGetProductForCustomer', 'sku', sku)
|
|
16401
|
+
const localVarPath = `/admin/products/{sku}`
|
|
16402
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
15065
16403
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15066
16404
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15067
16405
|
let baseOptions;
|
|
@@ -15073,6 +16411,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15073
16411
|
const localVarHeaderParameter = {} as any;
|
|
15074
16412
|
const localVarQueryParameter = {} as any;
|
|
15075
16413
|
|
|
16414
|
+
if (customerId !== undefined) {
|
|
16415
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
16416
|
+
}
|
|
16417
|
+
|
|
16418
|
+
if (quantity !== undefined) {
|
|
16419
|
+
localVarQueryParameter['quantity'] = quantity;
|
|
16420
|
+
}
|
|
16421
|
+
|
|
16422
|
+
if (licenceKey !== undefined) {
|
|
16423
|
+
localVarQueryParameter['licenceKey'] = licenceKey;
|
|
16424
|
+
}
|
|
16425
|
+
|
|
16426
|
+
if (hosting !== undefined) {
|
|
16427
|
+
localVarQueryParameter['hosting'] = hosting;
|
|
16428
|
+
}
|
|
16429
|
+
|
|
15076
16430
|
|
|
15077
16431
|
|
|
15078
16432
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15085,17 +16439,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15085
16439
|
};
|
|
15086
16440
|
},
|
|
15087
16441
|
/**
|
|
15088
|
-
* Get
|
|
15089
|
-
* @summary Get
|
|
15090
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
16442
|
+
* Get Products
|
|
16443
|
+
* @summary Get Products
|
|
15091
16444
|
* @param {*} [options] Override http request option.
|
|
15092
|
-
* @deprecated
|
|
15093
16445
|
* @throws {RequiredError}
|
|
15094
16446
|
*/
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
15098
|
-
const localVarPath = `/products/stock/legacy`;
|
|
16447
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16448
|
+
const localVarPath = `/products`;
|
|
15099
16449
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15100
16450
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15101
16451
|
let baseOptions;
|
|
@@ -15107,10 +16457,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15107
16457
|
const localVarHeaderParameter = {} as any;
|
|
15108
16458
|
const localVarQueryParameter = {} as any;
|
|
15109
16459
|
|
|
15110
|
-
if (format !== undefined) {
|
|
15111
|
-
localVarQueryParameter['format'] = format;
|
|
15112
|
-
}
|
|
15113
|
-
|
|
15114
16460
|
|
|
15115
16461
|
|
|
15116
16462
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15123,16 +16469,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15123
16469
|
};
|
|
15124
16470
|
},
|
|
15125
16471
|
/**
|
|
15126
|
-
* Get
|
|
15127
|
-
* @summary Get
|
|
15128
|
-
* @param {number} [pageSize] Number Of Results
|
|
15129
|
-
* @param {number} [page] Page Number
|
|
15130
|
-
* @param {string} [search] Search
|
|
16472
|
+
* Get Current Stock & Pricing
|
|
16473
|
+
* @summary Get Current Stock & Pricing
|
|
15131
16474
|
* @param {*} [options] Override http request option.
|
|
15132
16475
|
* @throws {RequiredError}
|
|
15133
16476
|
*/
|
|
15134
|
-
|
|
15135
|
-
const localVarPath = `/products/
|
|
16477
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16478
|
+
const localVarPath = `/products/stock`;
|
|
15136
16479
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15137
16480
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15138
16481
|
let baseOptions;
|
|
@@ -15144,18 +16487,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15144
16487
|
const localVarHeaderParameter = {} as any;
|
|
15145
16488
|
const localVarQueryParameter = {} as any;
|
|
15146
16489
|
|
|
15147
|
-
if (pageSize !== undefined) {
|
|
15148
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
15149
|
-
}
|
|
15150
|
-
|
|
15151
|
-
if (page !== undefined) {
|
|
15152
|
-
localVarQueryParameter['page'] = page;
|
|
15153
|
-
}
|
|
15154
|
-
|
|
15155
|
-
if (search !== undefined) {
|
|
15156
|
-
localVarQueryParameter['search'] = search;
|
|
15157
|
-
}
|
|
15158
|
-
|
|
15159
16490
|
|
|
15160
16491
|
|
|
15161
16492
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15168,13 +16499,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15168
16499
|
};
|
|
15169
16500
|
},
|
|
15170
16501
|
/**
|
|
15171
|
-
* Get
|
|
15172
|
-
* @summary Get
|
|
16502
|
+
* Get 3CX Templates
|
|
16503
|
+
* @summary Get 3CX Templates
|
|
15173
16504
|
* @param {*} [options] Override http request option.
|
|
15174
16505
|
* @throws {RequiredError}
|
|
15175
16506
|
*/
|
|
15176
|
-
|
|
15177
|
-
const localVarPath = `/products/
|
|
16507
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16508
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
15178
16509
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15179
16510
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15180
16511
|
let baseOptions;
|
|
@@ -15198,13 +16529,16 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15198
16529
|
};
|
|
15199
16530
|
},
|
|
15200
16531
|
/**
|
|
15201
|
-
*
|
|
15202
|
-
* @summary
|
|
16532
|
+
* Search Products
|
|
16533
|
+
* @summary Search Products
|
|
16534
|
+
* @param {number} [pageSize] Number Of Results
|
|
16535
|
+
* @param {number} [page] Page Number
|
|
16536
|
+
* @param {string} [search] Search
|
|
15203
16537
|
* @param {*} [options] Override http request option.
|
|
15204
16538
|
* @throws {RequiredError}
|
|
15205
16539
|
*/
|
|
15206
|
-
|
|
15207
|
-
const localVarPath = `/products/
|
|
16540
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16541
|
+
const localVarPath = `/products/search`;
|
|
15208
16542
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15209
16543
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15210
16544
|
let baseOptions;
|
|
@@ -15216,6 +16550,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15216
16550
|
const localVarHeaderParameter = {} as any;
|
|
15217
16551
|
const localVarQueryParameter = {} as any;
|
|
15218
16552
|
|
|
16553
|
+
if (pageSize !== undefined) {
|
|
16554
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
16555
|
+
}
|
|
16556
|
+
|
|
16557
|
+
if (page !== undefined) {
|
|
16558
|
+
localVarQueryParameter['page'] = page;
|
|
16559
|
+
}
|
|
16560
|
+
|
|
16561
|
+
if (search !== undefined) {
|
|
16562
|
+
localVarQueryParameter['search'] = search;
|
|
16563
|
+
}
|
|
16564
|
+
|
|
15219
16565
|
|
|
15220
16566
|
|
|
15221
16567
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15249,18 +16595,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
15249
16595
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
15250
16596
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15251
16597
|
},
|
|
15252
|
-
/**
|
|
15253
|
-
* Get Customer Price Lists
|
|
15254
|
-
* @summary Get Customer Price Lists
|
|
15255
|
-
* @param {*} [options] Override http request option.
|
|
15256
|
-
* @throws {RequiredError}
|
|
15257
|
-
*/
|
|
15258
|
-
async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
|
|
15259
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
|
|
15260
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15261
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
|
|
15262
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15263
|
-
},
|
|
15264
16598
|
/**
|
|
15265
16599
|
* Get Current Stock & Pricing
|
|
15266
16600
|
* @summary Get Current Stock & Pricing
|
|
@@ -15275,17 +16609,47 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
15275
16609
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetLegacyStockList']?.[localVarOperationServerIndex]?.url;
|
|
15276
16610
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15277
16611
|
},
|
|
16612
|
+
/**
|
|
16613
|
+
* Get Product
|
|
16614
|
+
* @summary Get Product
|
|
16615
|
+
* @param {string} sku Product SKU
|
|
16616
|
+
* @param {number} [quantity] Quantity
|
|
16617
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16618
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
16619
|
+
* @param {*} [options] Override http request option.
|
|
16620
|
+
* @throws {RequiredError}
|
|
16621
|
+
*/
|
|
16622
|
+
async getGetProduct(sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16623
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProduct(sku, quantity, licenceKey, hosting, options);
|
|
16624
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16625
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
16626
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16627
|
+
},
|
|
16628
|
+
/**
|
|
16629
|
+
* Get Product For Customer
|
|
16630
|
+
* @summary Get Product For Customer
|
|
16631
|
+
* @param {number} customerId Customer ID
|
|
16632
|
+
* @param {string} sku Product SKU
|
|
16633
|
+
* @param {number} [quantity] Quantity
|
|
16634
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16635
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
16636
|
+
* @param {*} [options] Override http request option.
|
|
16637
|
+
* @throws {RequiredError}
|
|
16638
|
+
*/
|
|
16639
|
+
async getGetProductForCustomer(customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
16640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options);
|
|
16641
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16642
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
16643
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16644
|
+
},
|
|
15278
16645
|
/**
|
|
15279
16646
|
* Get Products
|
|
15280
16647
|
* @summary Get Products
|
|
15281
|
-
* @param {number} [pageSize] Number Of Results
|
|
15282
|
-
* @param {number} [page] Page Number
|
|
15283
|
-
* @param {string} [search] Search
|
|
15284
16648
|
* @param {*} [options] Override http request option.
|
|
15285
16649
|
* @throws {RequiredError}
|
|
15286
16650
|
*/
|
|
15287
|
-
async getGetProducts(
|
|
15288
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
16651
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
16652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
15289
16653
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15290
16654
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
15291
16655
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15314,6 +16678,21 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
15314
16678
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
15315
16679
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15316
16680
|
},
|
|
16681
|
+
/**
|
|
16682
|
+
* Search Products
|
|
16683
|
+
* @summary Search Products
|
|
16684
|
+
* @param {number} [pageSize] Number Of Results
|
|
16685
|
+
* @param {number} [page] Page Number
|
|
16686
|
+
* @param {string} [search] Search
|
|
16687
|
+
* @param {*} [options] Override http request option.
|
|
16688
|
+
* @throws {RequiredError}
|
|
16689
|
+
*/
|
|
16690
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
16691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
16692
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16693
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
16694
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16695
|
+
},
|
|
15317
16696
|
}
|
|
15318
16697
|
};
|
|
15319
16698
|
|
|
@@ -15333,15 +16712,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
15333
16712
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
15334
16713
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
15335
16714
|
},
|
|
15336
|
-
/**
|
|
15337
|
-
* Get Customer Price Lists
|
|
15338
|
-
* @summary Get Customer Price Lists
|
|
15339
|
-
* @param {*} [options] Override http request option.
|
|
15340
|
-
* @throws {RequiredError}
|
|
15341
|
-
*/
|
|
15342
|
-
getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
|
|
15343
|
-
return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
|
|
15344
|
-
},
|
|
15345
16715
|
/**
|
|
15346
16716
|
* Get Current Stock & Pricing
|
|
15347
16717
|
* @summary Get Current Stock & Pricing
|
|
@@ -15353,17 +16723,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
15353
16723
|
getGetLegacyStockList(format: GetGetLegacyStockListFormatEnum, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
15354
16724
|
return localVarFp.getGetLegacyStockList(format, options).then((request) => request(axios, basePath));
|
|
15355
16725
|
},
|
|
16726
|
+
/**
|
|
16727
|
+
* Get Product
|
|
16728
|
+
* @summary Get Product
|
|
16729
|
+
* @param {string} sku Product SKU
|
|
16730
|
+
* @param {number} [quantity] Quantity
|
|
16731
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16732
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
16733
|
+
* @param {*} [options] Override http request option.
|
|
16734
|
+
* @throws {RequiredError}
|
|
16735
|
+
*/
|
|
16736
|
+
getGetProduct(sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16737
|
+
return localVarFp.getGetProduct(sku, quantity, licenceKey, hosting, options).then((request) => request(axios, basePath));
|
|
16738
|
+
},
|
|
16739
|
+
/**
|
|
16740
|
+
* Get Product For Customer
|
|
16741
|
+
* @summary Get Product For Customer
|
|
16742
|
+
* @param {number} customerId Customer ID
|
|
16743
|
+
* @param {string} sku Product SKU
|
|
16744
|
+
* @param {number} [quantity] Quantity
|
|
16745
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16746
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
16747
|
+
* @param {*} [options] Override http request option.
|
|
16748
|
+
* @throws {RequiredError}
|
|
16749
|
+
*/
|
|
16750
|
+
getGetProductForCustomer(customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
16751
|
+
return localVarFp.getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options).then((request) => request(axios, basePath));
|
|
16752
|
+
},
|
|
15356
16753
|
/**
|
|
15357
16754
|
* Get Products
|
|
15358
16755
|
* @summary Get Products
|
|
15359
|
-
* @param {number} [pageSize] Number Of Results
|
|
15360
|
-
* @param {number} [page] Page Number
|
|
15361
|
-
* @param {string} [search] Search
|
|
15362
16756
|
* @param {*} [options] Override http request option.
|
|
15363
16757
|
* @throws {RequiredError}
|
|
15364
16758
|
*/
|
|
15365
|
-
getGetProducts(
|
|
15366
|
-
return localVarFp.getGetProducts(
|
|
16759
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
16760
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
15367
16761
|
},
|
|
15368
16762
|
/**
|
|
15369
16763
|
* Get Current Stock & Pricing
|
|
@@ -15383,6 +16777,18 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
15383
16777
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
15384
16778
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
15385
16779
|
},
|
|
16780
|
+
/**
|
|
16781
|
+
* Search Products
|
|
16782
|
+
* @summary Search Products
|
|
16783
|
+
* @param {number} [pageSize] Number Of Results
|
|
16784
|
+
* @param {number} [page] Page Number
|
|
16785
|
+
* @param {string} [search] Search
|
|
16786
|
+
* @param {*} [options] Override http request option.
|
|
16787
|
+
* @throws {RequiredError}
|
|
16788
|
+
*/
|
|
16789
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
16790
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
16791
|
+
},
|
|
15386
16792
|
};
|
|
15387
16793
|
};
|
|
15388
16794
|
|
|
@@ -15405,41 +16811,58 @@ export class ProductsApi extends BaseAPI {
|
|
|
15405
16811
|
}
|
|
15406
16812
|
|
|
15407
16813
|
/**
|
|
15408
|
-
* Get
|
|
15409
|
-
* @summary Get
|
|
16814
|
+
* Get Current Stock & Pricing
|
|
16815
|
+
* @summary Get Current Stock & Pricing
|
|
16816
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
15410
16817
|
* @param {*} [options] Override http request option.
|
|
16818
|
+
* @deprecated
|
|
15411
16819
|
* @throws {RequiredError}
|
|
15412
16820
|
* @memberof ProductsApi
|
|
15413
16821
|
*/
|
|
15414
|
-
public
|
|
15415
|
-
return ProductsApiFp(this.configuration).
|
|
16822
|
+
public getGetLegacyStockList(format: GetGetLegacyStockListFormatEnum, options?: RawAxiosRequestConfig) {
|
|
16823
|
+
return ProductsApiFp(this.configuration).getGetLegacyStockList(format, options).then((request) => request(this.axios, this.basePath));
|
|
15416
16824
|
}
|
|
15417
16825
|
|
|
15418
16826
|
/**
|
|
15419
|
-
* Get
|
|
15420
|
-
* @summary Get
|
|
15421
|
-
* @param {
|
|
16827
|
+
* Get Product
|
|
16828
|
+
* @summary Get Product
|
|
16829
|
+
* @param {string} sku Product SKU
|
|
16830
|
+
* @param {number} [quantity] Quantity
|
|
16831
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16832
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
15422
16833
|
* @param {*} [options] Override http request option.
|
|
15423
|
-
* @deprecated
|
|
15424
16834
|
* @throws {RequiredError}
|
|
15425
16835
|
* @memberof ProductsApi
|
|
15426
16836
|
*/
|
|
15427
|
-
public
|
|
15428
|
-
return ProductsApiFp(this.configuration).
|
|
16837
|
+
public getGetProduct(sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig) {
|
|
16838
|
+
return ProductsApiFp(this.configuration).getGetProduct(sku, quantity, licenceKey, hosting, options).then((request) => request(this.axios, this.basePath));
|
|
16839
|
+
}
|
|
16840
|
+
|
|
16841
|
+
/**
|
|
16842
|
+
* Get Product For Customer
|
|
16843
|
+
* @summary Get Product For Customer
|
|
16844
|
+
* @param {number} customerId Customer ID
|
|
16845
|
+
* @param {string} sku Product SKU
|
|
16846
|
+
* @param {number} [quantity] Quantity
|
|
16847
|
+
* @param {string} [licenceKey] 3CX Licence Key
|
|
16848
|
+
* @param {boolean} [hosting] 3CX Hosting
|
|
16849
|
+
* @param {*} [options] Override http request option.
|
|
16850
|
+
* @throws {RequiredError}
|
|
16851
|
+
* @memberof ProductsApi
|
|
16852
|
+
*/
|
|
16853
|
+
public getGetProductForCustomer(customerId: number, sku: string, quantity?: number, licenceKey?: string, hosting?: boolean, options?: RawAxiosRequestConfig) {
|
|
16854
|
+
return ProductsApiFp(this.configuration).getGetProductForCustomer(customerId, sku, quantity, licenceKey, hosting, options).then((request) => request(this.axios, this.basePath));
|
|
15429
16855
|
}
|
|
15430
16856
|
|
|
15431
16857
|
/**
|
|
15432
16858
|
* Get Products
|
|
15433
16859
|
* @summary Get Products
|
|
15434
|
-
* @param {number} [pageSize] Number Of Results
|
|
15435
|
-
* @param {number} [page] Page Number
|
|
15436
|
-
* @param {string} [search] Search
|
|
15437
16860
|
* @param {*} [options] Override http request option.
|
|
15438
16861
|
* @throws {RequiredError}
|
|
15439
16862
|
* @memberof ProductsApi
|
|
15440
16863
|
*/
|
|
15441
|
-
public getGetProducts(
|
|
15442
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
16864
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
16865
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
15443
16866
|
}
|
|
15444
16867
|
|
|
15445
16868
|
/**
|
|
@@ -15463,6 +16886,20 @@ export class ProductsApi extends BaseAPI {
|
|
|
15463
16886
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
15464
16887
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
15465
16888
|
}
|
|
16889
|
+
|
|
16890
|
+
/**
|
|
16891
|
+
* Search Products
|
|
16892
|
+
* @summary Search Products
|
|
16893
|
+
* @param {number} [pageSize] Number Of Results
|
|
16894
|
+
* @param {number} [page] Page Number
|
|
16895
|
+
* @param {string} [search] Search
|
|
16896
|
+
* @param {*} [options] Override http request option.
|
|
16897
|
+
* @throws {RequiredError}
|
|
16898
|
+
* @memberof ProductsApi
|
|
16899
|
+
*/
|
|
16900
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
16901
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
16902
|
+
}
|
|
15466
16903
|
}
|
|
15467
16904
|
|
|
15468
16905
|
/**
|
|
@@ -15803,7 +17240,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
15803
17240
|
* @param {*} [options] Override http request option.
|
|
15804
17241
|
* @throws {RequiredError}
|
|
15805
17242
|
*/
|
|
15806
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
17243
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
15807
17244
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
15808
17245
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15809
17246
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -15816,7 +17253,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
15816
17253
|
* @param {*} [options] Override http request option.
|
|
15817
17254
|
* @throws {RequiredError}
|
|
15818
17255
|
*/
|
|
15819
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
17256
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
15820
17257
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
15821
17258
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15822
17259
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -15895,7 +17332,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
15895
17332
|
* @param {*} [options] Override http request option.
|
|
15896
17333
|
* @throws {RequiredError}
|
|
15897
17334
|
*/
|
|
15898
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
17335
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
15899
17336
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
15900
17337
|
},
|
|
15901
17338
|
/**
|
|
@@ -15905,7 +17342,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
15905
17342
|
* @param {*} [options] Override http request option.
|
|
15906
17343
|
* @throws {RequiredError}
|
|
15907
17344
|
*/
|
|
15908
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
17345
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
15909
17346
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
15910
17347
|
},
|
|
15911
17348
|
/**
|
|
@@ -17806,6 +19243,114 @@ export class SMSApi extends BaseAPI {
|
|
|
17806
19243
|
|
|
17807
19244
|
|
|
17808
19245
|
|
|
19246
|
+
/**
|
|
19247
|
+
* ShippingApi - axios parameter creator
|
|
19248
|
+
* @export
|
|
19249
|
+
*/
|
|
19250
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
19251
|
+
return {
|
|
19252
|
+
/**
|
|
19253
|
+
* Get Shipping Services
|
|
19254
|
+
* @summary Get Shipping Services
|
|
19255
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
19256
|
+
* @param {*} [options] Override http request option.
|
|
19257
|
+
* @throws {RequiredError}
|
|
19258
|
+
*/
|
|
19259
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19260
|
+
const localVarPath = `/shipping/services`;
|
|
19261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19263
|
+
let baseOptions;
|
|
19264
|
+
if (configuration) {
|
|
19265
|
+
baseOptions = configuration.baseOptions;
|
|
19266
|
+
}
|
|
19267
|
+
|
|
19268
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19269
|
+
const localVarHeaderParameter = {} as any;
|
|
19270
|
+
const localVarQueryParameter = {} as any;
|
|
19271
|
+
|
|
19272
|
+
|
|
19273
|
+
|
|
19274
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19275
|
+
|
|
19276
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19278
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19279
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
19280
|
+
|
|
19281
|
+
return {
|
|
19282
|
+
url: toPathString(localVarUrlObj),
|
|
19283
|
+
options: localVarRequestOptions,
|
|
19284
|
+
};
|
|
19285
|
+
},
|
|
19286
|
+
}
|
|
19287
|
+
};
|
|
19288
|
+
|
|
19289
|
+
/**
|
|
19290
|
+
* ShippingApi - functional programming interface
|
|
19291
|
+
* @export
|
|
19292
|
+
*/
|
|
19293
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
19294
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
19295
|
+
return {
|
|
19296
|
+
/**
|
|
19297
|
+
* Get Shipping Services
|
|
19298
|
+
* @summary Get Shipping Services
|
|
19299
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
19300
|
+
* @param {*} [options] Override http request option.
|
|
19301
|
+
* @throws {RequiredError}
|
|
19302
|
+
*/
|
|
19303
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
19304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
19305
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19306
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
19307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19308
|
+
},
|
|
19309
|
+
}
|
|
19310
|
+
};
|
|
19311
|
+
|
|
19312
|
+
/**
|
|
19313
|
+
* ShippingApi - factory interface
|
|
19314
|
+
* @export
|
|
19315
|
+
*/
|
|
19316
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
19317
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
19318
|
+
return {
|
|
19319
|
+
/**
|
|
19320
|
+
* Get Shipping Services
|
|
19321
|
+
* @summary Get Shipping Services
|
|
19322
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
19323
|
+
* @param {*} [options] Override http request option.
|
|
19324
|
+
* @throws {RequiredError}
|
|
19325
|
+
*/
|
|
19326
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
19327
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
19328
|
+
},
|
|
19329
|
+
};
|
|
19330
|
+
};
|
|
19331
|
+
|
|
19332
|
+
/**
|
|
19333
|
+
* ShippingApi - object-oriented interface
|
|
19334
|
+
* @export
|
|
19335
|
+
* @class ShippingApi
|
|
19336
|
+
* @extends {BaseAPI}
|
|
19337
|
+
*/
|
|
19338
|
+
export class ShippingApi extends BaseAPI {
|
|
19339
|
+
/**
|
|
19340
|
+
* Get Shipping Services
|
|
19341
|
+
* @summary Get Shipping Services
|
|
19342
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
19343
|
+
* @param {*} [options] Override http request option.
|
|
19344
|
+
* @throws {RequiredError}
|
|
19345
|
+
* @memberof ShippingApi
|
|
19346
|
+
*/
|
|
19347
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
19348
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
19349
|
+
}
|
|
19350
|
+
}
|
|
19351
|
+
|
|
19352
|
+
|
|
19353
|
+
|
|
17809
19354
|
/**
|
|
17810
19355
|
* StockManagementApi - axios parameter creator
|
|
17811
19356
|
* @export
|
|
@@ -18892,7 +20437,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
18892
20437
|
* @param {*} [options] Override http request option.
|
|
18893
20438
|
* @throws {RequiredError}
|
|
18894
20439
|
*/
|
|
18895
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
20440
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
18896
20441
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
18897
20442
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18898
20443
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -19195,7 +20740,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
19195
20740
|
* @param {*} [options] Override http request option.
|
|
19196
20741
|
* @throws {RequiredError}
|
|
19197
20742
|
*/
|
|
19198
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
20743
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
19199
20744
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
19200
20745
|
},
|
|
19201
20746
|
/**
|