yellowgrid-api-ts 3.1.15 → 3.1.17-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 +218 -198
- package/README.md +39 -8
- package/api.ts +2183 -289
- 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 +1609 -174
- package/dist/api.js +1248 -215
- 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 +43 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -0
- package/docs/AuditLogEntity.md +37 -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/DetailedItemRequestDTO.md +43 -0
- package/docs/DetailedOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemDiscountEntity.md +33 -0
- package/docs/ItemEntity.md +4 -2
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +359 -7
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +7 -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 +122 -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/docs/UserEntity.md +4 -0
- package/hs_err_pid58424.log +247 -0
- 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,139 @@ export interface AddressRequestModel {
|
|
|
535
657
|
*/
|
|
536
658
|
'addressPostcode'?: string;
|
|
537
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Admin Order Request
|
|
662
|
+
* @export
|
|
663
|
+
* @interface AdminOrderRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
export interface AdminOrderRequestDTO {
|
|
666
|
+
/**
|
|
667
|
+
* Order Reference
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof AdminOrderRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'orderReference'?: string | null;
|
|
672
|
+
/**
|
|
673
|
+
* Items
|
|
674
|
+
* @type {Array<DetailedItemRequestDTO>}
|
|
675
|
+
* @memberof AdminOrderRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'items'?: Array<DetailedItemRequestDTO>;
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {ShippingServiceDTO}
|
|
681
|
+
* @memberof AdminOrderRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'shippingService'?: ShippingServiceDTO;
|
|
684
|
+
/**
|
|
685
|
+
* Provisioning URL
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof AdminOrderRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'provisioningUrl'?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @type {AddressModel}
|
|
693
|
+
* @memberof AdminOrderRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'shippingAddress'?: AddressModel;
|
|
696
|
+
/**
|
|
697
|
+
* Part Ship Order
|
|
698
|
+
* @type {boolean}
|
|
699
|
+
* @memberof AdminOrderRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'partShip'?: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* Quote
|
|
704
|
+
* @type {boolean}
|
|
705
|
+
* @memberof AdminOrderRequestDTO
|
|
706
|
+
*/
|
|
707
|
+
'quote'?: boolean;
|
|
708
|
+
/**
|
|
709
|
+
* Customer ID
|
|
710
|
+
* @type {number}
|
|
711
|
+
* @memberof AdminOrderRequestDTO
|
|
712
|
+
*/
|
|
713
|
+
'customerId'?: number;
|
|
714
|
+
/**
|
|
715
|
+
* Contact
|
|
716
|
+
* @type {string}
|
|
717
|
+
* @memberof AdminOrderRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'contact'?: string;
|
|
720
|
+
/**
|
|
721
|
+
* Ignore Customer On Hold
|
|
722
|
+
* @type {boolean}
|
|
723
|
+
* @memberof AdminOrderRequestDTO
|
|
724
|
+
*/
|
|
725
|
+
'ignoreOnHold'?: boolean;
|
|
726
|
+
/**
|
|
727
|
+
* Ignore Customer Credit Limit
|
|
728
|
+
* @type {boolean}
|
|
729
|
+
* @memberof AdminOrderRequestDTO
|
|
730
|
+
*/
|
|
731
|
+
'ignoreCreditLimit'?: boolean;
|
|
732
|
+
/**
|
|
733
|
+
* Include NFR Promos
|
|
734
|
+
* @type {boolean}
|
|
735
|
+
* @memberof AdminOrderRequestDTO
|
|
736
|
+
*/
|
|
737
|
+
'includeNfrPromos'?: boolean;
|
|
738
|
+
/**
|
|
739
|
+
* Carriage Charge
|
|
740
|
+
* @type {number}
|
|
741
|
+
* @memberof AdminOrderRequestDTO
|
|
742
|
+
*/
|
|
743
|
+
'carriageCharge'?: number;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Admin User
|
|
747
|
+
* @export
|
|
748
|
+
* @interface AdminUserModel
|
|
749
|
+
*/
|
|
750
|
+
export interface AdminUserModel {
|
|
751
|
+
/**
|
|
752
|
+
* First Name
|
|
753
|
+
* @type {string}
|
|
754
|
+
* @memberof AdminUserModel
|
|
755
|
+
*/
|
|
756
|
+
'firstName'?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Last Name
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof AdminUserModel
|
|
761
|
+
*/
|
|
762
|
+
'lastName'?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Avatar
|
|
765
|
+
* @type {string}
|
|
766
|
+
* @memberof AdminUserModel
|
|
767
|
+
*/
|
|
768
|
+
'avatar'?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
* Role
|
|
771
|
+
* @type {number}
|
|
772
|
+
* @memberof AdminUserModel
|
|
773
|
+
*/
|
|
774
|
+
'role'?: AdminUserModelRoleEnum;
|
|
775
|
+
/**
|
|
776
|
+
* Email
|
|
777
|
+
* @type {string}
|
|
778
|
+
* @memberof AdminUserModel
|
|
779
|
+
*/
|
|
780
|
+
'email'?: string | null;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export const AdminUserModelRoleEnum = {
|
|
784
|
+
NUMBER_0: 0,
|
|
785
|
+
NUMBER_1: 1,
|
|
786
|
+
NUMBER_2: 2,
|
|
787
|
+
NUMBER_3: 3,
|
|
788
|
+
NUMBER_4: 4
|
|
789
|
+
} as const;
|
|
790
|
+
|
|
791
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
792
|
+
|
|
538
793
|
/**
|
|
539
794
|
* Agent Hours Graph
|
|
540
795
|
* @export
|
|
@@ -739,6 +994,67 @@ export interface AttributeSetEnum {
|
|
|
739
994
|
*/
|
|
740
995
|
'name'?: string;
|
|
741
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* AuditLogEntity
|
|
999
|
+
* @export
|
|
1000
|
+
* @interface AuditLogEntity
|
|
1001
|
+
*/
|
|
1002
|
+
export interface AuditLogEntity {
|
|
1003
|
+
/**
|
|
1004
|
+
* id
|
|
1005
|
+
* @type {number}
|
|
1006
|
+
* @memberof AuditLogEntity
|
|
1007
|
+
*/
|
|
1008
|
+
'id'?: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* action
|
|
1011
|
+
* @type {string}
|
|
1012
|
+
* @memberof AuditLogEntity
|
|
1013
|
+
*/
|
|
1014
|
+
'action'?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* type
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof AuditLogEntity
|
|
1019
|
+
*/
|
|
1020
|
+
'type'?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* identifier
|
|
1023
|
+
* @type {string}
|
|
1024
|
+
* @memberof AuditLogEntity
|
|
1025
|
+
*/
|
|
1026
|
+
'identifier'?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* user
|
|
1029
|
+
* @type {string}
|
|
1030
|
+
* @memberof AuditLogEntity
|
|
1031
|
+
*/
|
|
1032
|
+
'user'?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* timestamp
|
|
1035
|
+
* @type {string}
|
|
1036
|
+
* @memberof AuditLogEntity
|
|
1037
|
+
*/
|
|
1038
|
+
'timestamp'?: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* beforeData
|
|
1041
|
+
* @type {string}
|
|
1042
|
+
* @memberof AuditLogEntity
|
|
1043
|
+
*/
|
|
1044
|
+
'beforeData'?: string;
|
|
1045
|
+
/**
|
|
1046
|
+
* afterData
|
|
1047
|
+
* @type {string}
|
|
1048
|
+
* @memberof AuditLogEntity
|
|
1049
|
+
*/
|
|
1050
|
+
'afterData'?: string;
|
|
1051
|
+
/**
|
|
1052
|
+
* description
|
|
1053
|
+
* @type {string}
|
|
1054
|
+
* @memberof AuditLogEntity
|
|
1055
|
+
*/
|
|
1056
|
+
'description'?: string;
|
|
1057
|
+
}
|
|
742
1058
|
/**
|
|
743
1059
|
* OAuth Auth Code Response
|
|
744
1060
|
* @export
|
|
@@ -764,6 +1080,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1080
|
*/
|
|
765
1081
|
'redirect_uri'?: string | null;
|
|
766
1082
|
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Basic Order Item
|
|
1085
|
+
* @export
|
|
1086
|
+
* @interface BasicItemDTO
|
|
1087
|
+
*/
|
|
1088
|
+
export interface BasicItemDTO {
|
|
1089
|
+
/**
|
|
1090
|
+
* SKU
|
|
1091
|
+
* @type {string}
|
|
1092
|
+
* @memberof BasicItemDTO
|
|
1093
|
+
*/
|
|
1094
|
+
'sku'?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Quantity
|
|
1097
|
+
* @type {number}
|
|
1098
|
+
* @memberof BasicItemDTO
|
|
1099
|
+
*/
|
|
1100
|
+
'quantity'?: number;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* Basic Product
|
|
1104
|
+
* @export
|
|
1105
|
+
* @interface BasicProductDTO
|
|
1106
|
+
*/
|
|
1107
|
+
export interface BasicProductDTO {
|
|
1108
|
+
/**
|
|
1109
|
+
* SKU
|
|
1110
|
+
* @type {string}
|
|
1111
|
+
* @memberof BasicProductDTO
|
|
1112
|
+
*/
|
|
1113
|
+
'sku'?: string;
|
|
1114
|
+
/**
|
|
1115
|
+
* Title
|
|
1116
|
+
* @type {string}
|
|
1117
|
+
* @memberof BasicProductDTO
|
|
1118
|
+
*/
|
|
1119
|
+
'title'?: string;
|
|
1120
|
+
}
|
|
767
1121
|
/**
|
|
768
1122
|
* BatchesEntity
|
|
769
1123
|
* @export
|
|
@@ -958,12 +1312,6 @@ export interface ClientDetailsModel {
|
|
|
958
1312
|
* @memberof ClientDetailsModel
|
|
959
1313
|
*/
|
|
960
1314
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1315
|
}
|
|
968
1316
|
/**
|
|
969
1317
|
* OAuth client details
|
|
@@ -1126,43 +1474,110 @@ export interface ConversationModel {
|
|
|
1126
1474
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1475
|
}
|
|
1128
1476
|
/**
|
|
1129
|
-
*
|
|
1477
|
+
* CourierPricesEntity
|
|
1130
1478
|
* @export
|
|
1131
|
-
* @interface
|
|
1479
|
+
* @interface CourierPriceEntity
|
|
1132
1480
|
*/
|
|
1133
|
-
export interface
|
|
1481
|
+
export interface CourierPriceEntity {
|
|
1134
1482
|
/**
|
|
1135
|
-
*
|
|
1483
|
+
* id
|
|
1136
1484
|
* @type {number}
|
|
1137
|
-
* @memberof
|
|
1485
|
+
* @memberof CourierPriceEntity
|
|
1138
1486
|
*/
|
|
1139
1487
|
'id'?: number;
|
|
1140
1488
|
/**
|
|
1141
|
-
*
|
|
1489
|
+
* courier
|
|
1142
1490
|
* @type {string}
|
|
1143
|
-
* @memberof
|
|
1491
|
+
* @memberof CourierPriceEntity
|
|
1144
1492
|
*/
|
|
1145
|
-
'
|
|
1493
|
+
'courier'?: string;
|
|
1146
1494
|
/**
|
|
1147
|
-
*
|
|
1495
|
+
* destinationIso
|
|
1148
1496
|
* @type {string}
|
|
1149
|
-
* @memberof
|
|
1497
|
+
* @memberof CourierPriceEntity
|
|
1150
1498
|
*/
|
|
1151
|
-
'
|
|
1499
|
+
'destinationIso'?: string;
|
|
1152
1500
|
/**
|
|
1153
|
-
*
|
|
1501
|
+
* serviceDescription
|
|
1154
1502
|
* @type {string}
|
|
1155
|
-
* @memberof
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1156
1504
|
*/
|
|
1157
|
-
'
|
|
1505
|
+
'serviceDescription'?: string;
|
|
1158
1506
|
/**
|
|
1159
|
-
*
|
|
1160
|
-
* @type {
|
|
1161
|
-
* @memberof
|
|
1507
|
+
* flatRate
|
|
1508
|
+
* @type {number}
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1162
1510
|
*/
|
|
1163
|
-
'
|
|
1511
|
+
'flatRate'?: number;
|
|
1164
1512
|
/**
|
|
1165
|
-
*
|
|
1513
|
+
* initialBox
|
|
1514
|
+
* @type {number}
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1516
|
+
*/
|
|
1517
|
+
'initialBox'?: number;
|
|
1518
|
+
/**
|
|
1519
|
+
* initialKg
|
|
1520
|
+
* @type {number}
|
|
1521
|
+
* @memberof CourierPriceEntity
|
|
1522
|
+
*/
|
|
1523
|
+
'initialKg'?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* perBox
|
|
1526
|
+
* @type {number}
|
|
1527
|
+
* @memberof CourierPriceEntity
|
|
1528
|
+
*/
|
|
1529
|
+
'perBox'?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* perKg
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof CourierPriceEntity
|
|
1534
|
+
*/
|
|
1535
|
+
'perKg'?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* maxKg
|
|
1538
|
+
* @type {number}
|
|
1539
|
+
* @memberof CourierPriceEntity
|
|
1540
|
+
*/
|
|
1541
|
+
'maxKg'?: number;
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Credit Account
|
|
1545
|
+
* @export
|
|
1546
|
+
* @interface CreditAccountEntity
|
|
1547
|
+
*/
|
|
1548
|
+
export interface CreditAccountEntity {
|
|
1549
|
+
/**
|
|
1550
|
+
* ID
|
|
1551
|
+
* @type {number}
|
|
1552
|
+
* @memberof CreditAccountEntity
|
|
1553
|
+
*/
|
|
1554
|
+
'id'?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* Contact Name
|
|
1557
|
+
* @type {string}
|
|
1558
|
+
* @memberof CreditAccountEntity
|
|
1559
|
+
*/
|
|
1560
|
+
'name'?: string;
|
|
1561
|
+
/**
|
|
1562
|
+
* Email
|
|
1563
|
+
* @type {string}
|
|
1564
|
+
* @memberof CreditAccountEntity
|
|
1565
|
+
*/
|
|
1566
|
+
'email'?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* Phone Number
|
|
1569
|
+
* @type {string}
|
|
1570
|
+
* @memberof CreditAccountEntity
|
|
1571
|
+
*/
|
|
1572
|
+
'phone'?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Company Name
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CreditAccountEntity
|
|
1577
|
+
*/
|
|
1578
|
+
'company'?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Company Registration Number
|
|
1166
1581
|
* @type {string}
|
|
1167
1582
|
* @memberof CreditAccountEntity
|
|
1168
1583
|
*/
|
|
@@ -1356,6 +1771,116 @@ export interface CustomerInformationModel {
|
|
|
1356
1771
|
*/
|
|
1357
1772
|
'contactLastName'?: string;
|
|
1358
1773
|
}
|
|
1774
|
+
/**
|
|
1775
|
+
* Order Item Request
|
|
1776
|
+
* @export
|
|
1777
|
+
* @interface CustomerItemRequestDTO
|
|
1778
|
+
*/
|
|
1779
|
+
export interface CustomerItemRequestDTO {
|
|
1780
|
+
/**
|
|
1781
|
+
* SKU
|
|
1782
|
+
* @type {string}
|
|
1783
|
+
* @memberof CustomerItemRequestDTO
|
|
1784
|
+
*/
|
|
1785
|
+
'sku'?: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Quantity
|
|
1788
|
+
* @type {number}
|
|
1789
|
+
* @memberof CustomerItemRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
'quantity'?: number;
|
|
1792
|
+
/**
|
|
1793
|
+
* ID
|
|
1794
|
+
* @type {number}
|
|
1795
|
+
* @memberof CustomerItemRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'id'?: number | null;
|
|
1798
|
+
/**
|
|
1799
|
+
* 3CX Licence Key
|
|
1800
|
+
* @type {string}
|
|
1801
|
+
* @memberof CustomerItemRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'licenceKey'?: string | null;
|
|
1804
|
+
/**
|
|
1805
|
+
* 3CX Hosting
|
|
1806
|
+
* @type {boolean}
|
|
1807
|
+
* @memberof CustomerItemRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'hosting'?: boolean | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* Date Time
|
|
1812
|
+
* @type {string}
|
|
1813
|
+
* @memberof CustomerItemRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'processDate'?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* 3CX Sales Code
|
|
1818
|
+
* @type {string}
|
|
1819
|
+
* @memberof CustomerItemRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'tcxSalesCode'?: string | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* SBCS
|
|
1824
|
+
* @type {Array<TcxSbcDTO>}
|
|
1825
|
+
* @memberof CustomerItemRequestDTO
|
|
1826
|
+
*/
|
|
1827
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1828
|
+
/**
|
|
1829
|
+
* Read Only (Cannot be edited)
|
|
1830
|
+
* @type {boolean}
|
|
1831
|
+
* @memberof CustomerItemRequestDTO
|
|
1832
|
+
*/
|
|
1833
|
+
'readOnly'?: boolean;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Order Request
|
|
1837
|
+
* @export
|
|
1838
|
+
* @interface CustomerOrderRequestDTO
|
|
1839
|
+
*/
|
|
1840
|
+
export interface CustomerOrderRequestDTO {
|
|
1841
|
+
/**
|
|
1842
|
+
* Order Reference
|
|
1843
|
+
* @type {string}
|
|
1844
|
+
* @memberof CustomerOrderRequestDTO
|
|
1845
|
+
*/
|
|
1846
|
+
'orderReference'?: string | null;
|
|
1847
|
+
/**
|
|
1848
|
+
* Items
|
|
1849
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1850
|
+
* @memberof CustomerOrderRequestDTO
|
|
1851
|
+
*/
|
|
1852
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1853
|
+
/**
|
|
1854
|
+
*
|
|
1855
|
+
* @type {ShippingServiceDTO}
|
|
1856
|
+
* @memberof CustomerOrderRequestDTO
|
|
1857
|
+
*/
|
|
1858
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1859
|
+
/**
|
|
1860
|
+
* Provisioning URL
|
|
1861
|
+
* @type {string}
|
|
1862
|
+
* @memberof CustomerOrderRequestDTO
|
|
1863
|
+
*/
|
|
1864
|
+
'provisioningUrl'?: string | null;
|
|
1865
|
+
/**
|
|
1866
|
+
*
|
|
1867
|
+
* @type {AddressModel}
|
|
1868
|
+
* @memberof CustomerOrderRequestDTO
|
|
1869
|
+
*/
|
|
1870
|
+
'shippingAddress'?: AddressModel;
|
|
1871
|
+
/**
|
|
1872
|
+
* Part Ship Order
|
|
1873
|
+
* @type {boolean}
|
|
1874
|
+
* @memberof CustomerOrderRequestDTO
|
|
1875
|
+
*/
|
|
1876
|
+
'partShip'?: boolean;
|
|
1877
|
+
/**
|
|
1878
|
+
* Quote
|
|
1879
|
+
* @type {boolean}
|
|
1880
|
+
* @memberof CustomerOrderRequestDTO
|
|
1881
|
+
*/
|
|
1882
|
+
'quote'?: boolean;
|
|
1883
|
+
}
|
|
1359
1884
|
/**
|
|
1360
1885
|
* Customer Price List
|
|
1361
1886
|
* @export
|
|
@@ -1456,6 +1981,134 @@ export interface DdiRangesRequestModel {
|
|
|
1456
1981
|
*/
|
|
1457
1982
|
'ranges'?: Array<DdiRangeRequestModel>;
|
|
1458
1983
|
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Detailed Order Item Request
|
|
1986
|
+
* @export
|
|
1987
|
+
* @interface DetailedItemRequestDTO
|
|
1988
|
+
*/
|
|
1989
|
+
export interface DetailedItemRequestDTO {
|
|
1990
|
+
/**
|
|
1991
|
+
* SKU
|
|
1992
|
+
* @type {string}
|
|
1993
|
+
* @memberof DetailedItemRequestDTO
|
|
1994
|
+
*/
|
|
1995
|
+
'sku'?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* Quantity
|
|
1998
|
+
* @type {number}
|
|
1999
|
+
* @memberof DetailedItemRequestDTO
|
|
2000
|
+
*/
|
|
2001
|
+
'quantity'?: number;
|
|
2002
|
+
/**
|
|
2003
|
+
* ID
|
|
2004
|
+
* @type {number}
|
|
2005
|
+
* @memberof DetailedItemRequestDTO
|
|
2006
|
+
*/
|
|
2007
|
+
'id'?: number | null;
|
|
2008
|
+
/**
|
|
2009
|
+
* 3CX Licence Key
|
|
2010
|
+
* @type {string}
|
|
2011
|
+
* @memberof DetailedItemRequestDTO
|
|
2012
|
+
*/
|
|
2013
|
+
'licenceKey'?: string | null;
|
|
2014
|
+
/**
|
|
2015
|
+
* 3CX Hosting
|
|
2016
|
+
* @type {boolean}
|
|
2017
|
+
* @memberof DetailedItemRequestDTO
|
|
2018
|
+
*/
|
|
2019
|
+
'hosting'?: boolean | null;
|
|
2020
|
+
/**
|
|
2021
|
+
* Date Time
|
|
2022
|
+
* @type {string}
|
|
2023
|
+
* @memberof DetailedItemRequestDTO
|
|
2024
|
+
*/
|
|
2025
|
+
'processDate'?: string;
|
|
2026
|
+
/**
|
|
2027
|
+
* 3CX Sales Code
|
|
2028
|
+
* @type {string}
|
|
2029
|
+
* @memberof DetailedItemRequestDTO
|
|
2030
|
+
*/
|
|
2031
|
+
'tcxSalesCode'?: string | null;
|
|
2032
|
+
/**
|
|
2033
|
+
* SBCS
|
|
2034
|
+
* @type {Array<TcxSbcDTO>}
|
|
2035
|
+
* @memberof DetailedItemRequestDTO
|
|
2036
|
+
*/
|
|
2037
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
2038
|
+
/**
|
|
2039
|
+
* Read Only (Cannot be edited)
|
|
2040
|
+
* @type {boolean}
|
|
2041
|
+
* @memberof DetailedItemRequestDTO
|
|
2042
|
+
*/
|
|
2043
|
+
'readOnly'?: boolean;
|
|
2044
|
+
/**
|
|
2045
|
+
* Title
|
|
2046
|
+
* @type {string}
|
|
2047
|
+
* @memberof DetailedItemRequestDTO
|
|
2048
|
+
*/
|
|
2049
|
+
'title'?: string | null;
|
|
2050
|
+
/**
|
|
2051
|
+
* Price (£)
|
|
2052
|
+
* @type {number}
|
|
2053
|
+
* @memberof DetailedItemRequestDTO
|
|
2054
|
+
*/
|
|
2055
|
+
'itemPrice'?: number | null;
|
|
2056
|
+
/**
|
|
2057
|
+
* Additional Discount
|
|
2058
|
+
* @type {number}
|
|
2059
|
+
* @memberof DetailedItemRequestDTO
|
|
2060
|
+
*/
|
|
2061
|
+
'additionalDiscount'?: number | null;
|
|
2062
|
+
}
|
|
2063
|
+
/**
|
|
2064
|
+
* Detailed Order Request
|
|
2065
|
+
* @export
|
|
2066
|
+
* @interface DetailedOrderRequestDTO
|
|
2067
|
+
*/
|
|
2068
|
+
export interface DetailedOrderRequestDTO {
|
|
2069
|
+
/**
|
|
2070
|
+
* Order Reference
|
|
2071
|
+
* @type {string}
|
|
2072
|
+
* @memberof DetailedOrderRequestDTO
|
|
2073
|
+
*/
|
|
2074
|
+
'orderReference'?: string | null;
|
|
2075
|
+
/**
|
|
2076
|
+
* Items
|
|
2077
|
+
* @type {Array<DetailedItemRequestDTO>}
|
|
2078
|
+
* @memberof DetailedOrderRequestDTO
|
|
2079
|
+
*/
|
|
2080
|
+
'items'?: Array<DetailedItemRequestDTO>;
|
|
2081
|
+
/**
|
|
2082
|
+
*
|
|
2083
|
+
* @type {ShippingServiceDTO}
|
|
2084
|
+
* @memberof DetailedOrderRequestDTO
|
|
2085
|
+
*/
|
|
2086
|
+
'shippingService'?: ShippingServiceDTO;
|
|
2087
|
+
/**
|
|
2088
|
+
* Provisioning URL
|
|
2089
|
+
* @type {string}
|
|
2090
|
+
* @memberof DetailedOrderRequestDTO
|
|
2091
|
+
*/
|
|
2092
|
+
'provisioningUrl'?: string | null;
|
|
2093
|
+
/**
|
|
2094
|
+
*
|
|
2095
|
+
* @type {AddressModel}
|
|
2096
|
+
* @memberof DetailedOrderRequestDTO
|
|
2097
|
+
*/
|
|
2098
|
+
'shippingAddress'?: AddressModel;
|
|
2099
|
+
/**
|
|
2100
|
+
* Part Ship Order
|
|
2101
|
+
* @type {boolean}
|
|
2102
|
+
* @memberof DetailedOrderRequestDTO
|
|
2103
|
+
*/
|
|
2104
|
+
'partShip'?: boolean;
|
|
2105
|
+
/**
|
|
2106
|
+
* Quote
|
|
2107
|
+
* @type {boolean}
|
|
2108
|
+
* @memberof DetailedOrderRequestDTO
|
|
2109
|
+
*/
|
|
2110
|
+
'quote'?: boolean;
|
|
2111
|
+
}
|
|
1459
2112
|
/**
|
|
1460
2113
|
* Divert Request
|
|
1461
2114
|
* @export
|
|
@@ -1865,19 +2518,6 @@ export interface GenericFileModel {
|
|
|
1865
2518
|
*/
|
|
1866
2519
|
'type'?: string;
|
|
1867
2520
|
}
|
|
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
2521
|
/**
|
|
1882
2522
|
*
|
|
1883
2523
|
* @export
|
|
@@ -2479,35 +3119,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2479
3119
|
*/
|
|
2480
3120
|
export interface ItemDTO {
|
|
2481
3121
|
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @type {
|
|
3122
|
+
* SKU
|
|
3123
|
+
* @type {string}
|
|
2484
3124
|
* @memberof ItemDTO
|
|
2485
3125
|
*/
|
|
2486
|
-
'
|
|
3126
|
+
'sku'?: string;
|
|
2487
3127
|
/**
|
|
2488
|
-
*
|
|
3128
|
+
* Quantity
|
|
2489
3129
|
* @type {number}
|
|
2490
3130
|
* @memberof ItemDTO
|
|
2491
3131
|
*/
|
|
2492
|
-
'
|
|
3132
|
+
'quantity'?: number;
|
|
2493
3133
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @type {
|
|
3134
|
+
* ID
|
|
3135
|
+
* @type {number}
|
|
2496
3136
|
* @memberof ItemDTO
|
|
2497
3137
|
*/
|
|
2498
|
-
'
|
|
3138
|
+
'id'?: number | null;
|
|
2499
3139
|
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {
|
|
3140
|
+
* Order ID
|
|
3141
|
+
* @type {number}
|
|
2502
3142
|
* @memberof ItemDTO
|
|
2503
3143
|
*/
|
|
2504
|
-
'
|
|
3144
|
+
'orderId'?: number | null;
|
|
2505
3145
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
* @type {
|
|
3146
|
+
* Title
|
|
3147
|
+
* @type {string}
|
|
2508
3148
|
* @memberof ItemDTO
|
|
2509
3149
|
*/
|
|
2510
|
-
'
|
|
3150
|
+
'title'?: string;
|
|
2511
3151
|
/**
|
|
2512
3152
|
* Price
|
|
2513
3153
|
* @type {number}
|
|
@@ -2532,6 +3172,12 @@ export interface ItemDTO {
|
|
|
2532
3172
|
* @memberof ItemDTO
|
|
2533
3173
|
*/
|
|
2534
3174
|
'processDate'?: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* 3CX Hosting
|
|
3177
|
+
* @type {boolean}
|
|
3178
|
+
* @memberof ItemDTO
|
|
3179
|
+
*/
|
|
3180
|
+
'hosting'?: boolean | null;
|
|
2535
3181
|
/**
|
|
2536
3182
|
* Promo Item
|
|
2537
3183
|
* @type {boolean}
|
|
@@ -2543,14 +3189,90 @@ export interface ItemDTO {
|
|
|
2543
3189
|
* @type {number}
|
|
2544
3190
|
* @memberof ItemDTO
|
|
2545
3191
|
*/
|
|
2546
|
-
'refunded'?: number;
|
|
3192
|
+
'refunded'?: number | null;
|
|
3193
|
+
/**
|
|
3194
|
+
* SBCs
|
|
3195
|
+
* @type {Array<TcxSbcDTO>}
|
|
3196
|
+
* @memberof ItemDTO
|
|
3197
|
+
*/
|
|
3198
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3199
|
+
/**
|
|
3200
|
+
* Readonly
|
|
3201
|
+
* @type {boolean}
|
|
3202
|
+
* @memberof ItemDTO
|
|
3203
|
+
*/
|
|
3204
|
+
'readonly'?: boolean;
|
|
3205
|
+
/**
|
|
3206
|
+
* 3CX Sales Code
|
|
3207
|
+
* @type {string}
|
|
3208
|
+
* @memberof ItemDTO
|
|
3209
|
+
*/
|
|
3210
|
+
'tcxSalesCode'?: string | null;
|
|
2547
3211
|
}
|
|
2548
3212
|
/**
|
|
2549
|
-
*
|
|
3213
|
+
* ItemDiscountsEntity
|
|
2550
3214
|
* @export
|
|
2551
|
-
* @interface
|
|
3215
|
+
* @interface ItemDiscountEntity
|
|
2552
3216
|
*/
|
|
2553
|
-
export interface
|
|
3217
|
+
export interface ItemDiscountEntity {
|
|
3218
|
+
/**
|
|
3219
|
+
* id
|
|
3220
|
+
* @type {number}
|
|
3221
|
+
* @memberof ItemDiscountEntity
|
|
3222
|
+
*/
|
|
3223
|
+
'id'?: number;
|
|
3224
|
+
/**
|
|
3225
|
+
* itemId
|
|
3226
|
+
* @type {number}
|
|
3227
|
+
* @memberof ItemDiscountEntity
|
|
3228
|
+
*/
|
|
3229
|
+
'itemId'?: number;
|
|
3230
|
+
/**
|
|
3231
|
+
* priceList
|
|
3232
|
+
* @type {string}
|
|
3233
|
+
* @memberof ItemDiscountEntity
|
|
3234
|
+
*/
|
|
3235
|
+
'priceList'?: string;
|
|
3236
|
+
/**
|
|
3237
|
+
* discount
|
|
3238
|
+
* @type {number}
|
|
3239
|
+
* @memberof ItemDiscountEntity
|
|
3240
|
+
*/
|
|
3241
|
+
'discount'?: number;
|
|
3242
|
+
/**
|
|
3243
|
+
* type
|
|
3244
|
+
* @type {string}
|
|
3245
|
+
* @memberof ItemDiscountEntity
|
|
3246
|
+
*/
|
|
3247
|
+
'type'?: ItemDiscountEntityTypeEnum | null;
|
|
3248
|
+
/**
|
|
3249
|
+
* description
|
|
3250
|
+
* @type {string}
|
|
3251
|
+
* @memberof ItemDiscountEntity
|
|
3252
|
+
*/
|
|
3253
|
+
'description'?: string;
|
|
3254
|
+
/**
|
|
3255
|
+
* priority
|
|
3256
|
+
* @type {number}
|
|
3257
|
+
* @memberof ItemDiscountEntity
|
|
3258
|
+
*/
|
|
3259
|
+
'priority'?: number;
|
|
3260
|
+
}
|
|
3261
|
+
|
|
3262
|
+
export const ItemDiscountEntityTypeEnum = {
|
|
3263
|
+
TcxPhones: 'TCX_PHONES',
|
|
3264
|
+
PhoneBulk: 'PHONE_BULK',
|
|
3265
|
+
Additional: 'ADDITIONAL'
|
|
3266
|
+
} as const;
|
|
3267
|
+
|
|
3268
|
+
export type ItemDiscountEntityTypeEnum = typeof ItemDiscountEntityTypeEnum[keyof typeof ItemDiscountEntityTypeEnum];
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* ItemsEntity
|
|
3272
|
+
* @export
|
|
3273
|
+
* @interface ItemEntity
|
|
3274
|
+
*/
|
|
3275
|
+
export interface ItemEntity {
|
|
2554
3276
|
/**
|
|
2555
3277
|
* id
|
|
2556
3278
|
* @type {number}
|
|
@@ -2652,7 +3374,7 @@ export interface ItemEntity {
|
|
|
2652
3374
|
* @type {string}
|
|
2653
3375
|
* @memberof ItemEntity
|
|
2654
3376
|
*/
|
|
2655
|
-
'
|
|
3377
|
+
'licenceKey'?: string;
|
|
2656
3378
|
/**
|
|
2657
3379
|
* addHosting
|
|
2658
3380
|
* @type {number}
|
|
@@ -2677,6 +3399,31 @@ export interface ItemEntity {
|
|
|
2677
3399
|
* @memberof ItemEntity
|
|
2678
3400
|
*/
|
|
2679
3401
|
'promoItem'?: number;
|
|
3402
|
+
/**
|
|
3403
|
+
* 3CX Sales Code
|
|
3404
|
+
* @type {string}
|
|
3405
|
+
* @memberof ItemEntity
|
|
3406
|
+
*/
|
|
3407
|
+
'tcxSalesCode'?: string | null;
|
|
3408
|
+
}
|
|
3409
|
+
/**
|
|
3410
|
+
* LinkedOrdersEntity
|
|
3411
|
+
* @export
|
|
3412
|
+
* @interface LinkedOrderEntity
|
|
3413
|
+
*/
|
|
3414
|
+
export interface LinkedOrderEntity {
|
|
3415
|
+
/**
|
|
3416
|
+
* orderId
|
|
3417
|
+
* @type {number}
|
|
3418
|
+
* @memberof LinkedOrderEntity
|
|
3419
|
+
*/
|
|
3420
|
+
'orderId'?: number;
|
|
3421
|
+
/**
|
|
3422
|
+
* linkedOrderId
|
|
3423
|
+
* @type {number}
|
|
3424
|
+
* @memberof LinkedOrderEntity
|
|
3425
|
+
*/
|
|
3426
|
+
'linkedOrderId'?: number;
|
|
2680
3427
|
}
|
|
2681
3428
|
/**
|
|
2682
3429
|
* MFA Required
|
|
@@ -3337,13 +4084,19 @@ export interface OrderSummaryDTO {
|
|
|
3337
4084
|
* @type {string}
|
|
3338
4085
|
* @memberof OrderSummaryDTO
|
|
3339
4086
|
*/
|
|
3340
|
-
'reference'?: string;
|
|
4087
|
+
'reference'?: string | null;
|
|
3341
4088
|
/**
|
|
3342
4089
|
* Invoice Number
|
|
3343
4090
|
* @type {string}
|
|
3344
4091
|
* @memberof OrderSummaryDTO
|
|
3345
4092
|
*/
|
|
3346
4093
|
'invoiceNumber'?: string;
|
|
4094
|
+
/**
|
|
4095
|
+
* Invoice ID
|
|
4096
|
+
* @type {string}
|
|
4097
|
+
* @memberof OrderSummaryDTO
|
|
4098
|
+
*/
|
|
4099
|
+
'invoiceId'?: string | null;
|
|
3347
4100
|
/**
|
|
3348
4101
|
* Date Time
|
|
3349
4102
|
* @type {string}
|
|
@@ -3398,6 +4151,24 @@ export interface OrderSummaryDTO {
|
|
|
3398
4151
|
* @memberof OrderSummaryDTO
|
|
3399
4152
|
*/
|
|
3400
4153
|
'fulfillable'?: boolean | null;
|
|
4154
|
+
/**
|
|
4155
|
+
* Provisioning URL
|
|
4156
|
+
* @type {string}
|
|
4157
|
+
* @memberof OrderSummaryDTO
|
|
4158
|
+
*/
|
|
4159
|
+
'provisioningUrl'?: string | null;
|
|
4160
|
+
/**
|
|
4161
|
+
*
|
|
4162
|
+
* @type {ShippingServiceDTO}
|
|
4163
|
+
* @memberof OrderSummaryDTO
|
|
4164
|
+
*/
|
|
4165
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
4166
|
+
/**
|
|
4167
|
+
* Readonly
|
|
4168
|
+
* @type {boolean}
|
|
4169
|
+
* @memberof OrderSummaryDTO
|
|
4170
|
+
*/
|
|
4171
|
+
'readonly'?: boolean;
|
|
3401
4172
|
}
|
|
3402
4173
|
/**
|
|
3403
4174
|
* Order Totals
|
|
@@ -3447,6 +4218,12 @@ export interface OrderTotalModel {
|
|
|
3447
4218
|
* @memberof OrderTotalModel
|
|
3448
4219
|
*/
|
|
3449
4220
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
4221
|
+
/**
|
|
4222
|
+
* Delivery
|
|
4223
|
+
* @type {number}
|
|
4224
|
+
* @memberof OrderTotalModel
|
|
4225
|
+
*/
|
|
4226
|
+
'delivery'?: number | null;
|
|
3450
4227
|
}
|
|
3451
4228
|
|
|
3452
4229
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3828,6 +4605,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3828
4605
|
*/
|
|
3829
4606
|
'scopes'?: Array<string>;
|
|
3830
4607
|
}
|
|
4608
|
+
/**
|
|
4609
|
+
*
|
|
4610
|
+
* @export
|
|
4611
|
+
* @interface PostGetProductForCustomerRequest
|
|
4612
|
+
*/
|
|
4613
|
+
export interface PostGetProductForCustomerRequest {
|
|
4614
|
+
/**
|
|
4615
|
+
* Quantity
|
|
4616
|
+
* @type {number}
|
|
4617
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4618
|
+
*/
|
|
4619
|
+
'quantity'?: number | null;
|
|
4620
|
+
/**
|
|
4621
|
+
* 3CX Licence Key
|
|
4622
|
+
* @type {string}
|
|
4623
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4624
|
+
*/
|
|
4625
|
+
'licenceKey'?: string | null;
|
|
4626
|
+
/**
|
|
4627
|
+
* 3CX Hosting
|
|
4628
|
+
* @type {boolean}
|
|
4629
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4630
|
+
*/
|
|
4631
|
+
'hosting'?: boolean | null;
|
|
4632
|
+
}
|
|
3831
4633
|
/**
|
|
3832
4634
|
* Price & Stock List
|
|
3833
4635
|
* @export
|
|
@@ -3959,10 +4761,10 @@ export interface ProductPriceListItemModel {
|
|
|
3959
4761
|
export interface ProductSearchResultsModel {
|
|
3960
4762
|
/**
|
|
3961
4763
|
* Results
|
|
3962
|
-
* @type {Array<
|
|
4764
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3963
4765
|
* @memberof ProductSearchResultsModel
|
|
3964
4766
|
*/
|
|
3965
|
-
'results'?: Array<
|
|
4767
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3966
4768
|
}
|
|
3967
4769
|
/**
|
|
3968
4770
|
* Product Serial Info
|
|
@@ -3998,45 +4800,57 @@ export interface ProductSerialInfoModel {
|
|
|
3998
4800
|
/**
|
|
3999
4801
|
* Product Summary
|
|
4000
4802
|
* @export
|
|
4001
|
-
* @interface
|
|
4803
|
+
* @interface ProductSummaryDTO
|
|
4002
4804
|
*/
|
|
4003
|
-
export interface
|
|
4805
|
+
export interface ProductSummaryDTO {
|
|
4004
4806
|
/**
|
|
4005
4807
|
* SKU
|
|
4006
4808
|
* @type {string}
|
|
4007
|
-
* @memberof
|
|
4809
|
+
* @memberof ProductSummaryDTO
|
|
4008
4810
|
*/
|
|
4009
4811
|
'sku'?: string;
|
|
4010
4812
|
/**
|
|
4011
4813
|
* Title
|
|
4012
4814
|
* @type {string}
|
|
4013
|
-
* @memberof
|
|
4815
|
+
* @memberof ProductSummaryDTO
|
|
4014
4816
|
*/
|
|
4015
4817
|
'title'?: string;
|
|
4016
4818
|
/**
|
|
4017
4819
|
* Stock Quantity
|
|
4018
4820
|
* @type {number}
|
|
4019
|
-
* @memberof
|
|
4821
|
+
* @memberof ProductSummaryDTO
|
|
4020
4822
|
*/
|
|
4021
4823
|
'quantity'?: number | null;
|
|
4022
4824
|
/**
|
|
4023
4825
|
* Stock Product
|
|
4024
4826
|
* @type {boolean}
|
|
4025
|
-
* @memberof
|
|
4827
|
+
* @memberof ProductSummaryDTO
|
|
4026
4828
|
*/
|
|
4027
4829
|
'stockProduct'?: boolean;
|
|
4028
4830
|
/**
|
|
4029
4831
|
* Price
|
|
4030
4832
|
* @type {number}
|
|
4031
|
-
* @memberof
|
|
4833
|
+
* @memberof ProductSummaryDTO
|
|
4032
4834
|
*/
|
|
4033
4835
|
'price'?: number | null;
|
|
4034
4836
|
/**
|
|
4035
4837
|
* Carton Size
|
|
4036
4838
|
* @type {number}
|
|
4037
|
-
* @memberof
|
|
4839
|
+
* @memberof ProductSummaryDTO
|
|
4038
4840
|
*/
|
|
4039
4841
|
'cartonSize'?: number | null;
|
|
4842
|
+
/**
|
|
4843
|
+
* RRP Price
|
|
4844
|
+
* @type {number}
|
|
4845
|
+
* @memberof ProductSummaryDTO
|
|
4846
|
+
*/
|
|
4847
|
+
'rrp'?: number | null;
|
|
4848
|
+
/**
|
|
4849
|
+
*
|
|
4850
|
+
* @type {TcxLicenceDetailsModel}
|
|
4851
|
+
* @memberof ProductSummaryDTO
|
|
4852
|
+
*/
|
|
4853
|
+
'licenceDetails'?: TcxLicenceDetailsModel | null;
|
|
4040
4854
|
}
|
|
4041
4855
|
/**
|
|
4042
4856
|
* PromoCodesEntity
|
|
@@ -4175,37 +4989,37 @@ export interface PromoItemsEntity {
|
|
|
4175
4989
|
/**
|
|
4176
4990
|
* Provisioning Group
|
|
4177
4991
|
* @export
|
|
4178
|
-
* @interface
|
|
4992
|
+
* @interface ProvisioningModel
|
|
4179
4993
|
*/
|
|
4180
|
-
export interface
|
|
4994
|
+
export interface ProvisioningModel {
|
|
4181
4995
|
/**
|
|
4182
4996
|
* Provisioning Group Name
|
|
4183
4997
|
* @type {string}
|
|
4184
|
-
* @memberof
|
|
4998
|
+
* @memberof ProvisioningModel
|
|
4185
4999
|
*/
|
|
4186
5000
|
'groupName'?: string;
|
|
4187
5001
|
/**
|
|
4188
5002
|
* Provisioning URL (Static Provisioning Server)
|
|
4189
5003
|
* @type {string}
|
|
4190
|
-
* @memberof
|
|
5004
|
+
* @memberof ProvisioningModel
|
|
4191
5005
|
*/
|
|
4192
5006
|
'provisioningUrl'?: string;
|
|
4193
5007
|
/**
|
|
4194
5008
|
* Additional Authentication Secret
|
|
4195
5009
|
* @type {string}
|
|
4196
|
-
* @memberof
|
|
5010
|
+
* @memberof ProvisioningModel
|
|
4197
5011
|
*/
|
|
4198
5012
|
'auth'?: string;
|
|
4199
5013
|
/**
|
|
4200
5014
|
* Provisioning Group ID
|
|
4201
5015
|
* @type {number}
|
|
4202
|
-
* @memberof
|
|
5016
|
+
* @memberof ProvisioningModel
|
|
4203
5017
|
*/
|
|
4204
5018
|
'id'?: number;
|
|
4205
5019
|
/**
|
|
4206
5020
|
* Owner ID
|
|
4207
5021
|
* @type {number}
|
|
4208
|
-
* @memberof
|
|
5022
|
+
* @memberof ProvisioningModel
|
|
4209
5023
|
*/
|
|
4210
5024
|
'customerId'?: number;
|
|
4211
5025
|
}
|
|
@@ -4559,7 +5373,7 @@ export interface ShipmentEntity {
|
|
|
4559
5373
|
* @type {string}
|
|
4560
5374
|
* @memberof ShipmentEntity
|
|
4561
5375
|
*/
|
|
4562
|
-
'
|
|
5376
|
+
'dateShipped'?: string;
|
|
4563
5377
|
/**
|
|
4564
5378
|
* requestDate
|
|
4565
5379
|
* @type {string}
|
|
@@ -4610,6 +5424,155 @@ export interface ShipmentItemEntity {
|
|
|
4610
5424
|
*/
|
|
4611
5425
|
'itemId'?: string;
|
|
4612
5426
|
}
|
|
5427
|
+
/**
|
|
5428
|
+
*
|
|
5429
|
+
* @export
|
|
5430
|
+
* @interface ShippingConsignmentModel
|
|
5431
|
+
*/
|
|
5432
|
+
export interface ShippingConsignmentModel {
|
|
5433
|
+
/**
|
|
5434
|
+
*
|
|
5435
|
+
* @type {ShippingServiceModel}
|
|
5436
|
+
* @memberof ShippingConsignmentModel
|
|
5437
|
+
*/
|
|
5438
|
+
'service'?: ShippingServiceModel;
|
|
5439
|
+
/**
|
|
5440
|
+
* ID/Number
|
|
5441
|
+
* @type {string}
|
|
5442
|
+
* @memberof ShippingConsignmentModel
|
|
5443
|
+
*/
|
|
5444
|
+
'id'?: string;
|
|
5445
|
+
/**
|
|
5446
|
+
* Tracking Number
|
|
5447
|
+
* @type {string}
|
|
5448
|
+
* @memberof ShippingConsignmentModel
|
|
5449
|
+
*/
|
|
5450
|
+
'trackingNumber'?: string;
|
|
5451
|
+
/**
|
|
5452
|
+
* Parcels
|
|
5453
|
+
* @type {Array<string>}
|
|
5454
|
+
* @memberof ShippingConsignmentModel
|
|
5455
|
+
*/
|
|
5456
|
+
'parcelIds'?: Array<string>;
|
|
5457
|
+
}
|
|
5458
|
+
/**
|
|
5459
|
+
* Shipping Information
|
|
5460
|
+
* @export
|
|
5461
|
+
* @interface ShippingInformationDTO
|
|
5462
|
+
*/
|
|
5463
|
+
export interface ShippingInformationDTO {
|
|
5464
|
+
/**
|
|
5465
|
+
* Items
|
|
5466
|
+
* @type {Array<BasicItemDTO>}
|
|
5467
|
+
* @memberof ShippingInformationDTO
|
|
5468
|
+
*/
|
|
5469
|
+
'items'?: Array<BasicItemDTO>;
|
|
5470
|
+
/**
|
|
5471
|
+
* Destination Post Code
|
|
5472
|
+
* @type {string}
|
|
5473
|
+
* @memberof ShippingInformationDTO
|
|
5474
|
+
*/
|
|
5475
|
+
'postalCode'?: string;
|
|
5476
|
+
/**
|
|
5477
|
+
* Destination ISO
|
|
5478
|
+
* @type {string}
|
|
5479
|
+
* @memberof ShippingInformationDTO
|
|
5480
|
+
*/
|
|
5481
|
+
'iso'?: string;
|
|
5482
|
+
}
|
|
5483
|
+
/**
|
|
5484
|
+
* Shipping Service
|
|
5485
|
+
* @export
|
|
5486
|
+
* @interface ShippingServiceDTO
|
|
5487
|
+
*/
|
|
5488
|
+
export interface ShippingServiceDTO {
|
|
5489
|
+
/**
|
|
5490
|
+
* Courier
|
|
5491
|
+
* @type {string}
|
|
5492
|
+
* @memberof ShippingServiceDTO
|
|
5493
|
+
*/
|
|
5494
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5495
|
+
/**
|
|
5496
|
+
* Service Name
|
|
5497
|
+
* @type {string}
|
|
5498
|
+
* @memberof ShippingServiceDTO
|
|
5499
|
+
*/
|
|
5500
|
+
'serviceName'?: string;
|
|
5501
|
+
}
|
|
5502
|
+
|
|
5503
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5504
|
+
Dpd: 'DPD',
|
|
5505
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5506
|
+
Pops: 'POPS'
|
|
5507
|
+
} as const;
|
|
5508
|
+
|
|
5509
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5510
|
+
|
|
5511
|
+
/**
|
|
5512
|
+
* Shipping Service
|
|
5513
|
+
* @export
|
|
5514
|
+
* @interface ShippingServiceModel
|
|
5515
|
+
*/
|
|
5516
|
+
export interface ShippingServiceModel {
|
|
5517
|
+
/**
|
|
5518
|
+
* Courier
|
|
5519
|
+
* @type {string}
|
|
5520
|
+
* @memberof ShippingServiceModel
|
|
5521
|
+
*/
|
|
5522
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5523
|
+
/**
|
|
5524
|
+
* Code
|
|
5525
|
+
* @type {string}
|
|
5526
|
+
* @memberof ShippingServiceModel
|
|
5527
|
+
*/
|
|
5528
|
+
'code'?: string;
|
|
5529
|
+
/**
|
|
5530
|
+
* Name
|
|
5531
|
+
* @type {string}
|
|
5532
|
+
* @memberof ShippingServiceModel
|
|
5533
|
+
*/
|
|
5534
|
+
'name'?: string;
|
|
5535
|
+
/**
|
|
5536
|
+
* Description
|
|
5537
|
+
* @type {string}
|
|
5538
|
+
* @memberof ShippingServiceModel
|
|
5539
|
+
*/
|
|
5540
|
+
'description'?: string;
|
|
5541
|
+
/**
|
|
5542
|
+
* Label
|
|
5543
|
+
* @type {string}
|
|
5544
|
+
* @memberof ShippingServiceModel
|
|
5545
|
+
*/
|
|
5546
|
+
'label'?: string | null;
|
|
5547
|
+
/**
|
|
5548
|
+
* Price
|
|
5549
|
+
* @type {number}
|
|
5550
|
+
* @memberof ShippingServiceModel
|
|
5551
|
+
*/
|
|
5552
|
+
'price'?: number | null;
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5555
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5556
|
+
Dpd: 'DPD',
|
|
5557
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5558
|
+
Pops: 'POPS'
|
|
5559
|
+
} as const;
|
|
5560
|
+
|
|
5561
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5562
|
+
|
|
5563
|
+
/**
|
|
5564
|
+
*
|
|
5565
|
+
* @export
|
|
5566
|
+
* @interface ShippingServicesModel
|
|
5567
|
+
*/
|
|
5568
|
+
export interface ShippingServicesModel {
|
|
5569
|
+
/**
|
|
5570
|
+
* Services
|
|
5571
|
+
* @type {Array<ShippingServiceModel>}
|
|
5572
|
+
* @memberof ShippingServicesModel
|
|
5573
|
+
*/
|
|
5574
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5575
|
+
}
|
|
4613
5576
|
/**
|
|
4614
5577
|
* Change Response
|
|
4615
5578
|
* @export
|
|
@@ -7449,6 +8412,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7449
8412
|
*/
|
|
7450
8413
|
'secretAccessKey'?: string;
|
|
7451
8414
|
}
|
|
8415
|
+
/**
|
|
8416
|
+
* SBC Data
|
|
8417
|
+
* @export
|
|
8418
|
+
* @interface TcxSbcDTO
|
|
8419
|
+
*/
|
|
8420
|
+
export interface TcxSbcDTO {
|
|
8421
|
+
/**
|
|
8422
|
+
* LAN IP Address
|
|
8423
|
+
* @type {string}
|
|
8424
|
+
* @memberof TcxSbcDTO
|
|
8425
|
+
*/
|
|
8426
|
+
'ipAddress'?: string;
|
|
8427
|
+
/**
|
|
8428
|
+
* LAN Default Gateway
|
|
8429
|
+
* @type {string}
|
|
8430
|
+
* @memberof TcxSbcDTO
|
|
8431
|
+
*/
|
|
8432
|
+
'defaultGateway'?: string;
|
|
8433
|
+
/**
|
|
8434
|
+
* LAN Subnet Mask
|
|
8435
|
+
* @type {string}
|
|
8436
|
+
* @memberof TcxSbcDTO
|
|
8437
|
+
*/
|
|
8438
|
+
'netmask'?: string;
|
|
8439
|
+
/**
|
|
8440
|
+
* DNS
|
|
8441
|
+
* @type {string}
|
|
8442
|
+
* @memberof TcxSbcDTO
|
|
8443
|
+
*/
|
|
8444
|
+
'dns'?: string;
|
|
8445
|
+
/**
|
|
8446
|
+
* 3CX URL
|
|
8447
|
+
* @type {string}
|
|
8448
|
+
* @memberof TcxSbcDTO
|
|
8449
|
+
*/
|
|
8450
|
+
'tcxUrl'?: string;
|
|
8451
|
+
/**
|
|
8452
|
+
* 3CX SBC Key
|
|
8453
|
+
* @type {string}
|
|
8454
|
+
* @memberof TcxSbcDTO
|
|
8455
|
+
*/
|
|
8456
|
+
'tcxKey'?: string;
|
|
8457
|
+
}
|
|
7452
8458
|
/**
|
|
7453
8459
|
* 3CX Wizard SBC
|
|
7454
8460
|
* @export
|
|
@@ -7553,7 +8559,7 @@ export interface TcxSbcEntity {
|
|
|
7553
8559
|
'technicalContact'?: string;
|
|
7554
8560
|
}
|
|
7555
8561
|
/**
|
|
7556
|
-
* 3CX SBC
|
|
8562
|
+
* 3CX Wizard SBC
|
|
7557
8563
|
* @export
|
|
7558
8564
|
* @interface TcxSbcModel
|
|
7559
8565
|
*/
|
|
@@ -8539,6 +9545,18 @@ export interface UserEntity {
|
|
|
8539
9545
|
* @memberof UserEntity
|
|
8540
9546
|
*/
|
|
8541
9547
|
'image'?: string;
|
|
9548
|
+
/**
|
|
9549
|
+
* primaryHex
|
|
9550
|
+
* @type {number}
|
|
9551
|
+
* @memberof UserEntity
|
|
9552
|
+
*/
|
|
9553
|
+
'primaryHex'?: number | null;
|
|
9554
|
+
/**
|
|
9555
|
+
* secondaryHex
|
|
9556
|
+
* @type {number}
|
|
9557
|
+
* @memberof UserEntity
|
|
9558
|
+
*/
|
|
9559
|
+
'secondaryHex'?: number | null;
|
|
8542
9560
|
}
|
|
8543
9561
|
/**
|
|
8544
9562
|
* XeroLogEntity
|
|
@@ -8748,17 +9766,17 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8748
9766
|
};
|
|
8749
9767
|
},
|
|
8750
9768
|
/**
|
|
8751
|
-
* Get
|
|
8752
|
-
* @summary Get
|
|
8753
|
-
* @param {number}
|
|
8754
|
-
* @param {number} [page] Page Number
|
|
8755
|
-
* @param {string} [search] Search
|
|
8756
|
-
* @param {boolean} [active] Active
|
|
9769
|
+
* Get Account Detailed Summary
|
|
9770
|
+
* @summary Get Account Detailed Summary
|
|
9771
|
+
* @param {number} id Customer ID
|
|
8757
9772
|
* @param {*} [options] Override http request option.
|
|
8758
9773
|
* @throws {RequiredError}
|
|
8759
9774
|
*/
|
|
8760
|
-
|
|
8761
|
-
|
|
9775
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9776
|
+
// verify required parameter 'id' is not null or undefined
|
|
9777
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9778
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9779
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
8762
9780
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8763
9781
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8764
9782
|
let baseOptions;
|
|
@@ -8770,17 +9788,51 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8770
9788
|
const localVarHeaderParameter = {} as any;
|
|
8771
9789
|
const localVarQueryParameter = {} as any;
|
|
8772
9790
|
|
|
8773
|
-
if (pageSize !== undefined) {
|
|
8774
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
8775
|
-
}
|
|
8776
|
-
|
|
8777
|
-
if (page !== undefined) {
|
|
8778
|
-
localVarQueryParameter['page'] = page;
|
|
8779
|
-
}
|
|
8780
9791
|
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
}
|
|
9792
|
+
|
|
9793
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9795
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9796
|
+
|
|
9797
|
+
return {
|
|
9798
|
+
url: toPathString(localVarUrlObj),
|
|
9799
|
+
options: localVarRequestOptions,
|
|
9800
|
+
};
|
|
9801
|
+
},
|
|
9802
|
+
/**
|
|
9803
|
+
* Get Accounts
|
|
9804
|
+
* @summary Get Accounts
|
|
9805
|
+
* @param {number} [pageSize] Number Of Results
|
|
9806
|
+
* @param {number} [page] Page Number
|
|
9807
|
+
* @param {string} [search] Search
|
|
9808
|
+
* @param {boolean} [active] Active
|
|
9809
|
+
* @param {*} [options] Override http request option.
|
|
9810
|
+
* @throws {RequiredError}
|
|
9811
|
+
*/
|
|
9812
|
+
getGetAccounts: async (pageSize?: number, page?: number, search?: string, active?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9813
|
+
const localVarPath = `/accounts`;
|
|
9814
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9815
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9816
|
+
let baseOptions;
|
|
9817
|
+
if (configuration) {
|
|
9818
|
+
baseOptions = configuration.baseOptions;
|
|
9819
|
+
}
|
|
9820
|
+
|
|
9821
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9822
|
+
const localVarHeaderParameter = {} as any;
|
|
9823
|
+
const localVarQueryParameter = {} as any;
|
|
9824
|
+
|
|
9825
|
+
if (pageSize !== undefined) {
|
|
9826
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
9827
|
+
}
|
|
9828
|
+
|
|
9829
|
+
if (page !== undefined) {
|
|
9830
|
+
localVarQueryParameter['page'] = page;
|
|
9831
|
+
}
|
|
9832
|
+
|
|
9833
|
+
if (search !== undefined) {
|
|
9834
|
+
localVarQueryParameter['search'] = search;
|
|
9835
|
+
}
|
|
8784
9836
|
|
|
8785
9837
|
if (active !== undefined) {
|
|
8786
9838
|
localVarQueryParameter['active'] = active;
|
|
@@ -9036,6 +10088,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9036
10088
|
options: localVarRequestOptions,
|
|
9037
10089
|
};
|
|
9038
10090
|
},
|
|
10091
|
+
/**
|
|
10092
|
+
* Get Admin Account
|
|
10093
|
+
* @summary Get Admin Account
|
|
10094
|
+
* @param {*} [options] Override http request option.
|
|
10095
|
+
* @throws {RequiredError}
|
|
10096
|
+
*/
|
|
10097
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10098
|
+
const localVarPath = `/admin/me`;
|
|
10099
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10101
|
+
let baseOptions;
|
|
10102
|
+
if (configuration) {
|
|
10103
|
+
baseOptions = configuration.baseOptions;
|
|
10104
|
+
}
|
|
10105
|
+
|
|
10106
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10107
|
+
const localVarHeaderParameter = {} as any;
|
|
10108
|
+
const localVarQueryParameter = {} as any;
|
|
10109
|
+
|
|
10110
|
+
|
|
10111
|
+
|
|
10112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10114
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10115
|
+
|
|
10116
|
+
return {
|
|
10117
|
+
url: toPathString(localVarUrlObj),
|
|
10118
|
+
options: localVarRequestOptions,
|
|
10119
|
+
};
|
|
10120
|
+
},
|
|
9039
10121
|
/**
|
|
9040
10122
|
* Create client credentials
|
|
9041
10123
|
* @summary Create client credentials
|
|
@@ -9285,6 +10367,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9285
10367
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9286
10368
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9287
10369
|
},
|
|
10370
|
+
/**
|
|
10371
|
+
* Get Account Detailed Summary
|
|
10372
|
+
* @summary Get Account Detailed Summary
|
|
10373
|
+
* @param {number} id Customer ID
|
|
10374
|
+
* @param {*} [options] Override http request option.
|
|
10375
|
+
* @throws {RequiredError}
|
|
10376
|
+
*/
|
|
10377
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10379
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10380
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10381
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10382
|
+
},
|
|
9288
10383
|
/**
|
|
9289
10384
|
* Get Accounts
|
|
9290
10385
|
* @summary Get Accounts
|
|
@@ -9390,6 +10485,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9390
10485
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9391
10486
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9392
10487
|
},
|
|
10488
|
+
/**
|
|
10489
|
+
* Get Admin Account
|
|
10490
|
+
* @summary Get Admin Account
|
|
10491
|
+
* @param {*} [options] Override http request option.
|
|
10492
|
+
* @throws {RequiredError}
|
|
10493
|
+
*/
|
|
10494
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10496
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10497
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10498
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10499
|
+
},
|
|
9393
10500
|
/**
|
|
9394
10501
|
* Create client credentials
|
|
9395
10502
|
* @summary Create client credentials
|
|
@@ -9507,6 +10614,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9507
10614
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9508
10615
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9509
10616
|
},
|
|
10617
|
+
/**
|
|
10618
|
+
* Get Account Detailed Summary
|
|
10619
|
+
* @summary Get Account Detailed Summary
|
|
10620
|
+
* @param {number} id Customer ID
|
|
10621
|
+
* @param {*} [options] Override http request option.
|
|
10622
|
+
* @throws {RequiredError}
|
|
10623
|
+
*/
|
|
10624
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10625
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10626
|
+
},
|
|
9510
10627
|
/**
|
|
9511
10628
|
* Get Accounts
|
|
9512
10629
|
* @summary Get Accounts
|
|
@@ -9588,6 +10705,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9588
10705
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9589
10706
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9590
10707
|
},
|
|
10708
|
+
/**
|
|
10709
|
+
* Get Admin Account
|
|
10710
|
+
* @summary Get Admin Account
|
|
10711
|
+
* @param {*} [options] Override http request option.
|
|
10712
|
+
* @throws {RequiredError}
|
|
10713
|
+
*/
|
|
10714
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10715
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10716
|
+
},
|
|
9591
10717
|
/**
|
|
9592
10718
|
* Create client credentials
|
|
9593
10719
|
* @summary Create client credentials
|
|
@@ -9698,6 +10824,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9698
10824
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9699
10825
|
}
|
|
9700
10826
|
|
|
10827
|
+
/**
|
|
10828
|
+
* Get Account Detailed Summary
|
|
10829
|
+
* @summary Get Account Detailed Summary
|
|
10830
|
+
* @param {number} id Customer ID
|
|
10831
|
+
* @param {*} [options] Override http request option.
|
|
10832
|
+
* @throws {RequiredError}
|
|
10833
|
+
* @memberof AccountsApi
|
|
10834
|
+
*/
|
|
10835
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10836
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10837
|
+
}
|
|
10838
|
+
|
|
9701
10839
|
/**
|
|
9702
10840
|
* Get Accounts
|
|
9703
10841
|
* @summary Get Accounts
|
|
@@ -9795,6 +10933,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9795
10933
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9796
10934
|
}
|
|
9797
10935
|
|
|
10936
|
+
/**
|
|
10937
|
+
* Get Admin Account
|
|
10938
|
+
* @summary Get Admin Account
|
|
10939
|
+
* @param {*} [options] Override http request option.
|
|
10940
|
+
* @throws {RequiredError}
|
|
10941
|
+
* @memberof AccountsApi
|
|
10942
|
+
*/
|
|
10943
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10944
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10945
|
+
}
|
|
10946
|
+
|
|
9798
10947
|
/**
|
|
9799
10948
|
* Create client credentials
|
|
9800
10949
|
* @summary Create client credentials
|
|
@@ -9992,43 +11141,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9992
11141
|
|
|
9993
11142
|
|
|
9994
11143
|
|
|
9995
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9996
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9997
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9998
|
-
|
|
9999
|
-
return {
|
|
10000
|
-
url: toPathString(localVarUrlObj),
|
|
10001
|
-
options: localVarRequestOptions,
|
|
10002
|
-
};
|
|
10003
|
-
},
|
|
10004
|
-
/**
|
|
10005
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10006
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10007
|
-
* @param {string} password Desired 3CX web access password
|
|
10008
|
-
* @param {*} [options] Override http request option.
|
|
10009
|
-
* @throws {RequiredError}
|
|
10010
|
-
*/
|
|
10011
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10012
|
-
// verify required parameter 'password' is not null or undefined
|
|
10013
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
10014
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
10015
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10016
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10017
|
-
let baseOptions;
|
|
10018
|
-
if (configuration) {
|
|
10019
|
-
baseOptions = configuration.baseOptions;
|
|
10020
|
-
}
|
|
10021
|
-
|
|
10022
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10023
|
-
const localVarHeaderParameter = {} as any;
|
|
10024
|
-
const localVarQueryParameter = {} as any;
|
|
10025
|
-
|
|
10026
|
-
if (password !== undefined) {
|
|
10027
|
-
localVarQueryParameter['password'] = password;
|
|
10028
|
-
}
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
11144
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10033
11145
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10034
11146
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10095,19 +11207,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
10095
11207
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
10096
11208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10097
11209
|
},
|
|
10098
|
-
/**
|
|
10099
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10100
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10101
|
-
* @param {string} password Desired 3CX web access password
|
|
10102
|
-
* @param {*} [options] Override http request option.
|
|
10103
|
-
* @throws {RequiredError}
|
|
10104
|
-
*/
|
|
10105
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
10106
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
10107
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10108
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
10109
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10110
|
-
},
|
|
10111
11210
|
/**
|
|
10112
11211
|
* Get Bulk 3CX Licence Details
|
|
10113
11212
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10141,16 +11240,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
10141
11240
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
10142
11241
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
10143
11242
|
},
|
|
10144
|
-
/**
|
|
10145
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10146
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10147
|
-
* @param {string} password Desired 3CX web access password
|
|
10148
|
-
* @param {*} [options] Override http request option.
|
|
10149
|
-
* @throws {RequiredError}
|
|
10150
|
-
*/
|
|
10151
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
10152
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
10153
|
-
},
|
|
10154
11243
|
/**
|
|
10155
11244
|
* Get Bulk 3CX Licence Details
|
|
10156
11245
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10183,18 +11272,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
10183
11272
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
10184
11273
|
}
|
|
10185
11274
|
|
|
10186
|
-
/**
|
|
10187
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10188
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10189
|
-
* @param {string} password Desired 3CX web access password
|
|
10190
|
-
* @param {*} [options] Override http request option.
|
|
10191
|
-
* @throws {RequiredError}
|
|
10192
|
-
* @memberof Class3CXApi
|
|
10193
|
-
*/
|
|
10194
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
10195
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
10196
|
-
}
|
|
10197
|
-
|
|
10198
11275
|
/**
|
|
10199
11276
|
* Get Bulk 3CX Licence Details
|
|
10200
11277
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -15368,14 +16445,15 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
|
|
|
15368
16445
|
export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15369
16446
|
return {
|
|
15370
16447
|
/**
|
|
15371
|
-
* Delete Orders
|
|
16448
|
+
* Delete Orders (Beta)
|
|
16449
|
+
* @summary Delete Orders (Beta)
|
|
15372
16450
|
* @param {number} id Order ID
|
|
15373
16451
|
* @param {*} [options] Override http request option.
|
|
15374
16452
|
* @throws {RequiredError}
|
|
15375
16453
|
*/
|
|
15376
|
-
|
|
16454
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15377
16455
|
// verify required parameter 'id' is not null or undefined
|
|
15378
|
-
assertParamExists('
|
|
16456
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15379
16457
|
const localVarPath = `/orders/{id}`
|
|
15380
16458
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15381
16459
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15401,8 +16479,76 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15401
16479
|
};
|
|
15402
16480
|
},
|
|
15403
16481
|
/**
|
|
15404
|
-
* Get
|
|
15405
|
-
* @summary Get
|
|
16482
|
+
* Get Editable Order (Admin)
|
|
16483
|
+
* @summary Get Editable Order (Admin)
|
|
16484
|
+
* @param {number} id Order ID
|
|
16485
|
+
* @param {*} [options] Override http request option.
|
|
16486
|
+
* @throws {RequiredError}
|
|
16487
|
+
*/
|
|
16488
|
+
getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16489
|
+
// verify required parameter 'id' is not null or undefined
|
|
16490
|
+
assertParamExists('getGetAdminEditableOrder', 'id', id)
|
|
16491
|
+
const localVarPath = `/admin/orders/{id}/views/editable`
|
|
16492
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16493
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16494
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16495
|
+
let baseOptions;
|
|
16496
|
+
if (configuration) {
|
|
16497
|
+
baseOptions = configuration.baseOptions;
|
|
16498
|
+
}
|
|
16499
|
+
|
|
16500
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16501
|
+
const localVarHeaderParameter = {} as any;
|
|
16502
|
+
const localVarQueryParameter = {} as any;
|
|
16503
|
+
|
|
16504
|
+
|
|
16505
|
+
|
|
16506
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16507
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16508
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16509
|
+
|
|
16510
|
+
return {
|
|
16511
|
+
url: toPathString(localVarUrlObj),
|
|
16512
|
+
options: localVarRequestOptions,
|
|
16513
|
+
};
|
|
16514
|
+
},
|
|
16515
|
+
/**
|
|
16516
|
+
* Get Editable Order (Beta)
|
|
16517
|
+
* @summary Get Editable Order (Beta)
|
|
16518
|
+
* @param {number} id Order ID
|
|
16519
|
+
* @param {*} [options] Override http request option.
|
|
16520
|
+
* @throws {RequiredError}
|
|
16521
|
+
*/
|
|
16522
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16523
|
+
// verify required parameter 'id' is not null or undefined
|
|
16524
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16525
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16526
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16527
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16528
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16529
|
+
let baseOptions;
|
|
16530
|
+
if (configuration) {
|
|
16531
|
+
baseOptions = configuration.baseOptions;
|
|
16532
|
+
}
|
|
16533
|
+
|
|
16534
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16535
|
+
const localVarHeaderParameter = {} as any;
|
|
16536
|
+
const localVarQueryParameter = {} as any;
|
|
16537
|
+
|
|
16538
|
+
|
|
16539
|
+
|
|
16540
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16541
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16542
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16543
|
+
|
|
16544
|
+
return {
|
|
16545
|
+
url: toPathString(localVarUrlObj),
|
|
16546
|
+
options: localVarRequestOptions,
|
|
16547
|
+
};
|
|
16548
|
+
},
|
|
16549
|
+
/**
|
|
16550
|
+
* Get Orders (Beta)
|
|
16551
|
+
* @summary Get Orders (Beta)
|
|
15406
16552
|
* @param {number} [pageSize] Number Of Results
|
|
15407
16553
|
* @param {number} [page] Page Number
|
|
15408
16554
|
* @param {string} [search] Search
|
|
@@ -15465,47 +16611,296 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15465
16611
|
options: localVarRequestOptions,
|
|
15466
16612
|
};
|
|
15467
16613
|
},
|
|
15468
|
-
}
|
|
15469
|
-
};
|
|
15470
|
-
|
|
15471
|
-
/**
|
|
15472
|
-
* OrdersApi - functional programming interface
|
|
15473
|
-
* @export
|
|
15474
|
-
*/
|
|
15475
|
-
export const OrdersApiFp = function(configuration?: Configuration) {
|
|
15476
|
-
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
15477
|
-
return {
|
|
15478
16614
|
/**
|
|
15479
|
-
*
|
|
15480
|
-
* @
|
|
16615
|
+
* Create An Order (Admin)
|
|
16616
|
+
* @summary Create An Order (Admin)
|
|
16617
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16618
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
15481
16619
|
* @param {*} [options] Override http request option.
|
|
15482
16620
|
* @throws {RequiredError}
|
|
15483
16621
|
*/
|
|
15484
|
-
async
|
|
15485
|
-
const
|
|
15486
|
-
|
|
15487
|
-
const
|
|
15488
|
-
|
|
16622
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16623
|
+
const localVarPath = `/admin/orders`;
|
|
16624
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16625
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16626
|
+
let baseOptions;
|
|
16627
|
+
if (configuration) {
|
|
16628
|
+
baseOptions = configuration.baseOptions;
|
|
16629
|
+
}
|
|
16630
|
+
|
|
16631
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16632
|
+
const localVarHeaderParameter = {} as any;
|
|
16633
|
+
const localVarQueryParameter = {} as any;
|
|
16634
|
+
|
|
16635
|
+
if (readonly !== undefined) {
|
|
16636
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16637
|
+
}
|
|
16638
|
+
|
|
16639
|
+
|
|
16640
|
+
|
|
16641
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16642
|
+
|
|
16643
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16644
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16645
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16646
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16647
|
+
|
|
16648
|
+
return {
|
|
16649
|
+
url: toPathString(localVarUrlObj),
|
|
16650
|
+
options: localVarRequestOptions,
|
|
16651
|
+
};
|
|
15489
16652
|
},
|
|
15490
16653
|
/**
|
|
15491
|
-
*
|
|
15492
|
-
* @summary
|
|
15493
|
-
* @param {
|
|
15494
|
-
* @param {
|
|
15495
|
-
* @param {string} [search] Search
|
|
15496
|
-
* @param {boolean | null} [fulfillable] Fulfillable
|
|
15497
|
-
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
15498
|
-
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
15499
|
-
* @param {number | null} [customerId] Customer ID
|
|
16654
|
+
* Create An Order (Beta)
|
|
16655
|
+
* @summary Create An Order (Beta)
|
|
16656
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16657
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
15500
16658
|
* @param {*} [options] Override http request option.
|
|
15501
16659
|
* @throws {RequiredError}
|
|
15502
16660
|
*/
|
|
15503
|
-
async
|
|
15504
|
-
const
|
|
16661
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16662
|
+
const localVarPath = `/orders`;
|
|
16663
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16664
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16665
|
+
let baseOptions;
|
|
16666
|
+
if (configuration) {
|
|
16667
|
+
baseOptions = configuration.baseOptions;
|
|
16668
|
+
}
|
|
16669
|
+
|
|
16670
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16671
|
+
const localVarHeaderParameter = {} as any;
|
|
16672
|
+
const localVarQueryParameter = {} as any;
|
|
16673
|
+
|
|
16674
|
+
if (readonly !== undefined) {
|
|
16675
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16676
|
+
}
|
|
16677
|
+
|
|
16678
|
+
|
|
16679
|
+
|
|
16680
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16681
|
+
|
|
16682
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16684
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16685
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16686
|
+
|
|
16687
|
+
return {
|
|
16688
|
+
url: toPathString(localVarUrlObj),
|
|
16689
|
+
options: localVarRequestOptions,
|
|
16690
|
+
};
|
|
16691
|
+
},
|
|
16692
|
+
/**
|
|
16693
|
+
* Update An Order (Admin)
|
|
16694
|
+
* @summary Update An Order (Admin)
|
|
16695
|
+
* @param {number} id Order ID
|
|
16696
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16697
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16698
|
+
* @param {*} [options] Override http request option.
|
|
16699
|
+
* @throws {RequiredError}
|
|
16700
|
+
*/
|
|
16701
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16702
|
+
// verify required parameter 'id' is not null or undefined
|
|
16703
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16704
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16705
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16706
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16707
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16708
|
+
let baseOptions;
|
|
16709
|
+
if (configuration) {
|
|
16710
|
+
baseOptions = configuration.baseOptions;
|
|
16711
|
+
}
|
|
16712
|
+
|
|
16713
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16714
|
+
const localVarHeaderParameter = {} as any;
|
|
16715
|
+
const localVarQueryParameter = {} as any;
|
|
16716
|
+
|
|
16717
|
+
if (readonly !== undefined) {
|
|
16718
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16719
|
+
}
|
|
16720
|
+
|
|
16721
|
+
|
|
16722
|
+
|
|
16723
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16724
|
+
|
|
16725
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16727
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16728
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16729
|
+
|
|
16730
|
+
return {
|
|
16731
|
+
url: toPathString(localVarUrlObj),
|
|
16732
|
+
options: localVarRequestOptions,
|
|
16733
|
+
};
|
|
16734
|
+
},
|
|
16735
|
+
/**
|
|
16736
|
+
* Update An Order (Beta)
|
|
16737
|
+
* @summary Update An Order (Beta)
|
|
16738
|
+
* @param {number} id Order ID
|
|
16739
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16740
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16741
|
+
* @param {*} [options] Override http request option.
|
|
16742
|
+
* @throws {RequiredError}
|
|
16743
|
+
*/
|
|
16744
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16745
|
+
// verify required parameter 'id' is not null or undefined
|
|
16746
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16747
|
+
const localVarPath = `/orders/{id}`
|
|
16748
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16750
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16751
|
+
let baseOptions;
|
|
16752
|
+
if (configuration) {
|
|
16753
|
+
baseOptions = configuration.baseOptions;
|
|
16754
|
+
}
|
|
16755
|
+
|
|
16756
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16757
|
+
const localVarHeaderParameter = {} as any;
|
|
16758
|
+
const localVarQueryParameter = {} as any;
|
|
16759
|
+
|
|
16760
|
+
if (readonly !== undefined) {
|
|
16761
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16762
|
+
}
|
|
16763
|
+
|
|
16764
|
+
|
|
16765
|
+
|
|
16766
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16767
|
+
|
|
16768
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16770
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16771
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16772
|
+
|
|
16773
|
+
return {
|
|
16774
|
+
url: toPathString(localVarUrlObj),
|
|
16775
|
+
options: localVarRequestOptions,
|
|
16776
|
+
};
|
|
16777
|
+
},
|
|
16778
|
+
}
|
|
16779
|
+
};
|
|
16780
|
+
|
|
16781
|
+
/**
|
|
16782
|
+
* OrdersApi - functional programming interface
|
|
16783
|
+
* @export
|
|
16784
|
+
*/
|
|
16785
|
+
export const OrdersApiFp = function(configuration?: Configuration) {
|
|
16786
|
+
const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
|
|
16787
|
+
return {
|
|
16788
|
+
/**
|
|
16789
|
+
* Delete Orders (Beta)
|
|
16790
|
+
* @summary Delete Orders (Beta)
|
|
16791
|
+
* @param {number} id Order ID
|
|
16792
|
+
* @param {*} [options] Override http request option.
|
|
16793
|
+
* @throws {RequiredError}
|
|
16794
|
+
*/
|
|
16795
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
16797
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16798
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16799
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16800
|
+
},
|
|
16801
|
+
/**
|
|
16802
|
+
* Get Editable Order (Admin)
|
|
16803
|
+
* @summary Get Editable Order (Admin)
|
|
16804
|
+
* @param {number} id Order ID
|
|
16805
|
+
* @param {*} [options] Override http request option.
|
|
16806
|
+
* @throws {RequiredError}
|
|
16807
|
+
*/
|
|
16808
|
+
async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
16809
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
|
|
16810
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16811
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
16812
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16813
|
+
},
|
|
16814
|
+
/**
|
|
16815
|
+
* Get Editable Order (Beta)
|
|
16816
|
+
* @summary Get Editable Order (Beta)
|
|
16817
|
+
* @param {number} id Order ID
|
|
16818
|
+
* @param {*} [options] Override http request option.
|
|
16819
|
+
* @throws {RequiredError}
|
|
16820
|
+
*/
|
|
16821
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
|
|
16822
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
16823
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16824
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
16825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16826
|
+
},
|
|
16827
|
+
/**
|
|
16828
|
+
* Get Orders (Beta)
|
|
16829
|
+
* @summary Get Orders (Beta)
|
|
16830
|
+
* @param {number} [pageSize] Number Of Results
|
|
16831
|
+
* @param {number} [page] Page Number
|
|
16832
|
+
* @param {string} [search] Search
|
|
16833
|
+
* @param {boolean | null} [fulfillable] Fulfillable
|
|
16834
|
+
* @param {GetGetOrdersStatusEnum} [status] Status
|
|
16835
|
+
* @param {GetGetOrdersFilterEnum} [filter] Filter
|
|
16836
|
+
* @param {number | null} [customerId] Customer ID
|
|
16837
|
+
* @param {*} [options] Override http request option.
|
|
16838
|
+
* @throws {RequiredError}
|
|
16839
|
+
*/
|
|
16840
|
+
async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
|
|
16841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
|
|
15505
16842
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15506
16843
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15507
16844
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15508
16845
|
},
|
|
16846
|
+
/**
|
|
16847
|
+
* Create An Order (Admin)
|
|
16848
|
+
* @summary Create An Order (Admin)
|
|
16849
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16850
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16851
|
+
* @param {*} [options] Override http request option.
|
|
16852
|
+
* @throws {RequiredError}
|
|
16853
|
+
*/
|
|
16854
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16855
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16856
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16857
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16858
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16859
|
+
},
|
|
16860
|
+
/**
|
|
16861
|
+
* Create An Order (Beta)
|
|
16862
|
+
* @summary Create An Order (Beta)
|
|
16863
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16864
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16865
|
+
* @param {*} [options] Override http request option.
|
|
16866
|
+
* @throws {RequiredError}
|
|
16867
|
+
*/
|
|
16868
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16869
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16870
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16871
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16872
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16873
|
+
},
|
|
16874
|
+
/**
|
|
16875
|
+
* Update An Order (Admin)
|
|
16876
|
+
* @summary Update An Order (Admin)
|
|
16877
|
+
* @param {number} id Order ID
|
|
16878
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16879
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16880
|
+
* @param {*} [options] Override http request option.
|
|
16881
|
+
* @throws {RequiredError}
|
|
16882
|
+
*/
|
|
16883
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16884
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16885
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16886
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16887
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16888
|
+
},
|
|
16889
|
+
/**
|
|
16890
|
+
* Update An Order (Beta)
|
|
16891
|
+
* @summary Update An Order (Beta)
|
|
16892
|
+
* @param {number} id Order ID
|
|
16893
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16894
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16895
|
+
* @param {*} [options] Override http request option.
|
|
16896
|
+
* @throws {RequiredError}
|
|
16897
|
+
*/
|
|
16898
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16900
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16901
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16902
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16903
|
+
},
|
|
15509
16904
|
}
|
|
15510
16905
|
};
|
|
15511
16906
|
|
|
@@ -15517,17 +16912,38 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15517
16912
|
const localVarFp = OrdersApiFp(configuration)
|
|
15518
16913
|
return {
|
|
15519
16914
|
/**
|
|
15520
|
-
* Delete Orders
|
|
16915
|
+
* Delete Orders (Beta)
|
|
16916
|
+
* @summary Delete Orders (Beta)
|
|
15521
16917
|
* @param {number} id Order ID
|
|
15522
16918
|
* @param {*} [options] Override http request option.
|
|
15523
16919
|
* @throws {RequiredError}
|
|
15524
16920
|
*/
|
|
15525
|
-
|
|
15526
|
-
return localVarFp.
|
|
16921
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16922
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
15527
16923
|
},
|
|
15528
16924
|
/**
|
|
15529
|
-
* Get
|
|
15530
|
-
* @summary Get
|
|
16925
|
+
* Get Editable Order (Admin)
|
|
16926
|
+
* @summary Get Editable Order (Admin)
|
|
16927
|
+
* @param {number} id Order ID
|
|
16928
|
+
* @param {*} [options] Override http request option.
|
|
16929
|
+
* @throws {RequiredError}
|
|
16930
|
+
*/
|
|
16931
|
+
getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
|
|
16932
|
+
return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
16933
|
+
},
|
|
16934
|
+
/**
|
|
16935
|
+
* Get Editable Order (Beta)
|
|
16936
|
+
* @summary Get Editable Order (Beta)
|
|
16937
|
+
* @param {number} id Order ID
|
|
16938
|
+
* @param {*} [options] Override http request option.
|
|
16939
|
+
* @throws {RequiredError}
|
|
16940
|
+
*/
|
|
16941
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
|
|
16942
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
16943
|
+
},
|
|
16944
|
+
/**
|
|
16945
|
+
* Get Orders (Beta)
|
|
16946
|
+
* @summary Get Orders (Beta)
|
|
15531
16947
|
* @param {number} [pageSize] Number Of Results
|
|
15532
16948
|
* @param {number} [page] Page Number
|
|
15533
16949
|
* @param {string} [search] Search
|
|
@@ -15541,6 +16957,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15541
16957
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15542
16958
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15543
16959
|
},
|
|
16960
|
+
/**
|
|
16961
|
+
* Create An Order (Admin)
|
|
16962
|
+
* @summary Create An Order (Admin)
|
|
16963
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16964
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16965
|
+
* @param {*} [options] Override http request option.
|
|
16966
|
+
* @throws {RequiredError}
|
|
16967
|
+
*/
|
|
16968
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16969
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16970
|
+
},
|
|
16971
|
+
/**
|
|
16972
|
+
* Create An Order (Beta)
|
|
16973
|
+
* @summary Create An Order (Beta)
|
|
16974
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16975
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16976
|
+
* @param {*} [options] Override http request option.
|
|
16977
|
+
* @throws {RequiredError}
|
|
16978
|
+
*/
|
|
16979
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16980
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16981
|
+
},
|
|
16982
|
+
/**
|
|
16983
|
+
* Update An Order (Admin)
|
|
16984
|
+
* @summary Update An Order (Admin)
|
|
16985
|
+
* @param {number} id Order ID
|
|
16986
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16987
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16988
|
+
* @param {*} [options] Override http request option.
|
|
16989
|
+
* @throws {RequiredError}
|
|
16990
|
+
*/
|
|
16991
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16992
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16993
|
+
},
|
|
16994
|
+
/**
|
|
16995
|
+
* Update An Order (Beta)
|
|
16996
|
+
* @summary Update An Order (Beta)
|
|
16997
|
+
* @param {number} id Order ID
|
|
16998
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16999
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
17000
|
+
* @param {*} [options] Override http request option.
|
|
17001
|
+
* @throws {RequiredError}
|
|
17002
|
+
*/
|
|
17003
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
17004
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
17005
|
+
},
|
|
15544
17006
|
};
|
|
15545
17007
|
};
|
|
15546
17008
|
|
|
@@ -15552,19 +17014,44 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15552
17014
|
*/
|
|
15553
17015
|
export class OrdersApi extends BaseAPI {
|
|
15554
17016
|
/**
|
|
15555
|
-
* Delete Orders
|
|
17017
|
+
* Delete Orders (Beta)
|
|
17018
|
+
* @summary Delete Orders (Beta)
|
|
15556
17019
|
* @param {number} id Order ID
|
|
15557
17020
|
* @param {*} [options] Override http request option.
|
|
15558
17021
|
* @throws {RequiredError}
|
|
15559
17022
|
* @memberof OrdersApi
|
|
15560
17023
|
*/
|
|
15561
|
-
public
|
|
15562
|
-
return OrdersApiFp(this.configuration).
|
|
17024
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
17025
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15563
17026
|
}
|
|
15564
17027
|
|
|
15565
17028
|
/**
|
|
15566
|
-
* Get
|
|
15567
|
-
* @summary Get
|
|
17029
|
+
* Get Editable Order (Admin)
|
|
17030
|
+
* @summary Get Editable Order (Admin)
|
|
17031
|
+
* @param {number} id Order ID
|
|
17032
|
+
* @param {*} [options] Override http request option.
|
|
17033
|
+
* @throws {RequiredError}
|
|
17034
|
+
* @memberof OrdersApi
|
|
17035
|
+
*/
|
|
17036
|
+
public getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
17037
|
+
return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
17038
|
+
}
|
|
17039
|
+
|
|
17040
|
+
/**
|
|
17041
|
+
* Get Editable Order (Beta)
|
|
17042
|
+
* @summary Get Editable Order (Beta)
|
|
17043
|
+
* @param {number} id Order ID
|
|
17044
|
+
* @param {*} [options] Override http request option.
|
|
17045
|
+
* @throws {RequiredError}
|
|
17046
|
+
* @memberof OrdersApi
|
|
17047
|
+
*/
|
|
17048
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
17049
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
17050
|
+
}
|
|
17051
|
+
|
|
17052
|
+
/**
|
|
17053
|
+
* Get Orders (Beta)
|
|
17054
|
+
* @summary Get Orders (Beta)
|
|
15568
17055
|
* @param {number} [pageSize] Number Of Results
|
|
15569
17056
|
* @param {number} [page] Page Number
|
|
15570
17057
|
* @param {string} [search] Search
|
|
@@ -15579,6 +17066,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15579
17066
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15580
17067
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15581
17068
|
}
|
|
17069
|
+
|
|
17070
|
+
/**
|
|
17071
|
+
* Create An Order (Admin)
|
|
17072
|
+
* @summary Create An Order (Admin)
|
|
17073
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17074
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
17075
|
+
* @param {*} [options] Override http request option.
|
|
17076
|
+
* @throws {RequiredError}
|
|
17077
|
+
* @memberof OrdersApi
|
|
17078
|
+
*/
|
|
17079
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17080
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17081
|
+
}
|
|
17082
|
+
|
|
17083
|
+
/**
|
|
17084
|
+
* Create An Order (Beta)
|
|
17085
|
+
* @summary Create An Order (Beta)
|
|
17086
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17087
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
17088
|
+
* @param {*} [options] Override http request option.
|
|
17089
|
+
* @throws {RequiredError}
|
|
17090
|
+
* @memberof OrdersApi
|
|
17091
|
+
*/
|
|
17092
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17093
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17094
|
+
}
|
|
17095
|
+
|
|
17096
|
+
/**
|
|
17097
|
+
* Update An Order (Admin)
|
|
17098
|
+
* @summary Update An Order (Admin)
|
|
17099
|
+
* @param {number} id Order ID
|
|
17100
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17101
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
17102
|
+
* @param {*} [options] Override http request option.
|
|
17103
|
+
* @throws {RequiredError}
|
|
17104
|
+
* @memberof OrdersApi
|
|
17105
|
+
*/
|
|
17106
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17107
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17108
|
+
}
|
|
17109
|
+
|
|
17110
|
+
/**
|
|
17111
|
+
* Update An Order (Beta)
|
|
17112
|
+
* @summary Update An Order (Beta)
|
|
17113
|
+
* @param {number} id Order ID
|
|
17114
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17115
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
17116
|
+
* @param {*} [options] Override http request option.
|
|
17117
|
+
* @throws {RequiredError}
|
|
17118
|
+
* @memberof OrdersApi
|
|
17119
|
+
*/
|
|
17120
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17121
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17122
|
+
}
|
|
15582
17123
|
}
|
|
15583
17124
|
|
|
15584
17125
|
/**
|
|
@@ -15989,13 +17530,51 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15989
17530
|
};
|
|
15990
17531
|
},
|
|
15991
17532
|
/**
|
|
15992
|
-
* Get
|
|
15993
|
-
* @summary Get
|
|
17533
|
+
* Get Current Stock & Pricing
|
|
17534
|
+
* @summary Get Current Stock & Pricing
|
|
17535
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
15994
17536
|
* @param {*} [options] Override http request option.
|
|
17537
|
+
* @deprecated
|
|
15995
17538
|
* @throws {RequiredError}
|
|
15996
17539
|
*/
|
|
15997
|
-
|
|
15998
|
-
|
|
17540
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17541
|
+
// verify required parameter 'format' is not null or undefined
|
|
17542
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17543
|
+
const localVarPath = `/products/stock/legacy`;
|
|
17544
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17545
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17546
|
+
let baseOptions;
|
|
17547
|
+
if (configuration) {
|
|
17548
|
+
baseOptions = configuration.baseOptions;
|
|
17549
|
+
}
|
|
17550
|
+
|
|
17551
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17552
|
+
const localVarHeaderParameter = {} as any;
|
|
17553
|
+
const localVarQueryParameter = {} as any;
|
|
17554
|
+
|
|
17555
|
+
if (format !== undefined) {
|
|
17556
|
+
localVarQueryParameter['format'] = format;
|
|
17557
|
+
}
|
|
17558
|
+
|
|
17559
|
+
|
|
17560
|
+
|
|
17561
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17562
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17563
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17564
|
+
|
|
17565
|
+
return {
|
|
17566
|
+
url: toPathString(localVarUrlObj),
|
|
17567
|
+
options: localVarRequestOptions,
|
|
17568
|
+
};
|
|
17569
|
+
},
|
|
17570
|
+
/**
|
|
17571
|
+
* Get Products
|
|
17572
|
+
* @summary Get Products
|
|
17573
|
+
* @param {*} [options] Override http request option.
|
|
17574
|
+
* @throws {RequiredError}
|
|
17575
|
+
*/
|
|
17576
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17577
|
+
const localVarPath = `/products`;
|
|
15999
17578
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16000
17579
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16001
17580
|
let baseOptions;
|
|
@@ -16021,15 +17600,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16021
17600
|
/**
|
|
16022
17601
|
* Get Current Stock & Pricing
|
|
16023
17602
|
* @summary Get Current Stock & Pricing
|
|
16024
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
16025
17603
|
* @param {*} [options] Override http request option.
|
|
16026
|
-
* @deprecated
|
|
16027
17604
|
* @throws {RequiredError}
|
|
16028
17605
|
*/
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
16032
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17606
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17607
|
+
const localVarPath = `/products/stock`;
|
|
16033
17608
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16034
17609
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16035
17610
|
let baseOptions;
|
|
@@ -16041,10 +17616,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16041
17616
|
const localVarHeaderParameter = {} as any;
|
|
16042
17617
|
const localVarQueryParameter = {} as any;
|
|
16043
17618
|
|
|
16044
|
-
|
|
16045
|
-
|
|
17619
|
+
|
|
17620
|
+
|
|
17621
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17622
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17623
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17624
|
+
|
|
17625
|
+
return {
|
|
17626
|
+
url: toPathString(localVarUrlObj),
|
|
17627
|
+
options: localVarRequestOptions,
|
|
17628
|
+
};
|
|
17629
|
+
},
|
|
17630
|
+
/**
|
|
17631
|
+
* Get 3CX Templates
|
|
17632
|
+
* @summary Get 3CX Templates
|
|
17633
|
+
* @param {*} [options] Override http request option.
|
|
17634
|
+
* @throws {RequiredError}
|
|
17635
|
+
*/
|
|
17636
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17637
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17638
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17639
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17640
|
+
let baseOptions;
|
|
17641
|
+
if (configuration) {
|
|
17642
|
+
baseOptions = configuration.baseOptions;
|
|
16046
17643
|
}
|
|
16047
17644
|
|
|
17645
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17646
|
+
const localVarHeaderParameter = {} as any;
|
|
17647
|
+
const localVarQueryParameter = {} as any;
|
|
17648
|
+
|
|
16048
17649
|
|
|
16049
17650
|
|
|
16050
17651
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16057,15 +17658,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16057
17658
|
};
|
|
16058
17659
|
},
|
|
16059
17660
|
/**
|
|
16060
|
-
*
|
|
16061
|
-
* @summary
|
|
17661
|
+
* Search Products
|
|
17662
|
+
* @summary Search Products
|
|
16062
17663
|
* @param {number} [pageSize] Number Of Results
|
|
16063
17664
|
* @param {number} [page] Page Number
|
|
16064
17665
|
* @param {string} [search] Search
|
|
16065
17666
|
* @param {*} [options] Override http request option.
|
|
16066
17667
|
* @throws {RequiredError}
|
|
16067
17668
|
*/
|
|
16068
|
-
|
|
17669
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16069
17670
|
const localVarPath = `/products/search`;
|
|
16070
17671
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16071
17672
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16102,13 +17703,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16102
17703
|
};
|
|
16103
17704
|
},
|
|
16104
17705
|
/**
|
|
16105
|
-
* Get
|
|
16106
|
-
* @summary Get
|
|
17706
|
+
* Get Product
|
|
17707
|
+
* @summary Get Product
|
|
17708
|
+
* @param {string} sku Product SKU
|
|
17709
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16107
17710
|
* @param {*} [options] Override http request option.
|
|
16108
17711
|
* @throws {RequiredError}
|
|
16109
17712
|
*/
|
|
16110
|
-
|
|
16111
|
-
|
|
17713
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17714
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17715
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17716
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17717
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17718
|
+
const localVarPath = `/products/{sku}`
|
|
17719
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16112
17720
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16113
17721
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16114
17722
|
let baseOptions;
|
|
@@ -16116,15 +17724,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16116
17724
|
baseOptions = configuration.baseOptions;
|
|
16117
17725
|
}
|
|
16118
17726
|
|
|
16119
|
-
const localVarRequestOptions = { method: '
|
|
17727
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16120
17728
|
const localVarHeaderParameter = {} as any;
|
|
16121
17729
|
const localVarQueryParameter = {} as any;
|
|
16122
17730
|
|
|
16123
17731
|
|
|
16124
17732
|
|
|
17733
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17734
|
+
|
|
16125
17735
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16126
17736
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16127
17737
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17738
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16128
17739
|
|
|
16129
17740
|
return {
|
|
16130
17741
|
url: toPathString(localVarUrlObj),
|
|
@@ -16132,13 +17743,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16132
17743
|
};
|
|
16133
17744
|
},
|
|
16134
17745
|
/**
|
|
16135
|
-
* Get
|
|
16136
|
-
* @summary Get
|
|
17746
|
+
* Get Product For Customer
|
|
17747
|
+
* @summary Get Product For Customer
|
|
17748
|
+
* @param {number} customerId Customer ID
|
|
17749
|
+
* @param {string} sku Product SKU
|
|
17750
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16137
17751
|
* @param {*} [options] Override http request option.
|
|
16138
17752
|
* @throws {RequiredError}
|
|
16139
17753
|
*/
|
|
16140
|
-
|
|
16141
|
-
|
|
17754
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17755
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17756
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17757
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17758
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17759
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17760
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17761
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17762
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16142
17763
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16143
17764
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16144
17765
|
let baseOptions;
|
|
@@ -16146,15 +17767,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16146
17767
|
baseOptions = configuration.baseOptions;
|
|
16147
17768
|
}
|
|
16148
17769
|
|
|
16149
|
-
const localVarRequestOptions = { method: '
|
|
17770
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16150
17771
|
const localVarHeaderParameter = {} as any;
|
|
16151
17772
|
const localVarQueryParameter = {} as any;
|
|
16152
17773
|
|
|
17774
|
+
if (customerId !== undefined) {
|
|
17775
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17776
|
+
}
|
|
17777
|
+
|
|
16153
17778
|
|
|
16154
17779
|
|
|
17780
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17781
|
+
|
|
16155
17782
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16156
17783
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16157
17784
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17785
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16158
17786
|
|
|
16159
17787
|
return {
|
|
16160
17788
|
url: toPathString(localVarUrlObj),
|
|
@@ -16183,18 +17811,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16183
17811
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
16184
17812
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16185
17813
|
},
|
|
16186
|
-
/**
|
|
16187
|
-
* Get Customer Price Lists
|
|
16188
|
-
* @summary Get Customer Price Lists
|
|
16189
|
-
* @param {*} [options] Override http request option.
|
|
16190
|
-
* @throws {RequiredError}
|
|
16191
|
-
*/
|
|
16192
|
-
async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
|
|
16193
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
|
|
16194
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16195
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
|
|
16196
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16197
|
-
},
|
|
16198
17814
|
/**
|
|
16199
17815
|
* Get Current Stock & Pricing
|
|
16200
17816
|
* @summary Get Current Stock & Pricing
|
|
@@ -16212,14 +17828,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16212
17828
|
/**
|
|
16213
17829
|
* Get Products
|
|
16214
17830
|
* @summary Get Products
|
|
16215
|
-
* @param {number} [pageSize] Number Of Results
|
|
16216
|
-
* @param {number} [page] Page Number
|
|
16217
|
-
* @param {string} [search] Search
|
|
16218
17831
|
* @param {*} [options] Override http request option.
|
|
16219
17832
|
* @throws {RequiredError}
|
|
16220
17833
|
*/
|
|
16221
|
-
async getGetProducts(
|
|
16222
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17834
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17835
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16223
17836
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16224
17837
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16225
17838
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16248,6 +17861,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16248
17861
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16249
17862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16250
17863
|
},
|
|
17864
|
+
/**
|
|
17865
|
+
* Search Products
|
|
17866
|
+
* @summary Search Products
|
|
17867
|
+
* @param {number} [pageSize] Number Of Results
|
|
17868
|
+
* @param {number} [page] Page Number
|
|
17869
|
+
* @param {string} [search] Search
|
|
17870
|
+
* @param {*} [options] Override http request option.
|
|
17871
|
+
* @throws {RequiredError}
|
|
17872
|
+
*/
|
|
17873
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17874
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17875
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17876
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17877
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17878
|
+
},
|
|
17879
|
+
/**
|
|
17880
|
+
* Get Product
|
|
17881
|
+
* @summary Get Product
|
|
17882
|
+
* @param {string} sku Product SKU
|
|
17883
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17884
|
+
* @param {*} [options] Override http request option.
|
|
17885
|
+
* @throws {RequiredError}
|
|
17886
|
+
*/
|
|
17887
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17888
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17889
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17890
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17891
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17892
|
+
},
|
|
17893
|
+
/**
|
|
17894
|
+
* Get Product For Customer
|
|
17895
|
+
* @summary Get Product For Customer
|
|
17896
|
+
* @param {number} customerId Customer ID
|
|
17897
|
+
* @param {string} sku Product SKU
|
|
17898
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17899
|
+
* @param {*} [options] Override http request option.
|
|
17900
|
+
* @throws {RequiredError}
|
|
17901
|
+
*/
|
|
17902
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17903
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17904
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17905
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17906
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17907
|
+
},
|
|
16251
17908
|
}
|
|
16252
17909
|
};
|
|
16253
17910
|
|
|
@@ -16267,15 +17924,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16267
17924
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16268
17925
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16269
17926
|
},
|
|
16270
|
-
/**
|
|
16271
|
-
* Get Customer Price Lists
|
|
16272
|
-
* @summary Get Customer Price Lists
|
|
16273
|
-
* @param {*} [options] Override http request option.
|
|
16274
|
-
* @throws {RequiredError}
|
|
16275
|
-
*/
|
|
16276
|
-
getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
|
|
16277
|
-
return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
|
|
16278
|
-
},
|
|
16279
17927
|
/**
|
|
16280
17928
|
* Get Current Stock & Pricing
|
|
16281
17929
|
* @summary Get Current Stock & Pricing
|
|
@@ -16290,14 +17938,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16290
17938
|
/**
|
|
16291
17939
|
* Get Products
|
|
16292
17940
|
* @summary Get Products
|
|
16293
|
-
* @param {number} [pageSize] Number Of Results
|
|
16294
|
-
* @param {number} [page] Page Number
|
|
16295
|
-
* @param {string} [search] Search
|
|
16296
17941
|
* @param {*} [options] Override http request option.
|
|
16297
17942
|
* @throws {RequiredError}
|
|
16298
17943
|
*/
|
|
16299
|
-
getGetProducts(
|
|
16300
|
-
return localVarFp.getGetProducts(
|
|
17944
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17945
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16301
17946
|
},
|
|
16302
17947
|
/**
|
|
16303
17948
|
* Get Current Stock & Pricing
|
|
@@ -16317,6 +17962,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16317
17962
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16318
17963
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16319
17964
|
},
|
|
17965
|
+
/**
|
|
17966
|
+
* Search Products
|
|
17967
|
+
* @summary Search Products
|
|
17968
|
+
* @param {number} [pageSize] Number Of Results
|
|
17969
|
+
* @param {number} [page] Page Number
|
|
17970
|
+
* @param {string} [search] Search
|
|
17971
|
+
* @param {*} [options] Override http request option.
|
|
17972
|
+
* @throws {RequiredError}
|
|
17973
|
+
*/
|
|
17974
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17975
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17976
|
+
},
|
|
17977
|
+
/**
|
|
17978
|
+
* Get Product
|
|
17979
|
+
* @summary Get Product
|
|
17980
|
+
* @param {string} sku Product SKU
|
|
17981
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17982
|
+
* @param {*} [options] Override http request option.
|
|
17983
|
+
* @throws {RequiredError}
|
|
17984
|
+
*/
|
|
17985
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17986
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17987
|
+
},
|
|
17988
|
+
/**
|
|
17989
|
+
* Get Product For Customer
|
|
17990
|
+
* @summary Get Product For Customer
|
|
17991
|
+
* @param {number} customerId Customer ID
|
|
17992
|
+
* @param {string} sku Product SKU
|
|
17993
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17994
|
+
* @param {*} [options] Override http request option.
|
|
17995
|
+
* @throws {RequiredError}
|
|
17996
|
+
*/
|
|
17997
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17998
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17999
|
+
},
|
|
16320
18000
|
};
|
|
16321
18001
|
};
|
|
16322
18002
|
|
|
@@ -16338,17 +18018,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16338
18018
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16339
18019
|
}
|
|
16340
18020
|
|
|
16341
|
-
/**
|
|
16342
|
-
* Get Customer Price Lists
|
|
16343
|
-
* @summary Get Customer Price Lists
|
|
16344
|
-
* @param {*} [options] Override http request option.
|
|
16345
|
-
* @throws {RequiredError}
|
|
16346
|
-
* @memberof ProductsApi
|
|
16347
|
-
*/
|
|
16348
|
-
public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
|
|
16349
|
-
return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
|
|
16350
|
-
}
|
|
16351
|
-
|
|
16352
18021
|
/**
|
|
16353
18022
|
* Get Current Stock & Pricing
|
|
16354
18023
|
* @summary Get Current Stock & Pricing
|
|
@@ -16365,15 +18034,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16365
18034
|
/**
|
|
16366
18035
|
* Get Products
|
|
16367
18036
|
* @summary Get Products
|
|
16368
|
-
* @param {number} [pageSize] Number Of Results
|
|
16369
|
-
* @param {number} [page] Page Number
|
|
16370
|
-
* @param {string} [search] Search
|
|
16371
18037
|
* @param {*} [options] Override http request option.
|
|
16372
18038
|
* @throws {RequiredError}
|
|
16373
18039
|
* @memberof ProductsApi
|
|
16374
18040
|
*/
|
|
16375
|
-
public getGetProducts(
|
|
16376
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
18041
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
18042
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16377
18043
|
}
|
|
16378
18044
|
|
|
16379
18045
|
/**
|
|
@@ -16397,6 +18063,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16397
18063
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16398
18064
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16399
18065
|
}
|
|
18066
|
+
|
|
18067
|
+
/**
|
|
18068
|
+
* Search Products
|
|
18069
|
+
* @summary Search Products
|
|
18070
|
+
* @param {number} [pageSize] Number Of Results
|
|
18071
|
+
* @param {number} [page] Page Number
|
|
18072
|
+
* @param {string} [search] Search
|
|
18073
|
+
* @param {*} [options] Override http request option.
|
|
18074
|
+
* @throws {RequiredError}
|
|
18075
|
+
* @memberof ProductsApi
|
|
18076
|
+
*/
|
|
18077
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
18078
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
18079
|
+
}
|
|
18080
|
+
|
|
18081
|
+
/**
|
|
18082
|
+
* Get Product
|
|
18083
|
+
* @summary Get Product
|
|
18084
|
+
* @param {string} sku Product SKU
|
|
18085
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
18086
|
+
* @param {*} [options] Override http request option.
|
|
18087
|
+
* @throws {RequiredError}
|
|
18088
|
+
* @memberof ProductsApi
|
|
18089
|
+
*/
|
|
18090
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
18091
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18092
|
+
}
|
|
18093
|
+
|
|
18094
|
+
/**
|
|
18095
|
+
* Get Product For Customer
|
|
18096
|
+
* @summary Get Product For Customer
|
|
18097
|
+
* @param {number} customerId Customer ID
|
|
18098
|
+
* @param {string} sku Product SKU
|
|
18099
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
18100
|
+
* @param {*} [options] Override http request option.
|
|
18101
|
+
* @throws {RequiredError}
|
|
18102
|
+
* @memberof ProductsApi
|
|
18103
|
+
*/
|
|
18104
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
18105
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18106
|
+
}
|
|
16400
18107
|
}
|
|
16401
18108
|
|
|
16402
18109
|
/**
|
|
@@ -16737,7 +18444,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16737
18444
|
* @param {*} [options] Override http request option.
|
|
16738
18445
|
* @throws {RequiredError}
|
|
16739
18446
|
*/
|
|
16740
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
18447
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16741
18448
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16742
18449
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16743
18450
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16750,7 +18457,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16750
18457
|
* @param {*} [options] Override http request option.
|
|
16751
18458
|
* @throws {RequiredError}
|
|
16752
18459
|
*/
|
|
16753
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18460
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16754
18461
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16755
18462
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16756
18463
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16829,7 +18536,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16829
18536
|
* @param {*} [options] Override http request option.
|
|
16830
18537
|
* @throws {RequiredError}
|
|
16831
18538
|
*/
|
|
16832
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18539
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16833
18540
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16834
18541
|
},
|
|
16835
18542
|
/**
|
|
@@ -16839,7 +18546,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16839
18546
|
* @param {*} [options] Override http request option.
|
|
16840
18547
|
* @throws {RequiredError}
|
|
16841
18548
|
*/
|
|
16842
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18549
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16843
18550
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16844
18551
|
},
|
|
16845
18552
|
/**
|
|
@@ -18740,6 +20447,193 @@ export class SMSApi extends BaseAPI {
|
|
|
18740
20447
|
|
|
18741
20448
|
|
|
18742
20449
|
|
|
20450
|
+
/**
|
|
20451
|
+
* ShippingApi - axios parameter creator
|
|
20452
|
+
* @export
|
|
20453
|
+
*/
|
|
20454
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20455
|
+
return {
|
|
20456
|
+
/**
|
|
20457
|
+
* Get Shipping Services (Admin)
|
|
20458
|
+
* @summary Get Shipping Services
|
|
20459
|
+
* @param {number} customerId Customer ID
|
|
20460
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20461
|
+
* @param {*} [options] Override http request option.
|
|
20462
|
+
* @throws {RequiredError}
|
|
20463
|
+
*/
|
|
20464
|
+
postGetAdminShippingServices: async (customerId: number, shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20465
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
20466
|
+
assertParamExists('postGetAdminShippingServices', 'customerId', customerId)
|
|
20467
|
+
const localVarPath = `/admin/shipping/services`;
|
|
20468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20470
|
+
let baseOptions;
|
|
20471
|
+
if (configuration) {
|
|
20472
|
+
baseOptions = configuration.baseOptions;
|
|
20473
|
+
}
|
|
20474
|
+
|
|
20475
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20476
|
+
const localVarHeaderParameter = {} as any;
|
|
20477
|
+
const localVarQueryParameter = {} as any;
|
|
20478
|
+
|
|
20479
|
+
if (customerId !== undefined) {
|
|
20480
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
20481
|
+
}
|
|
20482
|
+
|
|
20483
|
+
|
|
20484
|
+
|
|
20485
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20486
|
+
|
|
20487
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20488
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20489
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20490
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20491
|
+
|
|
20492
|
+
return {
|
|
20493
|
+
url: toPathString(localVarUrlObj),
|
|
20494
|
+
options: localVarRequestOptions,
|
|
20495
|
+
};
|
|
20496
|
+
},
|
|
20497
|
+
/**
|
|
20498
|
+
* Get Shipping Services
|
|
20499
|
+
* @summary Get Shipping Services
|
|
20500
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20501
|
+
* @param {*} [options] Override http request option.
|
|
20502
|
+
* @throws {RequiredError}
|
|
20503
|
+
*/
|
|
20504
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20505
|
+
const localVarPath = `/shipping/services`;
|
|
20506
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20507
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20508
|
+
let baseOptions;
|
|
20509
|
+
if (configuration) {
|
|
20510
|
+
baseOptions = configuration.baseOptions;
|
|
20511
|
+
}
|
|
20512
|
+
|
|
20513
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20514
|
+
const localVarHeaderParameter = {} as any;
|
|
20515
|
+
const localVarQueryParameter = {} as any;
|
|
20516
|
+
|
|
20517
|
+
|
|
20518
|
+
|
|
20519
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20520
|
+
|
|
20521
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20522
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20523
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20524
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20525
|
+
|
|
20526
|
+
return {
|
|
20527
|
+
url: toPathString(localVarUrlObj),
|
|
20528
|
+
options: localVarRequestOptions,
|
|
20529
|
+
};
|
|
20530
|
+
},
|
|
20531
|
+
}
|
|
20532
|
+
};
|
|
20533
|
+
|
|
20534
|
+
/**
|
|
20535
|
+
* ShippingApi - functional programming interface
|
|
20536
|
+
* @export
|
|
20537
|
+
*/
|
|
20538
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20539
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20540
|
+
return {
|
|
20541
|
+
/**
|
|
20542
|
+
* Get Shipping Services (Admin)
|
|
20543
|
+
* @summary Get Shipping Services
|
|
20544
|
+
* @param {number} customerId Customer ID
|
|
20545
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20546
|
+
* @param {*} [options] Override http request option.
|
|
20547
|
+
* @throws {RequiredError}
|
|
20548
|
+
*/
|
|
20549
|
+
async postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20550
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminShippingServices(customerId, shippingInformationDTO, options);
|
|
20551
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20552
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetAdminShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20553
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20554
|
+
},
|
|
20555
|
+
/**
|
|
20556
|
+
* Get Shipping Services
|
|
20557
|
+
* @summary Get Shipping Services
|
|
20558
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20559
|
+
* @param {*} [options] Override http request option.
|
|
20560
|
+
* @throws {RequiredError}
|
|
20561
|
+
*/
|
|
20562
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20563
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20564
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20565
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20566
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20567
|
+
},
|
|
20568
|
+
}
|
|
20569
|
+
};
|
|
20570
|
+
|
|
20571
|
+
/**
|
|
20572
|
+
* ShippingApi - factory interface
|
|
20573
|
+
* @export
|
|
20574
|
+
*/
|
|
20575
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20576
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20577
|
+
return {
|
|
20578
|
+
/**
|
|
20579
|
+
* Get Shipping Services (Admin)
|
|
20580
|
+
* @summary Get Shipping Services
|
|
20581
|
+
* @param {number} customerId Customer ID
|
|
20582
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20583
|
+
* @param {*} [options] Override http request option.
|
|
20584
|
+
* @throws {RequiredError}
|
|
20585
|
+
*/
|
|
20586
|
+
postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20587
|
+
return localVarFp.postGetAdminShippingServices(customerId, shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20588
|
+
},
|
|
20589
|
+
/**
|
|
20590
|
+
* Get Shipping Services
|
|
20591
|
+
* @summary Get Shipping Services
|
|
20592
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20593
|
+
* @param {*} [options] Override http request option.
|
|
20594
|
+
* @throws {RequiredError}
|
|
20595
|
+
*/
|
|
20596
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20597
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20598
|
+
},
|
|
20599
|
+
};
|
|
20600
|
+
};
|
|
20601
|
+
|
|
20602
|
+
/**
|
|
20603
|
+
* ShippingApi - object-oriented interface
|
|
20604
|
+
* @export
|
|
20605
|
+
* @class ShippingApi
|
|
20606
|
+
* @extends {BaseAPI}
|
|
20607
|
+
*/
|
|
20608
|
+
export class ShippingApi extends BaseAPI {
|
|
20609
|
+
/**
|
|
20610
|
+
* Get Shipping Services (Admin)
|
|
20611
|
+
* @summary Get Shipping Services
|
|
20612
|
+
* @param {number} customerId Customer ID
|
|
20613
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20614
|
+
* @param {*} [options] Override http request option.
|
|
20615
|
+
* @throws {RequiredError}
|
|
20616
|
+
* @memberof ShippingApi
|
|
20617
|
+
*/
|
|
20618
|
+
public postGetAdminShippingServices(customerId: number, shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20619
|
+
return ShippingApiFp(this.configuration).postGetAdminShippingServices(customerId, shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20620
|
+
}
|
|
20621
|
+
|
|
20622
|
+
/**
|
|
20623
|
+
* Get Shipping Services
|
|
20624
|
+
* @summary Get Shipping Services
|
|
20625
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20626
|
+
* @param {*} [options] Override http request option.
|
|
20627
|
+
* @throws {RequiredError}
|
|
20628
|
+
* @memberof ShippingApi
|
|
20629
|
+
*/
|
|
20630
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20631
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20632
|
+
}
|
|
20633
|
+
}
|
|
20634
|
+
|
|
20635
|
+
|
|
20636
|
+
|
|
18743
20637
|
/**
|
|
18744
20638
|
* StockManagementApi - axios parameter creator
|
|
18745
20639
|
* @export
|
|
@@ -19826,7 +21720,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19826
21720
|
* @param {*} [options] Override http request option.
|
|
19827
21721
|
* @throws {RequiredError}
|
|
19828
21722
|
*/
|
|
19829
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21723
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19830
21724
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19831
21725
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19832
21726
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20129,7 +22023,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
20129
22023
|
* @param {*} [options] Override http request option.
|
|
20130
22024
|
* @throws {RequiredError}
|
|
20131
22025
|
*/
|
|
20132
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
22026
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
20133
22027
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
20134
22028
|
},
|
|
20135
22029
|
/**
|