yellowgrid-api-ts 3.0.108 → 3.0.110-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 +212 -195
- package/README.md +33 -7
- package/api.ts +1789 -257
- 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 +1304 -150
- package/dist/api.js +1059 -207
- 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 +39 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AdminItemRequestDTO.md +39 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -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 +35 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemEntity.md +2 -0
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +301 -4
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +164 -43
- 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/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 | null;
|
|
38
|
+
/**
|
|
39
|
+
* Items
|
|
40
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
41
|
+
* @memberof AbstractOrderRequestDTO
|
|
42
|
+
*/
|
|
43
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ShippingServiceDTO}
|
|
47
|
+
* @memberof AbstractOrderRequestDTO
|
|
48
|
+
*/
|
|
49
|
+
'shippingService'?: ShippingServiceDTO;
|
|
50
|
+
/**
|
|
51
|
+
* Provisioning URL
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AbstractOrderRequestDTO
|
|
54
|
+
*/
|
|
55
|
+
'provisioningUrl'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {AddressModel}
|
|
59
|
+
* @memberof AbstractOrderRequestDTO
|
|
60
|
+
*/
|
|
61
|
+
'shippingAddress'?: AddressModel | null;
|
|
62
|
+
/**
|
|
63
|
+
* Part Ship Order
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof AbstractOrderRequestDTO
|
|
66
|
+
*/
|
|
67
|
+
'partShip'?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Quote
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof AbstractOrderRequestDTO
|
|
72
|
+
*/
|
|
73
|
+
'quote'?: boolean;
|
|
74
|
+
}
|
|
26
75
|
/**
|
|
27
76
|
* AccountContactsEntity
|
|
28
77
|
* @export
|
|
@@ -254,6 +303,73 @@ export interface AccountContactRequestModel {
|
|
|
254
303
|
*/
|
|
255
304
|
'despatchEmails'?: boolean;
|
|
256
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Account Details
|
|
308
|
+
* @export
|
|
309
|
+
* @interface AccountDetailedSummaryDTO
|
|
310
|
+
*/
|
|
311
|
+
export interface AccountDetailedSummaryDTO {
|
|
312
|
+
/**
|
|
313
|
+
* ID
|
|
314
|
+
* @type {number}
|
|
315
|
+
* @memberof AccountDetailedSummaryDTO
|
|
316
|
+
*/
|
|
317
|
+
'id'?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Xero ID
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof AccountDetailedSummaryDTO
|
|
322
|
+
*/
|
|
323
|
+
'xeroId'?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Company
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof AccountDetailedSummaryDTO
|
|
328
|
+
*/
|
|
329
|
+
'company'?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Credit Limit
|
|
332
|
+
* @type {number}
|
|
333
|
+
* @memberof AccountDetailedSummaryDTO
|
|
334
|
+
*/
|
|
335
|
+
'creditLimit'?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Contacts
|
|
338
|
+
* @type {Array<AccountContactModel>}
|
|
339
|
+
* @memberof AccountDetailedSummaryDTO
|
|
340
|
+
*/
|
|
341
|
+
'contacts'?: Array<AccountContactModel>;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {AddressModel}
|
|
345
|
+
* @memberof AccountDetailedSummaryDTO
|
|
346
|
+
*/
|
|
347
|
+
'billingAddress'?: AddressModel;
|
|
348
|
+
/**
|
|
349
|
+
* Addresses
|
|
350
|
+
* @type {Array<AddressModel>}
|
|
351
|
+
* @memberof AccountDetailedSummaryDTO
|
|
352
|
+
*/
|
|
353
|
+
'addresses'?: Array<AddressModel>;
|
|
354
|
+
/**
|
|
355
|
+
* Provisioning URLs
|
|
356
|
+
* @type {Array<ProvisioningModel>}
|
|
357
|
+
* @memberof AccountDetailedSummaryDTO
|
|
358
|
+
*/
|
|
359
|
+
'provisioningUrls'?: Array<ProvisioningModel>;
|
|
360
|
+
/**
|
|
361
|
+
* On Hold
|
|
362
|
+
* @type {boolean}
|
|
363
|
+
* @memberof AccountDetailedSummaryDTO
|
|
364
|
+
*/
|
|
365
|
+
'onHold'?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Balance (£)
|
|
368
|
+
* @type {number}
|
|
369
|
+
* @memberof AccountDetailedSummaryDTO
|
|
370
|
+
*/
|
|
371
|
+
'balance'?: number | null;
|
|
372
|
+
}
|
|
257
373
|
/**
|
|
258
374
|
* New Account Request
|
|
259
375
|
* @export
|
|
@@ -535,6 +651,206 @@ export interface AddressRequestModel {
|
|
|
535
651
|
*/
|
|
536
652
|
'addressPostcode'?: string;
|
|
537
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* Admin Order Item Request
|
|
656
|
+
* @export
|
|
657
|
+
* @interface AdminItemRequestDTO
|
|
658
|
+
*/
|
|
659
|
+
export interface AdminItemRequestDTO {
|
|
660
|
+
/**
|
|
661
|
+
* SKU
|
|
662
|
+
* @type {string}
|
|
663
|
+
* @memberof AdminItemRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
'sku'?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Quantity
|
|
668
|
+
* @type {number}
|
|
669
|
+
* @memberof AdminItemRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'quantity'?: number;
|
|
672
|
+
/**
|
|
673
|
+
* ID
|
|
674
|
+
* @type {number}
|
|
675
|
+
* @memberof AdminItemRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'id'?: number | null;
|
|
678
|
+
/**
|
|
679
|
+
* 3CX Licence Key
|
|
680
|
+
* @type {string}
|
|
681
|
+
* @memberof AdminItemRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'licenceKey'?: string | null;
|
|
684
|
+
/**
|
|
685
|
+
* 3CX Hosting
|
|
686
|
+
* @type {boolean}
|
|
687
|
+
* @memberof AdminItemRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'hosting'?: boolean | null;
|
|
690
|
+
/**
|
|
691
|
+
* Date Time
|
|
692
|
+
* @type {string}
|
|
693
|
+
* @memberof AdminItemRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'processDate'?: string;
|
|
696
|
+
/**
|
|
697
|
+
* 3CX Sales Code
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof AdminItemRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'tcxSalesCode'?: string | null;
|
|
702
|
+
/**
|
|
703
|
+
* SBCS
|
|
704
|
+
* @type {Array<TcxSbcDTO>}
|
|
705
|
+
* @memberof AdminItemRequestDTO
|
|
706
|
+
*/
|
|
707
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
708
|
+
/**
|
|
709
|
+
* Title
|
|
710
|
+
* @type {string}
|
|
711
|
+
* @memberof AdminItemRequestDTO
|
|
712
|
+
*/
|
|
713
|
+
'title'?: string | null;
|
|
714
|
+
/**
|
|
715
|
+
* Price (£)
|
|
716
|
+
* @type {number}
|
|
717
|
+
* @memberof AdminItemRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'itemPrice'?: number | null;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* Admin Order Request
|
|
723
|
+
* @export
|
|
724
|
+
* @interface AdminOrderRequestDTO
|
|
725
|
+
*/
|
|
726
|
+
export interface AdminOrderRequestDTO {
|
|
727
|
+
/**
|
|
728
|
+
* Order Reference
|
|
729
|
+
* @type {string}
|
|
730
|
+
* @memberof AdminOrderRequestDTO
|
|
731
|
+
*/
|
|
732
|
+
'orderReference'?: string | null;
|
|
733
|
+
/**
|
|
734
|
+
* Items
|
|
735
|
+
* @type {Array<AdminItemRequestDTO>}
|
|
736
|
+
* @memberof AdminOrderRequestDTO
|
|
737
|
+
*/
|
|
738
|
+
'items'?: Array<AdminItemRequestDTO>;
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @type {ShippingServiceDTO}
|
|
742
|
+
* @memberof AdminOrderRequestDTO
|
|
743
|
+
*/
|
|
744
|
+
'shippingService'?: ShippingServiceDTO;
|
|
745
|
+
/**
|
|
746
|
+
* Provisioning URL
|
|
747
|
+
* @type {string}
|
|
748
|
+
* @memberof AdminOrderRequestDTO
|
|
749
|
+
*/
|
|
750
|
+
'provisioningUrl'?: string | null;
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @type {AddressModel}
|
|
754
|
+
* @memberof AdminOrderRequestDTO
|
|
755
|
+
*/
|
|
756
|
+
'shippingAddress'?: AddressModel;
|
|
757
|
+
/**
|
|
758
|
+
* Part Ship Order
|
|
759
|
+
* @type {boolean}
|
|
760
|
+
* @memberof AdminOrderRequestDTO
|
|
761
|
+
*/
|
|
762
|
+
'partShip'?: boolean;
|
|
763
|
+
/**
|
|
764
|
+
* Quote
|
|
765
|
+
* @type {boolean}
|
|
766
|
+
* @memberof AdminOrderRequestDTO
|
|
767
|
+
*/
|
|
768
|
+
'quote'?: boolean;
|
|
769
|
+
/**
|
|
770
|
+
* Customer ID
|
|
771
|
+
* @type {number}
|
|
772
|
+
* @memberof AdminOrderRequestDTO
|
|
773
|
+
*/
|
|
774
|
+
'customerId'?: number;
|
|
775
|
+
/**
|
|
776
|
+
* Contact
|
|
777
|
+
* @type {string}
|
|
778
|
+
* @memberof AdminOrderRequestDTO
|
|
779
|
+
*/
|
|
780
|
+
'contact'?: string;
|
|
781
|
+
/**
|
|
782
|
+
* Ignore Customer On Hold
|
|
783
|
+
* @type {boolean}
|
|
784
|
+
* @memberof AdminOrderRequestDTO
|
|
785
|
+
*/
|
|
786
|
+
'ignoreOnHold'?: boolean;
|
|
787
|
+
/**
|
|
788
|
+
* Ignore Customer Credit Limit
|
|
789
|
+
* @type {boolean}
|
|
790
|
+
* @memberof AdminOrderRequestDTO
|
|
791
|
+
*/
|
|
792
|
+
'ignoreCreditLimit'?: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* Include NFR Promos
|
|
795
|
+
* @type {boolean}
|
|
796
|
+
* @memberof AdminOrderRequestDTO
|
|
797
|
+
*/
|
|
798
|
+
'includeNfrPromos'?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Carriage Charge
|
|
801
|
+
* @type {number}
|
|
802
|
+
* @memberof AdminOrderRequestDTO
|
|
803
|
+
*/
|
|
804
|
+
'carriageCharge'?: number;
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Admin User
|
|
808
|
+
* @export
|
|
809
|
+
* @interface AdminUserModel
|
|
810
|
+
*/
|
|
811
|
+
export interface AdminUserModel {
|
|
812
|
+
/**
|
|
813
|
+
* First Name
|
|
814
|
+
* @type {string}
|
|
815
|
+
* @memberof AdminUserModel
|
|
816
|
+
*/
|
|
817
|
+
'firstName'?: string;
|
|
818
|
+
/**
|
|
819
|
+
* Last Name
|
|
820
|
+
* @type {string}
|
|
821
|
+
* @memberof AdminUserModel
|
|
822
|
+
*/
|
|
823
|
+
'lastName'?: string;
|
|
824
|
+
/**
|
|
825
|
+
* Avatar
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof AdminUserModel
|
|
828
|
+
*/
|
|
829
|
+
'avatar'?: string | null;
|
|
830
|
+
/**
|
|
831
|
+
* Role
|
|
832
|
+
* @type {number}
|
|
833
|
+
* @memberof AdminUserModel
|
|
834
|
+
*/
|
|
835
|
+
'role'?: AdminUserModelRoleEnum;
|
|
836
|
+
/**
|
|
837
|
+
* Email
|
|
838
|
+
* @type {string}
|
|
839
|
+
* @memberof AdminUserModel
|
|
840
|
+
*/
|
|
841
|
+
'email'?: string | null;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export const AdminUserModelRoleEnum = {
|
|
845
|
+
NUMBER_0: 0,
|
|
846
|
+
NUMBER_1: 1,
|
|
847
|
+
NUMBER_2: 2,
|
|
848
|
+
NUMBER_3: 3,
|
|
849
|
+
NUMBER_4: 4
|
|
850
|
+
} as const;
|
|
851
|
+
|
|
852
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
853
|
+
|
|
538
854
|
/**
|
|
539
855
|
* Agent Hours Graph
|
|
540
856
|
* @export
|
|
@@ -764,6 +1080,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1080
|
*/
|
|
765
1081
|
'redirect_uri'?: string | null;
|
|
766
1082
|
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Basic Order Item
|
|
1085
|
+
* @export
|
|
1086
|
+
* @interface BasicItemDTO
|
|
1087
|
+
*/
|
|
1088
|
+
export interface BasicItemDTO {
|
|
1089
|
+
/**
|
|
1090
|
+
* SKU
|
|
1091
|
+
* @type {string}
|
|
1092
|
+
* @memberof BasicItemDTO
|
|
1093
|
+
*/
|
|
1094
|
+
'sku'?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Quantity
|
|
1097
|
+
* @type {number}
|
|
1098
|
+
* @memberof BasicItemDTO
|
|
1099
|
+
*/
|
|
1100
|
+
'quantity'?: number;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Basic Product
|
|
1104
|
+
* @export
|
|
1105
|
+
* @interface BasicProductDTO
|
|
1106
|
+
*/
|
|
1107
|
+
export interface BasicProductDTO {
|
|
1108
|
+
/**
|
|
1109
|
+
* SKU
|
|
1110
|
+
* @type {string}
|
|
1111
|
+
* @memberof BasicProductDTO
|
|
1112
|
+
*/
|
|
1113
|
+
'sku'?: string;
|
|
1114
|
+
/**
|
|
1115
|
+
* Title
|
|
1116
|
+
* @type {string}
|
|
1117
|
+
* @memberof BasicProductDTO
|
|
1118
|
+
*/
|
|
1119
|
+
'title'?: string;
|
|
1120
|
+
}
|
|
767
1121
|
/**
|
|
768
1122
|
* BatchesEntity
|
|
769
1123
|
* @export
|
|
@@ -958,12 +1312,6 @@ export interface ClientDetailsModel {
|
|
|
958
1312
|
* @memberof ClientDetailsModel
|
|
959
1313
|
*/
|
|
960
1314
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1315
|
}
|
|
968
1316
|
/**
|
|
969
1317
|
* OAuth client details
|
|
@@ -1126,43 +1474,110 @@ export interface ConversationModel {
|
|
|
1126
1474
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1475
|
}
|
|
1128
1476
|
/**
|
|
1129
|
-
*
|
|
1477
|
+
* CourierPricesEntity
|
|
1130
1478
|
* @export
|
|
1131
|
-
* @interface
|
|
1479
|
+
* @interface CourierPriceEntity
|
|
1132
1480
|
*/
|
|
1133
|
-
export interface
|
|
1481
|
+
export interface CourierPriceEntity {
|
|
1134
1482
|
/**
|
|
1135
|
-
*
|
|
1483
|
+
* id
|
|
1136
1484
|
* @type {number}
|
|
1137
|
-
* @memberof
|
|
1485
|
+
* @memberof CourierPriceEntity
|
|
1138
1486
|
*/
|
|
1139
1487
|
'id'?: number;
|
|
1140
1488
|
/**
|
|
1141
|
-
*
|
|
1489
|
+
* courier
|
|
1142
1490
|
* @type {string}
|
|
1143
|
-
* @memberof
|
|
1491
|
+
* @memberof CourierPriceEntity
|
|
1144
1492
|
*/
|
|
1145
|
-
'
|
|
1493
|
+
'courier'?: string;
|
|
1146
1494
|
/**
|
|
1147
|
-
*
|
|
1495
|
+
* destinationIso
|
|
1148
1496
|
* @type {string}
|
|
1149
|
-
* @memberof
|
|
1497
|
+
* @memberof CourierPriceEntity
|
|
1150
1498
|
*/
|
|
1151
|
-
'
|
|
1499
|
+
'destinationIso'?: string;
|
|
1152
1500
|
/**
|
|
1153
|
-
*
|
|
1501
|
+
* serviceDescription
|
|
1154
1502
|
* @type {string}
|
|
1155
|
-
* @memberof
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1156
1504
|
*/
|
|
1157
|
-
'
|
|
1505
|
+
'serviceDescription'?: string;
|
|
1158
1506
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* @type {
|
|
1161
|
-
* @memberof
|
|
1507
|
+
* flatRate
|
|
1508
|
+
* @type {number}
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1162
1510
|
*/
|
|
1163
|
-
'
|
|
1511
|
+
'flatRate'?: number;
|
|
1164
1512
|
/**
|
|
1165
|
-
*
|
|
1513
|
+
* initialBox
|
|
1514
|
+
* @type {number}
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1516
|
+
*/
|
|
1517
|
+
'initialBox'?: number;
|
|
1518
|
+
/**
|
|
1519
|
+
* initialKg
|
|
1520
|
+
* @type {number}
|
|
1521
|
+
* @memberof CourierPriceEntity
|
|
1522
|
+
*/
|
|
1523
|
+
'initialKg'?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* perBox
|
|
1526
|
+
* @type {number}
|
|
1527
|
+
* @memberof CourierPriceEntity
|
|
1528
|
+
*/
|
|
1529
|
+
'perBox'?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* perKg
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof CourierPriceEntity
|
|
1534
|
+
*/
|
|
1535
|
+
'perKg'?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* maxKg
|
|
1538
|
+
* @type {number}
|
|
1539
|
+
* @memberof CourierPriceEntity
|
|
1540
|
+
*/
|
|
1541
|
+
'maxKg'?: number;
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Credit Account
|
|
1545
|
+
* @export
|
|
1546
|
+
* @interface CreditAccountEntity
|
|
1547
|
+
*/
|
|
1548
|
+
export interface CreditAccountEntity {
|
|
1549
|
+
/**
|
|
1550
|
+
* ID
|
|
1551
|
+
* @type {number}
|
|
1552
|
+
* @memberof CreditAccountEntity
|
|
1553
|
+
*/
|
|
1554
|
+
'id'?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Contact Name
|
|
1557
|
+
* @type {string}
|
|
1558
|
+
* @memberof CreditAccountEntity
|
|
1559
|
+
*/
|
|
1560
|
+
'name'?: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* Email
|
|
1563
|
+
* @type {string}
|
|
1564
|
+
* @memberof CreditAccountEntity
|
|
1565
|
+
*/
|
|
1566
|
+
'email'?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* Phone Number
|
|
1569
|
+
* @type {string}
|
|
1570
|
+
* @memberof CreditAccountEntity
|
|
1571
|
+
*/
|
|
1572
|
+
'phone'?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Company Name
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CreditAccountEntity
|
|
1577
|
+
*/
|
|
1578
|
+
'company'?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Company Registration Number
|
|
1166
1581
|
* @type {string}
|
|
1167
1582
|
* @memberof CreditAccountEntity
|
|
1168
1583
|
*/
|
|
@@ -1307,6 +1722,110 @@ export interface CustomerInformationModel {
|
|
|
1307
1722
|
*/
|
|
1308
1723
|
'contactLastName'?: string;
|
|
1309
1724
|
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Order Item Request
|
|
1727
|
+
* @export
|
|
1728
|
+
* @interface CustomerItemRequestDTO
|
|
1729
|
+
*/
|
|
1730
|
+
export interface CustomerItemRequestDTO {
|
|
1731
|
+
/**
|
|
1732
|
+
* SKU
|
|
1733
|
+
* @type {string}
|
|
1734
|
+
* @memberof CustomerItemRequestDTO
|
|
1735
|
+
*/
|
|
1736
|
+
'sku'?: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* Quantity
|
|
1739
|
+
* @type {number}
|
|
1740
|
+
* @memberof CustomerItemRequestDTO
|
|
1741
|
+
*/
|
|
1742
|
+
'quantity'?: number;
|
|
1743
|
+
/**
|
|
1744
|
+
* ID
|
|
1745
|
+
* @type {number}
|
|
1746
|
+
* @memberof CustomerItemRequestDTO
|
|
1747
|
+
*/
|
|
1748
|
+
'id'?: number | null;
|
|
1749
|
+
/**
|
|
1750
|
+
* 3CX Licence Key
|
|
1751
|
+
* @type {string}
|
|
1752
|
+
* @memberof CustomerItemRequestDTO
|
|
1753
|
+
*/
|
|
1754
|
+
'licenceKey'?: string | null;
|
|
1755
|
+
/**
|
|
1756
|
+
* 3CX Hosting
|
|
1757
|
+
* @type {boolean}
|
|
1758
|
+
* @memberof CustomerItemRequestDTO
|
|
1759
|
+
*/
|
|
1760
|
+
'hosting'?: boolean | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* Date Time
|
|
1763
|
+
* @type {string}
|
|
1764
|
+
* @memberof CustomerItemRequestDTO
|
|
1765
|
+
*/
|
|
1766
|
+
'processDate'?: string;
|
|
1767
|
+
/**
|
|
1768
|
+
* 3CX Sales Code
|
|
1769
|
+
* @type {string}
|
|
1770
|
+
* @memberof CustomerItemRequestDTO
|
|
1771
|
+
*/
|
|
1772
|
+
'tcxSalesCode'?: string | null;
|
|
1773
|
+
/**
|
|
1774
|
+
* SBCS
|
|
1775
|
+
* @type {Array<TcxSbcDTO>}
|
|
1776
|
+
* @memberof CustomerItemRequestDTO
|
|
1777
|
+
*/
|
|
1778
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1779
|
+
}
|
|
1780
|
+
/**
|
|
1781
|
+
* Order Request
|
|
1782
|
+
* @export
|
|
1783
|
+
* @interface CustomerOrderRequestDTO
|
|
1784
|
+
*/
|
|
1785
|
+
export interface CustomerOrderRequestDTO {
|
|
1786
|
+
/**
|
|
1787
|
+
* Order Reference
|
|
1788
|
+
* @type {string}
|
|
1789
|
+
* @memberof CustomerOrderRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
'orderReference'?: string | null;
|
|
1792
|
+
/**
|
|
1793
|
+
* Items
|
|
1794
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1795
|
+
* @memberof CustomerOrderRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1798
|
+
/**
|
|
1799
|
+
*
|
|
1800
|
+
* @type {ShippingServiceDTO}
|
|
1801
|
+
* @memberof CustomerOrderRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1804
|
+
/**
|
|
1805
|
+
* Provisioning URL
|
|
1806
|
+
* @type {string}
|
|
1807
|
+
* @memberof CustomerOrderRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'provisioningUrl'?: string | null;
|
|
1810
|
+
/**
|
|
1811
|
+
*
|
|
1812
|
+
* @type {AddressModel}
|
|
1813
|
+
* @memberof CustomerOrderRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'shippingAddress'?: AddressModel;
|
|
1816
|
+
/**
|
|
1817
|
+
* Part Ship Order
|
|
1818
|
+
* @type {boolean}
|
|
1819
|
+
* @memberof CustomerOrderRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'partShip'?: boolean;
|
|
1822
|
+
/**
|
|
1823
|
+
* Quote
|
|
1824
|
+
* @type {boolean}
|
|
1825
|
+
* @memberof CustomerOrderRequestDTO
|
|
1826
|
+
*/
|
|
1827
|
+
'quote'?: boolean;
|
|
1828
|
+
}
|
|
1310
1829
|
/**
|
|
1311
1830
|
* Customer Price List
|
|
1312
1831
|
* @export
|
|
@@ -1816,19 +2335,6 @@ export interface GenericFileModel {
|
|
|
1816
2335
|
*/
|
|
1817
2336
|
'type'?: string;
|
|
1818
2337
|
}
|
|
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
2338
|
/**
|
|
1833
2339
|
*
|
|
1834
2340
|
* @export
|
|
@@ -2430,35 +2936,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2430
2936
|
*/
|
|
2431
2937
|
export interface ItemDTO {
|
|
2432
2938
|
/**
|
|
2433
|
-
*
|
|
2434
|
-
* @type {
|
|
2939
|
+
* SKU
|
|
2940
|
+
* @type {string}
|
|
2435
2941
|
* @memberof ItemDTO
|
|
2436
2942
|
*/
|
|
2437
|
-
'
|
|
2943
|
+
'sku'?: string;
|
|
2438
2944
|
/**
|
|
2439
|
-
*
|
|
2945
|
+
* Quantity
|
|
2440
2946
|
* @type {number}
|
|
2441
2947
|
* @memberof ItemDTO
|
|
2442
2948
|
*/
|
|
2443
|
-
'
|
|
2949
|
+
'quantity'?: number;
|
|
2444
2950
|
/**
|
|
2445
|
-
*
|
|
2446
|
-
* @type {
|
|
2951
|
+
* ID
|
|
2952
|
+
* @type {number}
|
|
2447
2953
|
* @memberof ItemDTO
|
|
2448
2954
|
*/
|
|
2449
|
-
'
|
|
2955
|
+
'id'?: number | null;
|
|
2450
2956
|
/**
|
|
2451
|
-
*
|
|
2452
|
-
* @type {
|
|
2957
|
+
* Order ID
|
|
2958
|
+
* @type {number}
|
|
2453
2959
|
* @memberof ItemDTO
|
|
2454
2960
|
*/
|
|
2455
|
-
'
|
|
2961
|
+
'orderId'?: number | null;
|
|
2456
2962
|
/**
|
|
2457
|
-
*
|
|
2458
|
-
* @type {
|
|
2963
|
+
* Title
|
|
2964
|
+
* @type {string}
|
|
2459
2965
|
* @memberof ItemDTO
|
|
2460
2966
|
*/
|
|
2461
|
-
'
|
|
2967
|
+
'title'?: string;
|
|
2462
2968
|
/**
|
|
2463
2969
|
* Price
|
|
2464
2970
|
* @type {number}
|
|
@@ -2483,6 +2989,12 @@ export interface ItemDTO {
|
|
|
2483
2989
|
* @memberof ItemDTO
|
|
2484
2990
|
*/
|
|
2485
2991
|
'processDate'?: string;
|
|
2992
|
+
/**
|
|
2993
|
+
* 3CX Hosting
|
|
2994
|
+
* @type {boolean}
|
|
2995
|
+
* @memberof ItemDTO
|
|
2996
|
+
*/
|
|
2997
|
+
'hosting'?: boolean | null;
|
|
2486
2998
|
/**
|
|
2487
2999
|
* Promo Item
|
|
2488
3000
|
* @type {boolean}
|
|
@@ -2494,7 +3006,25 @@ export interface ItemDTO {
|
|
|
2494
3006
|
* @type {number}
|
|
2495
3007
|
* @memberof ItemDTO
|
|
2496
3008
|
*/
|
|
2497
|
-
'refunded'?: number;
|
|
3009
|
+
'refunded'?: number | null;
|
|
3010
|
+
/**
|
|
3011
|
+
* SBCs
|
|
3012
|
+
* @type {Array<TcxSbcDTO>}
|
|
3013
|
+
* @memberof ItemDTO
|
|
3014
|
+
*/
|
|
3015
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3016
|
+
/**
|
|
3017
|
+
* Readonly
|
|
3018
|
+
* @type {boolean}
|
|
3019
|
+
* @memberof ItemDTO
|
|
3020
|
+
*/
|
|
3021
|
+
'readonly'?: boolean;
|
|
3022
|
+
/**
|
|
3023
|
+
* 3CX Sales Code
|
|
3024
|
+
* @type {string}
|
|
3025
|
+
* @memberof ItemDTO
|
|
3026
|
+
*/
|
|
3027
|
+
'tcxSalesCode'?: string | null;
|
|
2498
3028
|
}
|
|
2499
3029
|
/**
|
|
2500
3030
|
* ItemsEntity
|
|
@@ -2628,6 +3158,31 @@ export interface ItemEntity {
|
|
|
2628
3158
|
* @memberof ItemEntity
|
|
2629
3159
|
*/
|
|
2630
3160
|
'promoItem'?: number;
|
|
3161
|
+
/**
|
|
3162
|
+
* 3CX Sales Code
|
|
3163
|
+
* @type {string}
|
|
3164
|
+
* @memberof ItemEntity
|
|
3165
|
+
*/
|
|
3166
|
+
'tcxSalesCode'?: string | null;
|
|
3167
|
+
}
|
|
3168
|
+
/**
|
|
3169
|
+
* LinkedOrdersEntity
|
|
3170
|
+
* @export
|
|
3171
|
+
* @interface LinkedOrderEntity
|
|
3172
|
+
*/
|
|
3173
|
+
export interface LinkedOrderEntity {
|
|
3174
|
+
/**
|
|
3175
|
+
* orderId
|
|
3176
|
+
* @type {number}
|
|
3177
|
+
* @memberof LinkedOrderEntity
|
|
3178
|
+
*/
|
|
3179
|
+
'orderId'?: number;
|
|
3180
|
+
/**
|
|
3181
|
+
* linkedOrderId
|
|
3182
|
+
* @type {number}
|
|
3183
|
+
* @memberof LinkedOrderEntity
|
|
3184
|
+
*/
|
|
3185
|
+
'linkedOrderId'?: number;
|
|
2631
3186
|
}
|
|
2632
3187
|
/**
|
|
2633
3188
|
* MFA Required
|
|
@@ -3288,13 +3843,19 @@ export interface OrderSummaryDTO {
|
|
|
3288
3843
|
* @type {string}
|
|
3289
3844
|
* @memberof OrderSummaryDTO
|
|
3290
3845
|
*/
|
|
3291
|
-
'reference'?: string;
|
|
3846
|
+
'reference'?: string | null;
|
|
3292
3847
|
/**
|
|
3293
3848
|
* Invoice Number
|
|
3294
3849
|
* @type {string}
|
|
3295
3850
|
* @memberof OrderSummaryDTO
|
|
3296
3851
|
*/
|
|
3297
3852
|
'invoiceNumber'?: string;
|
|
3853
|
+
/**
|
|
3854
|
+
* Invoice ID
|
|
3855
|
+
* @type {string}
|
|
3856
|
+
* @memberof OrderSummaryDTO
|
|
3857
|
+
*/
|
|
3858
|
+
'invoiceId'?: string | null;
|
|
3298
3859
|
/**
|
|
3299
3860
|
* Date Time
|
|
3300
3861
|
* @type {string}
|
|
@@ -3349,6 +3910,24 @@ export interface OrderSummaryDTO {
|
|
|
3349
3910
|
* @memberof OrderSummaryDTO
|
|
3350
3911
|
*/
|
|
3351
3912
|
'fulfillable'?: boolean | null;
|
|
3913
|
+
/**
|
|
3914
|
+
* Provisioning URL
|
|
3915
|
+
* @type {string}
|
|
3916
|
+
* @memberof OrderSummaryDTO
|
|
3917
|
+
*/
|
|
3918
|
+
'provisioningUrl'?: string | null;
|
|
3919
|
+
/**
|
|
3920
|
+
*
|
|
3921
|
+
* @type {ShippingServiceDTO}
|
|
3922
|
+
* @memberof OrderSummaryDTO
|
|
3923
|
+
*/
|
|
3924
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
3925
|
+
/**
|
|
3926
|
+
* Readonly
|
|
3927
|
+
* @type {boolean}
|
|
3928
|
+
* @memberof OrderSummaryDTO
|
|
3929
|
+
*/
|
|
3930
|
+
'readonly'?: boolean;
|
|
3352
3931
|
}
|
|
3353
3932
|
/**
|
|
3354
3933
|
* Order Totals
|
|
@@ -3398,6 +3977,12 @@ export interface OrderTotalModel {
|
|
|
3398
3977
|
* @memberof OrderTotalModel
|
|
3399
3978
|
*/
|
|
3400
3979
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
3980
|
+
/**
|
|
3981
|
+
* Delivery
|
|
3982
|
+
* @type {number}
|
|
3983
|
+
* @memberof OrderTotalModel
|
|
3984
|
+
*/
|
|
3985
|
+
'delivery'?: number | null;
|
|
3401
3986
|
}
|
|
3402
3987
|
|
|
3403
3988
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3779,6 +4364,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3779
4364
|
*/
|
|
3780
4365
|
'scopes'?: Array<string>;
|
|
3781
4366
|
}
|
|
4367
|
+
/**
|
|
4368
|
+
*
|
|
4369
|
+
* @export
|
|
4370
|
+
* @interface PostGetProductForCustomerRequest
|
|
4371
|
+
*/
|
|
4372
|
+
export interface PostGetProductForCustomerRequest {
|
|
4373
|
+
/**
|
|
4374
|
+
* Quantity
|
|
4375
|
+
* @type {number}
|
|
4376
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4377
|
+
*/
|
|
4378
|
+
'quantity'?: number | null;
|
|
4379
|
+
/**
|
|
4380
|
+
* 3CX Licence Key
|
|
4381
|
+
* @type {string}
|
|
4382
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4383
|
+
*/
|
|
4384
|
+
'licenceKey'?: string | null;
|
|
4385
|
+
/**
|
|
4386
|
+
* 3CX Hosting
|
|
4387
|
+
* @type {boolean}
|
|
4388
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4389
|
+
*/
|
|
4390
|
+
'hosting'?: boolean | null;
|
|
4391
|
+
}
|
|
3782
4392
|
/**
|
|
3783
4393
|
* Price & Stock List
|
|
3784
4394
|
* @export
|
|
@@ -3867,10 +4477,10 @@ export interface PrizesEntity {
|
|
|
3867
4477
|
export interface ProductSearchResultsModel {
|
|
3868
4478
|
/**
|
|
3869
4479
|
* Results
|
|
3870
|
-
* @type {Array<
|
|
4480
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3871
4481
|
* @memberof ProductSearchResultsModel
|
|
3872
4482
|
*/
|
|
3873
|
-
'results'?: Array<
|
|
4483
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3874
4484
|
}
|
|
3875
4485
|
/**
|
|
3876
4486
|
* Product Serial Info
|
|
@@ -3906,45 +4516,51 @@ export interface ProductSerialInfoModel {
|
|
|
3906
4516
|
/**
|
|
3907
4517
|
* Product Summary
|
|
3908
4518
|
* @export
|
|
3909
|
-
* @interface
|
|
4519
|
+
* @interface ProductSummaryDTO
|
|
3910
4520
|
*/
|
|
3911
|
-
export interface
|
|
4521
|
+
export interface ProductSummaryDTO {
|
|
3912
4522
|
/**
|
|
3913
4523
|
* SKU
|
|
3914
4524
|
* @type {string}
|
|
3915
|
-
* @memberof
|
|
4525
|
+
* @memberof ProductSummaryDTO
|
|
3916
4526
|
*/
|
|
3917
4527
|
'sku'?: string;
|
|
3918
4528
|
/**
|
|
3919
4529
|
* Title
|
|
3920
4530
|
* @type {string}
|
|
3921
|
-
* @memberof
|
|
4531
|
+
* @memberof ProductSummaryDTO
|
|
3922
4532
|
*/
|
|
3923
4533
|
'title'?: string;
|
|
3924
4534
|
/**
|
|
3925
4535
|
* Stock Quantity
|
|
3926
4536
|
* @type {number}
|
|
3927
|
-
* @memberof
|
|
4537
|
+
* @memberof ProductSummaryDTO
|
|
3928
4538
|
*/
|
|
3929
4539
|
'quantity'?: number | null;
|
|
3930
4540
|
/**
|
|
3931
4541
|
* Stock Product
|
|
3932
4542
|
* @type {boolean}
|
|
3933
|
-
* @memberof
|
|
4543
|
+
* @memberof ProductSummaryDTO
|
|
3934
4544
|
*/
|
|
3935
4545
|
'stockProduct'?: boolean;
|
|
3936
4546
|
/**
|
|
3937
4547
|
* Price
|
|
3938
4548
|
* @type {number}
|
|
3939
|
-
* @memberof
|
|
4549
|
+
* @memberof ProductSummaryDTO
|
|
3940
4550
|
*/
|
|
3941
4551
|
'price'?: number | null;
|
|
3942
4552
|
/**
|
|
3943
4553
|
* Carton Size
|
|
3944
4554
|
* @type {number}
|
|
3945
|
-
* @memberof
|
|
4555
|
+
* @memberof ProductSummaryDTO
|
|
3946
4556
|
*/
|
|
3947
4557
|
'cartonSize'?: number | null;
|
|
4558
|
+
/**
|
|
4559
|
+
* RRP Price
|
|
4560
|
+
* @type {number}
|
|
4561
|
+
* @memberof ProductSummaryDTO
|
|
4562
|
+
*/
|
|
4563
|
+
'rrp'?: number | null;
|
|
3948
4564
|
}
|
|
3949
4565
|
/**
|
|
3950
4566
|
* PromoCodesEntity
|
|
@@ -4083,37 +4699,37 @@ export interface PromoItemsEntity {
|
|
|
4083
4699
|
/**
|
|
4084
4700
|
* Provisioning Group
|
|
4085
4701
|
* @export
|
|
4086
|
-
* @interface
|
|
4702
|
+
* @interface ProvisioningModel
|
|
4087
4703
|
*/
|
|
4088
|
-
export interface
|
|
4704
|
+
export interface ProvisioningModel {
|
|
4089
4705
|
/**
|
|
4090
4706
|
* Provisioning Group Name
|
|
4091
4707
|
* @type {string}
|
|
4092
|
-
* @memberof
|
|
4708
|
+
* @memberof ProvisioningModel
|
|
4093
4709
|
*/
|
|
4094
4710
|
'groupName'?: string;
|
|
4095
4711
|
/**
|
|
4096
4712
|
* Provisioning URL (Static Provisioning Server)
|
|
4097
4713
|
* @type {string}
|
|
4098
|
-
* @memberof
|
|
4714
|
+
* @memberof ProvisioningModel
|
|
4099
4715
|
*/
|
|
4100
4716
|
'provisioningUrl'?: string;
|
|
4101
4717
|
/**
|
|
4102
4718
|
* Additional Authentication Secret
|
|
4103
4719
|
* @type {string}
|
|
4104
|
-
* @memberof
|
|
4720
|
+
* @memberof ProvisioningModel
|
|
4105
4721
|
*/
|
|
4106
4722
|
'auth'?: string;
|
|
4107
4723
|
/**
|
|
4108
4724
|
* Provisioning Group ID
|
|
4109
4725
|
* @type {number}
|
|
4110
|
-
* @memberof
|
|
4726
|
+
* @memberof ProvisioningModel
|
|
4111
4727
|
*/
|
|
4112
4728
|
'id'?: number;
|
|
4113
4729
|
/**
|
|
4114
4730
|
* Owner ID
|
|
4115
4731
|
* @type {number}
|
|
4116
|
-
* @memberof
|
|
4732
|
+
* @memberof ProvisioningModel
|
|
4117
4733
|
*/
|
|
4118
4734
|
'customerId'?: number;
|
|
4119
4735
|
}
|
|
@@ -4467,7 +5083,7 @@ export interface ShipmentEntity {
|
|
|
4467
5083
|
* @type {string}
|
|
4468
5084
|
* @memberof ShipmentEntity
|
|
4469
5085
|
*/
|
|
4470
|
-
'
|
|
5086
|
+
'dateShipped'?: string;
|
|
4471
5087
|
/**
|
|
4472
5088
|
* requestDate
|
|
4473
5089
|
* @type {string}
|
|
@@ -4519,39 +5135,188 @@ export interface ShipmentItemEntity {
|
|
|
4519
5135
|
'itemId'?: string;
|
|
4520
5136
|
}
|
|
4521
5137
|
/**
|
|
4522
|
-
*
|
|
5138
|
+
*
|
|
4523
5139
|
* @export
|
|
4524
|
-
* @interface
|
|
5140
|
+
* @interface ShippingConsignmentModel
|
|
4525
5141
|
*/
|
|
4526
|
-
export interface
|
|
4527
|
-
/**
|
|
4528
|
-
* ID
|
|
4529
|
-
* @type {string}
|
|
4530
|
-
* @memberof SipTrunkChangeResponseModel
|
|
4531
|
-
*/
|
|
4532
|
-
'changeId'?: string;
|
|
5142
|
+
export interface ShippingConsignmentModel {
|
|
4533
5143
|
/**
|
|
4534
5144
|
*
|
|
4535
|
-
* @type {
|
|
4536
|
-
* @memberof
|
|
5145
|
+
* @type {ShippingServiceModel}
|
|
5146
|
+
* @memberof ShippingConsignmentModel
|
|
4537
5147
|
*/
|
|
4538
|
-
'
|
|
5148
|
+
'service'?: ShippingServiceModel;
|
|
4539
5149
|
/**
|
|
4540
|
-
*
|
|
5150
|
+
* ID/Number
|
|
4541
5151
|
* @type {string}
|
|
4542
|
-
* @memberof
|
|
5152
|
+
* @memberof ShippingConsignmentModel
|
|
4543
5153
|
*/
|
|
4544
|
-
'
|
|
5154
|
+
'id'?: string;
|
|
4545
5155
|
/**
|
|
4546
|
-
*
|
|
4547
|
-
* @type {
|
|
4548
|
-
* @memberof
|
|
5156
|
+
* Tracking Number
|
|
5157
|
+
* @type {string}
|
|
5158
|
+
* @memberof ShippingConsignmentModel
|
|
4549
5159
|
*/
|
|
4550
|
-
'
|
|
5160
|
+
'trackingNumber'?: string;
|
|
4551
5161
|
/**
|
|
4552
|
-
*
|
|
4553
|
-
* @type {
|
|
4554
|
-
* @memberof
|
|
5162
|
+
* Parcels
|
|
5163
|
+
* @type {Array<string>}
|
|
5164
|
+
* @memberof ShippingConsignmentModel
|
|
5165
|
+
*/
|
|
5166
|
+
'parcelIds'?: Array<string>;
|
|
5167
|
+
}
|
|
5168
|
+
/**
|
|
5169
|
+
* Shipping Information
|
|
5170
|
+
* @export
|
|
5171
|
+
* @interface ShippingInformationDTO
|
|
5172
|
+
*/
|
|
5173
|
+
export interface ShippingInformationDTO {
|
|
5174
|
+
/**
|
|
5175
|
+
* Items
|
|
5176
|
+
* @type {Array<BasicItemDTO>}
|
|
5177
|
+
* @memberof ShippingInformationDTO
|
|
5178
|
+
*/
|
|
5179
|
+
'items'?: Array<BasicItemDTO>;
|
|
5180
|
+
/**
|
|
5181
|
+
* Destination Post Code
|
|
5182
|
+
* @type {string}
|
|
5183
|
+
* @memberof ShippingInformationDTO
|
|
5184
|
+
*/
|
|
5185
|
+
'postalCode'?: string;
|
|
5186
|
+
/**
|
|
5187
|
+
* Destination ISO
|
|
5188
|
+
* @type {string}
|
|
5189
|
+
* @memberof ShippingInformationDTO
|
|
5190
|
+
*/
|
|
5191
|
+
'iso'?: string;
|
|
5192
|
+
}
|
|
5193
|
+
/**
|
|
5194
|
+
* Shipping Service
|
|
5195
|
+
* @export
|
|
5196
|
+
* @interface ShippingServiceDTO
|
|
5197
|
+
*/
|
|
5198
|
+
export interface ShippingServiceDTO {
|
|
5199
|
+
/**
|
|
5200
|
+
* Courier
|
|
5201
|
+
* @type {string}
|
|
5202
|
+
* @memberof ShippingServiceDTO
|
|
5203
|
+
*/
|
|
5204
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5205
|
+
/**
|
|
5206
|
+
* Service Name
|
|
5207
|
+
* @type {string}
|
|
5208
|
+
* @memberof ShippingServiceDTO
|
|
5209
|
+
*/
|
|
5210
|
+
'serviceName'?: string;
|
|
5211
|
+
}
|
|
5212
|
+
|
|
5213
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5214
|
+
Dpd: 'DPD',
|
|
5215
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5216
|
+
Pops: 'POPS'
|
|
5217
|
+
} as const;
|
|
5218
|
+
|
|
5219
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5220
|
+
|
|
5221
|
+
/**
|
|
5222
|
+
* Shipping Service
|
|
5223
|
+
* @export
|
|
5224
|
+
* @interface ShippingServiceModel
|
|
5225
|
+
*/
|
|
5226
|
+
export interface ShippingServiceModel {
|
|
5227
|
+
/**
|
|
5228
|
+
* Courier
|
|
5229
|
+
* @type {string}
|
|
5230
|
+
* @memberof ShippingServiceModel
|
|
5231
|
+
*/
|
|
5232
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5233
|
+
/**
|
|
5234
|
+
* Code
|
|
5235
|
+
* @type {string}
|
|
5236
|
+
* @memberof ShippingServiceModel
|
|
5237
|
+
*/
|
|
5238
|
+
'code'?: string;
|
|
5239
|
+
/**
|
|
5240
|
+
* Name
|
|
5241
|
+
* @type {string}
|
|
5242
|
+
* @memberof ShippingServiceModel
|
|
5243
|
+
*/
|
|
5244
|
+
'name'?: string;
|
|
5245
|
+
/**
|
|
5246
|
+
* Description
|
|
5247
|
+
* @type {string}
|
|
5248
|
+
* @memberof ShippingServiceModel
|
|
5249
|
+
*/
|
|
5250
|
+
'description'?: string;
|
|
5251
|
+
/**
|
|
5252
|
+
* Label
|
|
5253
|
+
* @type {string}
|
|
5254
|
+
* @memberof ShippingServiceModel
|
|
5255
|
+
*/
|
|
5256
|
+
'label'?: string | null;
|
|
5257
|
+
/**
|
|
5258
|
+
* Price
|
|
5259
|
+
* @type {number}
|
|
5260
|
+
* @memberof ShippingServiceModel
|
|
5261
|
+
*/
|
|
5262
|
+
'price'?: number | null;
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5265
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5266
|
+
Dpd: 'DPD',
|
|
5267
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5268
|
+
Pops: 'POPS'
|
|
5269
|
+
} as const;
|
|
5270
|
+
|
|
5271
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5272
|
+
|
|
5273
|
+
/**
|
|
5274
|
+
*
|
|
5275
|
+
* @export
|
|
5276
|
+
* @interface ShippingServicesModel
|
|
5277
|
+
*/
|
|
5278
|
+
export interface ShippingServicesModel {
|
|
5279
|
+
/**
|
|
5280
|
+
* Services
|
|
5281
|
+
* @type {Array<ShippingServiceModel>}
|
|
5282
|
+
* @memberof ShippingServicesModel
|
|
5283
|
+
*/
|
|
5284
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5285
|
+
}
|
|
5286
|
+
/**
|
|
5287
|
+
* Change Response
|
|
5288
|
+
* @export
|
|
5289
|
+
* @interface SipTrunkChangeResponseModel
|
|
5290
|
+
*/
|
|
5291
|
+
export interface SipTrunkChangeResponseModel {
|
|
5292
|
+
/**
|
|
5293
|
+
* ID
|
|
5294
|
+
* @type {string}
|
|
5295
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5296
|
+
*/
|
|
5297
|
+
'changeId'?: string;
|
|
5298
|
+
/**
|
|
5299
|
+
*
|
|
5300
|
+
* @type {SipTrunkEntity}
|
|
5301
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5302
|
+
*/
|
|
5303
|
+
'trunk'?: SipTrunkEntity;
|
|
5304
|
+
/**
|
|
5305
|
+
* Type
|
|
5306
|
+
* @type {string}
|
|
5307
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5308
|
+
*/
|
|
5309
|
+
'type'?: SipTrunkChangeResponseModelTypeEnum;
|
|
5310
|
+
/**
|
|
5311
|
+
* Progress
|
|
5312
|
+
* @type {number}
|
|
5313
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5314
|
+
*/
|
|
5315
|
+
'progress'?: number;
|
|
5316
|
+
/**
|
|
5317
|
+
* Service Provider
|
|
5318
|
+
* @type {number}
|
|
5319
|
+
* @memberof SipTrunkChangeResponseModel
|
|
4555
5320
|
*/
|
|
4556
5321
|
'provider'?: number;
|
|
4557
5322
|
}
|
|
@@ -7357,6 +8122,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7357
8122
|
*/
|
|
7358
8123
|
'secretAccessKey'?: string;
|
|
7359
8124
|
}
|
|
8125
|
+
/**
|
|
8126
|
+
* SBC Data
|
|
8127
|
+
* @export
|
|
8128
|
+
* @interface TcxSbcDTO
|
|
8129
|
+
*/
|
|
8130
|
+
export interface TcxSbcDTO {
|
|
8131
|
+
/**
|
|
8132
|
+
* LAN IP Address
|
|
8133
|
+
* @type {string}
|
|
8134
|
+
* @memberof TcxSbcDTO
|
|
8135
|
+
*/
|
|
8136
|
+
'ipAddress'?: string;
|
|
8137
|
+
/**
|
|
8138
|
+
* LAN Default Gateway
|
|
8139
|
+
* @type {string}
|
|
8140
|
+
* @memberof TcxSbcDTO
|
|
8141
|
+
*/
|
|
8142
|
+
'defaultGateway'?: string;
|
|
8143
|
+
/**
|
|
8144
|
+
* LAN Subnet Mask
|
|
8145
|
+
* @type {string}
|
|
8146
|
+
* @memberof TcxSbcDTO
|
|
8147
|
+
*/
|
|
8148
|
+
'netmask'?: string;
|
|
8149
|
+
/**
|
|
8150
|
+
* DNS
|
|
8151
|
+
* @type {string}
|
|
8152
|
+
* @memberof TcxSbcDTO
|
|
8153
|
+
*/
|
|
8154
|
+
'dns'?: string;
|
|
8155
|
+
/**
|
|
8156
|
+
* 3CX URL
|
|
8157
|
+
* @type {string}
|
|
8158
|
+
* @memberof TcxSbcDTO
|
|
8159
|
+
*/
|
|
8160
|
+
'tcxUrl'?: string;
|
|
8161
|
+
/**
|
|
8162
|
+
* 3CX SBC Key
|
|
8163
|
+
* @type {string}
|
|
8164
|
+
* @memberof TcxSbcDTO
|
|
8165
|
+
*/
|
|
8166
|
+
'tcxKey'?: string;
|
|
8167
|
+
}
|
|
7360
8168
|
/**
|
|
7361
8169
|
* 3CX Wizard SBC
|
|
7362
8170
|
* @export
|
|
@@ -7461,7 +8269,7 @@ export interface TcxSbcEntity {
|
|
|
7461
8269
|
'technicalContact'?: string;
|
|
7462
8270
|
}
|
|
7463
8271
|
/**
|
|
7464
|
-
* 3CX SBC
|
|
8272
|
+
* 3CX Wizard SBC
|
|
7465
8273
|
* @export
|
|
7466
8274
|
* @interface TcxSbcModel
|
|
7467
8275
|
*/
|
|
@@ -8646,6 +9454,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8646
9454
|
|
|
8647
9455
|
|
|
8648
9456
|
|
|
9457
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9459
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9460
|
+
|
|
9461
|
+
return {
|
|
9462
|
+
url: toPathString(localVarUrlObj),
|
|
9463
|
+
options: localVarRequestOptions,
|
|
9464
|
+
};
|
|
9465
|
+
},
|
|
9466
|
+
/**
|
|
9467
|
+
* Get Account Detailed Summary
|
|
9468
|
+
* @summary Get Account Detailed Summary
|
|
9469
|
+
* @param {number} id Customer ID
|
|
9470
|
+
* @param {*} [options] Override http request option.
|
|
9471
|
+
* @throws {RequiredError}
|
|
9472
|
+
*/
|
|
9473
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9474
|
+
// verify required parameter 'id' is not null or undefined
|
|
9475
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9476
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9477
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9480
|
+
let baseOptions;
|
|
9481
|
+
if (configuration) {
|
|
9482
|
+
baseOptions = configuration.baseOptions;
|
|
9483
|
+
}
|
|
9484
|
+
|
|
9485
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9486
|
+
const localVarHeaderParameter = {} as any;
|
|
9487
|
+
const localVarQueryParameter = {} as any;
|
|
9488
|
+
|
|
9489
|
+
|
|
9490
|
+
|
|
8649
9491
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8650
9492
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8651
9493
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8944,6 +9786,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8944
9786
|
options: localVarRequestOptions,
|
|
8945
9787
|
};
|
|
8946
9788
|
},
|
|
9789
|
+
/**
|
|
9790
|
+
* Get Admin Account
|
|
9791
|
+
* @summary Get Admin Account
|
|
9792
|
+
* @param {*} [options] Override http request option.
|
|
9793
|
+
* @throws {RequiredError}
|
|
9794
|
+
*/
|
|
9795
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9796
|
+
const localVarPath = `/admin/me`;
|
|
9797
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9798
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9799
|
+
let baseOptions;
|
|
9800
|
+
if (configuration) {
|
|
9801
|
+
baseOptions = configuration.baseOptions;
|
|
9802
|
+
}
|
|
9803
|
+
|
|
9804
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9805
|
+
const localVarHeaderParameter = {} as any;
|
|
9806
|
+
const localVarQueryParameter = {} as any;
|
|
9807
|
+
|
|
9808
|
+
|
|
9809
|
+
|
|
9810
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9811
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9812
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9813
|
+
|
|
9814
|
+
return {
|
|
9815
|
+
url: toPathString(localVarUrlObj),
|
|
9816
|
+
options: localVarRequestOptions,
|
|
9817
|
+
};
|
|
9818
|
+
},
|
|
8947
9819
|
/**
|
|
8948
9820
|
* Create client credentials
|
|
8949
9821
|
* @summary Create client credentials
|
|
@@ -9193,6 +10065,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9193
10065
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9194
10066
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9195
10067
|
},
|
|
10068
|
+
/**
|
|
10069
|
+
* Get Account Detailed Summary
|
|
10070
|
+
* @summary Get Account Detailed Summary
|
|
10071
|
+
* @param {number} id Customer ID
|
|
10072
|
+
* @param {*} [options] Override http request option.
|
|
10073
|
+
* @throws {RequiredError}
|
|
10074
|
+
*/
|
|
10075
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10076
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10077
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10078
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10079
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10080
|
+
},
|
|
9196
10081
|
/**
|
|
9197
10082
|
* Get Accounts
|
|
9198
10083
|
* @summary Get Accounts
|
|
@@ -9298,6 +10183,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9298
10183
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9299
10184
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9300
10185
|
},
|
|
10186
|
+
/**
|
|
10187
|
+
* Get Admin Account
|
|
10188
|
+
* @summary Get Admin Account
|
|
10189
|
+
* @param {*} [options] Override http request option.
|
|
10190
|
+
* @throws {RequiredError}
|
|
10191
|
+
*/
|
|
10192
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10193
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10194
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10195
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10196
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10197
|
+
},
|
|
9301
10198
|
/**
|
|
9302
10199
|
* Create client credentials
|
|
9303
10200
|
* @summary Create client credentials
|
|
@@ -9415,6 +10312,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9415
10312
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9416
10313
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9417
10314
|
},
|
|
10315
|
+
/**
|
|
10316
|
+
* Get Account Detailed Summary
|
|
10317
|
+
* @summary Get Account Detailed Summary
|
|
10318
|
+
* @param {number} id Customer ID
|
|
10319
|
+
* @param {*} [options] Override http request option.
|
|
10320
|
+
* @throws {RequiredError}
|
|
10321
|
+
*/
|
|
10322
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10323
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10324
|
+
},
|
|
9418
10325
|
/**
|
|
9419
10326
|
* Get Accounts
|
|
9420
10327
|
* @summary Get Accounts
|
|
@@ -9496,6 +10403,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9496
10403
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9497
10404
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9498
10405
|
},
|
|
10406
|
+
/**
|
|
10407
|
+
* Get Admin Account
|
|
10408
|
+
* @summary Get Admin Account
|
|
10409
|
+
* @param {*} [options] Override http request option.
|
|
10410
|
+
* @throws {RequiredError}
|
|
10411
|
+
*/
|
|
10412
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10413
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10414
|
+
},
|
|
9499
10415
|
/**
|
|
9500
10416
|
* Create client credentials
|
|
9501
10417
|
* @summary Create client credentials
|
|
@@ -9606,6 +10522,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9606
10522
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9607
10523
|
}
|
|
9608
10524
|
|
|
10525
|
+
/**
|
|
10526
|
+
* Get Account Detailed Summary
|
|
10527
|
+
* @summary Get Account Detailed Summary
|
|
10528
|
+
* @param {number} id Customer ID
|
|
10529
|
+
* @param {*} [options] Override http request option.
|
|
10530
|
+
* @throws {RequiredError}
|
|
10531
|
+
* @memberof AccountsApi
|
|
10532
|
+
*/
|
|
10533
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10534
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10535
|
+
}
|
|
10536
|
+
|
|
9609
10537
|
/**
|
|
9610
10538
|
* Get Accounts
|
|
9611
10539
|
* @summary Get Accounts
|
|
@@ -9703,6 +10631,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9703
10631
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9704
10632
|
}
|
|
9705
10633
|
|
|
10634
|
+
/**
|
|
10635
|
+
* Get Admin Account
|
|
10636
|
+
* @summary Get Admin Account
|
|
10637
|
+
* @param {*} [options] Override http request option.
|
|
10638
|
+
* @throws {RequiredError}
|
|
10639
|
+
* @memberof AccountsApi
|
|
10640
|
+
*/
|
|
10641
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10642
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10643
|
+
}
|
|
10644
|
+
|
|
9706
10645
|
/**
|
|
9707
10646
|
* Create client credentials
|
|
9708
10647
|
* @summary Create client credentials
|
|
@@ -9803,43 +10742,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9803
10742
|
|
|
9804
10743
|
|
|
9805
10744
|
|
|
9806
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9807
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9808
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9809
|
-
|
|
9810
|
-
return {
|
|
9811
|
-
url: toPathString(localVarUrlObj),
|
|
9812
|
-
options: localVarRequestOptions,
|
|
9813
|
-
};
|
|
9814
|
-
},
|
|
9815
|
-
/**
|
|
9816
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9817
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9818
|
-
* @param {string} password Desired 3CX web access password
|
|
9819
|
-
* @param {*} [options] Override http request option.
|
|
9820
|
-
* @throws {RequiredError}
|
|
9821
|
-
*/
|
|
9822
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9823
|
-
// verify required parameter 'password' is not null or undefined
|
|
9824
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
9825
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
9826
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9827
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9828
|
-
let baseOptions;
|
|
9829
|
-
if (configuration) {
|
|
9830
|
-
baseOptions = configuration.baseOptions;
|
|
9831
|
-
}
|
|
9832
|
-
|
|
9833
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9834
|
-
const localVarHeaderParameter = {} as any;
|
|
9835
|
-
const localVarQueryParameter = {} as any;
|
|
9836
|
-
|
|
9837
|
-
if (password !== undefined) {
|
|
9838
|
-
localVarQueryParameter['password'] = password;
|
|
9839
|
-
}
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
10745
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9844
10746
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9845
10747
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9906,19 +10808,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
9906
10808
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
9907
10809
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9908
10810
|
},
|
|
9909
|
-
/**
|
|
9910
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9911
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9912
|
-
* @param {string} password Desired 3CX web access password
|
|
9913
|
-
* @param {*} [options] Override http request option.
|
|
9914
|
-
* @throws {RequiredError}
|
|
9915
|
-
*/
|
|
9916
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
9917
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
9918
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9919
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
9920
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9921
|
-
},
|
|
9922
10811
|
/**
|
|
9923
10812
|
* Get Bulk 3CX Licence Details
|
|
9924
10813
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -9952,16 +10841,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
9952
10841
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
9953
10842
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
9954
10843
|
},
|
|
9955
|
-
/**
|
|
9956
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9957
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9958
|
-
* @param {string} password Desired 3CX web access password
|
|
9959
|
-
* @param {*} [options] Override http request option.
|
|
9960
|
-
* @throws {RequiredError}
|
|
9961
|
-
*/
|
|
9962
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
9963
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
9964
|
-
},
|
|
9965
10844
|
/**
|
|
9966
10845
|
* Get Bulk 3CX Licence Details
|
|
9967
10846
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -9994,18 +10873,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
9994
10873
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
9995
10874
|
}
|
|
9996
10875
|
|
|
9997
|
-
/**
|
|
9998
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9999
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10000
|
-
* @param {string} password Desired 3CX web access password
|
|
10001
|
-
* @param {*} [options] Override http request option.
|
|
10002
|
-
* @throws {RequiredError}
|
|
10003
|
-
* @memberof Class3CXApi
|
|
10004
|
-
*/
|
|
10005
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
10006
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
10007
|
-
}
|
|
10008
|
-
|
|
10009
10876
|
/**
|
|
10010
10877
|
* Get Bulk 3CX Licence Details
|
|
10011
10878
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -15162,13 +16029,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15162
16029
|
return {
|
|
15163
16030
|
/**
|
|
15164
16031
|
* Delete Orders
|
|
16032
|
+
* @summary Delete Orders
|
|
15165
16033
|
* @param {number} id Order ID
|
|
15166
16034
|
* @param {*} [options] Override http request option.
|
|
15167
16035
|
* @throws {RequiredError}
|
|
15168
16036
|
*/
|
|
15169
|
-
|
|
16037
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15170
16038
|
// verify required parameter 'id' is not null or undefined
|
|
15171
|
-
assertParamExists('
|
|
16039
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15172
16040
|
const localVarPath = `/orders/{id}`
|
|
15173
16041
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15174
16042
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15184,6 +16052,39 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15184
16052
|
|
|
15185
16053
|
|
|
15186
16054
|
|
|
16055
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16056
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16057
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16058
|
+
|
|
16059
|
+
return {
|
|
16060
|
+
url: toPathString(localVarUrlObj),
|
|
16061
|
+
options: localVarRequestOptions,
|
|
16062
|
+
};
|
|
16063
|
+
},
|
|
16064
|
+
/**
|
|
16065
|
+
* Get Editable Order
|
|
16066
|
+
* @param {number} id Order ID
|
|
16067
|
+
* @param {*} [options] Override http request option.
|
|
16068
|
+
* @throws {RequiredError}
|
|
16069
|
+
*/
|
|
16070
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16071
|
+
// verify required parameter 'id' is not null or undefined
|
|
16072
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16073
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16074
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16076
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16077
|
+
let baseOptions;
|
|
16078
|
+
if (configuration) {
|
|
16079
|
+
baseOptions = configuration.baseOptions;
|
|
16080
|
+
}
|
|
16081
|
+
|
|
16082
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16083
|
+
const localVarHeaderParameter = {} as any;
|
|
16084
|
+
const localVarQueryParameter = {} as any;
|
|
16085
|
+
|
|
16086
|
+
|
|
16087
|
+
|
|
15187
16088
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15188
16089
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15189
16090
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15253,6 +16154,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15253
16154
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15254
16155
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15255
16156
|
|
|
16157
|
+
return {
|
|
16158
|
+
url: toPathString(localVarUrlObj),
|
|
16159
|
+
options: localVarRequestOptions,
|
|
16160
|
+
};
|
|
16161
|
+
},
|
|
16162
|
+
/**
|
|
16163
|
+
* Create An Order (Admin)
|
|
16164
|
+
* @summary Create An Order (Admin)
|
|
16165
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16166
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16167
|
+
* @param {*} [options] Override http request option.
|
|
16168
|
+
* @throws {RequiredError}
|
|
16169
|
+
*/
|
|
16170
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16171
|
+
const localVarPath = `/admin/orders`;
|
|
16172
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16173
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16174
|
+
let baseOptions;
|
|
16175
|
+
if (configuration) {
|
|
16176
|
+
baseOptions = configuration.baseOptions;
|
|
16177
|
+
}
|
|
16178
|
+
|
|
16179
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16180
|
+
const localVarHeaderParameter = {} as any;
|
|
16181
|
+
const localVarQueryParameter = {} as any;
|
|
16182
|
+
|
|
16183
|
+
if (readonly !== undefined) {
|
|
16184
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16185
|
+
}
|
|
16186
|
+
|
|
16187
|
+
|
|
16188
|
+
|
|
16189
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16190
|
+
|
|
16191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16194
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16195
|
+
|
|
16196
|
+
return {
|
|
16197
|
+
url: toPathString(localVarUrlObj),
|
|
16198
|
+
options: localVarRequestOptions,
|
|
16199
|
+
};
|
|
16200
|
+
},
|
|
16201
|
+
/**
|
|
16202
|
+
* Create An Order
|
|
16203
|
+
* @summary Create An Order
|
|
16204
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16205
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16206
|
+
* @param {*} [options] Override http request option.
|
|
16207
|
+
* @throws {RequiredError}
|
|
16208
|
+
*/
|
|
16209
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16210
|
+
const localVarPath = `/orders`;
|
|
16211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16213
|
+
let baseOptions;
|
|
16214
|
+
if (configuration) {
|
|
16215
|
+
baseOptions = configuration.baseOptions;
|
|
16216
|
+
}
|
|
16217
|
+
|
|
16218
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16219
|
+
const localVarHeaderParameter = {} as any;
|
|
16220
|
+
const localVarQueryParameter = {} as any;
|
|
16221
|
+
|
|
16222
|
+
if (readonly !== undefined) {
|
|
16223
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16224
|
+
}
|
|
16225
|
+
|
|
16226
|
+
|
|
16227
|
+
|
|
16228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16229
|
+
|
|
16230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16232
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16233
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16234
|
+
|
|
16235
|
+
return {
|
|
16236
|
+
url: toPathString(localVarUrlObj),
|
|
16237
|
+
options: localVarRequestOptions,
|
|
16238
|
+
};
|
|
16239
|
+
},
|
|
16240
|
+
/**
|
|
16241
|
+
* Update An Order (Admin)
|
|
16242
|
+
* @summary Update An Order (Admin)
|
|
16243
|
+
* @param {number} id Order ID
|
|
16244
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16245
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16246
|
+
* @param {*} [options] Override http request option.
|
|
16247
|
+
* @throws {RequiredError}
|
|
16248
|
+
*/
|
|
16249
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16250
|
+
// verify required parameter 'id' is not null or undefined
|
|
16251
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16252
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16253
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16255
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16256
|
+
let baseOptions;
|
|
16257
|
+
if (configuration) {
|
|
16258
|
+
baseOptions = configuration.baseOptions;
|
|
16259
|
+
}
|
|
16260
|
+
|
|
16261
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16262
|
+
const localVarHeaderParameter = {} as any;
|
|
16263
|
+
const localVarQueryParameter = {} as any;
|
|
16264
|
+
|
|
16265
|
+
if (readonly !== undefined) {
|
|
16266
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16267
|
+
}
|
|
16268
|
+
|
|
16269
|
+
|
|
16270
|
+
|
|
16271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16272
|
+
|
|
16273
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16274
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16275
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16276
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16277
|
+
|
|
16278
|
+
return {
|
|
16279
|
+
url: toPathString(localVarUrlObj),
|
|
16280
|
+
options: localVarRequestOptions,
|
|
16281
|
+
};
|
|
16282
|
+
},
|
|
16283
|
+
/**
|
|
16284
|
+
* Update An Order
|
|
16285
|
+
* @summary Update An Order
|
|
16286
|
+
* @param {number} id Order ID
|
|
16287
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16288
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16289
|
+
* @param {*} [options] Override http request option.
|
|
16290
|
+
* @throws {RequiredError}
|
|
16291
|
+
*/
|
|
16292
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16293
|
+
// verify required parameter 'id' is not null or undefined
|
|
16294
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16295
|
+
const localVarPath = `/orders/{id}`
|
|
16296
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16299
|
+
let baseOptions;
|
|
16300
|
+
if (configuration) {
|
|
16301
|
+
baseOptions = configuration.baseOptions;
|
|
16302
|
+
}
|
|
16303
|
+
|
|
16304
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16305
|
+
const localVarHeaderParameter = {} as any;
|
|
16306
|
+
const localVarQueryParameter = {} as any;
|
|
16307
|
+
|
|
16308
|
+
if (readonly !== undefined) {
|
|
16309
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16310
|
+
}
|
|
16311
|
+
|
|
16312
|
+
|
|
16313
|
+
|
|
16314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16315
|
+
|
|
16316
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16317
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16318
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16319
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16320
|
+
|
|
15256
16321
|
return {
|
|
15257
16322
|
url: toPathString(localVarUrlObj),
|
|
15258
16323
|
options: localVarRequestOptions,
|
|
@@ -15270,14 +16335,27 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15270
16335
|
return {
|
|
15271
16336
|
/**
|
|
15272
16337
|
* Delete Orders
|
|
16338
|
+
* @summary Delete Orders
|
|
16339
|
+
* @param {number} id Order ID
|
|
16340
|
+
* @param {*} [options] Override http request option.
|
|
16341
|
+
* @throws {RequiredError}
|
|
16342
|
+
*/
|
|
16343
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
16345
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16346
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16348
|
+
},
|
|
16349
|
+
/**
|
|
16350
|
+
* Get Editable Order
|
|
15273
16351
|
* @param {number} id Order ID
|
|
15274
16352
|
* @param {*} [options] Override http request option.
|
|
15275
16353
|
* @throws {RequiredError}
|
|
15276
16354
|
*/
|
|
15277
|
-
async
|
|
15278
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16355
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
|
|
16356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
15279
16357
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15280
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
16358
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15281
16359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15282
16360
|
},
|
|
15283
16361
|
/**
|
|
@@ -15299,6 +16377,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15299
16377
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15300
16378
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15301
16379
|
},
|
|
16380
|
+
/**
|
|
16381
|
+
* Create An Order (Admin)
|
|
16382
|
+
* @summary Create An Order (Admin)
|
|
16383
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16384
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16385
|
+
* @param {*} [options] Override http request option.
|
|
16386
|
+
* @throws {RequiredError}
|
|
16387
|
+
*/
|
|
16388
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16390
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16391
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16392
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16393
|
+
},
|
|
16394
|
+
/**
|
|
16395
|
+
* Create An Order
|
|
16396
|
+
* @summary Create An Order
|
|
16397
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16398
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16399
|
+
* @param {*} [options] Override http request option.
|
|
16400
|
+
* @throws {RequiredError}
|
|
16401
|
+
*/
|
|
16402
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16404
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16405
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16406
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16407
|
+
},
|
|
16408
|
+
/**
|
|
16409
|
+
* Update An Order (Admin)
|
|
16410
|
+
* @summary Update An Order (Admin)
|
|
16411
|
+
* @param {number} id Order ID
|
|
16412
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16413
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16414
|
+
* @param {*} [options] Override http request option.
|
|
16415
|
+
* @throws {RequiredError}
|
|
16416
|
+
*/
|
|
16417
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16418
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16419
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16420
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16421
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16422
|
+
},
|
|
16423
|
+
/**
|
|
16424
|
+
* Update An Order
|
|
16425
|
+
* @summary Update An Order
|
|
16426
|
+
* @param {number} id Order ID
|
|
16427
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16428
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16429
|
+
* @param {*} [options] Override http request option.
|
|
16430
|
+
* @throws {RequiredError}
|
|
16431
|
+
*/
|
|
16432
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16434
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16435
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16436
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16437
|
+
},
|
|
15302
16438
|
}
|
|
15303
16439
|
};
|
|
15304
16440
|
|
|
@@ -15311,12 +16447,22 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15311
16447
|
return {
|
|
15312
16448
|
/**
|
|
15313
16449
|
* Delete Orders
|
|
16450
|
+
* @summary Delete Orders
|
|
16451
|
+
* @param {number} id Order ID
|
|
16452
|
+
* @param {*} [options] Override http request option.
|
|
16453
|
+
* @throws {RequiredError}
|
|
16454
|
+
*/
|
|
16455
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16456
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
16457
|
+
},
|
|
16458
|
+
/**
|
|
16459
|
+
* Get Editable Order
|
|
15314
16460
|
* @param {number} id Order ID
|
|
15315
16461
|
* @param {*} [options] Override http request option.
|
|
15316
16462
|
* @throws {RequiredError}
|
|
15317
16463
|
*/
|
|
15318
|
-
|
|
15319
|
-
return localVarFp.
|
|
16464
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
|
|
16465
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
15320
16466
|
},
|
|
15321
16467
|
/**
|
|
15322
16468
|
* Get Orders
|
|
@@ -15334,6 +16480,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15334
16480
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15335
16481
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15336
16482
|
},
|
|
16483
|
+
/**
|
|
16484
|
+
* Create An Order (Admin)
|
|
16485
|
+
* @summary Create An Order (Admin)
|
|
16486
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16487
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16488
|
+
* @param {*} [options] Override http request option.
|
|
16489
|
+
* @throws {RequiredError}
|
|
16490
|
+
*/
|
|
16491
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16492
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16493
|
+
},
|
|
16494
|
+
/**
|
|
16495
|
+
* Create An Order
|
|
16496
|
+
* @summary Create An Order
|
|
16497
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16498
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16499
|
+
* @param {*} [options] Override http request option.
|
|
16500
|
+
* @throws {RequiredError}
|
|
16501
|
+
*/
|
|
16502
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16503
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16504
|
+
},
|
|
16505
|
+
/**
|
|
16506
|
+
* Update An Order (Admin)
|
|
16507
|
+
* @summary Update An Order (Admin)
|
|
16508
|
+
* @param {number} id Order ID
|
|
16509
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16510
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16511
|
+
* @param {*} [options] Override http request option.
|
|
16512
|
+
* @throws {RequiredError}
|
|
16513
|
+
*/
|
|
16514
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16515
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16516
|
+
},
|
|
16517
|
+
/**
|
|
16518
|
+
* Update An Order
|
|
16519
|
+
* @summary Update An Order
|
|
16520
|
+
* @param {number} id Order ID
|
|
16521
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16522
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16523
|
+
* @param {*} [options] Override http request option.
|
|
16524
|
+
* @throws {RequiredError}
|
|
16525
|
+
*/
|
|
16526
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16527
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16528
|
+
},
|
|
15337
16529
|
};
|
|
15338
16530
|
};
|
|
15339
16531
|
|
|
@@ -15346,13 +16538,25 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15346
16538
|
export class OrdersApi extends BaseAPI {
|
|
15347
16539
|
/**
|
|
15348
16540
|
* Delete Orders
|
|
16541
|
+
* @summary Delete Orders
|
|
15349
16542
|
* @param {number} id Order ID
|
|
15350
16543
|
* @param {*} [options] Override http request option.
|
|
15351
16544
|
* @throws {RequiredError}
|
|
15352
16545
|
* @memberof OrdersApi
|
|
15353
16546
|
*/
|
|
15354
|
-
public
|
|
15355
|
-
return OrdersApiFp(this.configuration).
|
|
16547
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16548
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16549
|
+
}
|
|
16550
|
+
|
|
16551
|
+
/**
|
|
16552
|
+
* Get Editable Order
|
|
16553
|
+
* @param {number} id Order ID
|
|
16554
|
+
* @param {*} [options] Override http request option.
|
|
16555
|
+
* @throws {RequiredError}
|
|
16556
|
+
* @memberof OrdersApi
|
|
16557
|
+
*/
|
|
16558
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16559
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15356
16560
|
}
|
|
15357
16561
|
|
|
15358
16562
|
/**
|
|
@@ -15372,6 +16576,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15372
16576
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15373
16577
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15374
16578
|
}
|
|
16579
|
+
|
|
16580
|
+
/**
|
|
16581
|
+
* Create An Order (Admin)
|
|
16582
|
+
* @summary Create An Order (Admin)
|
|
16583
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16584
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16585
|
+
* @param {*} [options] Override http request option.
|
|
16586
|
+
* @throws {RequiredError}
|
|
16587
|
+
* @memberof OrdersApi
|
|
16588
|
+
*/
|
|
16589
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16590
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16591
|
+
}
|
|
16592
|
+
|
|
16593
|
+
/**
|
|
16594
|
+
* Create An Order
|
|
16595
|
+
* @summary Create An Order
|
|
16596
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16597
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16598
|
+
* @param {*} [options] Override http request option.
|
|
16599
|
+
* @throws {RequiredError}
|
|
16600
|
+
* @memberof OrdersApi
|
|
16601
|
+
*/
|
|
16602
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16603
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16604
|
+
}
|
|
16605
|
+
|
|
16606
|
+
/**
|
|
16607
|
+
* Update An Order (Admin)
|
|
16608
|
+
* @summary Update An Order (Admin)
|
|
16609
|
+
* @param {number} id Order ID
|
|
16610
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16611
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16612
|
+
* @param {*} [options] Override http request option.
|
|
16613
|
+
* @throws {RequiredError}
|
|
16614
|
+
* @memberof OrdersApi
|
|
16615
|
+
*/
|
|
16616
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16617
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16618
|
+
}
|
|
16619
|
+
|
|
16620
|
+
/**
|
|
16621
|
+
* Update An Order
|
|
16622
|
+
* @summary Update An Order
|
|
16623
|
+
* @param {number} id Order ID
|
|
16624
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16625
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16626
|
+
* @param {*} [options] Override http request option.
|
|
16627
|
+
* @throws {RequiredError}
|
|
16628
|
+
* @memberof OrdersApi
|
|
16629
|
+
*/
|
|
16630
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16631
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16632
|
+
}
|
|
15375
16633
|
}
|
|
15376
16634
|
|
|
15377
16635
|
/**
|
|
@@ -15757,8 +17015,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15757
17015
|
* @param {*} [options] Override http request option.
|
|
15758
17016
|
* @throws {RequiredError}
|
|
15759
17017
|
*/
|
|
15760
|
-
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15761
|
-
const localVarPath = `/products/attributes`;
|
|
17018
|
+
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17019
|
+
const localVarPath = `/products/attributes`;
|
|
17020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17022
|
+
let baseOptions;
|
|
17023
|
+
if (configuration) {
|
|
17024
|
+
baseOptions = configuration.baseOptions;
|
|
17025
|
+
}
|
|
17026
|
+
|
|
17027
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17028
|
+
const localVarHeaderParameter = {} as any;
|
|
17029
|
+
const localVarQueryParameter = {} as any;
|
|
17030
|
+
|
|
17031
|
+
|
|
17032
|
+
|
|
17033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17035
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17036
|
+
|
|
17037
|
+
return {
|
|
17038
|
+
url: toPathString(localVarUrlObj),
|
|
17039
|
+
options: localVarRequestOptions,
|
|
17040
|
+
};
|
|
17041
|
+
},
|
|
17042
|
+
/**
|
|
17043
|
+
* Get Current Stock & Pricing
|
|
17044
|
+
* @summary Get Current Stock & Pricing
|
|
17045
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
17046
|
+
* @param {*} [options] Override http request option.
|
|
17047
|
+
* @deprecated
|
|
17048
|
+
* @throws {RequiredError}
|
|
17049
|
+
*/
|
|
17050
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17051
|
+
// verify required parameter 'format' is not null or undefined
|
|
17052
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17053
|
+
const localVarPath = `/products/stock/legacy`;
|
|
15762
17054
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15763
17055
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15764
17056
|
let baseOptions;
|
|
@@ -15770,6 +17062,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15770
17062
|
const localVarHeaderParameter = {} as any;
|
|
15771
17063
|
const localVarQueryParameter = {} as any;
|
|
15772
17064
|
|
|
17065
|
+
if (format !== undefined) {
|
|
17066
|
+
localVarQueryParameter['format'] = format;
|
|
17067
|
+
}
|
|
17068
|
+
|
|
15773
17069
|
|
|
15774
17070
|
|
|
15775
17071
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15782,13 +17078,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15782
17078
|
};
|
|
15783
17079
|
},
|
|
15784
17080
|
/**
|
|
15785
|
-
* Get
|
|
15786
|
-
* @summary Get
|
|
17081
|
+
* Get Products
|
|
17082
|
+
* @summary Get Products
|
|
15787
17083
|
* @param {*} [options] Override http request option.
|
|
15788
17084
|
* @throws {RequiredError}
|
|
15789
17085
|
*/
|
|
15790
|
-
|
|
15791
|
-
const localVarPath = `/products
|
|
17086
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17087
|
+
const localVarPath = `/products`;
|
|
15792
17088
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15793
17089
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15794
17090
|
let baseOptions;
|
|
@@ -15814,15 +17110,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15814
17110
|
/**
|
|
15815
17111
|
* Get Current Stock & Pricing
|
|
15816
17112
|
* @summary Get Current Stock & Pricing
|
|
15817
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
15818
17113
|
* @param {*} [options] Override http request option.
|
|
15819
|
-
* @deprecated
|
|
15820
17114
|
* @throws {RequiredError}
|
|
15821
17115
|
*/
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
15825
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17116
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17117
|
+
const localVarPath = `/products/stock`;
|
|
15826
17118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15827
17119
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15828
17120
|
let baseOptions;
|
|
@@ -15834,10 +17126,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15834
17126
|
const localVarHeaderParameter = {} as any;
|
|
15835
17127
|
const localVarQueryParameter = {} as any;
|
|
15836
17128
|
|
|
15837
|
-
|
|
15838
|
-
|
|
17129
|
+
|
|
17130
|
+
|
|
17131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17134
|
+
|
|
17135
|
+
return {
|
|
17136
|
+
url: toPathString(localVarUrlObj),
|
|
17137
|
+
options: localVarRequestOptions,
|
|
17138
|
+
};
|
|
17139
|
+
},
|
|
17140
|
+
/**
|
|
17141
|
+
* Get 3CX Templates
|
|
17142
|
+
* @summary Get 3CX Templates
|
|
17143
|
+
* @param {*} [options] Override http request option.
|
|
17144
|
+
* @throws {RequiredError}
|
|
17145
|
+
*/
|
|
17146
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17147
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17150
|
+
let baseOptions;
|
|
17151
|
+
if (configuration) {
|
|
17152
|
+
baseOptions = configuration.baseOptions;
|
|
15839
17153
|
}
|
|
15840
17154
|
|
|
17155
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17156
|
+
const localVarHeaderParameter = {} as any;
|
|
17157
|
+
const localVarQueryParameter = {} as any;
|
|
17158
|
+
|
|
15841
17159
|
|
|
15842
17160
|
|
|
15843
17161
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15850,15 +17168,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15850
17168
|
};
|
|
15851
17169
|
},
|
|
15852
17170
|
/**
|
|
15853
|
-
*
|
|
15854
|
-
* @summary
|
|
17171
|
+
* Search Products
|
|
17172
|
+
* @summary Search Products
|
|
15855
17173
|
* @param {number} [pageSize] Number Of Results
|
|
15856
17174
|
* @param {number} [page] Page Number
|
|
15857
17175
|
* @param {string} [search] Search
|
|
15858
17176
|
* @param {*} [options] Override http request option.
|
|
15859
17177
|
* @throws {RequiredError}
|
|
15860
17178
|
*/
|
|
15861
|
-
|
|
17179
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15862
17180
|
const localVarPath = `/products/search`;
|
|
15863
17181
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15864
17182
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15895,13 +17213,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15895
17213
|
};
|
|
15896
17214
|
},
|
|
15897
17215
|
/**
|
|
15898
|
-
* Get
|
|
15899
|
-
* @summary Get
|
|
17216
|
+
* Get Product
|
|
17217
|
+
* @summary Get Product
|
|
17218
|
+
* @param {string} sku Product SKU
|
|
17219
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15900
17220
|
* @param {*} [options] Override http request option.
|
|
15901
17221
|
* @throws {RequiredError}
|
|
15902
17222
|
*/
|
|
15903
|
-
|
|
15904
|
-
|
|
17223
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17224
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17225
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17226
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17227
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17228
|
+
const localVarPath = `/products/{sku}`
|
|
17229
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
15905
17230
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15906
17231
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15907
17232
|
let baseOptions;
|
|
@@ -15909,15 +17234,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15909
17234
|
baseOptions = configuration.baseOptions;
|
|
15910
17235
|
}
|
|
15911
17236
|
|
|
15912
|
-
const localVarRequestOptions = { method: '
|
|
17237
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15913
17238
|
const localVarHeaderParameter = {} as any;
|
|
15914
17239
|
const localVarQueryParameter = {} as any;
|
|
15915
17240
|
|
|
15916
17241
|
|
|
15917
17242
|
|
|
17243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17244
|
+
|
|
15918
17245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15919
17246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15920
17247
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17248
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
15921
17249
|
|
|
15922
17250
|
return {
|
|
15923
17251
|
url: toPathString(localVarUrlObj),
|
|
@@ -15925,13 +17253,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15925
17253
|
};
|
|
15926
17254
|
},
|
|
15927
17255
|
/**
|
|
15928
|
-
* Get
|
|
15929
|
-
* @summary Get
|
|
17256
|
+
* Get Product For Customer
|
|
17257
|
+
* @summary Get Product For Customer
|
|
17258
|
+
* @param {number} customerId Customer ID
|
|
17259
|
+
* @param {string} sku Product SKU
|
|
17260
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15930
17261
|
* @param {*} [options] Override http request option.
|
|
15931
17262
|
* @throws {RequiredError}
|
|
15932
17263
|
*/
|
|
15933
|
-
|
|
15934
|
-
|
|
17264
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17265
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17266
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17267
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17268
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17269
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17270
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17271
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17272
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
15935
17273
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15936
17274
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15937
17275
|
let baseOptions;
|
|
@@ -15939,15 +17277,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15939
17277
|
baseOptions = configuration.baseOptions;
|
|
15940
17278
|
}
|
|
15941
17279
|
|
|
15942
|
-
const localVarRequestOptions = { method: '
|
|
17280
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15943
17281
|
const localVarHeaderParameter = {} as any;
|
|
15944
17282
|
const localVarQueryParameter = {} as any;
|
|
15945
17283
|
|
|
17284
|
+
if (customerId !== undefined) {
|
|
17285
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17286
|
+
}
|
|
17287
|
+
|
|
15946
17288
|
|
|
15947
17289
|
|
|
17290
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17291
|
+
|
|
15948
17292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15949
17293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15950
17294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
15951
17296
|
|
|
15952
17297
|
return {
|
|
15953
17298
|
url: toPathString(localVarUrlObj),
|
|
@@ -15976,18 +17321,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
15976
17321
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
15977
17322
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15978
17323
|
},
|
|
15979
|
-
/**
|
|
15980
|
-
* Get Customer Price Lists
|
|
15981
|
-
* @summary Get Customer Price Lists
|
|
15982
|
-
* @param {*} [options] Override http request option.
|
|
15983
|
-
* @throws {RequiredError}
|
|
15984
|
-
*/
|
|
15985
|
-
async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
|
|
15986
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
|
|
15987
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15988
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
|
|
15989
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15990
|
-
},
|
|
15991
17324
|
/**
|
|
15992
17325
|
* Get Current Stock & Pricing
|
|
15993
17326
|
* @summary Get Current Stock & Pricing
|
|
@@ -16005,14 +17338,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16005
17338
|
/**
|
|
16006
17339
|
* Get Products
|
|
16007
17340
|
* @summary Get Products
|
|
16008
|
-
* @param {number} [pageSize] Number Of Results
|
|
16009
|
-
* @param {number} [page] Page Number
|
|
16010
|
-
* @param {string} [search] Search
|
|
16011
17341
|
* @param {*} [options] Override http request option.
|
|
16012
17342
|
* @throws {RequiredError}
|
|
16013
17343
|
*/
|
|
16014
|
-
async getGetProducts(
|
|
16015
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17344
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16016
17346
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16017
17347
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16018
17348
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16041,6 +17371,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16041
17371
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16042
17372
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16043
17373
|
},
|
|
17374
|
+
/**
|
|
17375
|
+
* Search Products
|
|
17376
|
+
* @summary Search Products
|
|
17377
|
+
* @param {number} [pageSize] Number Of Results
|
|
17378
|
+
* @param {number} [page] Page Number
|
|
17379
|
+
* @param {string} [search] Search
|
|
17380
|
+
* @param {*} [options] Override http request option.
|
|
17381
|
+
* @throws {RequiredError}
|
|
17382
|
+
*/
|
|
17383
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17384
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17385
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17386
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17387
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17388
|
+
},
|
|
17389
|
+
/**
|
|
17390
|
+
* Get Product
|
|
17391
|
+
* @summary Get Product
|
|
17392
|
+
* @param {string} sku Product SKU
|
|
17393
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17394
|
+
* @param {*} [options] Override http request option.
|
|
17395
|
+
* @throws {RequiredError}
|
|
17396
|
+
*/
|
|
17397
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17399
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17400
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17401
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17402
|
+
},
|
|
17403
|
+
/**
|
|
17404
|
+
* Get Product For Customer
|
|
17405
|
+
* @summary Get Product For Customer
|
|
17406
|
+
* @param {number} customerId Customer ID
|
|
17407
|
+
* @param {string} sku Product SKU
|
|
17408
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17409
|
+
* @param {*} [options] Override http request option.
|
|
17410
|
+
* @throws {RequiredError}
|
|
17411
|
+
*/
|
|
17412
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17413
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17414
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17415
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17416
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17417
|
+
},
|
|
16044
17418
|
}
|
|
16045
17419
|
};
|
|
16046
17420
|
|
|
@@ -16060,15 +17434,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16060
17434
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16061
17435
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16062
17436
|
},
|
|
16063
|
-
/**
|
|
16064
|
-
* Get Customer Price Lists
|
|
16065
|
-
* @summary Get Customer Price Lists
|
|
16066
|
-
* @param {*} [options] Override http request option.
|
|
16067
|
-
* @throws {RequiredError}
|
|
16068
|
-
*/
|
|
16069
|
-
getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
|
|
16070
|
-
return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
|
|
16071
|
-
},
|
|
16072
17437
|
/**
|
|
16073
17438
|
* Get Current Stock & Pricing
|
|
16074
17439
|
* @summary Get Current Stock & Pricing
|
|
@@ -16083,14 +17448,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16083
17448
|
/**
|
|
16084
17449
|
* Get Products
|
|
16085
17450
|
* @summary Get Products
|
|
16086
|
-
* @param {number} [pageSize] Number Of Results
|
|
16087
|
-
* @param {number} [page] Page Number
|
|
16088
|
-
* @param {string} [search] Search
|
|
16089
17451
|
* @param {*} [options] Override http request option.
|
|
16090
17452
|
* @throws {RequiredError}
|
|
16091
17453
|
*/
|
|
16092
|
-
getGetProducts(
|
|
16093
|
-
return localVarFp.getGetProducts(
|
|
17454
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17455
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16094
17456
|
},
|
|
16095
17457
|
/**
|
|
16096
17458
|
* Get Current Stock & Pricing
|
|
@@ -16110,6 +17472,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16110
17472
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16111
17473
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16112
17474
|
},
|
|
17475
|
+
/**
|
|
17476
|
+
* Search Products
|
|
17477
|
+
* @summary Search Products
|
|
17478
|
+
* @param {number} [pageSize] Number Of Results
|
|
17479
|
+
* @param {number} [page] Page Number
|
|
17480
|
+
* @param {string} [search] Search
|
|
17481
|
+
* @param {*} [options] Override http request option.
|
|
17482
|
+
* @throws {RequiredError}
|
|
17483
|
+
*/
|
|
17484
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17485
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17486
|
+
},
|
|
17487
|
+
/**
|
|
17488
|
+
* Get Product
|
|
17489
|
+
* @summary Get Product
|
|
17490
|
+
* @param {string} sku Product SKU
|
|
17491
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17492
|
+
* @param {*} [options] Override http request option.
|
|
17493
|
+
* @throws {RequiredError}
|
|
17494
|
+
*/
|
|
17495
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17496
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17497
|
+
},
|
|
17498
|
+
/**
|
|
17499
|
+
* Get Product For Customer
|
|
17500
|
+
* @summary Get Product For Customer
|
|
17501
|
+
* @param {number} customerId Customer ID
|
|
17502
|
+
* @param {string} sku Product SKU
|
|
17503
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17504
|
+
* @param {*} [options] Override http request option.
|
|
17505
|
+
* @throws {RequiredError}
|
|
17506
|
+
*/
|
|
17507
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17508
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17509
|
+
},
|
|
16113
17510
|
};
|
|
16114
17511
|
};
|
|
16115
17512
|
|
|
@@ -16131,17 +17528,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16131
17528
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16132
17529
|
}
|
|
16133
17530
|
|
|
16134
|
-
/**
|
|
16135
|
-
* Get Customer Price Lists
|
|
16136
|
-
* @summary Get Customer Price Lists
|
|
16137
|
-
* @param {*} [options] Override http request option.
|
|
16138
|
-
* @throws {RequiredError}
|
|
16139
|
-
* @memberof ProductsApi
|
|
16140
|
-
*/
|
|
16141
|
-
public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
|
|
16142
|
-
return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
|
|
16143
|
-
}
|
|
16144
|
-
|
|
16145
17531
|
/**
|
|
16146
17532
|
* Get Current Stock & Pricing
|
|
16147
17533
|
* @summary Get Current Stock & Pricing
|
|
@@ -16158,15 +17544,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16158
17544
|
/**
|
|
16159
17545
|
* Get Products
|
|
16160
17546
|
* @summary Get Products
|
|
16161
|
-
* @param {number} [pageSize] Number Of Results
|
|
16162
|
-
* @param {number} [page] Page Number
|
|
16163
|
-
* @param {string} [search] Search
|
|
16164
17547
|
* @param {*} [options] Override http request option.
|
|
16165
17548
|
* @throws {RequiredError}
|
|
16166
17549
|
* @memberof ProductsApi
|
|
16167
17550
|
*/
|
|
16168
|
-
public getGetProducts(
|
|
16169
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
17551
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
17552
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16170
17553
|
}
|
|
16171
17554
|
|
|
16172
17555
|
/**
|
|
@@ -16190,6 +17573,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16190
17573
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16191
17574
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16192
17575
|
}
|
|
17576
|
+
|
|
17577
|
+
/**
|
|
17578
|
+
* Search Products
|
|
17579
|
+
* @summary Search Products
|
|
17580
|
+
* @param {number} [pageSize] Number Of Results
|
|
17581
|
+
* @param {number} [page] Page Number
|
|
17582
|
+
* @param {string} [search] Search
|
|
17583
|
+
* @param {*} [options] Override http request option.
|
|
17584
|
+
* @throws {RequiredError}
|
|
17585
|
+
* @memberof ProductsApi
|
|
17586
|
+
*/
|
|
17587
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
17588
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
17589
|
+
}
|
|
17590
|
+
|
|
17591
|
+
/**
|
|
17592
|
+
* Get Product
|
|
17593
|
+
* @summary Get Product
|
|
17594
|
+
* @param {string} sku Product SKU
|
|
17595
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17596
|
+
* @param {*} [options] Override http request option.
|
|
17597
|
+
* @throws {RequiredError}
|
|
17598
|
+
* @memberof ProductsApi
|
|
17599
|
+
*/
|
|
17600
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17601
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17602
|
+
}
|
|
17603
|
+
|
|
17604
|
+
/**
|
|
17605
|
+
* Get Product For Customer
|
|
17606
|
+
* @summary Get Product For Customer
|
|
17607
|
+
* @param {number} customerId Customer ID
|
|
17608
|
+
* @param {string} sku Product SKU
|
|
17609
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17610
|
+
* @param {*} [options] Override http request option.
|
|
17611
|
+
* @throws {RequiredError}
|
|
17612
|
+
* @memberof ProductsApi
|
|
17613
|
+
*/
|
|
17614
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17615
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17616
|
+
}
|
|
16193
17617
|
}
|
|
16194
17618
|
|
|
16195
17619
|
/**
|
|
@@ -16530,7 +17954,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16530
17954
|
* @param {*} [options] Override http request option.
|
|
16531
17955
|
* @throws {RequiredError}
|
|
16532
17956
|
*/
|
|
16533
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
17957
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16534
17958
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16535
17959
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16536
17960
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16543,7 +17967,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16543
17967
|
* @param {*} [options] Override http request option.
|
|
16544
17968
|
* @throws {RequiredError}
|
|
16545
17969
|
*/
|
|
16546
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
17970
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16547
17971
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16548
17972
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16549
17973
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16622,7 +18046,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16622
18046
|
* @param {*} [options] Override http request option.
|
|
16623
18047
|
* @throws {RequiredError}
|
|
16624
18048
|
*/
|
|
16625
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18049
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16626
18050
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16627
18051
|
},
|
|
16628
18052
|
/**
|
|
@@ -16632,7 +18056,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16632
18056
|
* @param {*} [options] Override http request option.
|
|
16633
18057
|
* @throws {RequiredError}
|
|
16634
18058
|
*/
|
|
16635
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18059
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16636
18060
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16637
18061
|
},
|
|
16638
18062
|
/**
|
|
@@ -18533,6 +19957,114 @@ export class SMSApi extends BaseAPI {
|
|
|
18533
19957
|
|
|
18534
19958
|
|
|
18535
19959
|
|
|
19960
|
+
/**
|
|
19961
|
+
* ShippingApi - axios parameter creator
|
|
19962
|
+
* @export
|
|
19963
|
+
*/
|
|
19964
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
19965
|
+
return {
|
|
19966
|
+
/**
|
|
19967
|
+
* Get Shipping Services
|
|
19968
|
+
* @summary Get Shipping Services
|
|
19969
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
19970
|
+
* @param {*} [options] Override http request option.
|
|
19971
|
+
* @throws {RequiredError}
|
|
19972
|
+
*/
|
|
19973
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19974
|
+
const localVarPath = `/shipping/services`;
|
|
19975
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19976
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19977
|
+
let baseOptions;
|
|
19978
|
+
if (configuration) {
|
|
19979
|
+
baseOptions = configuration.baseOptions;
|
|
19980
|
+
}
|
|
19981
|
+
|
|
19982
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19983
|
+
const localVarHeaderParameter = {} as any;
|
|
19984
|
+
const localVarQueryParameter = {} as any;
|
|
19985
|
+
|
|
19986
|
+
|
|
19987
|
+
|
|
19988
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19989
|
+
|
|
19990
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19991
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19992
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19993
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
19994
|
+
|
|
19995
|
+
return {
|
|
19996
|
+
url: toPathString(localVarUrlObj),
|
|
19997
|
+
options: localVarRequestOptions,
|
|
19998
|
+
};
|
|
19999
|
+
},
|
|
20000
|
+
}
|
|
20001
|
+
};
|
|
20002
|
+
|
|
20003
|
+
/**
|
|
20004
|
+
* ShippingApi - functional programming interface
|
|
20005
|
+
* @export
|
|
20006
|
+
*/
|
|
20007
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20008
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20009
|
+
return {
|
|
20010
|
+
/**
|
|
20011
|
+
* Get Shipping Services
|
|
20012
|
+
* @summary Get Shipping Services
|
|
20013
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20014
|
+
* @param {*} [options] Override http request option.
|
|
20015
|
+
* @throws {RequiredError}
|
|
20016
|
+
*/
|
|
20017
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20018
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20019
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20020
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20021
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20022
|
+
},
|
|
20023
|
+
}
|
|
20024
|
+
};
|
|
20025
|
+
|
|
20026
|
+
/**
|
|
20027
|
+
* ShippingApi - factory interface
|
|
20028
|
+
* @export
|
|
20029
|
+
*/
|
|
20030
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20031
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20032
|
+
return {
|
|
20033
|
+
/**
|
|
20034
|
+
* Get Shipping Services
|
|
20035
|
+
* @summary Get Shipping Services
|
|
20036
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20037
|
+
* @param {*} [options] Override http request option.
|
|
20038
|
+
* @throws {RequiredError}
|
|
20039
|
+
*/
|
|
20040
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20041
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20042
|
+
},
|
|
20043
|
+
};
|
|
20044
|
+
};
|
|
20045
|
+
|
|
20046
|
+
/**
|
|
20047
|
+
* ShippingApi - object-oriented interface
|
|
20048
|
+
* @export
|
|
20049
|
+
* @class ShippingApi
|
|
20050
|
+
* @extends {BaseAPI}
|
|
20051
|
+
*/
|
|
20052
|
+
export class ShippingApi extends BaseAPI {
|
|
20053
|
+
/**
|
|
20054
|
+
* Get Shipping Services
|
|
20055
|
+
* @summary Get Shipping Services
|
|
20056
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20057
|
+
* @param {*} [options] Override http request option.
|
|
20058
|
+
* @throws {RequiredError}
|
|
20059
|
+
* @memberof ShippingApi
|
|
20060
|
+
*/
|
|
20061
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20062
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20063
|
+
}
|
|
20064
|
+
}
|
|
20065
|
+
|
|
20066
|
+
|
|
20067
|
+
|
|
18536
20068
|
/**
|
|
18537
20069
|
* StockManagementApi - axios parameter creator
|
|
18538
20070
|
* @export
|
|
@@ -19619,7 +21151,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19619
21151
|
* @param {*} [options] Override http request option.
|
|
19620
21152
|
* @throws {RequiredError}
|
|
19621
21153
|
*/
|
|
19622
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21154
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19623
21155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19624
21156
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19625
21157
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -19922,7 +21454,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
19922
21454
|
* @param {*} [options] Override http request option.
|
|
19923
21455
|
* @throws {RequiredError}
|
|
19924
21456
|
*/
|
|
19925
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
21457
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
19926
21458
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
19927
21459
|
},
|
|
19928
21460
|
/**
|