yellowgrid-api-ts 3.1.8 → 3.1.9-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 +214 -197
- package/README.md +33 -7
- package/api.ts +1805 -251
- 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 +1326 -150
- package/dist/api.js +1063 -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 +41 -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 +37 -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,212 @@ 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
|
+
* Read Only (Cannot be edited)
|
|
716
|
+
* @type {boolean}
|
|
717
|
+
* @memberof AdminItemRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'readOnly'?: boolean;
|
|
720
|
+
/**
|
|
721
|
+
* Title
|
|
722
|
+
* @type {string}
|
|
723
|
+
* @memberof AdminItemRequestDTO
|
|
724
|
+
*/
|
|
725
|
+
'title'?: string | null;
|
|
726
|
+
/**
|
|
727
|
+
* Price (£)
|
|
728
|
+
* @type {number}
|
|
729
|
+
* @memberof AdminItemRequestDTO
|
|
730
|
+
*/
|
|
731
|
+
'itemPrice'?: number | null;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Admin Order Request
|
|
735
|
+
* @export
|
|
736
|
+
* @interface AdminOrderRequestDTO
|
|
737
|
+
*/
|
|
738
|
+
export interface AdminOrderRequestDTO {
|
|
739
|
+
/**
|
|
740
|
+
* Order Reference
|
|
741
|
+
* @type {string}
|
|
742
|
+
* @memberof AdminOrderRequestDTO
|
|
743
|
+
*/
|
|
744
|
+
'orderReference'?: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* Items
|
|
747
|
+
* @type {Array<AdminItemRequestDTO>}
|
|
748
|
+
* @memberof AdminOrderRequestDTO
|
|
749
|
+
*/
|
|
750
|
+
'items'?: Array<AdminItemRequestDTO>;
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @type {ShippingServiceDTO}
|
|
754
|
+
* @memberof AdminOrderRequestDTO
|
|
755
|
+
*/
|
|
756
|
+
'shippingService'?: ShippingServiceDTO;
|
|
757
|
+
/**
|
|
758
|
+
* Provisioning URL
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof AdminOrderRequestDTO
|
|
761
|
+
*/
|
|
762
|
+
'provisioningUrl'?: string | null;
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @type {AddressModel}
|
|
766
|
+
* @memberof AdminOrderRequestDTO
|
|
767
|
+
*/
|
|
768
|
+
'shippingAddress'?: AddressModel;
|
|
769
|
+
/**
|
|
770
|
+
* Part Ship Order
|
|
771
|
+
* @type {boolean}
|
|
772
|
+
* @memberof AdminOrderRequestDTO
|
|
773
|
+
*/
|
|
774
|
+
'partShip'?: boolean;
|
|
775
|
+
/**
|
|
776
|
+
* Quote
|
|
777
|
+
* @type {boolean}
|
|
778
|
+
* @memberof AdminOrderRequestDTO
|
|
779
|
+
*/
|
|
780
|
+
'quote'?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Customer ID
|
|
783
|
+
* @type {number}
|
|
784
|
+
* @memberof AdminOrderRequestDTO
|
|
785
|
+
*/
|
|
786
|
+
'customerId'?: number;
|
|
787
|
+
/**
|
|
788
|
+
* Contact
|
|
789
|
+
* @type {string}
|
|
790
|
+
* @memberof AdminOrderRequestDTO
|
|
791
|
+
*/
|
|
792
|
+
'contact'?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Ignore Customer On Hold
|
|
795
|
+
* @type {boolean}
|
|
796
|
+
* @memberof AdminOrderRequestDTO
|
|
797
|
+
*/
|
|
798
|
+
'ignoreOnHold'?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Ignore Customer Credit Limit
|
|
801
|
+
* @type {boolean}
|
|
802
|
+
* @memberof AdminOrderRequestDTO
|
|
803
|
+
*/
|
|
804
|
+
'ignoreCreditLimit'?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Include NFR Promos
|
|
807
|
+
* @type {boolean}
|
|
808
|
+
* @memberof AdminOrderRequestDTO
|
|
809
|
+
*/
|
|
810
|
+
'includeNfrPromos'?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Carriage Charge
|
|
813
|
+
* @type {number}
|
|
814
|
+
* @memberof AdminOrderRequestDTO
|
|
815
|
+
*/
|
|
816
|
+
'carriageCharge'?: number;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Admin User
|
|
820
|
+
* @export
|
|
821
|
+
* @interface AdminUserModel
|
|
822
|
+
*/
|
|
823
|
+
export interface AdminUserModel {
|
|
824
|
+
/**
|
|
825
|
+
* First Name
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof AdminUserModel
|
|
828
|
+
*/
|
|
829
|
+
'firstName'?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Last Name
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof AdminUserModel
|
|
834
|
+
*/
|
|
835
|
+
'lastName'?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Avatar
|
|
838
|
+
* @type {string}
|
|
839
|
+
* @memberof AdminUserModel
|
|
840
|
+
*/
|
|
841
|
+
'avatar'?: string | null;
|
|
842
|
+
/**
|
|
843
|
+
* Role
|
|
844
|
+
* @type {number}
|
|
845
|
+
* @memberof AdminUserModel
|
|
846
|
+
*/
|
|
847
|
+
'role'?: AdminUserModelRoleEnum;
|
|
848
|
+
/**
|
|
849
|
+
* Email
|
|
850
|
+
* @type {string}
|
|
851
|
+
* @memberof AdminUserModel
|
|
852
|
+
*/
|
|
853
|
+
'email'?: string | null;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export const AdminUserModelRoleEnum = {
|
|
857
|
+
NUMBER_0: 0,
|
|
858
|
+
NUMBER_1: 1,
|
|
859
|
+
NUMBER_2: 2,
|
|
860
|
+
NUMBER_3: 3,
|
|
861
|
+
NUMBER_4: 4
|
|
862
|
+
} as const;
|
|
863
|
+
|
|
864
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
865
|
+
|
|
538
866
|
/**
|
|
539
867
|
* Agent Hours Graph
|
|
540
868
|
* @export
|
|
@@ -764,6 +1092,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1092
|
*/
|
|
765
1093
|
'redirect_uri'?: string | null;
|
|
766
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Basic Order Item
|
|
1097
|
+
* @export
|
|
1098
|
+
* @interface BasicItemDTO
|
|
1099
|
+
*/
|
|
1100
|
+
export interface BasicItemDTO {
|
|
1101
|
+
/**
|
|
1102
|
+
* SKU
|
|
1103
|
+
* @type {string}
|
|
1104
|
+
* @memberof BasicItemDTO
|
|
1105
|
+
*/
|
|
1106
|
+
'sku'?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Quantity
|
|
1109
|
+
* @type {number}
|
|
1110
|
+
* @memberof BasicItemDTO
|
|
1111
|
+
*/
|
|
1112
|
+
'quantity'?: number;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Basic Product
|
|
1116
|
+
* @export
|
|
1117
|
+
* @interface BasicProductDTO
|
|
1118
|
+
*/
|
|
1119
|
+
export interface BasicProductDTO {
|
|
1120
|
+
/**
|
|
1121
|
+
* SKU
|
|
1122
|
+
* @type {string}
|
|
1123
|
+
* @memberof BasicProductDTO
|
|
1124
|
+
*/
|
|
1125
|
+
'sku'?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Title
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @memberof BasicProductDTO
|
|
1130
|
+
*/
|
|
1131
|
+
'title'?: string;
|
|
1132
|
+
}
|
|
767
1133
|
/**
|
|
768
1134
|
* BatchesEntity
|
|
769
1135
|
* @export
|
|
@@ -958,12 +1324,6 @@ export interface ClientDetailsModel {
|
|
|
958
1324
|
* @memberof ClientDetailsModel
|
|
959
1325
|
*/
|
|
960
1326
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1327
|
}
|
|
968
1328
|
/**
|
|
969
1329
|
* OAuth client details
|
|
@@ -1126,37 +1486,104 @@ export interface ConversationModel {
|
|
|
1126
1486
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1487
|
}
|
|
1128
1488
|
/**
|
|
1129
|
-
*
|
|
1489
|
+
* CourierPricesEntity
|
|
1130
1490
|
* @export
|
|
1131
|
-
* @interface
|
|
1491
|
+
* @interface CourierPriceEntity
|
|
1132
1492
|
*/
|
|
1133
|
-
export interface
|
|
1493
|
+
export interface CourierPriceEntity {
|
|
1134
1494
|
/**
|
|
1135
|
-
*
|
|
1495
|
+
* id
|
|
1136
1496
|
* @type {number}
|
|
1137
|
-
* @memberof
|
|
1497
|
+
* @memberof CourierPriceEntity
|
|
1138
1498
|
*/
|
|
1139
1499
|
'id'?: number;
|
|
1140
1500
|
/**
|
|
1141
|
-
*
|
|
1501
|
+
* courier
|
|
1142
1502
|
* @type {string}
|
|
1143
|
-
* @memberof
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1144
1504
|
*/
|
|
1145
|
-
'
|
|
1505
|
+
'courier'?: string;
|
|
1146
1506
|
/**
|
|
1147
|
-
*
|
|
1507
|
+
* destinationIso
|
|
1148
1508
|
* @type {string}
|
|
1149
|
-
* @memberof
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1150
1510
|
*/
|
|
1151
|
-
'
|
|
1511
|
+
'destinationIso'?: string;
|
|
1152
1512
|
/**
|
|
1153
|
-
*
|
|
1513
|
+
* serviceDescription
|
|
1154
1514
|
* @type {string}
|
|
1155
|
-
* @memberof
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1156
1516
|
*/
|
|
1157
|
-
'
|
|
1517
|
+
'serviceDescription'?: string;
|
|
1158
1518
|
/**
|
|
1159
|
-
*
|
|
1519
|
+
* flatRate
|
|
1520
|
+
* @type {number}
|
|
1521
|
+
* @memberof CourierPriceEntity
|
|
1522
|
+
*/
|
|
1523
|
+
'flatRate'?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* initialBox
|
|
1526
|
+
* @type {number}
|
|
1527
|
+
* @memberof CourierPriceEntity
|
|
1528
|
+
*/
|
|
1529
|
+
'initialBox'?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* initialKg
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof CourierPriceEntity
|
|
1534
|
+
*/
|
|
1535
|
+
'initialKg'?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* perBox
|
|
1538
|
+
* @type {number}
|
|
1539
|
+
* @memberof CourierPriceEntity
|
|
1540
|
+
*/
|
|
1541
|
+
'perBox'?: number;
|
|
1542
|
+
/**
|
|
1543
|
+
* perKg
|
|
1544
|
+
* @type {number}
|
|
1545
|
+
* @memberof CourierPriceEntity
|
|
1546
|
+
*/
|
|
1547
|
+
'perKg'?: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* maxKg
|
|
1550
|
+
* @type {number}
|
|
1551
|
+
* @memberof CourierPriceEntity
|
|
1552
|
+
*/
|
|
1553
|
+
'maxKg'?: number;
|
|
1554
|
+
}
|
|
1555
|
+
/**
|
|
1556
|
+
* Credit Account
|
|
1557
|
+
* @export
|
|
1558
|
+
* @interface CreditAccountEntity
|
|
1559
|
+
*/
|
|
1560
|
+
export interface CreditAccountEntity {
|
|
1561
|
+
/**
|
|
1562
|
+
* ID
|
|
1563
|
+
* @type {number}
|
|
1564
|
+
* @memberof CreditAccountEntity
|
|
1565
|
+
*/
|
|
1566
|
+
'id'?: number;
|
|
1567
|
+
/**
|
|
1568
|
+
* Contact Name
|
|
1569
|
+
* @type {string}
|
|
1570
|
+
* @memberof CreditAccountEntity
|
|
1571
|
+
*/
|
|
1572
|
+
'name'?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Email
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CreditAccountEntity
|
|
1577
|
+
*/
|
|
1578
|
+
'email'?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Phone Number
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof CreditAccountEntity
|
|
1583
|
+
*/
|
|
1584
|
+
'phone'?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Company Name
|
|
1160
1587
|
* @type {string}
|
|
1161
1588
|
* @memberof CreditAccountEntity
|
|
1162
1589
|
*/
|
|
@@ -1356,6 +1783,116 @@ export interface CustomerInformationModel {
|
|
|
1356
1783
|
*/
|
|
1357
1784
|
'contactLastName'?: string;
|
|
1358
1785
|
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Order Item Request
|
|
1788
|
+
* @export
|
|
1789
|
+
* @interface CustomerItemRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
export interface CustomerItemRequestDTO {
|
|
1792
|
+
/**
|
|
1793
|
+
* SKU
|
|
1794
|
+
* @type {string}
|
|
1795
|
+
* @memberof CustomerItemRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'sku'?: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* Quantity
|
|
1800
|
+
* @type {number}
|
|
1801
|
+
* @memberof CustomerItemRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'quantity'?: number;
|
|
1804
|
+
/**
|
|
1805
|
+
* ID
|
|
1806
|
+
* @type {number}
|
|
1807
|
+
* @memberof CustomerItemRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'id'?: number | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* 3CX Licence Key
|
|
1812
|
+
* @type {string}
|
|
1813
|
+
* @memberof CustomerItemRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'licenceKey'?: string | null;
|
|
1816
|
+
/**
|
|
1817
|
+
* 3CX Hosting
|
|
1818
|
+
* @type {boolean}
|
|
1819
|
+
* @memberof CustomerItemRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'hosting'?: boolean | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* Date Time
|
|
1824
|
+
* @type {string}
|
|
1825
|
+
* @memberof CustomerItemRequestDTO
|
|
1826
|
+
*/
|
|
1827
|
+
'processDate'?: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* 3CX Sales Code
|
|
1830
|
+
* @type {string}
|
|
1831
|
+
* @memberof CustomerItemRequestDTO
|
|
1832
|
+
*/
|
|
1833
|
+
'tcxSalesCode'?: string | null;
|
|
1834
|
+
/**
|
|
1835
|
+
* SBCS
|
|
1836
|
+
* @type {Array<TcxSbcDTO>}
|
|
1837
|
+
* @memberof CustomerItemRequestDTO
|
|
1838
|
+
*/
|
|
1839
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1840
|
+
/**
|
|
1841
|
+
* Read Only (Cannot be edited)
|
|
1842
|
+
* @type {boolean}
|
|
1843
|
+
* @memberof CustomerItemRequestDTO
|
|
1844
|
+
*/
|
|
1845
|
+
'readOnly'?: boolean;
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Order Request
|
|
1849
|
+
* @export
|
|
1850
|
+
* @interface CustomerOrderRequestDTO
|
|
1851
|
+
*/
|
|
1852
|
+
export interface CustomerOrderRequestDTO {
|
|
1853
|
+
/**
|
|
1854
|
+
* Order Reference
|
|
1855
|
+
* @type {string}
|
|
1856
|
+
* @memberof CustomerOrderRequestDTO
|
|
1857
|
+
*/
|
|
1858
|
+
'orderReference'?: string | null;
|
|
1859
|
+
/**
|
|
1860
|
+
* Items
|
|
1861
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1862
|
+
* @memberof CustomerOrderRequestDTO
|
|
1863
|
+
*/
|
|
1864
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1865
|
+
/**
|
|
1866
|
+
*
|
|
1867
|
+
* @type {ShippingServiceDTO}
|
|
1868
|
+
* @memberof CustomerOrderRequestDTO
|
|
1869
|
+
*/
|
|
1870
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1871
|
+
/**
|
|
1872
|
+
* Provisioning URL
|
|
1873
|
+
* @type {string}
|
|
1874
|
+
* @memberof CustomerOrderRequestDTO
|
|
1875
|
+
*/
|
|
1876
|
+
'provisioningUrl'?: string | null;
|
|
1877
|
+
/**
|
|
1878
|
+
*
|
|
1879
|
+
* @type {AddressModel}
|
|
1880
|
+
* @memberof CustomerOrderRequestDTO
|
|
1881
|
+
*/
|
|
1882
|
+
'shippingAddress'?: AddressModel;
|
|
1883
|
+
/**
|
|
1884
|
+
* Part Ship Order
|
|
1885
|
+
* @type {boolean}
|
|
1886
|
+
* @memberof CustomerOrderRequestDTO
|
|
1887
|
+
*/
|
|
1888
|
+
'partShip'?: boolean;
|
|
1889
|
+
/**
|
|
1890
|
+
* Quote
|
|
1891
|
+
* @type {boolean}
|
|
1892
|
+
* @memberof CustomerOrderRequestDTO
|
|
1893
|
+
*/
|
|
1894
|
+
'quote'?: boolean;
|
|
1895
|
+
}
|
|
1359
1896
|
/**
|
|
1360
1897
|
* Customer Price List
|
|
1361
1898
|
* @export
|
|
@@ -1865,19 +2402,6 @@ export interface GenericFileModel {
|
|
|
1865
2402
|
*/
|
|
1866
2403
|
'type'?: string;
|
|
1867
2404
|
}
|
|
1868
|
-
/**
|
|
1869
|
-
*
|
|
1870
|
-
* @export
|
|
1871
|
-
* @interface GetGetPasswordHash200Response
|
|
1872
|
-
*/
|
|
1873
|
-
export interface GetGetPasswordHash200Response {
|
|
1874
|
-
/**
|
|
1875
|
-
*
|
|
1876
|
-
* @type {string}
|
|
1877
|
-
* @memberof GetGetPasswordHash200Response
|
|
1878
|
-
*/
|
|
1879
|
-
'hash'?: string;
|
|
1880
|
-
}
|
|
1881
2405
|
/**
|
|
1882
2406
|
*
|
|
1883
2407
|
* @export
|
|
@@ -2479,35 +3003,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2479
3003
|
*/
|
|
2480
3004
|
export interface ItemDTO {
|
|
2481
3005
|
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @type {
|
|
3006
|
+
* SKU
|
|
3007
|
+
* @type {string}
|
|
2484
3008
|
* @memberof ItemDTO
|
|
2485
3009
|
*/
|
|
2486
|
-
'
|
|
3010
|
+
'sku'?: string;
|
|
2487
3011
|
/**
|
|
2488
|
-
*
|
|
3012
|
+
* Quantity
|
|
2489
3013
|
* @type {number}
|
|
2490
3014
|
* @memberof ItemDTO
|
|
2491
3015
|
*/
|
|
2492
|
-
'
|
|
3016
|
+
'quantity'?: number;
|
|
2493
3017
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @type {
|
|
3018
|
+
* ID
|
|
3019
|
+
* @type {number}
|
|
2496
3020
|
* @memberof ItemDTO
|
|
2497
3021
|
*/
|
|
2498
|
-
'
|
|
3022
|
+
'id'?: number | null;
|
|
2499
3023
|
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {
|
|
3024
|
+
* Order ID
|
|
3025
|
+
* @type {number}
|
|
2502
3026
|
* @memberof ItemDTO
|
|
2503
3027
|
*/
|
|
2504
|
-
'
|
|
3028
|
+
'orderId'?: number | null;
|
|
2505
3029
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
* @type {
|
|
3030
|
+
* Title
|
|
3031
|
+
* @type {string}
|
|
2508
3032
|
* @memberof ItemDTO
|
|
2509
3033
|
*/
|
|
2510
|
-
'
|
|
3034
|
+
'title'?: string;
|
|
2511
3035
|
/**
|
|
2512
3036
|
* Price
|
|
2513
3037
|
* @type {number}
|
|
@@ -2532,6 +3056,12 @@ export interface ItemDTO {
|
|
|
2532
3056
|
* @memberof ItemDTO
|
|
2533
3057
|
*/
|
|
2534
3058
|
'processDate'?: string;
|
|
3059
|
+
/**
|
|
3060
|
+
* 3CX Hosting
|
|
3061
|
+
* @type {boolean}
|
|
3062
|
+
* @memberof ItemDTO
|
|
3063
|
+
*/
|
|
3064
|
+
'hosting'?: boolean | null;
|
|
2535
3065
|
/**
|
|
2536
3066
|
* Promo Item
|
|
2537
3067
|
* @type {boolean}
|
|
@@ -2543,7 +3073,25 @@ export interface ItemDTO {
|
|
|
2543
3073
|
* @type {number}
|
|
2544
3074
|
* @memberof ItemDTO
|
|
2545
3075
|
*/
|
|
2546
|
-
'refunded'?: number;
|
|
3076
|
+
'refunded'?: number | null;
|
|
3077
|
+
/**
|
|
3078
|
+
* SBCs
|
|
3079
|
+
* @type {Array<TcxSbcDTO>}
|
|
3080
|
+
* @memberof ItemDTO
|
|
3081
|
+
*/
|
|
3082
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* Readonly
|
|
3085
|
+
* @type {boolean}
|
|
3086
|
+
* @memberof ItemDTO
|
|
3087
|
+
*/
|
|
3088
|
+
'readonly'?: boolean;
|
|
3089
|
+
/**
|
|
3090
|
+
* 3CX Sales Code
|
|
3091
|
+
* @type {string}
|
|
3092
|
+
* @memberof ItemDTO
|
|
3093
|
+
*/
|
|
3094
|
+
'tcxSalesCode'?: string | null;
|
|
2547
3095
|
}
|
|
2548
3096
|
/**
|
|
2549
3097
|
* ItemsEntity
|
|
@@ -2677,6 +3225,31 @@ export interface ItemEntity {
|
|
|
2677
3225
|
* @memberof ItemEntity
|
|
2678
3226
|
*/
|
|
2679
3227
|
'promoItem'?: number;
|
|
3228
|
+
/**
|
|
3229
|
+
* 3CX Sales Code
|
|
3230
|
+
* @type {string}
|
|
3231
|
+
* @memberof ItemEntity
|
|
3232
|
+
*/
|
|
3233
|
+
'tcxSalesCode'?: string | null;
|
|
3234
|
+
}
|
|
3235
|
+
/**
|
|
3236
|
+
* LinkedOrdersEntity
|
|
3237
|
+
* @export
|
|
3238
|
+
* @interface LinkedOrderEntity
|
|
3239
|
+
*/
|
|
3240
|
+
export interface LinkedOrderEntity {
|
|
3241
|
+
/**
|
|
3242
|
+
* orderId
|
|
3243
|
+
* @type {number}
|
|
3244
|
+
* @memberof LinkedOrderEntity
|
|
3245
|
+
*/
|
|
3246
|
+
'orderId'?: number;
|
|
3247
|
+
/**
|
|
3248
|
+
* linkedOrderId
|
|
3249
|
+
* @type {number}
|
|
3250
|
+
* @memberof LinkedOrderEntity
|
|
3251
|
+
*/
|
|
3252
|
+
'linkedOrderId'?: number;
|
|
2680
3253
|
}
|
|
2681
3254
|
/**
|
|
2682
3255
|
* MFA Required
|
|
@@ -3337,13 +3910,19 @@ export interface OrderSummaryDTO {
|
|
|
3337
3910
|
* @type {string}
|
|
3338
3911
|
* @memberof OrderSummaryDTO
|
|
3339
3912
|
*/
|
|
3340
|
-
'reference'?: string;
|
|
3913
|
+
'reference'?: string | null;
|
|
3341
3914
|
/**
|
|
3342
3915
|
* Invoice Number
|
|
3343
3916
|
* @type {string}
|
|
3344
3917
|
* @memberof OrderSummaryDTO
|
|
3345
3918
|
*/
|
|
3346
3919
|
'invoiceNumber'?: string;
|
|
3920
|
+
/**
|
|
3921
|
+
* Invoice ID
|
|
3922
|
+
* @type {string}
|
|
3923
|
+
* @memberof OrderSummaryDTO
|
|
3924
|
+
*/
|
|
3925
|
+
'invoiceId'?: string | null;
|
|
3347
3926
|
/**
|
|
3348
3927
|
* Date Time
|
|
3349
3928
|
* @type {string}
|
|
@@ -3398,6 +3977,24 @@ export interface OrderSummaryDTO {
|
|
|
3398
3977
|
* @memberof OrderSummaryDTO
|
|
3399
3978
|
*/
|
|
3400
3979
|
'fulfillable'?: boolean | null;
|
|
3980
|
+
/**
|
|
3981
|
+
* Provisioning URL
|
|
3982
|
+
* @type {string}
|
|
3983
|
+
* @memberof OrderSummaryDTO
|
|
3984
|
+
*/
|
|
3985
|
+
'provisioningUrl'?: string | null;
|
|
3986
|
+
/**
|
|
3987
|
+
*
|
|
3988
|
+
* @type {ShippingServiceDTO}
|
|
3989
|
+
* @memberof OrderSummaryDTO
|
|
3990
|
+
*/
|
|
3991
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
3992
|
+
/**
|
|
3993
|
+
* Readonly
|
|
3994
|
+
* @type {boolean}
|
|
3995
|
+
* @memberof OrderSummaryDTO
|
|
3996
|
+
*/
|
|
3997
|
+
'readonly'?: boolean;
|
|
3401
3998
|
}
|
|
3402
3999
|
/**
|
|
3403
4000
|
* Order Totals
|
|
@@ -3447,6 +4044,12 @@ export interface OrderTotalModel {
|
|
|
3447
4044
|
* @memberof OrderTotalModel
|
|
3448
4045
|
*/
|
|
3449
4046
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
4047
|
+
/**
|
|
4048
|
+
* Delivery
|
|
4049
|
+
* @type {number}
|
|
4050
|
+
* @memberof OrderTotalModel
|
|
4051
|
+
*/
|
|
4052
|
+
'delivery'?: number | null;
|
|
3450
4053
|
}
|
|
3451
4054
|
|
|
3452
4055
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3828,6 +4431,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3828
4431
|
*/
|
|
3829
4432
|
'scopes'?: Array<string>;
|
|
3830
4433
|
}
|
|
4434
|
+
/**
|
|
4435
|
+
*
|
|
4436
|
+
* @export
|
|
4437
|
+
* @interface PostGetProductForCustomerRequest
|
|
4438
|
+
*/
|
|
4439
|
+
export interface PostGetProductForCustomerRequest {
|
|
4440
|
+
/**
|
|
4441
|
+
* Quantity
|
|
4442
|
+
* @type {number}
|
|
4443
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4444
|
+
*/
|
|
4445
|
+
'quantity'?: number | null;
|
|
4446
|
+
/**
|
|
4447
|
+
* 3CX Licence Key
|
|
4448
|
+
* @type {string}
|
|
4449
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4450
|
+
*/
|
|
4451
|
+
'licenceKey'?: string | null;
|
|
4452
|
+
/**
|
|
4453
|
+
* 3CX Hosting
|
|
4454
|
+
* @type {boolean}
|
|
4455
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4456
|
+
*/
|
|
4457
|
+
'hosting'?: boolean | null;
|
|
4458
|
+
}
|
|
3831
4459
|
/**
|
|
3832
4460
|
* Price & Stock List
|
|
3833
4461
|
* @export
|
|
@@ -3916,10 +4544,10 @@ export interface PrizesEntity {
|
|
|
3916
4544
|
export interface ProductSearchResultsModel {
|
|
3917
4545
|
/**
|
|
3918
4546
|
* Results
|
|
3919
|
-
* @type {Array<
|
|
4547
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3920
4548
|
* @memberof ProductSearchResultsModel
|
|
3921
4549
|
*/
|
|
3922
|
-
'results'?: Array<
|
|
4550
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3923
4551
|
}
|
|
3924
4552
|
/**
|
|
3925
4553
|
* Product Serial Info
|
|
@@ -3955,45 +4583,51 @@ export interface ProductSerialInfoModel {
|
|
|
3955
4583
|
/**
|
|
3956
4584
|
* Product Summary
|
|
3957
4585
|
* @export
|
|
3958
|
-
* @interface
|
|
4586
|
+
* @interface ProductSummaryDTO
|
|
3959
4587
|
*/
|
|
3960
|
-
export interface
|
|
4588
|
+
export interface ProductSummaryDTO {
|
|
3961
4589
|
/**
|
|
3962
4590
|
* SKU
|
|
3963
4591
|
* @type {string}
|
|
3964
|
-
* @memberof
|
|
4592
|
+
* @memberof ProductSummaryDTO
|
|
3965
4593
|
*/
|
|
3966
4594
|
'sku'?: string;
|
|
3967
4595
|
/**
|
|
3968
4596
|
* Title
|
|
3969
4597
|
* @type {string}
|
|
3970
|
-
* @memberof
|
|
4598
|
+
* @memberof ProductSummaryDTO
|
|
3971
4599
|
*/
|
|
3972
4600
|
'title'?: string;
|
|
3973
4601
|
/**
|
|
3974
4602
|
* Stock Quantity
|
|
3975
4603
|
* @type {number}
|
|
3976
|
-
* @memberof
|
|
4604
|
+
* @memberof ProductSummaryDTO
|
|
3977
4605
|
*/
|
|
3978
4606
|
'quantity'?: number | null;
|
|
3979
4607
|
/**
|
|
3980
4608
|
* Stock Product
|
|
3981
4609
|
* @type {boolean}
|
|
3982
|
-
* @memberof
|
|
4610
|
+
* @memberof ProductSummaryDTO
|
|
3983
4611
|
*/
|
|
3984
4612
|
'stockProduct'?: boolean;
|
|
3985
4613
|
/**
|
|
3986
4614
|
* Price
|
|
3987
4615
|
* @type {number}
|
|
3988
|
-
* @memberof
|
|
4616
|
+
* @memberof ProductSummaryDTO
|
|
3989
4617
|
*/
|
|
3990
4618
|
'price'?: number | null;
|
|
3991
4619
|
/**
|
|
3992
4620
|
* Carton Size
|
|
3993
4621
|
* @type {number}
|
|
3994
|
-
* @memberof
|
|
4622
|
+
* @memberof ProductSummaryDTO
|
|
3995
4623
|
*/
|
|
3996
4624
|
'cartonSize'?: number | null;
|
|
4625
|
+
/**
|
|
4626
|
+
* RRP Price
|
|
4627
|
+
* @type {number}
|
|
4628
|
+
* @memberof ProductSummaryDTO
|
|
4629
|
+
*/
|
|
4630
|
+
'rrp'?: number | null;
|
|
3997
4631
|
}
|
|
3998
4632
|
/**
|
|
3999
4633
|
* PromoCodesEntity
|
|
@@ -4132,37 +4766,37 @@ export interface PromoItemsEntity {
|
|
|
4132
4766
|
/**
|
|
4133
4767
|
* Provisioning Group
|
|
4134
4768
|
* @export
|
|
4135
|
-
* @interface
|
|
4769
|
+
* @interface ProvisioningModel
|
|
4136
4770
|
*/
|
|
4137
|
-
export interface
|
|
4771
|
+
export interface ProvisioningModel {
|
|
4138
4772
|
/**
|
|
4139
4773
|
* Provisioning Group Name
|
|
4140
4774
|
* @type {string}
|
|
4141
|
-
* @memberof
|
|
4775
|
+
* @memberof ProvisioningModel
|
|
4142
4776
|
*/
|
|
4143
4777
|
'groupName'?: string;
|
|
4144
4778
|
/**
|
|
4145
4779
|
* Provisioning URL (Static Provisioning Server)
|
|
4146
4780
|
* @type {string}
|
|
4147
|
-
* @memberof
|
|
4781
|
+
* @memberof ProvisioningModel
|
|
4148
4782
|
*/
|
|
4149
4783
|
'provisioningUrl'?: string;
|
|
4150
4784
|
/**
|
|
4151
4785
|
* Additional Authentication Secret
|
|
4152
4786
|
* @type {string}
|
|
4153
|
-
* @memberof
|
|
4787
|
+
* @memberof ProvisioningModel
|
|
4154
4788
|
*/
|
|
4155
4789
|
'auth'?: string;
|
|
4156
4790
|
/**
|
|
4157
4791
|
* Provisioning Group ID
|
|
4158
4792
|
* @type {number}
|
|
4159
|
-
* @memberof
|
|
4793
|
+
* @memberof ProvisioningModel
|
|
4160
4794
|
*/
|
|
4161
4795
|
'id'?: number;
|
|
4162
4796
|
/**
|
|
4163
4797
|
* Owner ID
|
|
4164
4798
|
* @type {number}
|
|
4165
|
-
* @memberof
|
|
4799
|
+
* @memberof ProvisioningModel
|
|
4166
4800
|
*/
|
|
4167
4801
|
'customerId'?: number;
|
|
4168
4802
|
}
|
|
@@ -4516,7 +5150,7 @@ export interface ShipmentEntity {
|
|
|
4516
5150
|
* @type {string}
|
|
4517
5151
|
* @memberof ShipmentEntity
|
|
4518
5152
|
*/
|
|
4519
|
-
'
|
|
5153
|
+
'dateShipped'?: string;
|
|
4520
5154
|
/**
|
|
4521
5155
|
* requestDate
|
|
4522
5156
|
* @type {string}
|
|
@@ -4568,37 +5202,186 @@ export interface ShipmentItemEntity {
|
|
|
4568
5202
|
'itemId'?: string;
|
|
4569
5203
|
}
|
|
4570
5204
|
/**
|
|
4571
|
-
*
|
|
5205
|
+
*
|
|
4572
5206
|
* @export
|
|
4573
|
-
* @interface
|
|
5207
|
+
* @interface ShippingConsignmentModel
|
|
4574
5208
|
*/
|
|
4575
|
-
export interface
|
|
4576
|
-
/**
|
|
4577
|
-
* ID
|
|
4578
|
-
* @type {string}
|
|
4579
|
-
* @memberof SipTrunkChangeResponseModel
|
|
4580
|
-
*/
|
|
4581
|
-
'changeId'?: string;
|
|
5209
|
+
export interface ShippingConsignmentModel {
|
|
4582
5210
|
/**
|
|
4583
5211
|
*
|
|
4584
|
-
* @type {
|
|
4585
|
-
* @memberof
|
|
5212
|
+
* @type {ShippingServiceModel}
|
|
5213
|
+
* @memberof ShippingConsignmentModel
|
|
4586
5214
|
*/
|
|
4587
|
-
'
|
|
5215
|
+
'service'?: ShippingServiceModel;
|
|
4588
5216
|
/**
|
|
4589
|
-
*
|
|
5217
|
+
* ID/Number
|
|
4590
5218
|
* @type {string}
|
|
4591
|
-
* @memberof
|
|
5219
|
+
* @memberof ShippingConsignmentModel
|
|
4592
5220
|
*/
|
|
4593
|
-
'
|
|
5221
|
+
'id'?: string;
|
|
4594
5222
|
/**
|
|
4595
|
-
*
|
|
4596
|
-
* @type {
|
|
4597
|
-
* @memberof
|
|
5223
|
+
* Tracking Number
|
|
5224
|
+
* @type {string}
|
|
5225
|
+
* @memberof ShippingConsignmentModel
|
|
4598
5226
|
*/
|
|
4599
|
-
'
|
|
5227
|
+
'trackingNumber'?: string;
|
|
4600
5228
|
/**
|
|
4601
|
-
*
|
|
5229
|
+
* Parcels
|
|
5230
|
+
* @type {Array<string>}
|
|
5231
|
+
* @memberof ShippingConsignmentModel
|
|
5232
|
+
*/
|
|
5233
|
+
'parcelIds'?: Array<string>;
|
|
5234
|
+
}
|
|
5235
|
+
/**
|
|
5236
|
+
* Shipping Information
|
|
5237
|
+
* @export
|
|
5238
|
+
* @interface ShippingInformationDTO
|
|
5239
|
+
*/
|
|
5240
|
+
export interface ShippingInformationDTO {
|
|
5241
|
+
/**
|
|
5242
|
+
* Items
|
|
5243
|
+
* @type {Array<BasicItemDTO>}
|
|
5244
|
+
* @memberof ShippingInformationDTO
|
|
5245
|
+
*/
|
|
5246
|
+
'items'?: Array<BasicItemDTO>;
|
|
5247
|
+
/**
|
|
5248
|
+
* Destination Post Code
|
|
5249
|
+
* @type {string}
|
|
5250
|
+
* @memberof ShippingInformationDTO
|
|
5251
|
+
*/
|
|
5252
|
+
'postalCode'?: string;
|
|
5253
|
+
/**
|
|
5254
|
+
* Destination ISO
|
|
5255
|
+
* @type {string}
|
|
5256
|
+
* @memberof ShippingInformationDTO
|
|
5257
|
+
*/
|
|
5258
|
+
'iso'?: string;
|
|
5259
|
+
}
|
|
5260
|
+
/**
|
|
5261
|
+
* Shipping Service
|
|
5262
|
+
* @export
|
|
5263
|
+
* @interface ShippingServiceDTO
|
|
5264
|
+
*/
|
|
5265
|
+
export interface ShippingServiceDTO {
|
|
5266
|
+
/**
|
|
5267
|
+
* Courier
|
|
5268
|
+
* @type {string}
|
|
5269
|
+
* @memberof ShippingServiceDTO
|
|
5270
|
+
*/
|
|
5271
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5272
|
+
/**
|
|
5273
|
+
* Service Name
|
|
5274
|
+
* @type {string}
|
|
5275
|
+
* @memberof ShippingServiceDTO
|
|
5276
|
+
*/
|
|
5277
|
+
'serviceName'?: string;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5281
|
+
Dpd: 'DPD',
|
|
5282
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5283
|
+
Pops: 'POPS'
|
|
5284
|
+
} as const;
|
|
5285
|
+
|
|
5286
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5287
|
+
|
|
5288
|
+
/**
|
|
5289
|
+
* Shipping Service
|
|
5290
|
+
* @export
|
|
5291
|
+
* @interface ShippingServiceModel
|
|
5292
|
+
*/
|
|
5293
|
+
export interface ShippingServiceModel {
|
|
5294
|
+
/**
|
|
5295
|
+
* Courier
|
|
5296
|
+
* @type {string}
|
|
5297
|
+
* @memberof ShippingServiceModel
|
|
5298
|
+
*/
|
|
5299
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5300
|
+
/**
|
|
5301
|
+
* Code
|
|
5302
|
+
* @type {string}
|
|
5303
|
+
* @memberof ShippingServiceModel
|
|
5304
|
+
*/
|
|
5305
|
+
'code'?: string;
|
|
5306
|
+
/**
|
|
5307
|
+
* Name
|
|
5308
|
+
* @type {string}
|
|
5309
|
+
* @memberof ShippingServiceModel
|
|
5310
|
+
*/
|
|
5311
|
+
'name'?: string;
|
|
5312
|
+
/**
|
|
5313
|
+
* Description
|
|
5314
|
+
* @type {string}
|
|
5315
|
+
* @memberof ShippingServiceModel
|
|
5316
|
+
*/
|
|
5317
|
+
'description'?: string;
|
|
5318
|
+
/**
|
|
5319
|
+
* Label
|
|
5320
|
+
* @type {string}
|
|
5321
|
+
* @memberof ShippingServiceModel
|
|
5322
|
+
*/
|
|
5323
|
+
'label'?: string | null;
|
|
5324
|
+
/**
|
|
5325
|
+
* Price
|
|
5326
|
+
* @type {number}
|
|
5327
|
+
* @memberof ShippingServiceModel
|
|
5328
|
+
*/
|
|
5329
|
+
'price'?: number | null;
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5333
|
+
Dpd: 'DPD',
|
|
5334
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5335
|
+
Pops: 'POPS'
|
|
5336
|
+
} as const;
|
|
5337
|
+
|
|
5338
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5339
|
+
|
|
5340
|
+
/**
|
|
5341
|
+
*
|
|
5342
|
+
* @export
|
|
5343
|
+
* @interface ShippingServicesModel
|
|
5344
|
+
*/
|
|
5345
|
+
export interface ShippingServicesModel {
|
|
5346
|
+
/**
|
|
5347
|
+
* Services
|
|
5348
|
+
* @type {Array<ShippingServiceModel>}
|
|
5349
|
+
* @memberof ShippingServicesModel
|
|
5350
|
+
*/
|
|
5351
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5352
|
+
}
|
|
5353
|
+
/**
|
|
5354
|
+
* Change Response
|
|
5355
|
+
* @export
|
|
5356
|
+
* @interface SipTrunkChangeResponseModel
|
|
5357
|
+
*/
|
|
5358
|
+
export interface SipTrunkChangeResponseModel {
|
|
5359
|
+
/**
|
|
5360
|
+
* ID
|
|
5361
|
+
* @type {string}
|
|
5362
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5363
|
+
*/
|
|
5364
|
+
'changeId'?: string;
|
|
5365
|
+
/**
|
|
5366
|
+
*
|
|
5367
|
+
* @type {SipTrunkEntity}
|
|
5368
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5369
|
+
*/
|
|
5370
|
+
'trunk'?: SipTrunkEntity;
|
|
5371
|
+
/**
|
|
5372
|
+
* Type
|
|
5373
|
+
* @type {string}
|
|
5374
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5375
|
+
*/
|
|
5376
|
+
'type'?: SipTrunkChangeResponseModelTypeEnum;
|
|
5377
|
+
/**
|
|
5378
|
+
* Progress
|
|
5379
|
+
* @type {number}
|
|
5380
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5381
|
+
*/
|
|
5382
|
+
'progress'?: number;
|
|
5383
|
+
/**
|
|
5384
|
+
* Service Provider
|
|
4602
5385
|
* @type {number}
|
|
4603
5386
|
* @memberof SipTrunkChangeResponseModel
|
|
4604
5387
|
*/
|
|
@@ -7406,6 +8189,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7406
8189
|
*/
|
|
7407
8190
|
'secretAccessKey'?: string;
|
|
7408
8191
|
}
|
|
8192
|
+
/**
|
|
8193
|
+
* SBC Data
|
|
8194
|
+
* @export
|
|
8195
|
+
* @interface TcxSbcDTO
|
|
8196
|
+
*/
|
|
8197
|
+
export interface TcxSbcDTO {
|
|
8198
|
+
/**
|
|
8199
|
+
* LAN IP Address
|
|
8200
|
+
* @type {string}
|
|
8201
|
+
* @memberof TcxSbcDTO
|
|
8202
|
+
*/
|
|
8203
|
+
'ipAddress'?: string;
|
|
8204
|
+
/**
|
|
8205
|
+
* LAN Default Gateway
|
|
8206
|
+
* @type {string}
|
|
8207
|
+
* @memberof TcxSbcDTO
|
|
8208
|
+
*/
|
|
8209
|
+
'defaultGateway'?: string;
|
|
8210
|
+
/**
|
|
8211
|
+
* LAN Subnet Mask
|
|
8212
|
+
* @type {string}
|
|
8213
|
+
* @memberof TcxSbcDTO
|
|
8214
|
+
*/
|
|
8215
|
+
'netmask'?: string;
|
|
8216
|
+
/**
|
|
8217
|
+
* DNS
|
|
8218
|
+
* @type {string}
|
|
8219
|
+
* @memberof TcxSbcDTO
|
|
8220
|
+
*/
|
|
8221
|
+
'dns'?: string;
|
|
8222
|
+
/**
|
|
8223
|
+
* 3CX URL
|
|
8224
|
+
* @type {string}
|
|
8225
|
+
* @memberof TcxSbcDTO
|
|
8226
|
+
*/
|
|
8227
|
+
'tcxUrl'?: string;
|
|
8228
|
+
/**
|
|
8229
|
+
* 3CX SBC Key
|
|
8230
|
+
* @type {string}
|
|
8231
|
+
* @memberof TcxSbcDTO
|
|
8232
|
+
*/
|
|
8233
|
+
'tcxKey'?: string;
|
|
8234
|
+
}
|
|
7409
8235
|
/**
|
|
7410
8236
|
* 3CX Wizard SBC
|
|
7411
8237
|
* @export
|
|
@@ -7510,7 +8336,7 @@ export interface TcxSbcEntity {
|
|
|
7510
8336
|
'technicalContact'?: string;
|
|
7511
8337
|
}
|
|
7512
8338
|
/**
|
|
7513
|
-
* 3CX SBC
|
|
8339
|
+
* 3CX Wizard SBC
|
|
7514
8340
|
* @export
|
|
7515
8341
|
* @interface TcxSbcModel
|
|
7516
8342
|
*/
|
|
@@ -8695,6 +9521,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8695
9521
|
|
|
8696
9522
|
|
|
8697
9523
|
|
|
9524
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9526
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9527
|
+
|
|
9528
|
+
return {
|
|
9529
|
+
url: toPathString(localVarUrlObj),
|
|
9530
|
+
options: localVarRequestOptions,
|
|
9531
|
+
};
|
|
9532
|
+
},
|
|
9533
|
+
/**
|
|
9534
|
+
* Get Account Detailed Summary
|
|
9535
|
+
* @summary Get Account Detailed Summary
|
|
9536
|
+
* @param {number} id Customer ID
|
|
9537
|
+
* @param {*} [options] Override http request option.
|
|
9538
|
+
* @throws {RequiredError}
|
|
9539
|
+
*/
|
|
9540
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9541
|
+
// verify required parameter 'id' is not null or undefined
|
|
9542
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9543
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9544
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9546
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9547
|
+
let baseOptions;
|
|
9548
|
+
if (configuration) {
|
|
9549
|
+
baseOptions = configuration.baseOptions;
|
|
9550
|
+
}
|
|
9551
|
+
|
|
9552
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9553
|
+
const localVarHeaderParameter = {} as any;
|
|
9554
|
+
const localVarQueryParameter = {} as any;
|
|
9555
|
+
|
|
9556
|
+
|
|
9557
|
+
|
|
8698
9558
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8699
9559
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8700
9560
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8993,6 +9853,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8993
9853
|
options: localVarRequestOptions,
|
|
8994
9854
|
};
|
|
8995
9855
|
},
|
|
9856
|
+
/**
|
|
9857
|
+
* Get Admin Account
|
|
9858
|
+
* @summary Get Admin Account
|
|
9859
|
+
* @param {*} [options] Override http request option.
|
|
9860
|
+
* @throws {RequiredError}
|
|
9861
|
+
*/
|
|
9862
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9863
|
+
const localVarPath = `/admin/me`;
|
|
9864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9866
|
+
let baseOptions;
|
|
9867
|
+
if (configuration) {
|
|
9868
|
+
baseOptions = configuration.baseOptions;
|
|
9869
|
+
}
|
|
9870
|
+
|
|
9871
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9872
|
+
const localVarHeaderParameter = {} as any;
|
|
9873
|
+
const localVarQueryParameter = {} as any;
|
|
9874
|
+
|
|
9875
|
+
|
|
9876
|
+
|
|
9877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9879
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9880
|
+
|
|
9881
|
+
return {
|
|
9882
|
+
url: toPathString(localVarUrlObj),
|
|
9883
|
+
options: localVarRequestOptions,
|
|
9884
|
+
};
|
|
9885
|
+
},
|
|
8996
9886
|
/**
|
|
8997
9887
|
* Create client credentials
|
|
8998
9888
|
* @summary Create client credentials
|
|
@@ -9242,6 +10132,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9242
10132
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9243
10133
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9244
10134
|
},
|
|
10135
|
+
/**
|
|
10136
|
+
* Get Account Detailed Summary
|
|
10137
|
+
* @summary Get Account Detailed Summary
|
|
10138
|
+
* @param {number} id Customer ID
|
|
10139
|
+
* @param {*} [options] Override http request option.
|
|
10140
|
+
* @throws {RequiredError}
|
|
10141
|
+
*/
|
|
10142
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10143
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10144
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10145
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10147
|
+
},
|
|
9245
10148
|
/**
|
|
9246
10149
|
* Get Accounts
|
|
9247
10150
|
* @summary Get Accounts
|
|
@@ -9347,6 +10250,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9347
10250
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9348
10251
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9349
10252
|
},
|
|
10253
|
+
/**
|
|
10254
|
+
* Get Admin Account
|
|
10255
|
+
* @summary Get Admin Account
|
|
10256
|
+
* @param {*} [options] Override http request option.
|
|
10257
|
+
* @throws {RequiredError}
|
|
10258
|
+
*/
|
|
10259
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10260
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10261
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10262
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10263
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10264
|
+
},
|
|
9350
10265
|
/**
|
|
9351
10266
|
* Create client credentials
|
|
9352
10267
|
* @summary Create client credentials
|
|
@@ -9464,6 +10379,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9464
10379
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9465
10380
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9466
10381
|
},
|
|
10382
|
+
/**
|
|
10383
|
+
* Get Account Detailed Summary
|
|
10384
|
+
* @summary Get Account Detailed Summary
|
|
10385
|
+
* @param {number} id Customer ID
|
|
10386
|
+
* @param {*} [options] Override http request option.
|
|
10387
|
+
* @throws {RequiredError}
|
|
10388
|
+
*/
|
|
10389
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10390
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10391
|
+
},
|
|
9467
10392
|
/**
|
|
9468
10393
|
* Get Accounts
|
|
9469
10394
|
* @summary Get Accounts
|
|
@@ -9545,6 +10470,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9545
10470
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9546
10471
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9547
10472
|
},
|
|
10473
|
+
/**
|
|
10474
|
+
* Get Admin Account
|
|
10475
|
+
* @summary Get Admin Account
|
|
10476
|
+
* @param {*} [options] Override http request option.
|
|
10477
|
+
* @throws {RequiredError}
|
|
10478
|
+
*/
|
|
10479
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10480
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10481
|
+
},
|
|
9548
10482
|
/**
|
|
9549
10483
|
* Create client credentials
|
|
9550
10484
|
* @summary Create client credentials
|
|
@@ -9655,6 +10589,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9655
10589
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9656
10590
|
}
|
|
9657
10591
|
|
|
10592
|
+
/**
|
|
10593
|
+
* Get Account Detailed Summary
|
|
10594
|
+
* @summary Get Account Detailed Summary
|
|
10595
|
+
* @param {number} id Customer ID
|
|
10596
|
+
* @param {*} [options] Override http request option.
|
|
10597
|
+
* @throws {RequiredError}
|
|
10598
|
+
* @memberof AccountsApi
|
|
10599
|
+
*/
|
|
10600
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10601
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10602
|
+
}
|
|
10603
|
+
|
|
9658
10604
|
/**
|
|
9659
10605
|
* Get Accounts
|
|
9660
10606
|
* @summary Get Accounts
|
|
@@ -9752,6 +10698,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9752
10698
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9753
10699
|
}
|
|
9754
10700
|
|
|
10701
|
+
/**
|
|
10702
|
+
* Get Admin Account
|
|
10703
|
+
* @summary Get Admin Account
|
|
10704
|
+
* @param {*} [options] Override http request option.
|
|
10705
|
+
* @throws {RequiredError}
|
|
10706
|
+
* @memberof AccountsApi
|
|
10707
|
+
*/
|
|
10708
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10709
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10710
|
+
}
|
|
10711
|
+
|
|
9755
10712
|
/**
|
|
9756
10713
|
* Create client credentials
|
|
9757
10714
|
* @summary Create client credentials
|
|
@@ -9949,43 +10906,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9949
10906
|
|
|
9950
10907
|
|
|
9951
10908
|
|
|
9952
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9953
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9954
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9955
|
-
|
|
9956
|
-
return {
|
|
9957
|
-
url: toPathString(localVarUrlObj),
|
|
9958
|
-
options: localVarRequestOptions,
|
|
9959
|
-
};
|
|
9960
|
-
},
|
|
9961
|
-
/**
|
|
9962
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9963
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9964
|
-
* @param {string} password Desired 3CX web access password
|
|
9965
|
-
* @param {*} [options] Override http request option.
|
|
9966
|
-
* @throws {RequiredError}
|
|
9967
|
-
*/
|
|
9968
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9969
|
-
// verify required parameter 'password' is not null or undefined
|
|
9970
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
9971
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
9972
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9973
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9974
|
-
let baseOptions;
|
|
9975
|
-
if (configuration) {
|
|
9976
|
-
baseOptions = configuration.baseOptions;
|
|
9977
|
-
}
|
|
9978
|
-
|
|
9979
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9980
|
-
const localVarHeaderParameter = {} as any;
|
|
9981
|
-
const localVarQueryParameter = {} as any;
|
|
9982
|
-
|
|
9983
|
-
if (password !== undefined) {
|
|
9984
|
-
localVarQueryParameter['password'] = password;
|
|
9985
|
-
}
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
10909
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9990
10910
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9991
10911
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10052,19 +10972,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
10052
10972
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
10053
10973
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10054
10974
|
},
|
|
10055
|
-
/**
|
|
10056
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10057
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10058
|
-
* @param {string} password Desired 3CX web access password
|
|
10059
|
-
* @param {*} [options] Override http request option.
|
|
10060
|
-
* @throws {RequiredError}
|
|
10061
|
-
*/
|
|
10062
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
10063
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
10064
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10065
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
10066
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10067
|
-
},
|
|
10068
10975
|
/**
|
|
10069
10976
|
* Get Bulk 3CX Licence Details
|
|
10070
10977
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10098,16 +11005,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
10098
11005
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
10099
11006
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
10100
11007
|
},
|
|
10101
|
-
/**
|
|
10102
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10103
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10104
|
-
* @param {string} password Desired 3CX web access password
|
|
10105
|
-
* @param {*} [options] Override http request option.
|
|
10106
|
-
* @throws {RequiredError}
|
|
10107
|
-
*/
|
|
10108
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
10109
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
10110
|
-
},
|
|
10111
11008
|
/**
|
|
10112
11009
|
* Get Bulk 3CX Licence Details
|
|
10113
11010
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10140,18 +11037,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
10140
11037
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
10141
11038
|
}
|
|
10142
11039
|
|
|
10143
|
-
/**
|
|
10144
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10145
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10146
|
-
* @param {string} password Desired 3CX web access password
|
|
10147
|
-
* @param {*} [options] Override http request option.
|
|
10148
|
-
* @throws {RequiredError}
|
|
10149
|
-
* @memberof Class3CXApi
|
|
10150
|
-
*/
|
|
10151
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
10152
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
10153
|
-
}
|
|
10154
|
-
|
|
10155
11040
|
/**
|
|
10156
11041
|
* Get Bulk 3CX Licence Details
|
|
10157
11042
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -15326,13 +16211,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15326
16211
|
return {
|
|
15327
16212
|
/**
|
|
15328
16213
|
* Delete Orders
|
|
16214
|
+
* @summary Delete Orders
|
|
15329
16215
|
* @param {number} id Order ID
|
|
15330
16216
|
* @param {*} [options] Override http request option.
|
|
15331
16217
|
* @throws {RequiredError}
|
|
15332
16218
|
*/
|
|
15333
|
-
|
|
16219
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15334
16220
|
// verify required parameter 'id' is not null or undefined
|
|
15335
|
-
assertParamExists('
|
|
16221
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15336
16222
|
const localVarPath = `/orders/{id}`
|
|
15337
16223
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15338
16224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15348,6 +16234,40 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15348
16234
|
|
|
15349
16235
|
|
|
15350
16236
|
|
|
16237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16240
|
+
|
|
16241
|
+
return {
|
|
16242
|
+
url: toPathString(localVarUrlObj),
|
|
16243
|
+
options: localVarRequestOptions,
|
|
16244
|
+
};
|
|
16245
|
+
},
|
|
16246
|
+
/**
|
|
16247
|
+
* Get Editable Order
|
|
16248
|
+
* @summary Get Editable Order
|
|
16249
|
+
* @param {number} id Order ID
|
|
16250
|
+
* @param {*} [options] Override http request option.
|
|
16251
|
+
* @throws {RequiredError}
|
|
16252
|
+
*/
|
|
16253
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16254
|
+
// verify required parameter 'id' is not null or undefined
|
|
16255
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16256
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16257
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16259
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16260
|
+
let baseOptions;
|
|
16261
|
+
if (configuration) {
|
|
16262
|
+
baseOptions = configuration.baseOptions;
|
|
16263
|
+
}
|
|
16264
|
+
|
|
16265
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16266
|
+
const localVarHeaderParameter = {} as any;
|
|
16267
|
+
const localVarQueryParameter = {} as any;
|
|
16268
|
+
|
|
16269
|
+
|
|
16270
|
+
|
|
15351
16271
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15352
16272
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15353
16273
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15417,6 +16337,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15417
16337
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15418
16338
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15419
16339
|
|
|
16340
|
+
return {
|
|
16341
|
+
url: toPathString(localVarUrlObj),
|
|
16342
|
+
options: localVarRequestOptions,
|
|
16343
|
+
};
|
|
16344
|
+
},
|
|
16345
|
+
/**
|
|
16346
|
+
* Create An Order (Admin)
|
|
16347
|
+
* @summary Create An Order (Admin)
|
|
16348
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16349
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16350
|
+
* @param {*} [options] Override http request option.
|
|
16351
|
+
* @throws {RequiredError}
|
|
16352
|
+
*/
|
|
16353
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16354
|
+
const localVarPath = `/admin/orders`;
|
|
16355
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16356
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16357
|
+
let baseOptions;
|
|
16358
|
+
if (configuration) {
|
|
16359
|
+
baseOptions = configuration.baseOptions;
|
|
16360
|
+
}
|
|
16361
|
+
|
|
16362
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16363
|
+
const localVarHeaderParameter = {} as any;
|
|
16364
|
+
const localVarQueryParameter = {} as any;
|
|
16365
|
+
|
|
16366
|
+
if (readonly !== undefined) {
|
|
16367
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16368
|
+
}
|
|
16369
|
+
|
|
16370
|
+
|
|
16371
|
+
|
|
16372
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16373
|
+
|
|
16374
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16375
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16376
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16377
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16378
|
+
|
|
16379
|
+
return {
|
|
16380
|
+
url: toPathString(localVarUrlObj),
|
|
16381
|
+
options: localVarRequestOptions,
|
|
16382
|
+
};
|
|
16383
|
+
},
|
|
16384
|
+
/**
|
|
16385
|
+
* Create An Order
|
|
16386
|
+
* @summary Create An Order
|
|
16387
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16388
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16389
|
+
* @param {*} [options] Override http request option.
|
|
16390
|
+
* @throws {RequiredError}
|
|
16391
|
+
*/
|
|
16392
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16393
|
+
const localVarPath = `/orders`;
|
|
16394
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16395
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16396
|
+
let baseOptions;
|
|
16397
|
+
if (configuration) {
|
|
16398
|
+
baseOptions = configuration.baseOptions;
|
|
16399
|
+
}
|
|
16400
|
+
|
|
16401
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16402
|
+
const localVarHeaderParameter = {} as any;
|
|
16403
|
+
const localVarQueryParameter = {} as any;
|
|
16404
|
+
|
|
16405
|
+
if (readonly !== undefined) {
|
|
16406
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16407
|
+
}
|
|
16408
|
+
|
|
16409
|
+
|
|
16410
|
+
|
|
16411
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16412
|
+
|
|
16413
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16414
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16415
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16416
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16417
|
+
|
|
16418
|
+
return {
|
|
16419
|
+
url: toPathString(localVarUrlObj),
|
|
16420
|
+
options: localVarRequestOptions,
|
|
16421
|
+
};
|
|
16422
|
+
},
|
|
16423
|
+
/**
|
|
16424
|
+
* Update An Order (Admin)
|
|
16425
|
+
* @summary Update An Order (Admin)
|
|
16426
|
+
* @param {number} id Order ID
|
|
16427
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16428
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16429
|
+
* @param {*} [options] Override http request option.
|
|
16430
|
+
* @throws {RequiredError}
|
|
16431
|
+
*/
|
|
16432
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16433
|
+
// verify required parameter 'id' is not null or undefined
|
|
16434
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16435
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16436
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16437
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16438
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16439
|
+
let baseOptions;
|
|
16440
|
+
if (configuration) {
|
|
16441
|
+
baseOptions = configuration.baseOptions;
|
|
16442
|
+
}
|
|
16443
|
+
|
|
16444
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16445
|
+
const localVarHeaderParameter = {} as any;
|
|
16446
|
+
const localVarQueryParameter = {} as any;
|
|
16447
|
+
|
|
16448
|
+
if (readonly !== undefined) {
|
|
16449
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16450
|
+
}
|
|
16451
|
+
|
|
16452
|
+
|
|
16453
|
+
|
|
16454
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16455
|
+
|
|
16456
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16457
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16458
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16459
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16460
|
+
|
|
16461
|
+
return {
|
|
16462
|
+
url: toPathString(localVarUrlObj),
|
|
16463
|
+
options: localVarRequestOptions,
|
|
16464
|
+
};
|
|
16465
|
+
},
|
|
16466
|
+
/**
|
|
16467
|
+
* Update An Order
|
|
16468
|
+
* @summary Update An Order
|
|
16469
|
+
* @param {number} id Order ID
|
|
16470
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16471
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16472
|
+
* @param {*} [options] Override http request option.
|
|
16473
|
+
* @throws {RequiredError}
|
|
16474
|
+
*/
|
|
16475
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16476
|
+
// verify required parameter 'id' is not null or undefined
|
|
16477
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16478
|
+
const localVarPath = `/orders/{id}`
|
|
16479
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16482
|
+
let baseOptions;
|
|
16483
|
+
if (configuration) {
|
|
16484
|
+
baseOptions = configuration.baseOptions;
|
|
16485
|
+
}
|
|
16486
|
+
|
|
16487
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16488
|
+
const localVarHeaderParameter = {} as any;
|
|
16489
|
+
const localVarQueryParameter = {} as any;
|
|
16490
|
+
|
|
16491
|
+
if (readonly !== undefined) {
|
|
16492
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16493
|
+
}
|
|
16494
|
+
|
|
16495
|
+
|
|
16496
|
+
|
|
16497
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16498
|
+
|
|
16499
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16500
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16501
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16502
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16503
|
+
|
|
15420
16504
|
return {
|
|
15421
16505
|
url: toPathString(localVarUrlObj),
|
|
15422
16506
|
options: localVarRequestOptions,
|
|
@@ -15434,14 +16518,28 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15434
16518
|
return {
|
|
15435
16519
|
/**
|
|
15436
16520
|
* Delete Orders
|
|
16521
|
+
* @summary Delete Orders
|
|
15437
16522
|
* @param {number} id Order ID
|
|
15438
16523
|
* @param {*} [options] Override http request option.
|
|
15439
16524
|
* @throws {RequiredError}
|
|
15440
16525
|
*/
|
|
15441
|
-
async
|
|
15442
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16526
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
15443
16528
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15444
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
16529
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16530
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16531
|
+
},
|
|
16532
|
+
/**
|
|
16533
|
+
* Get Editable Order
|
|
16534
|
+
* @summary Get Editable Order
|
|
16535
|
+
* @param {number} id Order ID
|
|
16536
|
+
* @param {*} [options] Override http request option.
|
|
16537
|
+
* @throws {RequiredError}
|
|
16538
|
+
*/
|
|
16539
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
16540
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
16541
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16542
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15445
16543
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15446
16544
|
},
|
|
15447
16545
|
/**
|
|
@@ -15463,6 +16561,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15463
16561
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15464
16562
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15465
16563
|
},
|
|
16564
|
+
/**
|
|
16565
|
+
* Create An Order (Admin)
|
|
16566
|
+
* @summary Create An Order (Admin)
|
|
16567
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16568
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16569
|
+
* @param {*} [options] Override http request option.
|
|
16570
|
+
* @throws {RequiredError}
|
|
16571
|
+
*/
|
|
16572
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16573
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16574
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16575
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16576
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16577
|
+
},
|
|
16578
|
+
/**
|
|
16579
|
+
* Create An Order
|
|
16580
|
+
* @summary Create An Order
|
|
16581
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16582
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16583
|
+
* @param {*} [options] Override http request option.
|
|
16584
|
+
* @throws {RequiredError}
|
|
16585
|
+
*/
|
|
16586
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16587
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16588
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16589
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16590
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16591
|
+
},
|
|
16592
|
+
/**
|
|
16593
|
+
* Update An Order (Admin)
|
|
16594
|
+
* @summary Update An Order (Admin)
|
|
16595
|
+
* @param {number} id Order ID
|
|
16596
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16597
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16598
|
+
* @param {*} [options] Override http request option.
|
|
16599
|
+
* @throws {RequiredError}
|
|
16600
|
+
*/
|
|
16601
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16603
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16604
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16606
|
+
},
|
|
16607
|
+
/**
|
|
16608
|
+
* Update An Order
|
|
16609
|
+
* @summary Update An Order
|
|
16610
|
+
* @param {number} id Order ID
|
|
16611
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16612
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16613
|
+
* @param {*} [options] Override http request option.
|
|
16614
|
+
* @throws {RequiredError}
|
|
16615
|
+
*/
|
|
16616
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16617
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16618
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16619
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16620
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16621
|
+
},
|
|
15466
16622
|
}
|
|
15467
16623
|
};
|
|
15468
16624
|
|
|
@@ -15475,12 +16631,23 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15475
16631
|
return {
|
|
15476
16632
|
/**
|
|
15477
16633
|
* Delete Orders
|
|
16634
|
+
* @summary Delete Orders
|
|
15478
16635
|
* @param {number} id Order ID
|
|
15479
16636
|
* @param {*} [options] Override http request option.
|
|
15480
16637
|
* @throws {RequiredError}
|
|
15481
16638
|
*/
|
|
15482
|
-
|
|
15483
|
-
return localVarFp.
|
|
16639
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16640
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
16641
|
+
},
|
|
16642
|
+
/**
|
|
16643
|
+
* Get Editable Order
|
|
16644
|
+
* @summary Get Editable Order
|
|
16645
|
+
* @param {number} id Order ID
|
|
16646
|
+
* @param {*} [options] Override http request option.
|
|
16647
|
+
* @throws {RequiredError}
|
|
16648
|
+
*/
|
|
16649
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
|
|
16650
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
15484
16651
|
},
|
|
15485
16652
|
/**
|
|
15486
16653
|
* Get Orders
|
|
@@ -15498,6 +16665,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15498
16665
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15499
16666
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15500
16667
|
},
|
|
16668
|
+
/**
|
|
16669
|
+
* Create An Order (Admin)
|
|
16670
|
+
* @summary Create An Order (Admin)
|
|
16671
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16672
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16673
|
+
* @param {*} [options] Override http request option.
|
|
16674
|
+
* @throws {RequiredError}
|
|
16675
|
+
*/
|
|
16676
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16677
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16678
|
+
},
|
|
16679
|
+
/**
|
|
16680
|
+
* Create An Order
|
|
16681
|
+
* @summary Create An Order
|
|
16682
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16683
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16684
|
+
* @param {*} [options] Override http request option.
|
|
16685
|
+
* @throws {RequiredError}
|
|
16686
|
+
*/
|
|
16687
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16688
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16689
|
+
},
|
|
16690
|
+
/**
|
|
16691
|
+
* Update An Order (Admin)
|
|
16692
|
+
* @summary Update An Order (Admin)
|
|
16693
|
+
* @param {number} id Order ID
|
|
16694
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16695
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16696
|
+
* @param {*} [options] Override http request option.
|
|
16697
|
+
* @throws {RequiredError}
|
|
16698
|
+
*/
|
|
16699
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16700
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16701
|
+
},
|
|
16702
|
+
/**
|
|
16703
|
+
* Update An Order
|
|
16704
|
+
* @summary Update An Order
|
|
16705
|
+
* @param {number} id Order ID
|
|
16706
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16707
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16708
|
+
* @param {*} [options] Override http request option.
|
|
16709
|
+
* @throws {RequiredError}
|
|
16710
|
+
*/
|
|
16711
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16712
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16713
|
+
},
|
|
15501
16714
|
};
|
|
15502
16715
|
};
|
|
15503
16716
|
|
|
@@ -15510,13 +16723,26 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15510
16723
|
export class OrdersApi extends BaseAPI {
|
|
15511
16724
|
/**
|
|
15512
16725
|
* Delete Orders
|
|
16726
|
+
* @summary Delete Orders
|
|
15513
16727
|
* @param {number} id Order ID
|
|
15514
16728
|
* @param {*} [options] Override http request option.
|
|
15515
16729
|
* @throws {RequiredError}
|
|
15516
16730
|
* @memberof OrdersApi
|
|
15517
16731
|
*/
|
|
15518
|
-
public
|
|
15519
|
-
return OrdersApiFp(this.configuration).
|
|
16732
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16733
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16734
|
+
}
|
|
16735
|
+
|
|
16736
|
+
/**
|
|
16737
|
+
* Get Editable Order
|
|
16738
|
+
* @summary Get Editable Order
|
|
16739
|
+
* @param {number} id Order ID
|
|
16740
|
+
* @param {*} [options] Override http request option.
|
|
16741
|
+
* @throws {RequiredError}
|
|
16742
|
+
* @memberof OrdersApi
|
|
16743
|
+
*/
|
|
16744
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16745
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15520
16746
|
}
|
|
15521
16747
|
|
|
15522
16748
|
/**
|
|
@@ -15536,6 +16762,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15536
16762
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15537
16763
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15538
16764
|
}
|
|
16765
|
+
|
|
16766
|
+
/**
|
|
16767
|
+
* Create An Order (Admin)
|
|
16768
|
+
* @summary Create An Order (Admin)
|
|
16769
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16770
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16771
|
+
* @param {*} [options] Override http request option.
|
|
16772
|
+
* @throws {RequiredError}
|
|
16773
|
+
* @memberof OrdersApi
|
|
16774
|
+
*/
|
|
16775
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16776
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16777
|
+
}
|
|
16778
|
+
|
|
16779
|
+
/**
|
|
16780
|
+
* Create An Order
|
|
16781
|
+
* @summary Create An Order
|
|
16782
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16783
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16784
|
+
* @param {*} [options] Override http request option.
|
|
16785
|
+
* @throws {RequiredError}
|
|
16786
|
+
* @memberof OrdersApi
|
|
16787
|
+
*/
|
|
16788
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16789
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16790
|
+
}
|
|
16791
|
+
|
|
16792
|
+
/**
|
|
16793
|
+
* Update An Order (Admin)
|
|
16794
|
+
* @summary Update An Order (Admin)
|
|
16795
|
+
* @param {number} id Order ID
|
|
16796
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16797
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16798
|
+
* @param {*} [options] Override http request option.
|
|
16799
|
+
* @throws {RequiredError}
|
|
16800
|
+
* @memberof OrdersApi
|
|
16801
|
+
*/
|
|
16802
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16803
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16804
|
+
}
|
|
16805
|
+
|
|
16806
|
+
/**
|
|
16807
|
+
* Update An Order
|
|
16808
|
+
* @summary Update An Order
|
|
16809
|
+
* @param {number} id Order ID
|
|
16810
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16811
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16812
|
+
* @param {*} [options] Override http request option.
|
|
16813
|
+
* @throws {RequiredError}
|
|
16814
|
+
* @memberof OrdersApi
|
|
16815
|
+
*/
|
|
16816
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16817
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16818
|
+
}
|
|
15539
16819
|
}
|
|
15540
16820
|
|
|
15541
16821
|
/**
|
|
@@ -15921,8 +17201,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15921
17201
|
* @param {*} [options] Override http request option.
|
|
15922
17202
|
* @throws {RequiredError}
|
|
15923
17203
|
*/
|
|
15924
|
-
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15925
|
-
const localVarPath = `/products/attributes`;
|
|
17204
|
+
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17205
|
+
const localVarPath = `/products/attributes`;
|
|
17206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17208
|
+
let baseOptions;
|
|
17209
|
+
if (configuration) {
|
|
17210
|
+
baseOptions = configuration.baseOptions;
|
|
17211
|
+
}
|
|
17212
|
+
|
|
17213
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17214
|
+
const localVarHeaderParameter = {} as any;
|
|
17215
|
+
const localVarQueryParameter = {} as any;
|
|
17216
|
+
|
|
17217
|
+
|
|
17218
|
+
|
|
17219
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17220
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17221
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17222
|
+
|
|
17223
|
+
return {
|
|
17224
|
+
url: toPathString(localVarUrlObj),
|
|
17225
|
+
options: localVarRequestOptions,
|
|
17226
|
+
};
|
|
17227
|
+
},
|
|
17228
|
+
/**
|
|
17229
|
+
* Get Current Stock & Pricing
|
|
17230
|
+
* @summary Get Current Stock & Pricing
|
|
17231
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
17232
|
+
* @param {*} [options] Override http request option.
|
|
17233
|
+
* @deprecated
|
|
17234
|
+
* @throws {RequiredError}
|
|
17235
|
+
*/
|
|
17236
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17237
|
+
// verify required parameter 'format' is not null or undefined
|
|
17238
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17239
|
+
const localVarPath = `/products/stock/legacy`;
|
|
15926
17240
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15927
17241
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15928
17242
|
let baseOptions;
|
|
@@ -15934,6 +17248,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15934
17248
|
const localVarHeaderParameter = {} as any;
|
|
15935
17249
|
const localVarQueryParameter = {} as any;
|
|
15936
17250
|
|
|
17251
|
+
if (format !== undefined) {
|
|
17252
|
+
localVarQueryParameter['format'] = format;
|
|
17253
|
+
}
|
|
17254
|
+
|
|
15937
17255
|
|
|
15938
17256
|
|
|
15939
17257
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15946,13 +17264,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15946
17264
|
};
|
|
15947
17265
|
},
|
|
15948
17266
|
/**
|
|
15949
|
-
* Get
|
|
15950
|
-
* @summary Get
|
|
17267
|
+
* Get Products
|
|
17268
|
+
* @summary Get Products
|
|
15951
17269
|
* @param {*} [options] Override http request option.
|
|
15952
17270
|
* @throws {RequiredError}
|
|
15953
17271
|
*/
|
|
15954
|
-
|
|
15955
|
-
const localVarPath = `/products
|
|
17272
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17273
|
+
const localVarPath = `/products`;
|
|
15956
17274
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15957
17275
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15958
17276
|
let baseOptions;
|
|
@@ -15978,15 +17296,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15978
17296
|
/**
|
|
15979
17297
|
* Get Current Stock & Pricing
|
|
15980
17298
|
* @summary Get Current Stock & Pricing
|
|
15981
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
15982
17299
|
* @param {*} [options] Override http request option.
|
|
15983
|
-
* @deprecated
|
|
15984
17300
|
* @throws {RequiredError}
|
|
15985
17301
|
*/
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
15989
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17302
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17303
|
+
const localVarPath = `/products/stock`;
|
|
15990
17304
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15991
17305
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15992
17306
|
let baseOptions;
|
|
@@ -15998,10 +17312,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15998
17312
|
const localVarHeaderParameter = {} as any;
|
|
15999
17313
|
const localVarQueryParameter = {} as any;
|
|
16000
17314
|
|
|
16001
|
-
|
|
16002
|
-
|
|
17315
|
+
|
|
17316
|
+
|
|
17317
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17318
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17319
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17320
|
+
|
|
17321
|
+
return {
|
|
17322
|
+
url: toPathString(localVarUrlObj),
|
|
17323
|
+
options: localVarRequestOptions,
|
|
17324
|
+
};
|
|
17325
|
+
},
|
|
17326
|
+
/**
|
|
17327
|
+
* Get 3CX Templates
|
|
17328
|
+
* @summary Get 3CX Templates
|
|
17329
|
+
* @param {*} [options] Override http request option.
|
|
17330
|
+
* @throws {RequiredError}
|
|
17331
|
+
*/
|
|
17332
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17333
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17335
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17336
|
+
let baseOptions;
|
|
17337
|
+
if (configuration) {
|
|
17338
|
+
baseOptions = configuration.baseOptions;
|
|
16003
17339
|
}
|
|
16004
17340
|
|
|
17341
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17342
|
+
const localVarHeaderParameter = {} as any;
|
|
17343
|
+
const localVarQueryParameter = {} as any;
|
|
17344
|
+
|
|
16005
17345
|
|
|
16006
17346
|
|
|
16007
17347
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16014,15 +17354,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16014
17354
|
};
|
|
16015
17355
|
},
|
|
16016
17356
|
/**
|
|
16017
|
-
*
|
|
16018
|
-
* @summary
|
|
17357
|
+
* Search Products
|
|
17358
|
+
* @summary Search Products
|
|
16019
17359
|
* @param {number} [pageSize] Number Of Results
|
|
16020
17360
|
* @param {number} [page] Page Number
|
|
16021
17361
|
* @param {string} [search] Search
|
|
16022
17362
|
* @param {*} [options] Override http request option.
|
|
16023
17363
|
* @throws {RequiredError}
|
|
16024
17364
|
*/
|
|
16025
|
-
|
|
17365
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16026
17366
|
const localVarPath = `/products/search`;
|
|
16027
17367
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16028
17368
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16059,13 +17399,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16059
17399
|
};
|
|
16060
17400
|
},
|
|
16061
17401
|
/**
|
|
16062
|
-
* Get
|
|
16063
|
-
* @summary Get
|
|
17402
|
+
* Get Product
|
|
17403
|
+
* @summary Get Product
|
|
17404
|
+
* @param {string} sku Product SKU
|
|
17405
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16064
17406
|
* @param {*} [options] Override http request option.
|
|
16065
17407
|
* @throws {RequiredError}
|
|
16066
17408
|
*/
|
|
16067
|
-
|
|
16068
|
-
|
|
17409
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17410
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17411
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17412
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17413
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17414
|
+
const localVarPath = `/products/{sku}`
|
|
17415
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16069
17416
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16070
17417
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16071
17418
|
let baseOptions;
|
|
@@ -16073,15 +17420,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16073
17420
|
baseOptions = configuration.baseOptions;
|
|
16074
17421
|
}
|
|
16075
17422
|
|
|
16076
|
-
const localVarRequestOptions = { method: '
|
|
17423
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16077
17424
|
const localVarHeaderParameter = {} as any;
|
|
16078
17425
|
const localVarQueryParameter = {} as any;
|
|
16079
17426
|
|
|
16080
17427
|
|
|
16081
17428
|
|
|
17429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17430
|
+
|
|
16082
17431
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16083
17432
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16084
17433
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17434
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16085
17435
|
|
|
16086
17436
|
return {
|
|
16087
17437
|
url: toPathString(localVarUrlObj),
|
|
@@ -16089,13 +17439,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16089
17439
|
};
|
|
16090
17440
|
},
|
|
16091
17441
|
/**
|
|
16092
|
-
* Get
|
|
16093
|
-
* @summary Get
|
|
17442
|
+
* Get Product For Customer
|
|
17443
|
+
* @summary Get Product For Customer
|
|
17444
|
+
* @param {number} customerId Customer ID
|
|
17445
|
+
* @param {string} sku Product SKU
|
|
17446
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16094
17447
|
* @param {*} [options] Override http request option.
|
|
16095
17448
|
* @throws {RequiredError}
|
|
16096
17449
|
*/
|
|
16097
|
-
|
|
16098
|
-
|
|
17450
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17451
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17452
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17453
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17454
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17455
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17456
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17457
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17458
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16099
17459
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16100
17460
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16101
17461
|
let baseOptions;
|
|
@@ -16103,15 +17463,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16103
17463
|
baseOptions = configuration.baseOptions;
|
|
16104
17464
|
}
|
|
16105
17465
|
|
|
16106
|
-
const localVarRequestOptions = { method: '
|
|
17466
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16107
17467
|
const localVarHeaderParameter = {} as any;
|
|
16108
17468
|
const localVarQueryParameter = {} as any;
|
|
16109
17469
|
|
|
17470
|
+
if (customerId !== undefined) {
|
|
17471
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17472
|
+
}
|
|
17473
|
+
|
|
16110
17474
|
|
|
16111
17475
|
|
|
17476
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17477
|
+
|
|
16112
17478
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16113
17479
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16114
17480
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17481
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16115
17482
|
|
|
16116
17483
|
return {
|
|
16117
17484
|
url: toPathString(localVarUrlObj),
|
|
@@ -16140,18 +17507,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16140
17507
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
16141
17508
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16142
17509
|
},
|
|
16143
|
-
/**
|
|
16144
|
-
* Get Customer Price Lists
|
|
16145
|
-
* @summary Get Customer Price Lists
|
|
16146
|
-
* @param {*} [options] Override http request option.
|
|
16147
|
-
* @throws {RequiredError}
|
|
16148
|
-
*/
|
|
16149
|
-
async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
|
|
16150
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
|
|
16151
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16152
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
|
|
16153
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16154
|
-
},
|
|
16155
17510
|
/**
|
|
16156
17511
|
* Get Current Stock & Pricing
|
|
16157
17512
|
* @summary Get Current Stock & Pricing
|
|
@@ -16169,14 +17524,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16169
17524
|
/**
|
|
16170
17525
|
* Get Products
|
|
16171
17526
|
* @summary Get Products
|
|
16172
|
-
* @param {number} [pageSize] Number Of Results
|
|
16173
|
-
* @param {number} [page] Page Number
|
|
16174
|
-
* @param {string} [search] Search
|
|
16175
17527
|
* @param {*} [options] Override http request option.
|
|
16176
17528
|
* @throws {RequiredError}
|
|
16177
17529
|
*/
|
|
16178
|
-
async getGetProducts(
|
|
16179
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17530
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16180
17532
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16181
17533
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16182
17534
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16205,6 +17557,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16205
17557
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16206
17558
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16207
17559
|
},
|
|
17560
|
+
/**
|
|
17561
|
+
* Search Products
|
|
17562
|
+
* @summary Search Products
|
|
17563
|
+
* @param {number} [pageSize] Number Of Results
|
|
17564
|
+
* @param {number} [page] Page Number
|
|
17565
|
+
* @param {string} [search] Search
|
|
17566
|
+
* @param {*} [options] Override http request option.
|
|
17567
|
+
* @throws {RequiredError}
|
|
17568
|
+
*/
|
|
17569
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17571
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17572
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17573
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17574
|
+
},
|
|
17575
|
+
/**
|
|
17576
|
+
* Get Product
|
|
17577
|
+
* @summary Get Product
|
|
17578
|
+
* @param {string} sku Product SKU
|
|
17579
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17580
|
+
* @param {*} [options] Override http request option.
|
|
17581
|
+
* @throws {RequiredError}
|
|
17582
|
+
*/
|
|
17583
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17585
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17586
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17587
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17588
|
+
},
|
|
17589
|
+
/**
|
|
17590
|
+
* Get Product For Customer
|
|
17591
|
+
* @summary Get Product For Customer
|
|
17592
|
+
* @param {number} customerId Customer ID
|
|
17593
|
+
* @param {string} sku Product SKU
|
|
17594
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17595
|
+
* @param {*} [options] Override http request option.
|
|
17596
|
+
* @throws {RequiredError}
|
|
17597
|
+
*/
|
|
17598
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17600
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17601
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17603
|
+
},
|
|
16208
17604
|
}
|
|
16209
17605
|
};
|
|
16210
17606
|
|
|
@@ -16224,15 +17620,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16224
17620
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16225
17621
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16226
17622
|
},
|
|
16227
|
-
/**
|
|
16228
|
-
* Get Customer Price Lists
|
|
16229
|
-
* @summary Get Customer Price Lists
|
|
16230
|
-
* @param {*} [options] Override http request option.
|
|
16231
|
-
* @throws {RequiredError}
|
|
16232
|
-
*/
|
|
16233
|
-
getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
|
|
16234
|
-
return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
|
|
16235
|
-
},
|
|
16236
17623
|
/**
|
|
16237
17624
|
* Get Current Stock & Pricing
|
|
16238
17625
|
* @summary Get Current Stock & Pricing
|
|
@@ -16247,14 +17634,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16247
17634
|
/**
|
|
16248
17635
|
* Get Products
|
|
16249
17636
|
* @summary Get Products
|
|
16250
|
-
* @param {number} [pageSize] Number Of Results
|
|
16251
|
-
* @param {number} [page] Page Number
|
|
16252
|
-
* @param {string} [search] Search
|
|
16253
17637
|
* @param {*} [options] Override http request option.
|
|
16254
17638
|
* @throws {RequiredError}
|
|
16255
17639
|
*/
|
|
16256
|
-
getGetProducts(
|
|
16257
|
-
return localVarFp.getGetProducts(
|
|
17640
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17641
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16258
17642
|
},
|
|
16259
17643
|
/**
|
|
16260
17644
|
* Get Current Stock & Pricing
|
|
@@ -16274,6 +17658,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16274
17658
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16275
17659
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16276
17660
|
},
|
|
17661
|
+
/**
|
|
17662
|
+
* Search Products
|
|
17663
|
+
* @summary Search Products
|
|
17664
|
+
* @param {number} [pageSize] Number Of Results
|
|
17665
|
+
* @param {number} [page] Page Number
|
|
17666
|
+
* @param {string} [search] Search
|
|
17667
|
+
* @param {*} [options] Override http request option.
|
|
17668
|
+
* @throws {RequiredError}
|
|
17669
|
+
*/
|
|
17670
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17671
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17672
|
+
},
|
|
17673
|
+
/**
|
|
17674
|
+
* Get Product
|
|
17675
|
+
* @summary Get Product
|
|
17676
|
+
* @param {string} sku Product SKU
|
|
17677
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17678
|
+
* @param {*} [options] Override http request option.
|
|
17679
|
+
* @throws {RequiredError}
|
|
17680
|
+
*/
|
|
17681
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17682
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17683
|
+
},
|
|
17684
|
+
/**
|
|
17685
|
+
* Get Product For Customer
|
|
17686
|
+
* @summary Get Product For Customer
|
|
17687
|
+
* @param {number} customerId Customer ID
|
|
17688
|
+
* @param {string} sku Product SKU
|
|
17689
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17690
|
+
* @param {*} [options] Override http request option.
|
|
17691
|
+
* @throws {RequiredError}
|
|
17692
|
+
*/
|
|
17693
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17694
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17695
|
+
},
|
|
16277
17696
|
};
|
|
16278
17697
|
};
|
|
16279
17698
|
|
|
@@ -16295,17 +17714,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16295
17714
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16296
17715
|
}
|
|
16297
17716
|
|
|
16298
|
-
/**
|
|
16299
|
-
* Get Customer Price Lists
|
|
16300
|
-
* @summary Get Customer Price Lists
|
|
16301
|
-
* @param {*} [options] Override http request option.
|
|
16302
|
-
* @throws {RequiredError}
|
|
16303
|
-
* @memberof ProductsApi
|
|
16304
|
-
*/
|
|
16305
|
-
public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
|
|
16306
|
-
return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
|
|
16307
|
-
}
|
|
16308
|
-
|
|
16309
17717
|
/**
|
|
16310
17718
|
* Get Current Stock & Pricing
|
|
16311
17719
|
* @summary Get Current Stock & Pricing
|
|
@@ -16322,15 +17730,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16322
17730
|
/**
|
|
16323
17731
|
* Get Products
|
|
16324
17732
|
* @summary Get Products
|
|
16325
|
-
* @param {number} [pageSize] Number Of Results
|
|
16326
|
-
* @param {number} [page] Page Number
|
|
16327
|
-
* @param {string} [search] Search
|
|
16328
17733
|
* @param {*} [options] Override http request option.
|
|
16329
17734
|
* @throws {RequiredError}
|
|
16330
17735
|
* @memberof ProductsApi
|
|
16331
17736
|
*/
|
|
16332
|
-
public getGetProducts(
|
|
16333
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
17737
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
17738
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16334
17739
|
}
|
|
16335
17740
|
|
|
16336
17741
|
/**
|
|
@@ -16354,6 +17759,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16354
17759
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16355
17760
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16356
17761
|
}
|
|
17762
|
+
|
|
17763
|
+
/**
|
|
17764
|
+
* Search Products
|
|
17765
|
+
* @summary Search Products
|
|
17766
|
+
* @param {number} [pageSize] Number Of Results
|
|
17767
|
+
* @param {number} [page] Page Number
|
|
17768
|
+
* @param {string} [search] Search
|
|
17769
|
+
* @param {*} [options] Override http request option.
|
|
17770
|
+
* @throws {RequiredError}
|
|
17771
|
+
* @memberof ProductsApi
|
|
17772
|
+
*/
|
|
17773
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
17774
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
17775
|
+
}
|
|
17776
|
+
|
|
17777
|
+
/**
|
|
17778
|
+
* Get Product
|
|
17779
|
+
* @summary Get Product
|
|
17780
|
+
* @param {string} sku Product SKU
|
|
17781
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17782
|
+
* @param {*} [options] Override http request option.
|
|
17783
|
+
* @throws {RequiredError}
|
|
17784
|
+
* @memberof ProductsApi
|
|
17785
|
+
*/
|
|
17786
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17787
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17788
|
+
}
|
|
17789
|
+
|
|
17790
|
+
/**
|
|
17791
|
+
* Get Product For Customer
|
|
17792
|
+
* @summary Get Product For Customer
|
|
17793
|
+
* @param {number} customerId Customer ID
|
|
17794
|
+
* @param {string} sku Product SKU
|
|
17795
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17796
|
+
* @param {*} [options] Override http request option.
|
|
17797
|
+
* @throws {RequiredError}
|
|
17798
|
+
* @memberof ProductsApi
|
|
17799
|
+
*/
|
|
17800
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17801
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17802
|
+
}
|
|
16357
17803
|
}
|
|
16358
17804
|
|
|
16359
17805
|
/**
|
|
@@ -16694,7 +18140,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16694
18140
|
* @param {*} [options] Override http request option.
|
|
16695
18141
|
* @throws {RequiredError}
|
|
16696
18142
|
*/
|
|
16697
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
18143
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16698
18144
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16699
18145
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16700
18146
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16707,7 +18153,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16707
18153
|
* @param {*} [options] Override http request option.
|
|
16708
18154
|
* @throws {RequiredError}
|
|
16709
18155
|
*/
|
|
16710
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18156
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16711
18157
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16712
18158
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16713
18159
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16786,7 +18232,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16786
18232
|
* @param {*} [options] Override http request option.
|
|
16787
18233
|
* @throws {RequiredError}
|
|
16788
18234
|
*/
|
|
16789
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18235
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16790
18236
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16791
18237
|
},
|
|
16792
18238
|
/**
|
|
@@ -16796,7 +18242,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16796
18242
|
* @param {*} [options] Override http request option.
|
|
16797
18243
|
* @throws {RequiredError}
|
|
16798
18244
|
*/
|
|
16799
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18245
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16800
18246
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16801
18247
|
},
|
|
16802
18248
|
/**
|
|
@@ -18697,6 +20143,114 @@ export class SMSApi extends BaseAPI {
|
|
|
18697
20143
|
|
|
18698
20144
|
|
|
18699
20145
|
|
|
20146
|
+
/**
|
|
20147
|
+
* ShippingApi - axios parameter creator
|
|
20148
|
+
* @export
|
|
20149
|
+
*/
|
|
20150
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20151
|
+
return {
|
|
20152
|
+
/**
|
|
20153
|
+
* Get Shipping Services
|
|
20154
|
+
* @summary Get Shipping Services
|
|
20155
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20156
|
+
* @param {*} [options] Override http request option.
|
|
20157
|
+
* @throws {RequiredError}
|
|
20158
|
+
*/
|
|
20159
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20160
|
+
const localVarPath = `/shipping/services`;
|
|
20161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20163
|
+
let baseOptions;
|
|
20164
|
+
if (configuration) {
|
|
20165
|
+
baseOptions = configuration.baseOptions;
|
|
20166
|
+
}
|
|
20167
|
+
|
|
20168
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20169
|
+
const localVarHeaderParameter = {} as any;
|
|
20170
|
+
const localVarQueryParameter = {} as any;
|
|
20171
|
+
|
|
20172
|
+
|
|
20173
|
+
|
|
20174
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20175
|
+
|
|
20176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20178
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20179
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20180
|
+
|
|
20181
|
+
return {
|
|
20182
|
+
url: toPathString(localVarUrlObj),
|
|
20183
|
+
options: localVarRequestOptions,
|
|
20184
|
+
};
|
|
20185
|
+
},
|
|
20186
|
+
}
|
|
20187
|
+
};
|
|
20188
|
+
|
|
20189
|
+
/**
|
|
20190
|
+
* ShippingApi - functional programming interface
|
|
20191
|
+
* @export
|
|
20192
|
+
*/
|
|
20193
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20194
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20195
|
+
return {
|
|
20196
|
+
/**
|
|
20197
|
+
* Get Shipping Services
|
|
20198
|
+
* @summary Get Shipping Services
|
|
20199
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20200
|
+
* @param {*} [options] Override http request option.
|
|
20201
|
+
* @throws {RequiredError}
|
|
20202
|
+
*/
|
|
20203
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20204
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20205
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20206
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20207
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20208
|
+
},
|
|
20209
|
+
}
|
|
20210
|
+
};
|
|
20211
|
+
|
|
20212
|
+
/**
|
|
20213
|
+
* ShippingApi - factory interface
|
|
20214
|
+
* @export
|
|
20215
|
+
*/
|
|
20216
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20217
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20218
|
+
return {
|
|
20219
|
+
/**
|
|
20220
|
+
* Get Shipping Services
|
|
20221
|
+
* @summary Get Shipping Services
|
|
20222
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20223
|
+
* @param {*} [options] Override http request option.
|
|
20224
|
+
* @throws {RequiredError}
|
|
20225
|
+
*/
|
|
20226
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20227
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20228
|
+
},
|
|
20229
|
+
};
|
|
20230
|
+
};
|
|
20231
|
+
|
|
20232
|
+
/**
|
|
20233
|
+
* ShippingApi - object-oriented interface
|
|
20234
|
+
* @export
|
|
20235
|
+
* @class ShippingApi
|
|
20236
|
+
* @extends {BaseAPI}
|
|
20237
|
+
*/
|
|
20238
|
+
export class ShippingApi extends BaseAPI {
|
|
20239
|
+
/**
|
|
20240
|
+
* Get Shipping Services
|
|
20241
|
+
* @summary Get Shipping Services
|
|
20242
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20243
|
+
* @param {*} [options] Override http request option.
|
|
20244
|
+
* @throws {RequiredError}
|
|
20245
|
+
* @memberof ShippingApi
|
|
20246
|
+
*/
|
|
20247
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20248
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20249
|
+
}
|
|
20250
|
+
}
|
|
20251
|
+
|
|
20252
|
+
|
|
20253
|
+
|
|
18700
20254
|
/**
|
|
18701
20255
|
* StockManagementApi - axios parameter creator
|
|
18702
20256
|
* @export
|
|
@@ -19783,7 +21337,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19783
21337
|
* @param {*} [options] Override http request option.
|
|
19784
21338
|
* @throws {RequiredError}
|
|
19785
21339
|
*/
|
|
19786
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21340
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19787
21341
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19788
21342
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19789
21343
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20086,7 +21640,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
20086
21640
|
* @param {*} [options] Override http request option.
|
|
20087
21641
|
* @throws {RequiredError}
|
|
20088
21642
|
*/
|
|
20089
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
21643
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
20090
21644
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
20091
21645
|
},
|
|
20092
21646
|
/**
|