yellowgrid-api-ts 3.1.3 → 3.1.4-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 +213 -195
- package/README.md +33 -7
- package/api.ts +1792 -254
- 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 +1310 -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/AddressModel.md +2 -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
|
|
@@ -503,6 +619,12 @@ export interface AddressModel {
|
|
|
503
619
|
* @memberof AddressModel
|
|
504
620
|
*/
|
|
505
621
|
'company'?: string;
|
|
622
|
+
/**
|
|
623
|
+
* Default
|
|
624
|
+
* @type {boolean}
|
|
625
|
+
* @memberof AddressModel
|
|
626
|
+
*/
|
|
627
|
+
'default'?: boolean;
|
|
506
628
|
}
|
|
507
629
|
/**
|
|
508
630
|
* Address Request
|
|
@@ -535,6 +657,206 @@ export interface AddressRequestModel {
|
|
|
535
657
|
*/
|
|
536
658
|
'addressPostcode'?: string;
|
|
537
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Admin Order Item Request
|
|
662
|
+
* @export
|
|
663
|
+
* @interface AdminItemRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
export interface AdminItemRequestDTO {
|
|
666
|
+
/**
|
|
667
|
+
* SKU
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof AdminItemRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'sku'?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Quantity
|
|
674
|
+
* @type {number}
|
|
675
|
+
* @memberof AdminItemRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'quantity'?: number;
|
|
678
|
+
/**
|
|
679
|
+
* ID
|
|
680
|
+
* @type {number}
|
|
681
|
+
* @memberof AdminItemRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'id'?: number | null;
|
|
684
|
+
/**
|
|
685
|
+
* 3CX Licence Key
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof AdminItemRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'licenceKey'?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
* 3CX Hosting
|
|
692
|
+
* @type {boolean}
|
|
693
|
+
* @memberof AdminItemRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'hosting'?: boolean | null;
|
|
696
|
+
/**
|
|
697
|
+
* Date Time
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof AdminItemRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'processDate'?: string;
|
|
702
|
+
/**
|
|
703
|
+
* 3CX Sales Code
|
|
704
|
+
* @type {string}
|
|
705
|
+
* @memberof AdminItemRequestDTO
|
|
706
|
+
*/
|
|
707
|
+
'tcxSalesCode'?: string | null;
|
|
708
|
+
/**
|
|
709
|
+
* SBCS
|
|
710
|
+
* @type {Array<TcxSbcDTO>}
|
|
711
|
+
* @memberof AdminItemRequestDTO
|
|
712
|
+
*/
|
|
713
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
714
|
+
/**
|
|
715
|
+
* Title
|
|
716
|
+
* @type {string}
|
|
717
|
+
* @memberof AdminItemRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'title'?: string | null;
|
|
720
|
+
/**
|
|
721
|
+
* Price (£)
|
|
722
|
+
* @type {number}
|
|
723
|
+
* @memberof AdminItemRequestDTO
|
|
724
|
+
*/
|
|
725
|
+
'itemPrice'?: number | null;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Admin Order Request
|
|
729
|
+
* @export
|
|
730
|
+
* @interface AdminOrderRequestDTO
|
|
731
|
+
*/
|
|
732
|
+
export interface AdminOrderRequestDTO {
|
|
733
|
+
/**
|
|
734
|
+
* Order Reference
|
|
735
|
+
* @type {string}
|
|
736
|
+
* @memberof AdminOrderRequestDTO
|
|
737
|
+
*/
|
|
738
|
+
'orderReference'?: string | null;
|
|
739
|
+
/**
|
|
740
|
+
* Items
|
|
741
|
+
* @type {Array<AdminItemRequestDTO>}
|
|
742
|
+
* @memberof AdminOrderRequestDTO
|
|
743
|
+
*/
|
|
744
|
+
'items'?: Array<AdminItemRequestDTO>;
|
|
745
|
+
/**
|
|
746
|
+
*
|
|
747
|
+
* @type {ShippingServiceDTO}
|
|
748
|
+
* @memberof AdminOrderRequestDTO
|
|
749
|
+
*/
|
|
750
|
+
'shippingService'?: ShippingServiceDTO;
|
|
751
|
+
/**
|
|
752
|
+
* Provisioning URL
|
|
753
|
+
* @type {string}
|
|
754
|
+
* @memberof AdminOrderRequestDTO
|
|
755
|
+
*/
|
|
756
|
+
'provisioningUrl'?: string | null;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {AddressModel}
|
|
760
|
+
* @memberof AdminOrderRequestDTO
|
|
761
|
+
*/
|
|
762
|
+
'shippingAddress'?: AddressModel;
|
|
763
|
+
/**
|
|
764
|
+
* Part Ship Order
|
|
765
|
+
* @type {boolean}
|
|
766
|
+
* @memberof AdminOrderRequestDTO
|
|
767
|
+
*/
|
|
768
|
+
'partShip'?: boolean;
|
|
769
|
+
/**
|
|
770
|
+
* Quote
|
|
771
|
+
* @type {boolean}
|
|
772
|
+
* @memberof AdminOrderRequestDTO
|
|
773
|
+
*/
|
|
774
|
+
'quote'?: boolean;
|
|
775
|
+
/**
|
|
776
|
+
* Customer ID
|
|
777
|
+
* @type {number}
|
|
778
|
+
* @memberof AdminOrderRequestDTO
|
|
779
|
+
*/
|
|
780
|
+
'customerId'?: number;
|
|
781
|
+
/**
|
|
782
|
+
* Contact
|
|
783
|
+
* @type {string}
|
|
784
|
+
* @memberof AdminOrderRequestDTO
|
|
785
|
+
*/
|
|
786
|
+
'contact'?: string;
|
|
787
|
+
/**
|
|
788
|
+
* Ignore Customer On Hold
|
|
789
|
+
* @type {boolean}
|
|
790
|
+
* @memberof AdminOrderRequestDTO
|
|
791
|
+
*/
|
|
792
|
+
'ignoreOnHold'?: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* Ignore Customer Credit Limit
|
|
795
|
+
* @type {boolean}
|
|
796
|
+
* @memberof AdminOrderRequestDTO
|
|
797
|
+
*/
|
|
798
|
+
'ignoreCreditLimit'?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Include NFR Promos
|
|
801
|
+
* @type {boolean}
|
|
802
|
+
* @memberof AdminOrderRequestDTO
|
|
803
|
+
*/
|
|
804
|
+
'includeNfrPromos'?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Carriage Charge
|
|
807
|
+
* @type {number}
|
|
808
|
+
* @memberof AdminOrderRequestDTO
|
|
809
|
+
*/
|
|
810
|
+
'carriageCharge'?: number;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Admin User
|
|
814
|
+
* @export
|
|
815
|
+
* @interface AdminUserModel
|
|
816
|
+
*/
|
|
817
|
+
export interface AdminUserModel {
|
|
818
|
+
/**
|
|
819
|
+
* First Name
|
|
820
|
+
* @type {string}
|
|
821
|
+
* @memberof AdminUserModel
|
|
822
|
+
*/
|
|
823
|
+
'firstName'?: string;
|
|
824
|
+
/**
|
|
825
|
+
* Last Name
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof AdminUserModel
|
|
828
|
+
*/
|
|
829
|
+
'lastName'?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Avatar
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof AdminUserModel
|
|
834
|
+
*/
|
|
835
|
+
'avatar'?: string | null;
|
|
836
|
+
/**
|
|
837
|
+
* Role
|
|
838
|
+
* @type {number}
|
|
839
|
+
* @memberof AdminUserModel
|
|
840
|
+
*/
|
|
841
|
+
'role'?: AdminUserModelRoleEnum;
|
|
842
|
+
/**
|
|
843
|
+
* Email
|
|
844
|
+
* @type {string}
|
|
845
|
+
* @memberof AdminUserModel
|
|
846
|
+
*/
|
|
847
|
+
'email'?: string | null;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export const AdminUserModelRoleEnum = {
|
|
851
|
+
NUMBER_0: 0,
|
|
852
|
+
NUMBER_1: 1,
|
|
853
|
+
NUMBER_2: 2,
|
|
854
|
+
NUMBER_3: 3,
|
|
855
|
+
NUMBER_4: 4
|
|
856
|
+
} as const;
|
|
857
|
+
|
|
858
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
859
|
+
|
|
538
860
|
/**
|
|
539
861
|
* Agent Hours Graph
|
|
540
862
|
* @export
|
|
@@ -764,6 +1086,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1086
|
*/
|
|
765
1087
|
'redirect_uri'?: string | null;
|
|
766
1088
|
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Basic Order Item
|
|
1091
|
+
* @export
|
|
1092
|
+
* @interface BasicItemDTO
|
|
1093
|
+
*/
|
|
1094
|
+
export interface BasicItemDTO {
|
|
1095
|
+
/**
|
|
1096
|
+
* SKU
|
|
1097
|
+
* @type {string}
|
|
1098
|
+
* @memberof BasicItemDTO
|
|
1099
|
+
*/
|
|
1100
|
+
'sku'?: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* Quantity
|
|
1103
|
+
* @type {number}
|
|
1104
|
+
* @memberof BasicItemDTO
|
|
1105
|
+
*/
|
|
1106
|
+
'quantity'?: number;
|
|
1107
|
+
}
|
|
1108
|
+
/**
|
|
1109
|
+
* Basic Product
|
|
1110
|
+
* @export
|
|
1111
|
+
* @interface BasicProductDTO
|
|
1112
|
+
*/
|
|
1113
|
+
export interface BasicProductDTO {
|
|
1114
|
+
/**
|
|
1115
|
+
* SKU
|
|
1116
|
+
* @type {string}
|
|
1117
|
+
* @memberof BasicProductDTO
|
|
1118
|
+
*/
|
|
1119
|
+
'sku'?: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* Title
|
|
1122
|
+
* @type {string}
|
|
1123
|
+
* @memberof BasicProductDTO
|
|
1124
|
+
*/
|
|
1125
|
+
'title'?: string;
|
|
1126
|
+
}
|
|
767
1127
|
/**
|
|
768
1128
|
* BatchesEntity
|
|
769
1129
|
* @export
|
|
@@ -958,12 +1318,6 @@ export interface ClientDetailsModel {
|
|
|
958
1318
|
* @memberof ClientDetailsModel
|
|
959
1319
|
*/
|
|
960
1320
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1321
|
}
|
|
968
1322
|
/**
|
|
969
1323
|
* OAuth client details
|
|
@@ -1126,40 +1480,107 @@ export interface ConversationModel {
|
|
|
1126
1480
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1481
|
}
|
|
1128
1482
|
/**
|
|
1129
|
-
*
|
|
1483
|
+
* CourierPricesEntity
|
|
1130
1484
|
* @export
|
|
1131
|
-
* @interface
|
|
1485
|
+
* @interface CourierPriceEntity
|
|
1132
1486
|
*/
|
|
1133
|
-
export interface
|
|
1487
|
+
export interface CourierPriceEntity {
|
|
1134
1488
|
/**
|
|
1135
|
-
*
|
|
1489
|
+
* id
|
|
1136
1490
|
* @type {number}
|
|
1137
|
-
* @memberof
|
|
1491
|
+
* @memberof CourierPriceEntity
|
|
1138
1492
|
*/
|
|
1139
1493
|
'id'?: number;
|
|
1140
1494
|
/**
|
|
1141
|
-
*
|
|
1495
|
+
* courier
|
|
1142
1496
|
* @type {string}
|
|
1143
|
-
* @memberof
|
|
1497
|
+
* @memberof CourierPriceEntity
|
|
1144
1498
|
*/
|
|
1145
|
-
'
|
|
1499
|
+
'courier'?: string;
|
|
1146
1500
|
/**
|
|
1147
|
-
*
|
|
1501
|
+
* destinationIso
|
|
1148
1502
|
* @type {string}
|
|
1149
|
-
* @memberof
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1150
1504
|
*/
|
|
1151
|
-
'
|
|
1505
|
+
'destinationIso'?: string;
|
|
1152
1506
|
/**
|
|
1153
|
-
*
|
|
1507
|
+
* serviceDescription
|
|
1154
1508
|
* @type {string}
|
|
1155
|
-
* @memberof
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1156
1510
|
*/
|
|
1157
|
-
'
|
|
1511
|
+
'serviceDescription'?: string;
|
|
1158
1512
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* @type {
|
|
1161
|
-
* @memberof
|
|
1162
|
-
*/
|
|
1513
|
+
* flatRate
|
|
1514
|
+
* @type {number}
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1516
|
+
*/
|
|
1517
|
+
'flatRate'?: number;
|
|
1518
|
+
/**
|
|
1519
|
+
* initialBox
|
|
1520
|
+
* @type {number}
|
|
1521
|
+
* @memberof CourierPriceEntity
|
|
1522
|
+
*/
|
|
1523
|
+
'initialBox'?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* initialKg
|
|
1526
|
+
* @type {number}
|
|
1527
|
+
* @memberof CourierPriceEntity
|
|
1528
|
+
*/
|
|
1529
|
+
'initialKg'?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* perBox
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof CourierPriceEntity
|
|
1534
|
+
*/
|
|
1535
|
+
'perBox'?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* perKg
|
|
1538
|
+
* @type {number}
|
|
1539
|
+
* @memberof CourierPriceEntity
|
|
1540
|
+
*/
|
|
1541
|
+
'perKg'?: number;
|
|
1542
|
+
/**
|
|
1543
|
+
* maxKg
|
|
1544
|
+
* @type {number}
|
|
1545
|
+
* @memberof CourierPriceEntity
|
|
1546
|
+
*/
|
|
1547
|
+
'maxKg'?: number;
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
* Credit Account
|
|
1551
|
+
* @export
|
|
1552
|
+
* @interface CreditAccountEntity
|
|
1553
|
+
*/
|
|
1554
|
+
export interface CreditAccountEntity {
|
|
1555
|
+
/**
|
|
1556
|
+
* ID
|
|
1557
|
+
* @type {number}
|
|
1558
|
+
* @memberof CreditAccountEntity
|
|
1559
|
+
*/
|
|
1560
|
+
'id'?: number;
|
|
1561
|
+
/**
|
|
1562
|
+
* Contact Name
|
|
1563
|
+
* @type {string}
|
|
1564
|
+
* @memberof CreditAccountEntity
|
|
1565
|
+
*/
|
|
1566
|
+
'name'?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* Email
|
|
1569
|
+
* @type {string}
|
|
1570
|
+
* @memberof CreditAccountEntity
|
|
1571
|
+
*/
|
|
1572
|
+
'email'?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Phone Number
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CreditAccountEntity
|
|
1577
|
+
*/
|
|
1578
|
+
'phone'?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Company Name
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof CreditAccountEntity
|
|
1583
|
+
*/
|
|
1163
1584
|
'company'?: string;
|
|
1164
1585
|
/**
|
|
1165
1586
|
* Company Registration Number
|
|
@@ -1307,6 +1728,110 @@ export interface CustomerInformationModel {
|
|
|
1307
1728
|
*/
|
|
1308
1729
|
'contactLastName'?: string;
|
|
1309
1730
|
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Order Item Request
|
|
1733
|
+
* @export
|
|
1734
|
+
* @interface CustomerItemRequestDTO
|
|
1735
|
+
*/
|
|
1736
|
+
export interface CustomerItemRequestDTO {
|
|
1737
|
+
/**
|
|
1738
|
+
* SKU
|
|
1739
|
+
* @type {string}
|
|
1740
|
+
* @memberof CustomerItemRequestDTO
|
|
1741
|
+
*/
|
|
1742
|
+
'sku'?: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* Quantity
|
|
1745
|
+
* @type {number}
|
|
1746
|
+
* @memberof CustomerItemRequestDTO
|
|
1747
|
+
*/
|
|
1748
|
+
'quantity'?: number;
|
|
1749
|
+
/**
|
|
1750
|
+
* ID
|
|
1751
|
+
* @type {number}
|
|
1752
|
+
* @memberof CustomerItemRequestDTO
|
|
1753
|
+
*/
|
|
1754
|
+
'id'?: number | null;
|
|
1755
|
+
/**
|
|
1756
|
+
* 3CX Licence Key
|
|
1757
|
+
* @type {string}
|
|
1758
|
+
* @memberof CustomerItemRequestDTO
|
|
1759
|
+
*/
|
|
1760
|
+
'licenceKey'?: string | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* 3CX Hosting
|
|
1763
|
+
* @type {boolean}
|
|
1764
|
+
* @memberof CustomerItemRequestDTO
|
|
1765
|
+
*/
|
|
1766
|
+
'hosting'?: boolean | null;
|
|
1767
|
+
/**
|
|
1768
|
+
* Date Time
|
|
1769
|
+
* @type {string}
|
|
1770
|
+
* @memberof CustomerItemRequestDTO
|
|
1771
|
+
*/
|
|
1772
|
+
'processDate'?: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* 3CX Sales Code
|
|
1775
|
+
* @type {string}
|
|
1776
|
+
* @memberof CustomerItemRequestDTO
|
|
1777
|
+
*/
|
|
1778
|
+
'tcxSalesCode'?: string | null;
|
|
1779
|
+
/**
|
|
1780
|
+
* SBCS
|
|
1781
|
+
* @type {Array<TcxSbcDTO>}
|
|
1782
|
+
* @memberof CustomerItemRequestDTO
|
|
1783
|
+
*/
|
|
1784
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1785
|
+
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Order Request
|
|
1788
|
+
* @export
|
|
1789
|
+
* @interface CustomerOrderRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
export interface CustomerOrderRequestDTO {
|
|
1792
|
+
/**
|
|
1793
|
+
* Order Reference
|
|
1794
|
+
* @type {string}
|
|
1795
|
+
* @memberof CustomerOrderRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'orderReference'?: string | null;
|
|
1798
|
+
/**
|
|
1799
|
+
* Items
|
|
1800
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1801
|
+
* @memberof CustomerOrderRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1804
|
+
/**
|
|
1805
|
+
*
|
|
1806
|
+
* @type {ShippingServiceDTO}
|
|
1807
|
+
* @memberof CustomerOrderRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1810
|
+
/**
|
|
1811
|
+
* Provisioning URL
|
|
1812
|
+
* @type {string}
|
|
1813
|
+
* @memberof CustomerOrderRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'provisioningUrl'?: string | null;
|
|
1816
|
+
/**
|
|
1817
|
+
*
|
|
1818
|
+
* @type {AddressModel}
|
|
1819
|
+
* @memberof CustomerOrderRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'shippingAddress'?: AddressModel;
|
|
1822
|
+
/**
|
|
1823
|
+
* Part Ship Order
|
|
1824
|
+
* @type {boolean}
|
|
1825
|
+
* @memberof CustomerOrderRequestDTO
|
|
1826
|
+
*/
|
|
1827
|
+
'partShip'?: boolean;
|
|
1828
|
+
/**
|
|
1829
|
+
* Quote
|
|
1830
|
+
* @type {boolean}
|
|
1831
|
+
* @memberof CustomerOrderRequestDTO
|
|
1832
|
+
*/
|
|
1833
|
+
'quote'?: boolean;
|
|
1834
|
+
}
|
|
1310
1835
|
/**
|
|
1311
1836
|
* Customer Price List
|
|
1312
1837
|
* @export
|
|
@@ -1816,19 +2341,6 @@ export interface GenericFileModel {
|
|
|
1816
2341
|
*/
|
|
1817
2342
|
'type'?: string;
|
|
1818
2343
|
}
|
|
1819
|
-
/**
|
|
1820
|
-
*
|
|
1821
|
-
* @export
|
|
1822
|
-
* @interface GetGetPasswordHash200Response
|
|
1823
|
-
*/
|
|
1824
|
-
export interface GetGetPasswordHash200Response {
|
|
1825
|
-
/**
|
|
1826
|
-
*
|
|
1827
|
-
* @type {string}
|
|
1828
|
-
* @memberof GetGetPasswordHash200Response
|
|
1829
|
-
*/
|
|
1830
|
-
'hash'?: string;
|
|
1831
|
-
}
|
|
1832
2344
|
/**
|
|
1833
2345
|
*
|
|
1834
2346
|
* @export
|
|
@@ -2430,35 +2942,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2430
2942
|
*/
|
|
2431
2943
|
export interface ItemDTO {
|
|
2432
2944
|
/**
|
|
2433
|
-
*
|
|
2434
|
-
* @type {
|
|
2945
|
+
* SKU
|
|
2946
|
+
* @type {string}
|
|
2435
2947
|
* @memberof ItemDTO
|
|
2436
2948
|
*/
|
|
2437
|
-
'
|
|
2949
|
+
'sku'?: string;
|
|
2438
2950
|
/**
|
|
2439
|
-
*
|
|
2951
|
+
* Quantity
|
|
2440
2952
|
* @type {number}
|
|
2441
2953
|
* @memberof ItemDTO
|
|
2442
2954
|
*/
|
|
2443
|
-
'
|
|
2955
|
+
'quantity'?: number;
|
|
2444
2956
|
/**
|
|
2445
|
-
*
|
|
2446
|
-
* @type {
|
|
2957
|
+
* ID
|
|
2958
|
+
* @type {number}
|
|
2447
2959
|
* @memberof ItemDTO
|
|
2448
2960
|
*/
|
|
2449
|
-
'
|
|
2961
|
+
'id'?: number | null;
|
|
2450
2962
|
/**
|
|
2451
|
-
*
|
|
2452
|
-
* @type {
|
|
2963
|
+
* Order ID
|
|
2964
|
+
* @type {number}
|
|
2453
2965
|
* @memberof ItemDTO
|
|
2454
2966
|
*/
|
|
2455
|
-
'
|
|
2967
|
+
'orderId'?: number | null;
|
|
2456
2968
|
/**
|
|
2457
|
-
*
|
|
2458
|
-
* @type {
|
|
2969
|
+
* Title
|
|
2970
|
+
* @type {string}
|
|
2459
2971
|
* @memberof ItemDTO
|
|
2460
2972
|
*/
|
|
2461
|
-
'
|
|
2973
|
+
'title'?: string;
|
|
2462
2974
|
/**
|
|
2463
2975
|
* Price
|
|
2464
2976
|
* @type {number}
|
|
@@ -2483,6 +2995,12 @@ export interface ItemDTO {
|
|
|
2483
2995
|
* @memberof ItemDTO
|
|
2484
2996
|
*/
|
|
2485
2997
|
'processDate'?: string;
|
|
2998
|
+
/**
|
|
2999
|
+
* 3CX Hosting
|
|
3000
|
+
* @type {boolean}
|
|
3001
|
+
* @memberof ItemDTO
|
|
3002
|
+
*/
|
|
3003
|
+
'hosting'?: boolean | null;
|
|
2486
3004
|
/**
|
|
2487
3005
|
* Promo Item
|
|
2488
3006
|
* @type {boolean}
|
|
@@ -2494,7 +3012,25 @@ export interface ItemDTO {
|
|
|
2494
3012
|
* @type {number}
|
|
2495
3013
|
* @memberof ItemDTO
|
|
2496
3014
|
*/
|
|
2497
|
-
'refunded'?: number;
|
|
3015
|
+
'refunded'?: number | null;
|
|
3016
|
+
/**
|
|
3017
|
+
* SBCs
|
|
3018
|
+
* @type {Array<TcxSbcDTO>}
|
|
3019
|
+
* @memberof ItemDTO
|
|
3020
|
+
*/
|
|
3021
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3022
|
+
/**
|
|
3023
|
+
* Readonly
|
|
3024
|
+
* @type {boolean}
|
|
3025
|
+
* @memberof ItemDTO
|
|
3026
|
+
*/
|
|
3027
|
+
'readonly'?: boolean;
|
|
3028
|
+
/**
|
|
3029
|
+
* 3CX Sales Code
|
|
3030
|
+
* @type {string}
|
|
3031
|
+
* @memberof ItemDTO
|
|
3032
|
+
*/
|
|
3033
|
+
'tcxSalesCode'?: string | null;
|
|
2498
3034
|
}
|
|
2499
3035
|
/**
|
|
2500
3036
|
* ItemsEntity
|
|
@@ -2628,6 +3164,31 @@ export interface ItemEntity {
|
|
|
2628
3164
|
* @memberof ItemEntity
|
|
2629
3165
|
*/
|
|
2630
3166
|
'promoItem'?: number;
|
|
3167
|
+
/**
|
|
3168
|
+
* 3CX Sales Code
|
|
3169
|
+
* @type {string}
|
|
3170
|
+
* @memberof ItemEntity
|
|
3171
|
+
*/
|
|
3172
|
+
'tcxSalesCode'?: string | null;
|
|
3173
|
+
}
|
|
3174
|
+
/**
|
|
3175
|
+
* LinkedOrdersEntity
|
|
3176
|
+
* @export
|
|
3177
|
+
* @interface LinkedOrderEntity
|
|
3178
|
+
*/
|
|
3179
|
+
export interface LinkedOrderEntity {
|
|
3180
|
+
/**
|
|
3181
|
+
* orderId
|
|
3182
|
+
* @type {number}
|
|
3183
|
+
* @memberof LinkedOrderEntity
|
|
3184
|
+
*/
|
|
3185
|
+
'orderId'?: number;
|
|
3186
|
+
/**
|
|
3187
|
+
* linkedOrderId
|
|
3188
|
+
* @type {number}
|
|
3189
|
+
* @memberof LinkedOrderEntity
|
|
3190
|
+
*/
|
|
3191
|
+
'linkedOrderId'?: number;
|
|
2631
3192
|
}
|
|
2632
3193
|
/**
|
|
2633
3194
|
* MFA Required
|
|
@@ -3288,13 +3849,19 @@ export interface OrderSummaryDTO {
|
|
|
3288
3849
|
* @type {string}
|
|
3289
3850
|
* @memberof OrderSummaryDTO
|
|
3290
3851
|
*/
|
|
3291
|
-
'reference'?: string;
|
|
3852
|
+
'reference'?: string | null;
|
|
3292
3853
|
/**
|
|
3293
3854
|
* Invoice Number
|
|
3294
3855
|
* @type {string}
|
|
3295
3856
|
* @memberof OrderSummaryDTO
|
|
3296
3857
|
*/
|
|
3297
3858
|
'invoiceNumber'?: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Invoice ID
|
|
3861
|
+
* @type {string}
|
|
3862
|
+
* @memberof OrderSummaryDTO
|
|
3863
|
+
*/
|
|
3864
|
+
'invoiceId'?: string | null;
|
|
3298
3865
|
/**
|
|
3299
3866
|
* Date Time
|
|
3300
3867
|
* @type {string}
|
|
@@ -3349,6 +3916,24 @@ export interface OrderSummaryDTO {
|
|
|
3349
3916
|
* @memberof OrderSummaryDTO
|
|
3350
3917
|
*/
|
|
3351
3918
|
'fulfillable'?: boolean | null;
|
|
3919
|
+
/**
|
|
3920
|
+
* Provisioning URL
|
|
3921
|
+
* @type {string}
|
|
3922
|
+
* @memberof OrderSummaryDTO
|
|
3923
|
+
*/
|
|
3924
|
+
'provisioningUrl'?: string | null;
|
|
3925
|
+
/**
|
|
3926
|
+
*
|
|
3927
|
+
* @type {ShippingServiceDTO}
|
|
3928
|
+
* @memberof OrderSummaryDTO
|
|
3929
|
+
*/
|
|
3930
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
3931
|
+
/**
|
|
3932
|
+
* Readonly
|
|
3933
|
+
* @type {boolean}
|
|
3934
|
+
* @memberof OrderSummaryDTO
|
|
3935
|
+
*/
|
|
3936
|
+
'readonly'?: boolean;
|
|
3352
3937
|
}
|
|
3353
3938
|
/**
|
|
3354
3939
|
* Order Totals
|
|
@@ -3398,6 +3983,12 @@ export interface OrderTotalModel {
|
|
|
3398
3983
|
* @memberof OrderTotalModel
|
|
3399
3984
|
*/
|
|
3400
3985
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
3986
|
+
/**
|
|
3987
|
+
* Delivery
|
|
3988
|
+
* @type {number}
|
|
3989
|
+
* @memberof OrderTotalModel
|
|
3990
|
+
*/
|
|
3991
|
+
'delivery'?: number | null;
|
|
3401
3992
|
}
|
|
3402
3993
|
|
|
3403
3994
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3779,6 +4370,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3779
4370
|
*/
|
|
3780
4371
|
'scopes'?: Array<string>;
|
|
3781
4372
|
}
|
|
4373
|
+
/**
|
|
4374
|
+
*
|
|
4375
|
+
* @export
|
|
4376
|
+
* @interface PostGetProductForCustomerRequest
|
|
4377
|
+
*/
|
|
4378
|
+
export interface PostGetProductForCustomerRequest {
|
|
4379
|
+
/**
|
|
4380
|
+
* Quantity
|
|
4381
|
+
* @type {number}
|
|
4382
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4383
|
+
*/
|
|
4384
|
+
'quantity'?: number | null;
|
|
4385
|
+
/**
|
|
4386
|
+
* 3CX Licence Key
|
|
4387
|
+
* @type {string}
|
|
4388
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4389
|
+
*/
|
|
4390
|
+
'licenceKey'?: string | null;
|
|
4391
|
+
/**
|
|
4392
|
+
* 3CX Hosting
|
|
4393
|
+
* @type {boolean}
|
|
4394
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4395
|
+
*/
|
|
4396
|
+
'hosting'?: boolean | null;
|
|
4397
|
+
}
|
|
3782
4398
|
/**
|
|
3783
4399
|
* Price & Stock List
|
|
3784
4400
|
* @export
|
|
@@ -3867,10 +4483,10 @@ export interface PrizesEntity {
|
|
|
3867
4483
|
export interface ProductSearchResultsModel {
|
|
3868
4484
|
/**
|
|
3869
4485
|
* Results
|
|
3870
|
-
* @type {Array<
|
|
4486
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3871
4487
|
* @memberof ProductSearchResultsModel
|
|
3872
4488
|
*/
|
|
3873
|
-
'results'?: Array<
|
|
4489
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3874
4490
|
}
|
|
3875
4491
|
/**
|
|
3876
4492
|
* Product Serial Info
|
|
@@ -3906,45 +4522,51 @@ export interface ProductSerialInfoModel {
|
|
|
3906
4522
|
/**
|
|
3907
4523
|
* Product Summary
|
|
3908
4524
|
* @export
|
|
3909
|
-
* @interface
|
|
4525
|
+
* @interface ProductSummaryDTO
|
|
3910
4526
|
*/
|
|
3911
|
-
export interface
|
|
4527
|
+
export interface ProductSummaryDTO {
|
|
3912
4528
|
/**
|
|
3913
4529
|
* SKU
|
|
3914
4530
|
* @type {string}
|
|
3915
|
-
* @memberof
|
|
4531
|
+
* @memberof ProductSummaryDTO
|
|
3916
4532
|
*/
|
|
3917
4533
|
'sku'?: string;
|
|
3918
4534
|
/**
|
|
3919
4535
|
* Title
|
|
3920
4536
|
* @type {string}
|
|
3921
|
-
* @memberof
|
|
4537
|
+
* @memberof ProductSummaryDTO
|
|
3922
4538
|
*/
|
|
3923
4539
|
'title'?: string;
|
|
3924
4540
|
/**
|
|
3925
4541
|
* Stock Quantity
|
|
3926
4542
|
* @type {number}
|
|
3927
|
-
* @memberof
|
|
4543
|
+
* @memberof ProductSummaryDTO
|
|
3928
4544
|
*/
|
|
3929
4545
|
'quantity'?: number | null;
|
|
3930
4546
|
/**
|
|
3931
4547
|
* Stock Product
|
|
3932
4548
|
* @type {boolean}
|
|
3933
|
-
* @memberof
|
|
4549
|
+
* @memberof ProductSummaryDTO
|
|
3934
4550
|
*/
|
|
3935
4551
|
'stockProduct'?: boolean;
|
|
3936
4552
|
/**
|
|
3937
4553
|
* Price
|
|
3938
4554
|
* @type {number}
|
|
3939
|
-
* @memberof
|
|
4555
|
+
* @memberof ProductSummaryDTO
|
|
3940
4556
|
*/
|
|
3941
4557
|
'price'?: number | null;
|
|
3942
4558
|
/**
|
|
3943
4559
|
* Carton Size
|
|
3944
4560
|
* @type {number}
|
|
3945
|
-
* @memberof
|
|
4561
|
+
* @memberof ProductSummaryDTO
|
|
3946
4562
|
*/
|
|
3947
4563
|
'cartonSize'?: number | null;
|
|
4564
|
+
/**
|
|
4565
|
+
* RRP Price
|
|
4566
|
+
* @type {number}
|
|
4567
|
+
* @memberof ProductSummaryDTO
|
|
4568
|
+
*/
|
|
4569
|
+
'rrp'?: number | null;
|
|
3948
4570
|
}
|
|
3949
4571
|
/**
|
|
3950
4572
|
* PromoCodesEntity
|
|
@@ -4083,37 +4705,37 @@ export interface PromoItemsEntity {
|
|
|
4083
4705
|
/**
|
|
4084
4706
|
* Provisioning Group
|
|
4085
4707
|
* @export
|
|
4086
|
-
* @interface
|
|
4708
|
+
* @interface ProvisioningModel
|
|
4087
4709
|
*/
|
|
4088
|
-
export interface
|
|
4710
|
+
export interface ProvisioningModel {
|
|
4089
4711
|
/**
|
|
4090
4712
|
* Provisioning Group Name
|
|
4091
4713
|
* @type {string}
|
|
4092
|
-
* @memberof
|
|
4714
|
+
* @memberof ProvisioningModel
|
|
4093
4715
|
*/
|
|
4094
4716
|
'groupName'?: string;
|
|
4095
4717
|
/**
|
|
4096
4718
|
* Provisioning URL (Static Provisioning Server)
|
|
4097
4719
|
* @type {string}
|
|
4098
|
-
* @memberof
|
|
4720
|
+
* @memberof ProvisioningModel
|
|
4099
4721
|
*/
|
|
4100
4722
|
'provisioningUrl'?: string;
|
|
4101
4723
|
/**
|
|
4102
4724
|
* Additional Authentication Secret
|
|
4103
4725
|
* @type {string}
|
|
4104
|
-
* @memberof
|
|
4726
|
+
* @memberof ProvisioningModel
|
|
4105
4727
|
*/
|
|
4106
4728
|
'auth'?: string;
|
|
4107
4729
|
/**
|
|
4108
4730
|
* Provisioning Group ID
|
|
4109
4731
|
* @type {number}
|
|
4110
|
-
* @memberof
|
|
4732
|
+
* @memberof ProvisioningModel
|
|
4111
4733
|
*/
|
|
4112
4734
|
'id'?: number;
|
|
4113
4735
|
/**
|
|
4114
4736
|
* Owner ID
|
|
4115
4737
|
* @type {number}
|
|
4116
|
-
* @memberof
|
|
4738
|
+
* @memberof ProvisioningModel
|
|
4117
4739
|
*/
|
|
4118
4740
|
'customerId'?: number;
|
|
4119
4741
|
}
|
|
@@ -4467,7 +5089,7 @@ export interface ShipmentEntity {
|
|
|
4467
5089
|
* @type {string}
|
|
4468
5090
|
* @memberof ShipmentEntity
|
|
4469
5091
|
*/
|
|
4470
|
-
'
|
|
5092
|
+
'dateShipped'?: string;
|
|
4471
5093
|
/**
|
|
4472
5094
|
* requestDate
|
|
4473
5095
|
* @type {string}
|
|
@@ -4519,37 +5141,186 @@ export interface ShipmentItemEntity {
|
|
|
4519
5141
|
'itemId'?: string;
|
|
4520
5142
|
}
|
|
4521
5143
|
/**
|
|
4522
|
-
*
|
|
5144
|
+
*
|
|
4523
5145
|
* @export
|
|
4524
|
-
* @interface
|
|
5146
|
+
* @interface ShippingConsignmentModel
|
|
4525
5147
|
*/
|
|
4526
|
-
export interface
|
|
4527
|
-
/**
|
|
4528
|
-
* ID
|
|
4529
|
-
* @type {string}
|
|
4530
|
-
* @memberof SipTrunkChangeResponseModel
|
|
4531
|
-
*/
|
|
4532
|
-
'changeId'?: string;
|
|
5148
|
+
export interface ShippingConsignmentModel {
|
|
4533
5149
|
/**
|
|
4534
5150
|
*
|
|
4535
|
-
* @type {
|
|
4536
|
-
* @memberof
|
|
5151
|
+
* @type {ShippingServiceModel}
|
|
5152
|
+
* @memberof ShippingConsignmentModel
|
|
4537
5153
|
*/
|
|
4538
|
-
'
|
|
5154
|
+
'service'?: ShippingServiceModel;
|
|
4539
5155
|
/**
|
|
4540
|
-
*
|
|
5156
|
+
* ID/Number
|
|
4541
5157
|
* @type {string}
|
|
4542
|
-
* @memberof
|
|
5158
|
+
* @memberof ShippingConsignmentModel
|
|
4543
5159
|
*/
|
|
4544
|
-
'
|
|
5160
|
+
'id'?: string;
|
|
4545
5161
|
/**
|
|
4546
|
-
*
|
|
4547
|
-
* @type {
|
|
4548
|
-
* @memberof
|
|
5162
|
+
* Tracking Number
|
|
5163
|
+
* @type {string}
|
|
5164
|
+
* @memberof ShippingConsignmentModel
|
|
4549
5165
|
*/
|
|
4550
|
-
'
|
|
5166
|
+
'trackingNumber'?: string;
|
|
4551
5167
|
/**
|
|
4552
|
-
*
|
|
5168
|
+
* Parcels
|
|
5169
|
+
* @type {Array<string>}
|
|
5170
|
+
* @memberof ShippingConsignmentModel
|
|
5171
|
+
*/
|
|
5172
|
+
'parcelIds'?: Array<string>;
|
|
5173
|
+
}
|
|
5174
|
+
/**
|
|
5175
|
+
* Shipping Information
|
|
5176
|
+
* @export
|
|
5177
|
+
* @interface ShippingInformationDTO
|
|
5178
|
+
*/
|
|
5179
|
+
export interface ShippingInformationDTO {
|
|
5180
|
+
/**
|
|
5181
|
+
* Items
|
|
5182
|
+
* @type {Array<BasicItemDTO>}
|
|
5183
|
+
* @memberof ShippingInformationDTO
|
|
5184
|
+
*/
|
|
5185
|
+
'items'?: Array<BasicItemDTO>;
|
|
5186
|
+
/**
|
|
5187
|
+
* Destination Post Code
|
|
5188
|
+
* @type {string}
|
|
5189
|
+
* @memberof ShippingInformationDTO
|
|
5190
|
+
*/
|
|
5191
|
+
'postalCode'?: string;
|
|
5192
|
+
/**
|
|
5193
|
+
* Destination ISO
|
|
5194
|
+
* @type {string}
|
|
5195
|
+
* @memberof ShippingInformationDTO
|
|
5196
|
+
*/
|
|
5197
|
+
'iso'?: string;
|
|
5198
|
+
}
|
|
5199
|
+
/**
|
|
5200
|
+
* Shipping Service
|
|
5201
|
+
* @export
|
|
5202
|
+
* @interface ShippingServiceDTO
|
|
5203
|
+
*/
|
|
5204
|
+
export interface ShippingServiceDTO {
|
|
5205
|
+
/**
|
|
5206
|
+
* Courier
|
|
5207
|
+
* @type {string}
|
|
5208
|
+
* @memberof ShippingServiceDTO
|
|
5209
|
+
*/
|
|
5210
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5211
|
+
/**
|
|
5212
|
+
* Service Name
|
|
5213
|
+
* @type {string}
|
|
5214
|
+
* @memberof ShippingServiceDTO
|
|
5215
|
+
*/
|
|
5216
|
+
'serviceName'?: string;
|
|
5217
|
+
}
|
|
5218
|
+
|
|
5219
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5220
|
+
Dpd: 'DPD',
|
|
5221
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5222
|
+
Pops: 'POPS'
|
|
5223
|
+
} as const;
|
|
5224
|
+
|
|
5225
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5226
|
+
|
|
5227
|
+
/**
|
|
5228
|
+
* Shipping Service
|
|
5229
|
+
* @export
|
|
5230
|
+
* @interface ShippingServiceModel
|
|
5231
|
+
*/
|
|
5232
|
+
export interface ShippingServiceModel {
|
|
5233
|
+
/**
|
|
5234
|
+
* Courier
|
|
5235
|
+
* @type {string}
|
|
5236
|
+
* @memberof ShippingServiceModel
|
|
5237
|
+
*/
|
|
5238
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5239
|
+
/**
|
|
5240
|
+
* Code
|
|
5241
|
+
* @type {string}
|
|
5242
|
+
* @memberof ShippingServiceModel
|
|
5243
|
+
*/
|
|
5244
|
+
'code'?: string;
|
|
5245
|
+
/**
|
|
5246
|
+
* Name
|
|
5247
|
+
* @type {string}
|
|
5248
|
+
* @memberof ShippingServiceModel
|
|
5249
|
+
*/
|
|
5250
|
+
'name'?: string;
|
|
5251
|
+
/**
|
|
5252
|
+
* Description
|
|
5253
|
+
* @type {string}
|
|
5254
|
+
* @memberof ShippingServiceModel
|
|
5255
|
+
*/
|
|
5256
|
+
'description'?: string;
|
|
5257
|
+
/**
|
|
5258
|
+
* Label
|
|
5259
|
+
* @type {string}
|
|
5260
|
+
* @memberof ShippingServiceModel
|
|
5261
|
+
*/
|
|
5262
|
+
'label'?: string | null;
|
|
5263
|
+
/**
|
|
5264
|
+
* Price
|
|
5265
|
+
* @type {number}
|
|
5266
|
+
* @memberof ShippingServiceModel
|
|
5267
|
+
*/
|
|
5268
|
+
'price'?: number | null;
|
|
5269
|
+
}
|
|
5270
|
+
|
|
5271
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5272
|
+
Dpd: 'DPD',
|
|
5273
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5274
|
+
Pops: 'POPS'
|
|
5275
|
+
} as const;
|
|
5276
|
+
|
|
5277
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5278
|
+
|
|
5279
|
+
/**
|
|
5280
|
+
*
|
|
5281
|
+
* @export
|
|
5282
|
+
* @interface ShippingServicesModel
|
|
5283
|
+
*/
|
|
5284
|
+
export interface ShippingServicesModel {
|
|
5285
|
+
/**
|
|
5286
|
+
* Services
|
|
5287
|
+
* @type {Array<ShippingServiceModel>}
|
|
5288
|
+
* @memberof ShippingServicesModel
|
|
5289
|
+
*/
|
|
5290
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5291
|
+
}
|
|
5292
|
+
/**
|
|
5293
|
+
* Change Response
|
|
5294
|
+
* @export
|
|
5295
|
+
* @interface SipTrunkChangeResponseModel
|
|
5296
|
+
*/
|
|
5297
|
+
export interface SipTrunkChangeResponseModel {
|
|
5298
|
+
/**
|
|
5299
|
+
* ID
|
|
5300
|
+
* @type {string}
|
|
5301
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5302
|
+
*/
|
|
5303
|
+
'changeId'?: string;
|
|
5304
|
+
/**
|
|
5305
|
+
*
|
|
5306
|
+
* @type {SipTrunkEntity}
|
|
5307
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5308
|
+
*/
|
|
5309
|
+
'trunk'?: SipTrunkEntity;
|
|
5310
|
+
/**
|
|
5311
|
+
* Type
|
|
5312
|
+
* @type {string}
|
|
5313
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5314
|
+
*/
|
|
5315
|
+
'type'?: SipTrunkChangeResponseModelTypeEnum;
|
|
5316
|
+
/**
|
|
5317
|
+
* Progress
|
|
5318
|
+
* @type {number}
|
|
5319
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5320
|
+
*/
|
|
5321
|
+
'progress'?: number;
|
|
5322
|
+
/**
|
|
5323
|
+
* Service Provider
|
|
4553
5324
|
* @type {number}
|
|
4554
5325
|
* @memberof SipTrunkChangeResponseModel
|
|
4555
5326
|
*/
|
|
@@ -7357,6 +8128,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7357
8128
|
*/
|
|
7358
8129
|
'secretAccessKey'?: string;
|
|
7359
8130
|
}
|
|
8131
|
+
/**
|
|
8132
|
+
* SBC Data
|
|
8133
|
+
* @export
|
|
8134
|
+
* @interface TcxSbcDTO
|
|
8135
|
+
*/
|
|
8136
|
+
export interface TcxSbcDTO {
|
|
8137
|
+
/**
|
|
8138
|
+
* LAN IP Address
|
|
8139
|
+
* @type {string}
|
|
8140
|
+
* @memberof TcxSbcDTO
|
|
8141
|
+
*/
|
|
8142
|
+
'ipAddress'?: string;
|
|
8143
|
+
/**
|
|
8144
|
+
* LAN Default Gateway
|
|
8145
|
+
* @type {string}
|
|
8146
|
+
* @memberof TcxSbcDTO
|
|
8147
|
+
*/
|
|
8148
|
+
'defaultGateway'?: string;
|
|
8149
|
+
/**
|
|
8150
|
+
* LAN Subnet Mask
|
|
8151
|
+
* @type {string}
|
|
8152
|
+
* @memberof TcxSbcDTO
|
|
8153
|
+
*/
|
|
8154
|
+
'netmask'?: string;
|
|
8155
|
+
/**
|
|
8156
|
+
* DNS
|
|
8157
|
+
* @type {string}
|
|
8158
|
+
* @memberof TcxSbcDTO
|
|
8159
|
+
*/
|
|
8160
|
+
'dns'?: string;
|
|
8161
|
+
/**
|
|
8162
|
+
* 3CX URL
|
|
8163
|
+
* @type {string}
|
|
8164
|
+
* @memberof TcxSbcDTO
|
|
8165
|
+
*/
|
|
8166
|
+
'tcxUrl'?: string;
|
|
8167
|
+
/**
|
|
8168
|
+
* 3CX SBC Key
|
|
8169
|
+
* @type {string}
|
|
8170
|
+
* @memberof TcxSbcDTO
|
|
8171
|
+
*/
|
|
8172
|
+
'tcxKey'?: string;
|
|
8173
|
+
}
|
|
7360
8174
|
/**
|
|
7361
8175
|
* 3CX Wizard SBC
|
|
7362
8176
|
* @export
|
|
@@ -7461,7 +8275,7 @@ export interface TcxSbcEntity {
|
|
|
7461
8275
|
'technicalContact'?: string;
|
|
7462
8276
|
}
|
|
7463
8277
|
/**
|
|
7464
|
-
* 3CX SBC
|
|
8278
|
+
* 3CX Wizard SBC
|
|
7465
8279
|
* @export
|
|
7466
8280
|
* @interface TcxSbcModel
|
|
7467
8281
|
*/
|
|
@@ -8646,6 +9460,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8646
9460
|
|
|
8647
9461
|
|
|
8648
9462
|
|
|
9463
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9465
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9466
|
+
|
|
9467
|
+
return {
|
|
9468
|
+
url: toPathString(localVarUrlObj),
|
|
9469
|
+
options: localVarRequestOptions,
|
|
9470
|
+
};
|
|
9471
|
+
},
|
|
9472
|
+
/**
|
|
9473
|
+
* Get Account Detailed Summary
|
|
9474
|
+
* @summary Get Account Detailed Summary
|
|
9475
|
+
* @param {number} id Customer ID
|
|
9476
|
+
* @param {*} [options] Override http request option.
|
|
9477
|
+
* @throws {RequiredError}
|
|
9478
|
+
*/
|
|
9479
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9480
|
+
// verify required parameter 'id' is not null or undefined
|
|
9481
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9482
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9483
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9484
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9485
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9486
|
+
let baseOptions;
|
|
9487
|
+
if (configuration) {
|
|
9488
|
+
baseOptions = configuration.baseOptions;
|
|
9489
|
+
}
|
|
9490
|
+
|
|
9491
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9492
|
+
const localVarHeaderParameter = {} as any;
|
|
9493
|
+
const localVarQueryParameter = {} as any;
|
|
9494
|
+
|
|
9495
|
+
|
|
9496
|
+
|
|
8649
9497
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8650
9498
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8651
9499
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8944,6 +9792,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8944
9792
|
options: localVarRequestOptions,
|
|
8945
9793
|
};
|
|
8946
9794
|
},
|
|
9795
|
+
/**
|
|
9796
|
+
* Get Admin Account
|
|
9797
|
+
* @summary Get Admin Account
|
|
9798
|
+
* @param {*} [options] Override http request option.
|
|
9799
|
+
* @throws {RequiredError}
|
|
9800
|
+
*/
|
|
9801
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9802
|
+
const localVarPath = `/admin/me`;
|
|
9803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9804
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9805
|
+
let baseOptions;
|
|
9806
|
+
if (configuration) {
|
|
9807
|
+
baseOptions = configuration.baseOptions;
|
|
9808
|
+
}
|
|
9809
|
+
|
|
9810
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9811
|
+
const localVarHeaderParameter = {} as any;
|
|
9812
|
+
const localVarQueryParameter = {} as any;
|
|
9813
|
+
|
|
9814
|
+
|
|
9815
|
+
|
|
9816
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9818
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9819
|
+
|
|
9820
|
+
return {
|
|
9821
|
+
url: toPathString(localVarUrlObj),
|
|
9822
|
+
options: localVarRequestOptions,
|
|
9823
|
+
};
|
|
9824
|
+
},
|
|
8947
9825
|
/**
|
|
8948
9826
|
* Create client credentials
|
|
8949
9827
|
* @summary Create client credentials
|
|
@@ -9193,6 +10071,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9193
10071
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9194
10072
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9195
10073
|
},
|
|
10074
|
+
/**
|
|
10075
|
+
* Get Account Detailed Summary
|
|
10076
|
+
* @summary Get Account Detailed Summary
|
|
10077
|
+
* @param {number} id Customer ID
|
|
10078
|
+
* @param {*} [options] Override http request option.
|
|
10079
|
+
* @throws {RequiredError}
|
|
10080
|
+
*/
|
|
10081
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10082
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10083
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10084
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10085
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10086
|
+
},
|
|
9196
10087
|
/**
|
|
9197
10088
|
* Get Accounts
|
|
9198
10089
|
* @summary Get Accounts
|
|
@@ -9298,6 +10189,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9298
10189
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9299
10190
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9300
10191
|
},
|
|
10192
|
+
/**
|
|
10193
|
+
* Get Admin Account
|
|
10194
|
+
* @summary Get Admin Account
|
|
10195
|
+
* @param {*} [options] Override http request option.
|
|
10196
|
+
* @throws {RequiredError}
|
|
10197
|
+
*/
|
|
10198
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10200
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10201
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10203
|
+
},
|
|
9301
10204
|
/**
|
|
9302
10205
|
* Create client credentials
|
|
9303
10206
|
* @summary Create client credentials
|
|
@@ -9415,6 +10318,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9415
10318
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9416
10319
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9417
10320
|
},
|
|
10321
|
+
/**
|
|
10322
|
+
* Get Account Detailed Summary
|
|
10323
|
+
* @summary Get Account Detailed Summary
|
|
10324
|
+
* @param {number} id Customer ID
|
|
10325
|
+
* @param {*} [options] Override http request option.
|
|
10326
|
+
* @throws {RequiredError}
|
|
10327
|
+
*/
|
|
10328
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10329
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10330
|
+
},
|
|
9418
10331
|
/**
|
|
9419
10332
|
* Get Accounts
|
|
9420
10333
|
* @summary Get Accounts
|
|
@@ -9496,6 +10409,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9496
10409
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9497
10410
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9498
10411
|
},
|
|
10412
|
+
/**
|
|
10413
|
+
* Get Admin Account
|
|
10414
|
+
* @summary Get Admin Account
|
|
10415
|
+
* @param {*} [options] Override http request option.
|
|
10416
|
+
* @throws {RequiredError}
|
|
10417
|
+
*/
|
|
10418
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10419
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10420
|
+
},
|
|
9499
10421
|
/**
|
|
9500
10422
|
* Create client credentials
|
|
9501
10423
|
* @summary Create client credentials
|
|
@@ -9606,6 +10528,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9606
10528
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9607
10529
|
}
|
|
9608
10530
|
|
|
10531
|
+
/**
|
|
10532
|
+
* Get Account Detailed Summary
|
|
10533
|
+
* @summary Get Account Detailed Summary
|
|
10534
|
+
* @param {number} id Customer ID
|
|
10535
|
+
* @param {*} [options] Override http request option.
|
|
10536
|
+
* @throws {RequiredError}
|
|
10537
|
+
* @memberof AccountsApi
|
|
10538
|
+
*/
|
|
10539
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10540
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10541
|
+
}
|
|
10542
|
+
|
|
9609
10543
|
/**
|
|
9610
10544
|
* Get Accounts
|
|
9611
10545
|
* @summary Get Accounts
|
|
@@ -9703,6 +10637,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9703
10637
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9704
10638
|
}
|
|
9705
10639
|
|
|
10640
|
+
/**
|
|
10641
|
+
* Get Admin Account
|
|
10642
|
+
* @summary Get Admin Account
|
|
10643
|
+
* @param {*} [options] Override http request option.
|
|
10644
|
+
* @throws {RequiredError}
|
|
10645
|
+
* @memberof AccountsApi
|
|
10646
|
+
*/
|
|
10647
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10648
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10649
|
+
}
|
|
10650
|
+
|
|
9706
10651
|
/**
|
|
9707
10652
|
* Create client credentials
|
|
9708
10653
|
* @summary Create client credentials
|
|
@@ -9803,43 +10748,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9803
10748
|
|
|
9804
10749
|
|
|
9805
10750
|
|
|
9806
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9807
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9808
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9809
|
-
|
|
9810
|
-
return {
|
|
9811
|
-
url: toPathString(localVarUrlObj),
|
|
9812
|
-
options: localVarRequestOptions,
|
|
9813
|
-
};
|
|
9814
|
-
},
|
|
9815
|
-
/**
|
|
9816
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9817
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9818
|
-
* @param {string} password Desired 3CX web access password
|
|
9819
|
-
* @param {*} [options] Override http request option.
|
|
9820
|
-
* @throws {RequiredError}
|
|
9821
|
-
*/
|
|
9822
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9823
|
-
// verify required parameter 'password' is not null or undefined
|
|
9824
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
9825
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
9826
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9827
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9828
|
-
let baseOptions;
|
|
9829
|
-
if (configuration) {
|
|
9830
|
-
baseOptions = configuration.baseOptions;
|
|
9831
|
-
}
|
|
9832
|
-
|
|
9833
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9834
|
-
const localVarHeaderParameter = {} as any;
|
|
9835
|
-
const localVarQueryParameter = {} as any;
|
|
9836
|
-
|
|
9837
|
-
if (password !== undefined) {
|
|
9838
|
-
localVarQueryParameter['password'] = password;
|
|
9839
|
-
}
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
10751
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9844
10752
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9845
10753
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9906,19 +10814,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
9906
10814
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
9907
10815
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9908
10816
|
},
|
|
9909
|
-
/**
|
|
9910
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9911
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9912
|
-
* @param {string} password Desired 3CX web access password
|
|
9913
|
-
* @param {*} [options] Override http request option.
|
|
9914
|
-
* @throws {RequiredError}
|
|
9915
|
-
*/
|
|
9916
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
9917
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
9918
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9919
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
9920
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9921
|
-
},
|
|
9922
10817
|
/**
|
|
9923
10818
|
* Get Bulk 3CX Licence Details
|
|
9924
10819
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -9952,16 +10847,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
9952
10847
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
9953
10848
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
9954
10849
|
},
|
|
9955
|
-
/**
|
|
9956
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9957
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9958
|
-
* @param {string} password Desired 3CX web access password
|
|
9959
|
-
* @param {*} [options] Override http request option.
|
|
9960
|
-
* @throws {RequiredError}
|
|
9961
|
-
*/
|
|
9962
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
9963
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
9964
|
-
},
|
|
9965
10850
|
/**
|
|
9966
10851
|
* Get Bulk 3CX Licence Details
|
|
9967
10852
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -9994,18 +10879,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
9994
10879
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
9995
10880
|
}
|
|
9996
10881
|
|
|
9997
|
-
/**
|
|
9998
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9999
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10000
|
-
* @param {string} password Desired 3CX web access password
|
|
10001
|
-
* @param {*} [options] Override http request option.
|
|
10002
|
-
* @throws {RequiredError}
|
|
10003
|
-
* @memberof Class3CXApi
|
|
10004
|
-
*/
|
|
10005
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
10006
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
10007
|
-
}
|
|
10008
|
-
|
|
10009
10882
|
/**
|
|
10010
10883
|
* Get Bulk 3CX Licence Details
|
|
10011
10884
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -15162,13 +16035,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15162
16035
|
return {
|
|
15163
16036
|
/**
|
|
15164
16037
|
* Delete Orders
|
|
16038
|
+
* @summary Delete Orders
|
|
15165
16039
|
* @param {number} id Order ID
|
|
15166
16040
|
* @param {*} [options] Override http request option.
|
|
15167
16041
|
* @throws {RequiredError}
|
|
15168
16042
|
*/
|
|
15169
|
-
|
|
16043
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15170
16044
|
// verify required parameter 'id' is not null or undefined
|
|
15171
|
-
assertParamExists('
|
|
16045
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15172
16046
|
const localVarPath = `/orders/{id}`
|
|
15173
16047
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15174
16048
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15184,6 +16058,39 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15184
16058
|
|
|
15185
16059
|
|
|
15186
16060
|
|
|
16061
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16062
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16063
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16064
|
+
|
|
16065
|
+
return {
|
|
16066
|
+
url: toPathString(localVarUrlObj),
|
|
16067
|
+
options: localVarRequestOptions,
|
|
16068
|
+
};
|
|
16069
|
+
},
|
|
16070
|
+
/**
|
|
16071
|
+
* Get Editable Order
|
|
16072
|
+
* @param {number} id Order ID
|
|
16073
|
+
* @param {*} [options] Override http request option.
|
|
16074
|
+
* @throws {RequiredError}
|
|
16075
|
+
*/
|
|
16076
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16077
|
+
// verify required parameter 'id' is not null or undefined
|
|
16078
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16079
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16080
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16081
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16082
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16083
|
+
let baseOptions;
|
|
16084
|
+
if (configuration) {
|
|
16085
|
+
baseOptions = configuration.baseOptions;
|
|
16086
|
+
}
|
|
16087
|
+
|
|
16088
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16089
|
+
const localVarHeaderParameter = {} as any;
|
|
16090
|
+
const localVarQueryParameter = {} as any;
|
|
16091
|
+
|
|
16092
|
+
|
|
16093
|
+
|
|
15187
16094
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15188
16095
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15189
16096
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15253,6 +16160,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15253
16160
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15254
16161
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15255
16162
|
|
|
16163
|
+
return {
|
|
16164
|
+
url: toPathString(localVarUrlObj),
|
|
16165
|
+
options: localVarRequestOptions,
|
|
16166
|
+
};
|
|
16167
|
+
},
|
|
16168
|
+
/**
|
|
16169
|
+
* Create An Order (Admin)
|
|
16170
|
+
* @summary Create An Order (Admin)
|
|
16171
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16172
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16173
|
+
* @param {*} [options] Override http request option.
|
|
16174
|
+
* @throws {RequiredError}
|
|
16175
|
+
*/
|
|
16176
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16177
|
+
const localVarPath = `/admin/orders`;
|
|
16178
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16179
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16180
|
+
let baseOptions;
|
|
16181
|
+
if (configuration) {
|
|
16182
|
+
baseOptions = configuration.baseOptions;
|
|
16183
|
+
}
|
|
16184
|
+
|
|
16185
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16186
|
+
const localVarHeaderParameter = {} as any;
|
|
16187
|
+
const localVarQueryParameter = {} as any;
|
|
16188
|
+
|
|
16189
|
+
if (readonly !== undefined) {
|
|
16190
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16191
|
+
}
|
|
16192
|
+
|
|
16193
|
+
|
|
16194
|
+
|
|
16195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16196
|
+
|
|
16197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16200
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16201
|
+
|
|
16202
|
+
return {
|
|
16203
|
+
url: toPathString(localVarUrlObj),
|
|
16204
|
+
options: localVarRequestOptions,
|
|
16205
|
+
};
|
|
16206
|
+
},
|
|
16207
|
+
/**
|
|
16208
|
+
* Create An Order
|
|
16209
|
+
* @summary Create An Order
|
|
16210
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16211
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16212
|
+
* @param {*} [options] Override http request option.
|
|
16213
|
+
* @throws {RequiredError}
|
|
16214
|
+
*/
|
|
16215
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16216
|
+
const localVarPath = `/orders`;
|
|
16217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16219
|
+
let baseOptions;
|
|
16220
|
+
if (configuration) {
|
|
16221
|
+
baseOptions = configuration.baseOptions;
|
|
16222
|
+
}
|
|
16223
|
+
|
|
16224
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16225
|
+
const localVarHeaderParameter = {} as any;
|
|
16226
|
+
const localVarQueryParameter = {} as any;
|
|
16227
|
+
|
|
16228
|
+
if (readonly !== undefined) {
|
|
16229
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16230
|
+
}
|
|
16231
|
+
|
|
16232
|
+
|
|
16233
|
+
|
|
16234
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16235
|
+
|
|
16236
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16237
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16238
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16239
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16240
|
+
|
|
16241
|
+
return {
|
|
16242
|
+
url: toPathString(localVarUrlObj),
|
|
16243
|
+
options: localVarRequestOptions,
|
|
16244
|
+
};
|
|
16245
|
+
},
|
|
16246
|
+
/**
|
|
16247
|
+
* Update An Order (Admin)
|
|
16248
|
+
* @summary Update An Order (Admin)
|
|
16249
|
+
* @param {number} id Order ID
|
|
16250
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16251
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16252
|
+
* @param {*} [options] Override http request option.
|
|
16253
|
+
* @throws {RequiredError}
|
|
16254
|
+
*/
|
|
16255
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16256
|
+
// verify required parameter 'id' is not null or undefined
|
|
16257
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16258
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16259
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16262
|
+
let baseOptions;
|
|
16263
|
+
if (configuration) {
|
|
16264
|
+
baseOptions = configuration.baseOptions;
|
|
16265
|
+
}
|
|
16266
|
+
|
|
16267
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16268
|
+
const localVarHeaderParameter = {} as any;
|
|
16269
|
+
const localVarQueryParameter = {} as any;
|
|
16270
|
+
|
|
16271
|
+
if (readonly !== undefined) {
|
|
16272
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16273
|
+
}
|
|
16274
|
+
|
|
16275
|
+
|
|
16276
|
+
|
|
16277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16278
|
+
|
|
16279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16281
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16282
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16283
|
+
|
|
16284
|
+
return {
|
|
16285
|
+
url: toPathString(localVarUrlObj),
|
|
16286
|
+
options: localVarRequestOptions,
|
|
16287
|
+
};
|
|
16288
|
+
},
|
|
16289
|
+
/**
|
|
16290
|
+
* Update An Order
|
|
16291
|
+
* @summary Update An Order
|
|
16292
|
+
* @param {number} id Order ID
|
|
16293
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16294
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16295
|
+
* @param {*} [options] Override http request option.
|
|
16296
|
+
* @throws {RequiredError}
|
|
16297
|
+
*/
|
|
16298
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16299
|
+
// verify required parameter 'id' is not null or undefined
|
|
16300
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16301
|
+
const localVarPath = `/orders/{id}`
|
|
16302
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16305
|
+
let baseOptions;
|
|
16306
|
+
if (configuration) {
|
|
16307
|
+
baseOptions = configuration.baseOptions;
|
|
16308
|
+
}
|
|
16309
|
+
|
|
16310
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16311
|
+
const localVarHeaderParameter = {} as any;
|
|
16312
|
+
const localVarQueryParameter = {} as any;
|
|
16313
|
+
|
|
16314
|
+
if (readonly !== undefined) {
|
|
16315
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16316
|
+
}
|
|
16317
|
+
|
|
16318
|
+
|
|
16319
|
+
|
|
16320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16321
|
+
|
|
16322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16324
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16325
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16326
|
+
|
|
15256
16327
|
return {
|
|
15257
16328
|
url: toPathString(localVarUrlObj),
|
|
15258
16329
|
options: localVarRequestOptions,
|
|
@@ -15270,14 +16341,27 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15270
16341
|
return {
|
|
15271
16342
|
/**
|
|
15272
16343
|
* Delete Orders
|
|
16344
|
+
* @summary Delete Orders
|
|
15273
16345
|
* @param {number} id Order ID
|
|
15274
16346
|
* @param {*} [options] Override http request option.
|
|
15275
16347
|
* @throws {RequiredError}
|
|
15276
16348
|
*/
|
|
15277
|
-
async
|
|
15278
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16349
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
15279
16351
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15280
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
16352
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16353
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16354
|
+
},
|
|
16355
|
+
/**
|
|
16356
|
+
* Get Editable Order
|
|
16357
|
+
* @param {number} id Order ID
|
|
16358
|
+
* @param {*} [options] Override http request option.
|
|
16359
|
+
* @throws {RequiredError}
|
|
16360
|
+
*/
|
|
16361
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
|
|
16362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
16363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16364
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15281
16365
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15282
16366
|
},
|
|
15283
16367
|
/**
|
|
@@ -15299,6 +16383,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15299
16383
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15300
16384
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15301
16385
|
},
|
|
16386
|
+
/**
|
|
16387
|
+
* Create An Order (Admin)
|
|
16388
|
+
* @summary Create An Order (Admin)
|
|
16389
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16390
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16391
|
+
* @param {*} [options] Override http request option.
|
|
16392
|
+
* @throws {RequiredError}
|
|
16393
|
+
*/
|
|
16394
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16396
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16397
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16399
|
+
},
|
|
16400
|
+
/**
|
|
16401
|
+
* Create An Order
|
|
16402
|
+
* @summary Create An Order
|
|
16403
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16404
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16405
|
+
* @param {*} [options] Override http request option.
|
|
16406
|
+
* @throws {RequiredError}
|
|
16407
|
+
*/
|
|
16408
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16409
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16410
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16411
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16412
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16413
|
+
},
|
|
16414
|
+
/**
|
|
16415
|
+
* Update An Order (Admin)
|
|
16416
|
+
* @summary Update An Order (Admin)
|
|
16417
|
+
* @param {number} id Order ID
|
|
16418
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16419
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16420
|
+
* @param {*} [options] Override http request option.
|
|
16421
|
+
* @throws {RequiredError}
|
|
16422
|
+
*/
|
|
16423
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16425
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16426
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16427
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16428
|
+
},
|
|
16429
|
+
/**
|
|
16430
|
+
* Update An Order
|
|
16431
|
+
* @summary Update An Order
|
|
16432
|
+
* @param {number} id Order ID
|
|
16433
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16434
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16435
|
+
* @param {*} [options] Override http request option.
|
|
16436
|
+
* @throws {RequiredError}
|
|
16437
|
+
*/
|
|
16438
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16440
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16441
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16442
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16443
|
+
},
|
|
15302
16444
|
}
|
|
15303
16445
|
};
|
|
15304
16446
|
|
|
@@ -15311,12 +16453,22 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15311
16453
|
return {
|
|
15312
16454
|
/**
|
|
15313
16455
|
* Delete Orders
|
|
16456
|
+
* @summary Delete Orders
|
|
15314
16457
|
* @param {number} id Order ID
|
|
15315
16458
|
* @param {*} [options] Override http request option.
|
|
15316
16459
|
* @throws {RequiredError}
|
|
15317
16460
|
*/
|
|
15318
|
-
|
|
15319
|
-
return localVarFp.
|
|
16461
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16462
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
16463
|
+
},
|
|
16464
|
+
/**
|
|
16465
|
+
* Get Editable Order
|
|
16466
|
+
* @param {number} id Order ID
|
|
16467
|
+
* @param {*} [options] Override http request option.
|
|
16468
|
+
* @throws {RequiredError}
|
|
16469
|
+
*/
|
|
16470
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
|
|
16471
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
15320
16472
|
},
|
|
15321
16473
|
/**
|
|
15322
16474
|
* Get Orders
|
|
@@ -15334,6 +16486,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15334
16486
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15335
16487
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15336
16488
|
},
|
|
16489
|
+
/**
|
|
16490
|
+
* Create An Order (Admin)
|
|
16491
|
+
* @summary Create An Order (Admin)
|
|
16492
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16493
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16494
|
+
* @param {*} [options] Override http request option.
|
|
16495
|
+
* @throws {RequiredError}
|
|
16496
|
+
*/
|
|
16497
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16498
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16499
|
+
},
|
|
16500
|
+
/**
|
|
16501
|
+
* Create An Order
|
|
16502
|
+
* @summary Create An Order
|
|
16503
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16504
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16505
|
+
* @param {*} [options] Override http request option.
|
|
16506
|
+
* @throws {RequiredError}
|
|
16507
|
+
*/
|
|
16508
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16509
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16510
|
+
},
|
|
16511
|
+
/**
|
|
16512
|
+
* Update An Order (Admin)
|
|
16513
|
+
* @summary Update An Order (Admin)
|
|
16514
|
+
* @param {number} id Order ID
|
|
16515
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16516
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16517
|
+
* @param {*} [options] Override http request option.
|
|
16518
|
+
* @throws {RequiredError}
|
|
16519
|
+
*/
|
|
16520
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16521
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16522
|
+
},
|
|
16523
|
+
/**
|
|
16524
|
+
* Update An Order
|
|
16525
|
+
* @summary Update An Order
|
|
16526
|
+
* @param {number} id Order ID
|
|
16527
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16528
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16529
|
+
* @param {*} [options] Override http request option.
|
|
16530
|
+
* @throws {RequiredError}
|
|
16531
|
+
*/
|
|
16532
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16533
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16534
|
+
},
|
|
15337
16535
|
};
|
|
15338
16536
|
};
|
|
15339
16537
|
|
|
@@ -15346,13 +16544,25 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15346
16544
|
export class OrdersApi extends BaseAPI {
|
|
15347
16545
|
/**
|
|
15348
16546
|
* Delete Orders
|
|
16547
|
+
* @summary Delete Orders
|
|
15349
16548
|
* @param {number} id Order ID
|
|
15350
16549
|
* @param {*} [options] Override http request option.
|
|
15351
16550
|
* @throws {RequiredError}
|
|
15352
16551
|
* @memberof OrdersApi
|
|
15353
16552
|
*/
|
|
15354
|
-
public
|
|
15355
|
-
return OrdersApiFp(this.configuration).
|
|
16553
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16554
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16555
|
+
}
|
|
16556
|
+
|
|
16557
|
+
/**
|
|
16558
|
+
* Get Editable Order
|
|
16559
|
+
* @param {number} id Order ID
|
|
16560
|
+
* @param {*} [options] Override http request option.
|
|
16561
|
+
* @throws {RequiredError}
|
|
16562
|
+
* @memberof OrdersApi
|
|
16563
|
+
*/
|
|
16564
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16565
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15356
16566
|
}
|
|
15357
16567
|
|
|
15358
16568
|
/**
|
|
@@ -15372,6 +16582,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15372
16582
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15373
16583
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15374
16584
|
}
|
|
16585
|
+
|
|
16586
|
+
/**
|
|
16587
|
+
* Create An Order (Admin)
|
|
16588
|
+
* @summary Create An Order (Admin)
|
|
16589
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16590
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16591
|
+
* @param {*} [options] Override http request option.
|
|
16592
|
+
* @throws {RequiredError}
|
|
16593
|
+
* @memberof OrdersApi
|
|
16594
|
+
*/
|
|
16595
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16596
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16597
|
+
}
|
|
16598
|
+
|
|
16599
|
+
/**
|
|
16600
|
+
* Create An Order
|
|
16601
|
+
* @summary Create An Order
|
|
16602
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16603
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16604
|
+
* @param {*} [options] Override http request option.
|
|
16605
|
+
* @throws {RequiredError}
|
|
16606
|
+
* @memberof OrdersApi
|
|
16607
|
+
*/
|
|
16608
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16609
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16610
|
+
}
|
|
16611
|
+
|
|
16612
|
+
/**
|
|
16613
|
+
* Update An Order (Admin)
|
|
16614
|
+
* @summary Update An Order (Admin)
|
|
16615
|
+
* @param {number} id Order ID
|
|
16616
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16617
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16618
|
+
* @param {*} [options] Override http request option.
|
|
16619
|
+
* @throws {RequiredError}
|
|
16620
|
+
* @memberof OrdersApi
|
|
16621
|
+
*/
|
|
16622
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16623
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16624
|
+
}
|
|
16625
|
+
|
|
16626
|
+
/**
|
|
16627
|
+
* Update An Order
|
|
16628
|
+
* @summary Update An Order
|
|
16629
|
+
* @param {number} id Order ID
|
|
16630
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16631
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16632
|
+
* @param {*} [options] Override http request option.
|
|
16633
|
+
* @throws {RequiredError}
|
|
16634
|
+
* @memberof OrdersApi
|
|
16635
|
+
*/
|
|
16636
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16637
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16638
|
+
}
|
|
15375
16639
|
}
|
|
15376
16640
|
|
|
15377
16641
|
/**
|
|
@@ -15757,8 +17021,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15757
17021
|
* @param {*} [options] Override http request option.
|
|
15758
17022
|
* @throws {RequiredError}
|
|
15759
17023
|
*/
|
|
15760
|
-
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15761
|
-
const localVarPath = `/products/attributes`;
|
|
17024
|
+
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17025
|
+
const localVarPath = `/products/attributes`;
|
|
17026
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17027
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17028
|
+
let baseOptions;
|
|
17029
|
+
if (configuration) {
|
|
17030
|
+
baseOptions = configuration.baseOptions;
|
|
17031
|
+
}
|
|
17032
|
+
|
|
17033
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17034
|
+
const localVarHeaderParameter = {} as any;
|
|
17035
|
+
const localVarQueryParameter = {} as any;
|
|
17036
|
+
|
|
17037
|
+
|
|
17038
|
+
|
|
17039
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17041
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17042
|
+
|
|
17043
|
+
return {
|
|
17044
|
+
url: toPathString(localVarUrlObj),
|
|
17045
|
+
options: localVarRequestOptions,
|
|
17046
|
+
};
|
|
17047
|
+
},
|
|
17048
|
+
/**
|
|
17049
|
+
* Get Current Stock & Pricing
|
|
17050
|
+
* @summary Get Current Stock & Pricing
|
|
17051
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
17052
|
+
* @param {*} [options] Override http request option.
|
|
17053
|
+
* @deprecated
|
|
17054
|
+
* @throws {RequiredError}
|
|
17055
|
+
*/
|
|
17056
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17057
|
+
// verify required parameter 'format' is not null or undefined
|
|
17058
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17059
|
+
const localVarPath = `/products/stock/legacy`;
|
|
15762
17060
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15763
17061
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15764
17062
|
let baseOptions;
|
|
@@ -15770,6 +17068,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15770
17068
|
const localVarHeaderParameter = {} as any;
|
|
15771
17069
|
const localVarQueryParameter = {} as any;
|
|
15772
17070
|
|
|
17071
|
+
if (format !== undefined) {
|
|
17072
|
+
localVarQueryParameter['format'] = format;
|
|
17073
|
+
}
|
|
17074
|
+
|
|
15773
17075
|
|
|
15774
17076
|
|
|
15775
17077
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15782,13 +17084,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15782
17084
|
};
|
|
15783
17085
|
},
|
|
15784
17086
|
/**
|
|
15785
|
-
* Get
|
|
15786
|
-
* @summary Get
|
|
17087
|
+
* Get Products
|
|
17088
|
+
* @summary Get Products
|
|
15787
17089
|
* @param {*} [options] Override http request option.
|
|
15788
17090
|
* @throws {RequiredError}
|
|
15789
17091
|
*/
|
|
15790
|
-
|
|
15791
|
-
const localVarPath = `/products
|
|
17092
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17093
|
+
const localVarPath = `/products`;
|
|
15792
17094
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15793
17095
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15794
17096
|
let baseOptions;
|
|
@@ -15814,15 +17116,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15814
17116
|
/**
|
|
15815
17117
|
* Get Current Stock & Pricing
|
|
15816
17118
|
* @summary Get Current Stock & Pricing
|
|
15817
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
15818
17119
|
* @param {*} [options] Override http request option.
|
|
15819
|
-
* @deprecated
|
|
15820
17120
|
* @throws {RequiredError}
|
|
15821
17121
|
*/
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
15825
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17122
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17123
|
+
const localVarPath = `/products/stock`;
|
|
15826
17124
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15827
17125
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15828
17126
|
let baseOptions;
|
|
@@ -15834,10 +17132,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15834
17132
|
const localVarHeaderParameter = {} as any;
|
|
15835
17133
|
const localVarQueryParameter = {} as any;
|
|
15836
17134
|
|
|
15837
|
-
|
|
15838
|
-
|
|
17135
|
+
|
|
17136
|
+
|
|
17137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17140
|
+
|
|
17141
|
+
return {
|
|
17142
|
+
url: toPathString(localVarUrlObj),
|
|
17143
|
+
options: localVarRequestOptions,
|
|
17144
|
+
};
|
|
17145
|
+
},
|
|
17146
|
+
/**
|
|
17147
|
+
* Get 3CX Templates
|
|
17148
|
+
* @summary Get 3CX Templates
|
|
17149
|
+
* @param {*} [options] Override http request option.
|
|
17150
|
+
* @throws {RequiredError}
|
|
17151
|
+
*/
|
|
17152
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17153
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17155
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17156
|
+
let baseOptions;
|
|
17157
|
+
if (configuration) {
|
|
17158
|
+
baseOptions = configuration.baseOptions;
|
|
15839
17159
|
}
|
|
15840
17160
|
|
|
17161
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17162
|
+
const localVarHeaderParameter = {} as any;
|
|
17163
|
+
const localVarQueryParameter = {} as any;
|
|
17164
|
+
|
|
15841
17165
|
|
|
15842
17166
|
|
|
15843
17167
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15850,15 +17174,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15850
17174
|
};
|
|
15851
17175
|
},
|
|
15852
17176
|
/**
|
|
15853
|
-
*
|
|
15854
|
-
* @summary
|
|
17177
|
+
* Search Products
|
|
17178
|
+
* @summary Search Products
|
|
15855
17179
|
* @param {number} [pageSize] Number Of Results
|
|
15856
17180
|
* @param {number} [page] Page Number
|
|
15857
17181
|
* @param {string} [search] Search
|
|
15858
17182
|
* @param {*} [options] Override http request option.
|
|
15859
17183
|
* @throws {RequiredError}
|
|
15860
17184
|
*/
|
|
15861
|
-
|
|
17185
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15862
17186
|
const localVarPath = `/products/search`;
|
|
15863
17187
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15864
17188
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15895,13 +17219,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15895
17219
|
};
|
|
15896
17220
|
},
|
|
15897
17221
|
/**
|
|
15898
|
-
* Get
|
|
15899
|
-
* @summary Get
|
|
17222
|
+
* Get Product
|
|
17223
|
+
* @summary Get Product
|
|
17224
|
+
* @param {string} sku Product SKU
|
|
17225
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15900
17226
|
* @param {*} [options] Override http request option.
|
|
15901
17227
|
* @throws {RequiredError}
|
|
15902
17228
|
*/
|
|
15903
|
-
|
|
15904
|
-
|
|
17229
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17230
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17231
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17232
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17233
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17234
|
+
const localVarPath = `/products/{sku}`
|
|
17235
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
15905
17236
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15906
17237
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15907
17238
|
let baseOptions;
|
|
@@ -15909,15 +17240,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15909
17240
|
baseOptions = configuration.baseOptions;
|
|
15910
17241
|
}
|
|
15911
17242
|
|
|
15912
|
-
const localVarRequestOptions = { method: '
|
|
17243
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15913
17244
|
const localVarHeaderParameter = {} as any;
|
|
15914
17245
|
const localVarQueryParameter = {} as any;
|
|
15915
17246
|
|
|
15916
17247
|
|
|
15917
17248
|
|
|
17249
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17250
|
+
|
|
15918
17251
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15919
17252
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15920
17253
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17254
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
15921
17255
|
|
|
15922
17256
|
return {
|
|
15923
17257
|
url: toPathString(localVarUrlObj),
|
|
@@ -15925,13 +17259,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15925
17259
|
};
|
|
15926
17260
|
},
|
|
15927
17261
|
/**
|
|
15928
|
-
* Get
|
|
15929
|
-
* @summary Get
|
|
17262
|
+
* Get Product For Customer
|
|
17263
|
+
* @summary Get Product For Customer
|
|
17264
|
+
* @param {number} customerId Customer ID
|
|
17265
|
+
* @param {string} sku Product SKU
|
|
17266
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15930
17267
|
* @param {*} [options] Override http request option.
|
|
15931
17268
|
* @throws {RequiredError}
|
|
15932
17269
|
*/
|
|
15933
|
-
|
|
15934
|
-
|
|
17270
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17271
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17272
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17273
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17274
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17275
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17276
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17277
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17278
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
15935
17279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15936
17280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15937
17281
|
let baseOptions;
|
|
@@ -15939,15 +17283,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15939
17283
|
baseOptions = configuration.baseOptions;
|
|
15940
17284
|
}
|
|
15941
17285
|
|
|
15942
|
-
const localVarRequestOptions = { method: '
|
|
17286
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15943
17287
|
const localVarHeaderParameter = {} as any;
|
|
15944
17288
|
const localVarQueryParameter = {} as any;
|
|
15945
17289
|
|
|
17290
|
+
if (customerId !== undefined) {
|
|
17291
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17292
|
+
}
|
|
17293
|
+
|
|
15946
17294
|
|
|
15947
17295
|
|
|
17296
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17297
|
+
|
|
15948
17298
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15949
17299
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15950
17300
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17301
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
15951
17302
|
|
|
15952
17303
|
return {
|
|
15953
17304
|
url: toPathString(localVarUrlObj),
|
|
@@ -15976,18 +17327,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
15976
17327
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
15977
17328
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15978
17329
|
},
|
|
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
17330
|
/**
|
|
15992
17331
|
* Get Current Stock & Pricing
|
|
15993
17332
|
* @summary Get Current Stock & Pricing
|
|
@@ -16005,14 +17344,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16005
17344
|
/**
|
|
16006
17345
|
* Get Products
|
|
16007
17346
|
* @summary Get Products
|
|
16008
|
-
* @param {number} [pageSize] Number Of Results
|
|
16009
|
-
* @param {number} [page] Page Number
|
|
16010
|
-
* @param {string} [search] Search
|
|
16011
17347
|
* @param {*} [options] Override http request option.
|
|
16012
17348
|
* @throws {RequiredError}
|
|
16013
17349
|
*/
|
|
16014
|
-
async getGetProducts(
|
|
16015
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17350
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16016
17352
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16017
17353
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16018
17354
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16041,6 +17377,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16041
17377
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16042
17378
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16043
17379
|
},
|
|
17380
|
+
/**
|
|
17381
|
+
* Search Products
|
|
17382
|
+
* @summary Search Products
|
|
17383
|
+
* @param {number} [pageSize] Number Of Results
|
|
17384
|
+
* @param {number} [page] Page Number
|
|
17385
|
+
* @param {string} [search] Search
|
|
17386
|
+
* @param {*} [options] Override http request option.
|
|
17387
|
+
* @throws {RequiredError}
|
|
17388
|
+
*/
|
|
17389
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17391
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17392
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17393
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17394
|
+
},
|
|
17395
|
+
/**
|
|
17396
|
+
* Get Product
|
|
17397
|
+
* @summary Get Product
|
|
17398
|
+
* @param {string} sku Product SKU
|
|
17399
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17400
|
+
* @param {*} [options] Override http request option.
|
|
17401
|
+
* @throws {RequiredError}
|
|
17402
|
+
*/
|
|
17403
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17405
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17406
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17408
|
+
},
|
|
17409
|
+
/**
|
|
17410
|
+
* Get Product For Customer
|
|
17411
|
+
* @summary Get Product For Customer
|
|
17412
|
+
* @param {number} customerId Customer ID
|
|
17413
|
+
* @param {string} sku Product SKU
|
|
17414
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17415
|
+
* @param {*} [options] Override http request option.
|
|
17416
|
+
* @throws {RequiredError}
|
|
17417
|
+
*/
|
|
17418
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17420
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17421
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17422
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17423
|
+
},
|
|
16044
17424
|
}
|
|
16045
17425
|
};
|
|
16046
17426
|
|
|
@@ -16060,15 +17440,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16060
17440
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16061
17441
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16062
17442
|
},
|
|
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
17443
|
/**
|
|
16073
17444
|
* Get Current Stock & Pricing
|
|
16074
17445
|
* @summary Get Current Stock & Pricing
|
|
@@ -16083,14 +17454,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16083
17454
|
/**
|
|
16084
17455
|
* Get Products
|
|
16085
17456
|
* @summary Get Products
|
|
16086
|
-
* @param {number} [pageSize] Number Of Results
|
|
16087
|
-
* @param {number} [page] Page Number
|
|
16088
|
-
* @param {string} [search] Search
|
|
16089
17457
|
* @param {*} [options] Override http request option.
|
|
16090
17458
|
* @throws {RequiredError}
|
|
16091
17459
|
*/
|
|
16092
|
-
getGetProducts(
|
|
16093
|
-
return localVarFp.getGetProducts(
|
|
17460
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17461
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16094
17462
|
},
|
|
16095
17463
|
/**
|
|
16096
17464
|
* Get Current Stock & Pricing
|
|
@@ -16110,6 +17478,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16110
17478
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16111
17479
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16112
17480
|
},
|
|
17481
|
+
/**
|
|
17482
|
+
* Search Products
|
|
17483
|
+
* @summary Search Products
|
|
17484
|
+
* @param {number} [pageSize] Number Of Results
|
|
17485
|
+
* @param {number} [page] Page Number
|
|
17486
|
+
* @param {string} [search] Search
|
|
17487
|
+
* @param {*} [options] Override http request option.
|
|
17488
|
+
* @throws {RequiredError}
|
|
17489
|
+
*/
|
|
17490
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17491
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17492
|
+
},
|
|
17493
|
+
/**
|
|
17494
|
+
* Get Product
|
|
17495
|
+
* @summary Get Product
|
|
17496
|
+
* @param {string} sku Product SKU
|
|
17497
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17498
|
+
* @param {*} [options] Override http request option.
|
|
17499
|
+
* @throws {RequiredError}
|
|
17500
|
+
*/
|
|
17501
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17502
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17503
|
+
},
|
|
17504
|
+
/**
|
|
17505
|
+
* Get Product For Customer
|
|
17506
|
+
* @summary Get Product For Customer
|
|
17507
|
+
* @param {number} customerId Customer ID
|
|
17508
|
+
* @param {string} sku Product SKU
|
|
17509
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17510
|
+
* @param {*} [options] Override http request option.
|
|
17511
|
+
* @throws {RequiredError}
|
|
17512
|
+
*/
|
|
17513
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17514
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17515
|
+
},
|
|
16113
17516
|
};
|
|
16114
17517
|
};
|
|
16115
17518
|
|
|
@@ -16131,17 +17534,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16131
17534
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16132
17535
|
}
|
|
16133
17536
|
|
|
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
17537
|
/**
|
|
16146
17538
|
* Get Current Stock & Pricing
|
|
16147
17539
|
* @summary Get Current Stock & Pricing
|
|
@@ -16158,15 +17550,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16158
17550
|
/**
|
|
16159
17551
|
* Get Products
|
|
16160
17552
|
* @summary Get Products
|
|
16161
|
-
* @param {number} [pageSize] Number Of Results
|
|
16162
|
-
* @param {number} [page] Page Number
|
|
16163
|
-
* @param {string} [search] Search
|
|
16164
17553
|
* @param {*} [options] Override http request option.
|
|
16165
17554
|
* @throws {RequiredError}
|
|
16166
17555
|
* @memberof ProductsApi
|
|
16167
17556
|
*/
|
|
16168
|
-
public getGetProducts(
|
|
16169
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
17557
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
17558
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16170
17559
|
}
|
|
16171
17560
|
|
|
16172
17561
|
/**
|
|
@@ -16190,6 +17579,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16190
17579
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16191
17580
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16192
17581
|
}
|
|
17582
|
+
|
|
17583
|
+
/**
|
|
17584
|
+
* Search Products
|
|
17585
|
+
* @summary Search Products
|
|
17586
|
+
* @param {number} [pageSize] Number Of Results
|
|
17587
|
+
* @param {number} [page] Page Number
|
|
17588
|
+
* @param {string} [search] Search
|
|
17589
|
+
* @param {*} [options] Override http request option.
|
|
17590
|
+
* @throws {RequiredError}
|
|
17591
|
+
* @memberof ProductsApi
|
|
17592
|
+
*/
|
|
17593
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
17594
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
17595
|
+
}
|
|
17596
|
+
|
|
17597
|
+
/**
|
|
17598
|
+
* Get Product
|
|
17599
|
+
* @summary Get Product
|
|
17600
|
+
* @param {string} sku Product SKU
|
|
17601
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17602
|
+
* @param {*} [options] Override http request option.
|
|
17603
|
+
* @throws {RequiredError}
|
|
17604
|
+
* @memberof ProductsApi
|
|
17605
|
+
*/
|
|
17606
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17607
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17608
|
+
}
|
|
17609
|
+
|
|
17610
|
+
/**
|
|
17611
|
+
* Get Product For Customer
|
|
17612
|
+
* @summary Get Product For Customer
|
|
17613
|
+
* @param {number} customerId Customer ID
|
|
17614
|
+
* @param {string} sku Product SKU
|
|
17615
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17616
|
+
* @param {*} [options] Override http request option.
|
|
17617
|
+
* @throws {RequiredError}
|
|
17618
|
+
* @memberof ProductsApi
|
|
17619
|
+
*/
|
|
17620
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17621
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17622
|
+
}
|
|
16193
17623
|
}
|
|
16194
17624
|
|
|
16195
17625
|
/**
|
|
@@ -16530,7 +17960,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16530
17960
|
* @param {*} [options] Override http request option.
|
|
16531
17961
|
* @throws {RequiredError}
|
|
16532
17962
|
*/
|
|
16533
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
17963
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16534
17964
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16535
17965
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16536
17966
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16543,7 +17973,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16543
17973
|
* @param {*} [options] Override http request option.
|
|
16544
17974
|
* @throws {RequiredError}
|
|
16545
17975
|
*/
|
|
16546
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
17976
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16547
17977
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16548
17978
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16549
17979
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16622,7 +18052,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16622
18052
|
* @param {*} [options] Override http request option.
|
|
16623
18053
|
* @throws {RequiredError}
|
|
16624
18054
|
*/
|
|
16625
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18055
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16626
18056
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16627
18057
|
},
|
|
16628
18058
|
/**
|
|
@@ -16632,7 +18062,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16632
18062
|
* @param {*} [options] Override http request option.
|
|
16633
18063
|
* @throws {RequiredError}
|
|
16634
18064
|
*/
|
|
16635
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18065
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16636
18066
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16637
18067
|
},
|
|
16638
18068
|
/**
|
|
@@ -18533,6 +19963,114 @@ export class SMSApi extends BaseAPI {
|
|
|
18533
19963
|
|
|
18534
19964
|
|
|
18535
19965
|
|
|
19966
|
+
/**
|
|
19967
|
+
* ShippingApi - axios parameter creator
|
|
19968
|
+
* @export
|
|
19969
|
+
*/
|
|
19970
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
19971
|
+
return {
|
|
19972
|
+
/**
|
|
19973
|
+
* Get Shipping Services
|
|
19974
|
+
* @summary Get Shipping Services
|
|
19975
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
19976
|
+
* @param {*} [options] Override http request option.
|
|
19977
|
+
* @throws {RequiredError}
|
|
19978
|
+
*/
|
|
19979
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19980
|
+
const localVarPath = `/shipping/services`;
|
|
19981
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19982
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19983
|
+
let baseOptions;
|
|
19984
|
+
if (configuration) {
|
|
19985
|
+
baseOptions = configuration.baseOptions;
|
|
19986
|
+
}
|
|
19987
|
+
|
|
19988
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19989
|
+
const localVarHeaderParameter = {} as any;
|
|
19990
|
+
const localVarQueryParameter = {} as any;
|
|
19991
|
+
|
|
19992
|
+
|
|
19993
|
+
|
|
19994
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19995
|
+
|
|
19996
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19997
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19998
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19999
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20000
|
+
|
|
20001
|
+
return {
|
|
20002
|
+
url: toPathString(localVarUrlObj),
|
|
20003
|
+
options: localVarRequestOptions,
|
|
20004
|
+
};
|
|
20005
|
+
},
|
|
20006
|
+
}
|
|
20007
|
+
};
|
|
20008
|
+
|
|
20009
|
+
/**
|
|
20010
|
+
* ShippingApi - functional programming interface
|
|
20011
|
+
* @export
|
|
20012
|
+
*/
|
|
20013
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20014
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20015
|
+
return {
|
|
20016
|
+
/**
|
|
20017
|
+
* Get Shipping Services
|
|
20018
|
+
* @summary Get Shipping Services
|
|
20019
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20020
|
+
* @param {*} [options] Override http request option.
|
|
20021
|
+
* @throws {RequiredError}
|
|
20022
|
+
*/
|
|
20023
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20024
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20025
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20026
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20027
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20028
|
+
},
|
|
20029
|
+
}
|
|
20030
|
+
};
|
|
20031
|
+
|
|
20032
|
+
/**
|
|
20033
|
+
* ShippingApi - factory interface
|
|
20034
|
+
* @export
|
|
20035
|
+
*/
|
|
20036
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20037
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20038
|
+
return {
|
|
20039
|
+
/**
|
|
20040
|
+
* Get Shipping Services
|
|
20041
|
+
* @summary Get Shipping Services
|
|
20042
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20043
|
+
* @param {*} [options] Override http request option.
|
|
20044
|
+
* @throws {RequiredError}
|
|
20045
|
+
*/
|
|
20046
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20047
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20048
|
+
},
|
|
20049
|
+
};
|
|
20050
|
+
};
|
|
20051
|
+
|
|
20052
|
+
/**
|
|
20053
|
+
* ShippingApi - object-oriented interface
|
|
20054
|
+
* @export
|
|
20055
|
+
* @class ShippingApi
|
|
20056
|
+
* @extends {BaseAPI}
|
|
20057
|
+
*/
|
|
20058
|
+
export class ShippingApi extends BaseAPI {
|
|
20059
|
+
/**
|
|
20060
|
+
* Get Shipping Services
|
|
20061
|
+
* @summary Get Shipping Services
|
|
20062
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20063
|
+
* @param {*} [options] Override http request option.
|
|
20064
|
+
* @throws {RequiredError}
|
|
20065
|
+
* @memberof ShippingApi
|
|
20066
|
+
*/
|
|
20067
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20068
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20069
|
+
}
|
|
20070
|
+
}
|
|
20071
|
+
|
|
20072
|
+
|
|
20073
|
+
|
|
18536
20074
|
/**
|
|
18537
20075
|
* StockManagementApi - axios parameter creator
|
|
18538
20076
|
* @export
|
|
@@ -19619,7 +21157,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19619
21157
|
* @param {*} [options] Override http request option.
|
|
19620
21158
|
* @throws {RequiredError}
|
|
19621
21159
|
*/
|
|
19622
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21160
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19623
21161
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19624
21162
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19625
21163
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -19922,7 +21460,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
19922
21460
|
* @param {*} [options] Override http request option.
|
|
19923
21461
|
* @throws {RequiredError}
|
|
19924
21462
|
*/
|
|
19925
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
21463
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
19926
21464
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
19927
21465
|
},
|
|
19928
21466
|
/**
|