yellowgrid-api-ts 3.1.6 → 3.1.8-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +214 -197
- package/README.md +34 -7
- package/api.ts +1899 -252
- 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 +1384 -155
- package/dist/api.js +1150 -196
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AbstractOrderRequestDTO.md +33 -0
- package/docs/AccountDetailedSummaryDTO.md +39 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AddressModel.md +2 -0
- package/docs/AdminItemRequestDTO.md +41 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -0
- package/docs/BasicItemDTO.md +23 -0
- package/docs/BasicProductDTO.md +23 -0
- package/docs/Class3CXApi.md +0 -55
- package/docs/Class3CXInstallationsApi.md +4 -1
- package/docs/ClientDetailsModel.md +0 -2
- package/docs/CourierPriceEntity.md +39 -0
- package/docs/CrmContactDTO.md +4 -2
- package/docs/CustomerItemRequestDTO.md +37 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemEntity.md +2 -0
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +356 -4
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +164 -43
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/ShippingApi.md +63 -0
- package/docs/ShippingConsignmentModel.md +26 -0
- package/docs/ShippingInformationDTO.md +25 -0
- package/docs/ShippingServiceDTO.md +23 -0
- package/docs/ShippingServiceModel.md +31 -0
- package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxSbcDTO.md +31 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Yellowgrid
|
|
5
|
-
* Welcome to the Yellowgrid API documentation.
|
|
5
|
+
* Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 0
|
|
8
8
|
*
|
|
@@ -23,6 +23,55 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Order Request
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AbstractOrderRequestDTO
|
|
30
|
+
*/
|
|
31
|
+
export interface AbstractOrderRequestDTO {
|
|
32
|
+
/**
|
|
33
|
+
* Order Reference
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AbstractOrderRequestDTO
|
|
36
|
+
*/
|
|
37
|
+
'orderReference'?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Items
|
|
40
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
41
|
+
* @memberof AbstractOrderRequestDTO
|
|
42
|
+
*/
|
|
43
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ShippingServiceDTO}
|
|
47
|
+
* @memberof AbstractOrderRequestDTO
|
|
48
|
+
*/
|
|
49
|
+
'shippingService'?: ShippingServiceDTO;
|
|
50
|
+
/**
|
|
51
|
+
* Provisioning URL
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AbstractOrderRequestDTO
|
|
54
|
+
*/
|
|
55
|
+
'provisioningUrl'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {AddressModel}
|
|
59
|
+
* @memberof AbstractOrderRequestDTO
|
|
60
|
+
*/
|
|
61
|
+
'shippingAddress'?: AddressModel | null;
|
|
62
|
+
/**
|
|
63
|
+
* Part Ship Order
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof AbstractOrderRequestDTO
|
|
66
|
+
*/
|
|
67
|
+
'partShip'?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Quote
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof AbstractOrderRequestDTO
|
|
72
|
+
*/
|
|
73
|
+
'quote'?: boolean;
|
|
74
|
+
}
|
|
26
75
|
/**
|
|
27
76
|
* AccountContactsEntity
|
|
28
77
|
* @export
|
|
@@ -254,6 +303,73 @@ export interface AccountContactRequestModel {
|
|
|
254
303
|
*/
|
|
255
304
|
'despatchEmails'?: boolean;
|
|
256
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Account Details
|
|
308
|
+
* @export
|
|
309
|
+
* @interface AccountDetailedSummaryDTO
|
|
310
|
+
*/
|
|
311
|
+
export interface AccountDetailedSummaryDTO {
|
|
312
|
+
/**
|
|
313
|
+
* ID
|
|
314
|
+
* @type {number}
|
|
315
|
+
* @memberof AccountDetailedSummaryDTO
|
|
316
|
+
*/
|
|
317
|
+
'id'?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Xero ID
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof AccountDetailedSummaryDTO
|
|
322
|
+
*/
|
|
323
|
+
'xeroId'?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Company
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof AccountDetailedSummaryDTO
|
|
328
|
+
*/
|
|
329
|
+
'company'?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Credit Limit
|
|
332
|
+
* @type {number}
|
|
333
|
+
* @memberof AccountDetailedSummaryDTO
|
|
334
|
+
*/
|
|
335
|
+
'creditLimit'?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Contacts
|
|
338
|
+
* @type {Array<AccountContactModel>}
|
|
339
|
+
* @memberof AccountDetailedSummaryDTO
|
|
340
|
+
*/
|
|
341
|
+
'contacts'?: Array<AccountContactModel>;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {AddressModel}
|
|
345
|
+
* @memberof AccountDetailedSummaryDTO
|
|
346
|
+
*/
|
|
347
|
+
'billingAddress'?: AddressModel;
|
|
348
|
+
/**
|
|
349
|
+
* Addresses
|
|
350
|
+
* @type {Array<AddressModel>}
|
|
351
|
+
* @memberof AccountDetailedSummaryDTO
|
|
352
|
+
*/
|
|
353
|
+
'addresses'?: Array<AddressModel>;
|
|
354
|
+
/**
|
|
355
|
+
* Provisioning URLs
|
|
356
|
+
* @type {Array<ProvisioningModel>}
|
|
357
|
+
* @memberof AccountDetailedSummaryDTO
|
|
358
|
+
*/
|
|
359
|
+
'provisioningUrls'?: Array<ProvisioningModel>;
|
|
360
|
+
/**
|
|
361
|
+
* On Hold
|
|
362
|
+
* @type {boolean}
|
|
363
|
+
* @memberof AccountDetailedSummaryDTO
|
|
364
|
+
*/
|
|
365
|
+
'onHold'?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Balance (£)
|
|
368
|
+
* @type {number}
|
|
369
|
+
* @memberof AccountDetailedSummaryDTO
|
|
370
|
+
*/
|
|
371
|
+
'balance'?: number | null;
|
|
372
|
+
}
|
|
257
373
|
/**
|
|
258
374
|
* New Account Request
|
|
259
375
|
* @export
|
|
@@ -503,6 +619,12 @@ export interface AddressModel {
|
|
|
503
619
|
* @memberof AddressModel
|
|
504
620
|
*/
|
|
505
621
|
'company'?: string;
|
|
622
|
+
/**
|
|
623
|
+
* Default
|
|
624
|
+
* @type {boolean}
|
|
625
|
+
* @memberof AddressModel
|
|
626
|
+
*/
|
|
627
|
+
'default'?: boolean;
|
|
506
628
|
}
|
|
507
629
|
/**
|
|
508
630
|
* Address Request
|
|
@@ -535,6 +657,212 @@ export interface AddressRequestModel {
|
|
|
535
657
|
*/
|
|
536
658
|
'addressPostcode'?: string;
|
|
537
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Admin Order Item Request
|
|
662
|
+
* @export
|
|
663
|
+
* @interface AdminItemRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
export interface AdminItemRequestDTO {
|
|
666
|
+
/**
|
|
667
|
+
* SKU
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof AdminItemRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'sku'?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Quantity
|
|
674
|
+
* @type {number}
|
|
675
|
+
* @memberof AdminItemRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'quantity'?: number;
|
|
678
|
+
/**
|
|
679
|
+
* ID
|
|
680
|
+
* @type {number}
|
|
681
|
+
* @memberof AdminItemRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'id'?: number | null;
|
|
684
|
+
/**
|
|
685
|
+
* 3CX Licence Key
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof AdminItemRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'licenceKey'?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
* 3CX Hosting
|
|
692
|
+
* @type {boolean}
|
|
693
|
+
* @memberof AdminItemRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'hosting'?: boolean | null;
|
|
696
|
+
/**
|
|
697
|
+
* Date Time
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof AdminItemRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'processDate'?: string;
|
|
702
|
+
/**
|
|
703
|
+
* 3CX Sales Code
|
|
704
|
+
* @type {string}
|
|
705
|
+
* @memberof AdminItemRequestDTO
|
|
706
|
+
*/
|
|
707
|
+
'tcxSalesCode'?: string | null;
|
|
708
|
+
/**
|
|
709
|
+
* SBCS
|
|
710
|
+
* @type {Array<TcxSbcDTO>}
|
|
711
|
+
* @memberof AdminItemRequestDTO
|
|
712
|
+
*/
|
|
713
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
714
|
+
/**
|
|
715
|
+
* Read Only (Cannot be edited)
|
|
716
|
+
* @type {boolean}
|
|
717
|
+
* @memberof AdminItemRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'readOnly'?: boolean;
|
|
720
|
+
/**
|
|
721
|
+
* Title
|
|
722
|
+
* @type {string}
|
|
723
|
+
* @memberof AdminItemRequestDTO
|
|
724
|
+
*/
|
|
725
|
+
'title'?: string | null;
|
|
726
|
+
/**
|
|
727
|
+
* Price (£)
|
|
728
|
+
* @type {number}
|
|
729
|
+
* @memberof AdminItemRequestDTO
|
|
730
|
+
*/
|
|
731
|
+
'itemPrice'?: number | null;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Admin Order Request
|
|
735
|
+
* @export
|
|
736
|
+
* @interface AdminOrderRequestDTO
|
|
737
|
+
*/
|
|
738
|
+
export interface AdminOrderRequestDTO {
|
|
739
|
+
/**
|
|
740
|
+
* Order Reference
|
|
741
|
+
* @type {string}
|
|
742
|
+
* @memberof AdminOrderRequestDTO
|
|
743
|
+
*/
|
|
744
|
+
'orderReference'?: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* Items
|
|
747
|
+
* @type {Array<AdminItemRequestDTO>}
|
|
748
|
+
* @memberof AdminOrderRequestDTO
|
|
749
|
+
*/
|
|
750
|
+
'items'?: Array<AdminItemRequestDTO>;
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @type {ShippingServiceDTO}
|
|
754
|
+
* @memberof AdminOrderRequestDTO
|
|
755
|
+
*/
|
|
756
|
+
'shippingService'?: ShippingServiceDTO;
|
|
757
|
+
/**
|
|
758
|
+
* Provisioning URL
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof AdminOrderRequestDTO
|
|
761
|
+
*/
|
|
762
|
+
'provisioningUrl'?: string | null;
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @type {AddressModel}
|
|
766
|
+
* @memberof AdminOrderRequestDTO
|
|
767
|
+
*/
|
|
768
|
+
'shippingAddress'?: AddressModel;
|
|
769
|
+
/**
|
|
770
|
+
* Part Ship Order
|
|
771
|
+
* @type {boolean}
|
|
772
|
+
* @memberof AdminOrderRequestDTO
|
|
773
|
+
*/
|
|
774
|
+
'partShip'?: boolean;
|
|
775
|
+
/**
|
|
776
|
+
* Quote
|
|
777
|
+
* @type {boolean}
|
|
778
|
+
* @memberof AdminOrderRequestDTO
|
|
779
|
+
*/
|
|
780
|
+
'quote'?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Customer ID
|
|
783
|
+
* @type {number}
|
|
784
|
+
* @memberof AdminOrderRequestDTO
|
|
785
|
+
*/
|
|
786
|
+
'customerId'?: number;
|
|
787
|
+
/**
|
|
788
|
+
* Contact
|
|
789
|
+
* @type {string}
|
|
790
|
+
* @memberof AdminOrderRequestDTO
|
|
791
|
+
*/
|
|
792
|
+
'contact'?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Ignore Customer On Hold
|
|
795
|
+
* @type {boolean}
|
|
796
|
+
* @memberof AdminOrderRequestDTO
|
|
797
|
+
*/
|
|
798
|
+
'ignoreOnHold'?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* Ignore Customer Credit Limit
|
|
801
|
+
* @type {boolean}
|
|
802
|
+
* @memberof AdminOrderRequestDTO
|
|
803
|
+
*/
|
|
804
|
+
'ignoreCreditLimit'?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Include NFR Promos
|
|
807
|
+
* @type {boolean}
|
|
808
|
+
* @memberof AdminOrderRequestDTO
|
|
809
|
+
*/
|
|
810
|
+
'includeNfrPromos'?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Carriage Charge
|
|
813
|
+
* @type {number}
|
|
814
|
+
* @memberof AdminOrderRequestDTO
|
|
815
|
+
*/
|
|
816
|
+
'carriageCharge'?: number;
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Admin User
|
|
820
|
+
* @export
|
|
821
|
+
* @interface AdminUserModel
|
|
822
|
+
*/
|
|
823
|
+
export interface AdminUserModel {
|
|
824
|
+
/**
|
|
825
|
+
* First Name
|
|
826
|
+
* @type {string}
|
|
827
|
+
* @memberof AdminUserModel
|
|
828
|
+
*/
|
|
829
|
+
'firstName'?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Last Name
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof AdminUserModel
|
|
834
|
+
*/
|
|
835
|
+
'lastName'?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Avatar
|
|
838
|
+
* @type {string}
|
|
839
|
+
* @memberof AdminUserModel
|
|
840
|
+
*/
|
|
841
|
+
'avatar'?: string | null;
|
|
842
|
+
/**
|
|
843
|
+
* Role
|
|
844
|
+
* @type {number}
|
|
845
|
+
* @memberof AdminUserModel
|
|
846
|
+
*/
|
|
847
|
+
'role'?: AdminUserModelRoleEnum;
|
|
848
|
+
/**
|
|
849
|
+
* Email
|
|
850
|
+
* @type {string}
|
|
851
|
+
* @memberof AdminUserModel
|
|
852
|
+
*/
|
|
853
|
+
'email'?: string | null;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export const AdminUserModelRoleEnum = {
|
|
857
|
+
NUMBER_0: 0,
|
|
858
|
+
NUMBER_1: 1,
|
|
859
|
+
NUMBER_2: 2,
|
|
860
|
+
NUMBER_3: 3,
|
|
861
|
+
NUMBER_4: 4
|
|
862
|
+
} as const;
|
|
863
|
+
|
|
864
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
865
|
+
|
|
538
866
|
/**
|
|
539
867
|
* Agent Hours Graph
|
|
540
868
|
* @export
|
|
@@ -764,6 +1092,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1092
|
*/
|
|
765
1093
|
'redirect_uri'?: string | null;
|
|
766
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Basic Order Item
|
|
1097
|
+
* @export
|
|
1098
|
+
* @interface BasicItemDTO
|
|
1099
|
+
*/
|
|
1100
|
+
export interface BasicItemDTO {
|
|
1101
|
+
/**
|
|
1102
|
+
* SKU
|
|
1103
|
+
* @type {string}
|
|
1104
|
+
* @memberof BasicItemDTO
|
|
1105
|
+
*/
|
|
1106
|
+
'sku'?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Quantity
|
|
1109
|
+
* @type {number}
|
|
1110
|
+
* @memberof BasicItemDTO
|
|
1111
|
+
*/
|
|
1112
|
+
'quantity'?: number;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Basic Product
|
|
1116
|
+
* @export
|
|
1117
|
+
* @interface BasicProductDTO
|
|
1118
|
+
*/
|
|
1119
|
+
export interface BasicProductDTO {
|
|
1120
|
+
/**
|
|
1121
|
+
* SKU
|
|
1122
|
+
* @type {string}
|
|
1123
|
+
* @memberof BasicProductDTO
|
|
1124
|
+
*/
|
|
1125
|
+
'sku'?: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Title
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @memberof BasicProductDTO
|
|
1130
|
+
*/
|
|
1131
|
+
'title'?: string;
|
|
1132
|
+
}
|
|
767
1133
|
/**
|
|
768
1134
|
* BatchesEntity
|
|
769
1135
|
* @export
|
|
@@ -958,12 +1324,6 @@ export interface ClientDetailsModel {
|
|
|
958
1324
|
* @memberof ClientDetailsModel
|
|
959
1325
|
*/
|
|
960
1326
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1327
|
}
|
|
968
1328
|
/**
|
|
969
1329
|
* OAuth client details
|
|
@@ -1126,37 +1486,104 @@ export interface ConversationModel {
|
|
|
1126
1486
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1487
|
}
|
|
1128
1488
|
/**
|
|
1129
|
-
*
|
|
1489
|
+
* CourierPricesEntity
|
|
1130
1490
|
* @export
|
|
1131
|
-
* @interface
|
|
1491
|
+
* @interface CourierPriceEntity
|
|
1132
1492
|
*/
|
|
1133
|
-
export interface
|
|
1493
|
+
export interface CourierPriceEntity {
|
|
1134
1494
|
/**
|
|
1135
|
-
*
|
|
1495
|
+
* id
|
|
1136
1496
|
* @type {number}
|
|
1137
|
-
* @memberof
|
|
1497
|
+
* @memberof CourierPriceEntity
|
|
1138
1498
|
*/
|
|
1139
1499
|
'id'?: number;
|
|
1140
1500
|
/**
|
|
1141
|
-
*
|
|
1501
|
+
* courier
|
|
1142
1502
|
* @type {string}
|
|
1143
|
-
* @memberof
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1144
1504
|
*/
|
|
1145
|
-
'
|
|
1505
|
+
'courier'?: string;
|
|
1146
1506
|
/**
|
|
1147
|
-
*
|
|
1507
|
+
* destinationIso
|
|
1148
1508
|
* @type {string}
|
|
1149
|
-
* @memberof
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1150
1510
|
*/
|
|
1151
|
-
'
|
|
1511
|
+
'destinationIso'?: string;
|
|
1152
1512
|
/**
|
|
1153
|
-
*
|
|
1513
|
+
* serviceDescription
|
|
1154
1514
|
* @type {string}
|
|
1155
|
-
* @memberof
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1156
1516
|
*/
|
|
1157
|
-
'
|
|
1517
|
+
'serviceDescription'?: string;
|
|
1158
1518
|
/**
|
|
1159
|
-
*
|
|
1519
|
+
* flatRate
|
|
1520
|
+
* @type {number}
|
|
1521
|
+
* @memberof CourierPriceEntity
|
|
1522
|
+
*/
|
|
1523
|
+
'flatRate'?: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* initialBox
|
|
1526
|
+
* @type {number}
|
|
1527
|
+
* @memberof CourierPriceEntity
|
|
1528
|
+
*/
|
|
1529
|
+
'initialBox'?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* initialKg
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof CourierPriceEntity
|
|
1534
|
+
*/
|
|
1535
|
+
'initialKg'?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* perBox
|
|
1538
|
+
* @type {number}
|
|
1539
|
+
* @memberof CourierPriceEntity
|
|
1540
|
+
*/
|
|
1541
|
+
'perBox'?: number;
|
|
1542
|
+
/**
|
|
1543
|
+
* perKg
|
|
1544
|
+
* @type {number}
|
|
1545
|
+
* @memberof CourierPriceEntity
|
|
1546
|
+
*/
|
|
1547
|
+
'perKg'?: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* maxKg
|
|
1550
|
+
* @type {number}
|
|
1551
|
+
* @memberof CourierPriceEntity
|
|
1552
|
+
*/
|
|
1553
|
+
'maxKg'?: number;
|
|
1554
|
+
}
|
|
1555
|
+
/**
|
|
1556
|
+
* Credit Account
|
|
1557
|
+
* @export
|
|
1558
|
+
* @interface CreditAccountEntity
|
|
1559
|
+
*/
|
|
1560
|
+
export interface CreditAccountEntity {
|
|
1561
|
+
/**
|
|
1562
|
+
* ID
|
|
1563
|
+
* @type {number}
|
|
1564
|
+
* @memberof CreditAccountEntity
|
|
1565
|
+
*/
|
|
1566
|
+
'id'?: number;
|
|
1567
|
+
/**
|
|
1568
|
+
* Contact Name
|
|
1569
|
+
* @type {string}
|
|
1570
|
+
* @memberof CreditAccountEntity
|
|
1571
|
+
*/
|
|
1572
|
+
'name'?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Email
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CreditAccountEntity
|
|
1577
|
+
*/
|
|
1578
|
+
'email'?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Phone Number
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof CreditAccountEntity
|
|
1583
|
+
*/
|
|
1584
|
+
'phone'?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Company Name
|
|
1160
1587
|
* @type {string}
|
|
1161
1588
|
* @memberof CreditAccountEntity
|
|
1162
1589
|
*/
|
|
@@ -1271,11 +1698,17 @@ export interface CrmContactDTO {
|
|
|
1271
1698
|
*/
|
|
1272
1699
|
'id'?: string;
|
|
1273
1700
|
/**
|
|
1274
|
-
* Contact Name
|
|
1701
|
+
* Contact First Name
|
|
1275
1702
|
* @type {string}
|
|
1276
1703
|
* @memberof CrmContactDTO
|
|
1277
1704
|
*/
|
|
1278
|
-
'
|
|
1705
|
+
'firstName'?: string;
|
|
1706
|
+
/**
|
|
1707
|
+
* Contact Last Name
|
|
1708
|
+
* @type {string}
|
|
1709
|
+
* @memberof CrmContactDTO
|
|
1710
|
+
*/
|
|
1711
|
+
'lastName'?: string;
|
|
1279
1712
|
/**
|
|
1280
1713
|
* Phone Number
|
|
1281
1714
|
* @type {string}
|
|
@@ -1350,6 +1783,116 @@ export interface CustomerInformationModel {
|
|
|
1350
1783
|
*/
|
|
1351
1784
|
'contactLastName'?: string;
|
|
1352
1785
|
}
|
|
1786
|
+
/**
|
|
1787
|
+
* Order Item Request
|
|
1788
|
+
* @export
|
|
1789
|
+
* @interface CustomerItemRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
export interface CustomerItemRequestDTO {
|
|
1792
|
+
/**
|
|
1793
|
+
* SKU
|
|
1794
|
+
* @type {string}
|
|
1795
|
+
* @memberof CustomerItemRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'sku'?: string;
|
|
1798
|
+
/**
|
|
1799
|
+
* Quantity
|
|
1800
|
+
* @type {number}
|
|
1801
|
+
* @memberof CustomerItemRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'quantity'?: number;
|
|
1804
|
+
/**
|
|
1805
|
+
* ID
|
|
1806
|
+
* @type {number}
|
|
1807
|
+
* @memberof CustomerItemRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'id'?: number | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* 3CX Licence Key
|
|
1812
|
+
* @type {string}
|
|
1813
|
+
* @memberof CustomerItemRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'licenceKey'?: string | null;
|
|
1816
|
+
/**
|
|
1817
|
+
* 3CX Hosting
|
|
1818
|
+
* @type {boolean}
|
|
1819
|
+
* @memberof CustomerItemRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'hosting'?: boolean | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* Date Time
|
|
1824
|
+
* @type {string}
|
|
1825
|
+
* @memberof CustomerItemRequestDTO
|
|
1826
|
+
*/
|
|
1827
|
+
'processDate'?: string;
|
|
1828
|
+
/**
|
|
1829
|
+
* 3CX Sales Code
|
|
1830
|
+
* @type {string}
|
|
1831
|
+
* @memberof CustomerItemRequestDTO
|
|
1832
|
+
*/
|
|
1833
|
+
'tcxSalesCode'?: string | null;
|
|
1834
|
+
/**
|
|
1835
|
+
* SBCS
|
|
1836
|
+
* @type {Array<TcxSbcDTO>}
|
|
1837
|
+
* @memberof CustomerItemRequestDTO
|
|
1838
|
+
*/
|
|
1839
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1840
|
+
/**
|
|
1841
|
+
* Read Only (Cannot be edited)
|
|
1842
|
+
* @type {boolean}
|
|
1843
|
+
* @memberof CustomerItemRequestDTO
|
|
1844
|
+
*/
|
|
1845
|
+
'readOnly'?: boolean;
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Order Request
|
|
1849
|
+
* @export
|
|
1850
|
+
* @interface CustomerOrderRequestDTO
|
|
1851
|
+
*/
|
|
1852
|
+
export interface CustomerOrderRequestDTO {
|
|
1853
|
+
/**
|
|
1854
|
+
* Order Reference
|
|
1855
|
+
* @type {string}
|
|
1856
|
+
* @memberof CustomerOrderRequestDTO
|
|
1857
|
+
*/
|
|
1858
|
+
'orderReference'?: string | null;
|
|
1859
|
+
/**
|
|
1860
|
+
* Items
|
|
1861
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1862
|
+
* @memberof CustomerOrderRequestDTO
|
|
1863
|
+
*/
|
|
1864
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1865
|
+
/**
|
|
1866
|
+
*
|
|
1867
|
+
* @type {ShippingServiceDTO}
|
|
1868
|
+
* @memberof CustomerOrderRequestDTO
|
|
1869
|
+
*/
|
|
1870
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1871
|
+
/**
|
|
1872
|
+
* Provisioning URL
|
|
1873
|
+
* @type {string}
|
|
1874
|
+
* @memberof CustomerOrderRequestDTO
|
|
1875
|
+
*/
|
|
1876
|
+
'provisioningUrl'?: string | null;
|
|
1877
|
+
/**
|
|
1878
|
+
*
|
|
1879
|
+
* @type {AddressModel}
|
|
1880
|
+
* @memberof CustomerOrderRequestDTO
|
|
1881
|
+
*/
|
|
1882
|
+
'shippingAddress'?: AddressModel;
|
|
1883
|
+
/**
|
|
1884
|
+
* Part Ship Order
|
|
1885
|
+
* @type {boolean}
|
|
1886
|
+
* @memberof CustomerOrderRequestDTO
|
|
1887
|
+
*/
|
|
1888
|
+
'partShip'?: boolean;
|
|
1889
|
+
/**
|
|
1890
|
+
* Quote
|
|
1891
|
+
* @type {boolean}
|
|
1892
|
+
* @memberof CustomerOrderRequestDTO
|
|
1893
|
+
*/
|
|
1894
|
+
'quote'?: boolean;
|
|
1895
|
+
}
|
|
1353
1896
|
/**
|
|
1354
1897
|
* Customer Price List
|
|
1355
1898
|
* @export
|
|
@@ -1859,19 +2402,6 @@ export interface GenericFileModel {
|
|
|
1859
2402
|
*/
|
|
1860
2403
|
'type'?: string;
|
|
1861
2404
|
}
|
|
1862
|
-
/**
|
|
1863
|
-
*
|
|
1864
|
-
* @export
|
|
1865
|
-
* @interface GetGetPasswordHash200Response
|
|
1866
|
-
*/
|
|
1867
|
-
export interface GetGetPasswordHash200Response {
|
|
1868
|
-
/**
|
|
1869
|
-
*
|
|
1870
|
-
* @type {string}
|
|
1871
|
-
* @memberof GetGetPasswordHash200Response
|
|
1872
|
-
*/
|
|
1873
|
-
'hash'?: string;
|
|
1874
|
-
}
|
|
1875
2405
|
/**
|
|
1876
2406
|
*
|
|
1877
2407
|
* @export
|
|
@@ -2473,35 +3003,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2473
3003
|
*/
|
|
2474
3004
|
export interface ItemDTO {
|
|
2475
3005
|
/**
|
|
2476
|
-
*
|
|
2477
|
-
* @type {
|
|
3006
|
+
* SKU
|
|
3007
|
+
* @type {string}
|
|
2478
3008
|
* @memberof ItemDTO
|
|
2479
3009
|
*/
|
|
2480
|
-
'
|
|
3010
|
+
'sku'?: string;
|
|
2481
3011
|
/**
|
|
2482
|
-
*
|
|
3012
|
+
* Quantity
|
|
2483
3013
|
* @type {number}
|
|
2484
3014
|
* @memberof ItemDTO
|
|
2485
3015
|
*/
|
|
2486
|
-
'
|
|
3016
|
+
'quantity'?: number;
|
|
2487
3017
|
/**
|
|
2488
|
-
*
|
|
2489
|
-
* @type {
|
|
3018
|
+
* ID
|
|
3019
|
+
* @type {number}
|
|
2490
3020
|
* @memberof ItemDTO
|
|
2491
3021
|
*/
|
|
2492
|
-
'
|
|
3022
|
+
'id'?: number | null;
|
|
2493
3023
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @type {
|
|
3024
|
+
* Order ID
|
|
3025
|
+
* @type {number}
|
|
2496
3026
|
* @memberof ItemDTO
|
|
2497
3027
|
*/
|
|
2498
|
-
'
|
|
3028
|
+
'orderId'?: number | null;
|
|
2499
3029
|
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {
|
|
3030
|
+
* Title
|
|
3031
|
+
* @type {string}
|
|
2502
3032
|
* @memberof ItemDTO
|
|
2503
3033
|
*/
|
|
2504
|
-
'
|
|
3034
|
+
'title'?: string;
|
|
2505
3035
|
/**
|
|
2506
3036
|
* Price
|
|
2507
3037
|
* @type {number}
|
|
@@ -2526,6 +3056,12 @@ export interface ItemDTO {
|
|
|
2526
3056
|
* @memberof ItemDTO
|
|
2527
3057
|
*/
|
|
2528
3058
|
'processDate'?: string;
|
|
3059
|
+
/**
|
|
3060
|
+
* 3CX Hosting
|
|
3061
|
+
* @type {boolean}
|
|
3062
|
+
* @memberof ItemDTO
|
|
3063
|
+
*/
|
|
3064
|
+
'hosting'?: boolean | null;
|
|
2529
3065
|
/**
|
|
2530
3066
|
* Promo Item
|
|
2531
3067
|
* @type {boolean}
|
|
@@ -2537,7 +3073,25 @@ export interface ItemDTO {
|
|
|
2537
3073
|
* @type {number}
|
|
2538
3074
|
* @memberof ItemDTO
|
|
2539
3075
|
*/
|
|
2540
|
-
'refunded'?: number;
|
|
3076
|
+
'refunded'?: number | null;
|
|
3077
|
+
/**
|
|
3078
|
+
* SBCs
|
|
3079
|
+
* @type {Array<TcxSbcDTO>}
|
|
3080
|
+
* @memberof ItemDTO
|
|
3081
|
+
*/
|
|
3082
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* Readonly
|
|
3085
|
+
* @type {boolean}
|
|
3086
|
+
* @memberof ItemDTO
|
|
3087
|
+
*/
|
|
3088
|
+
'readonly'?: boolean;
|
|
3089
|
+
/**
|
|
3090
|
+
* 3CX Sales Code
|
|
3091
|
+
* @type {string}
|
|
3092
|
+
* @memberof ItemDTO
|
|
3093
|
+
*/
|
|
3094
|
+
'tcxSalesCode'?: string | null;
|
|
2541
3095
|
}
|
|
2542
3096
|
/**
|
|
2543
3097
|
* ItemsEntity
|
|
@@ -2671,6 +3225,31 @@ export interface ItemEntity {
|
|
|
2671
3225
|
* @memberof ItemEntity
|
|
2672
3226
|
*/
|
|
2673
3227
|
'promoItem'?: number;
|
|
3228
|
+
/**
|
|
3229
|
+
* 3CX Sales Code
|
|
3230
|
+
* @type {string}
|
|
3231
|
+
* @memberof ItemEntity
|
|
3232
|
+
*/
|
|
3233
|
+
'tcxSalesCode'?: string | null;
|
|
3234
|
+
}
|
|
3235
|
+
/**
|
|
3236
|
+
* LinkedOrdersEntity
|
|
3237
|
+
* @export
|
|
3238
|
+
* @interface LinkedOrderEntity
|
|
3239
|
+
*/
|
|
3240
|
+
export interface LinkedOrderEntity {
|
|
3241
|
+
/**
|
|
3242
|
+
* orderId
|
|
3243
|
+
* @type {number}
|
|
3244
|
+
* @memberof LinkedOrderEntity
|
|
3245
|
+
*/
|
|
3246
|
+
'orderId'?: number;
|
|
3247
|
+
/**
|
|
3248
|
+
* linkedOrderId
|
|
3249
|
+
* @type {number}
|
|
3250
|
+
* @memberof LinkedOrderEntity
|
|
3251
|
+
*/
|
|
3252
|
+
'linkedOrderId'?: number;
|
|
2674
3253
|
}
|
|
2675
3254
|
/**
|
|
2676
3255
|
* MFA Required
|
|
@@ -3331,13 +3910,19 @@ export interface OrderSummaryDTO {
|
|
|
3331
3910
|
* @type {string}
|
|
3332
3911
|
* @memberof OrderSummaryDTO
|
|
3333
3912
|
*/
|
|
3334
|
-
'reference'?: string;
|
|
3913
|
+
'reference'?: string | null;
|
|
3335
3914
|
/**
|
|
3336
3915
|
* Invoice Number
|
|
3337
3916
|
* @type {string}
|
|
3338
3917
|
* @memberof OrderSummaryDTO
|
|
3339
3918
|
*/
|
|
3340
3919
|
'invoiceNumber'?: string;
|
|
3920
|
+
/**
|
|
3921
|
+
* Invoice ID
|
|
3922
|
+
* @type {string}
|
|
3923
|
+
* @memberof OrderSummaryDTO
|
|
3924
|
+
*/
|
|
3925
|
+
'invoiceId'?: string | null;
|
|
3341
3926
|
/**
|
|
3342
3927
|
* Date Time
|
|
3343
3928
|
* @type {string}
|
|
@@ -3392,6 +3977,24 @@ export interface OrderSummaryDTO {
|
|
|
3392
3977
|
* @memberof OrderSummaryDTO
|
|
3393
3978
|
*/
|
|
3394
3979
|
'fulfillable'?: boolean | null;
|
|
3980
|
+
/**
|
|
3981
|
+
* Provisioning URL
|
|
3982
|
+
* @type {string}
|
|
3983
|
+
* @memberof OrderSummaryDTO
|
|
3984
|
+
*/
|
|
3985
|
+
'provisioningUrl'?: string | null;
|
|
3986
|
+
/**
|
|
3987
|
+
*
|
|
3988
|
+
* @type {ShippingServiceDTO}
|
|
3989
|
+
* @memberof OrderSummaryDTO
|
|
3990
|
+
*/
|
|
3991
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
3992
|
+
/**
|
|
3993
|
+
* Readonly
|
|
3994
|
+
* @type {boolean}
|
|
3995
|
+
* @memberof OrderSummaryDTO
|
|
3996
|
+
*/
|
|
3997
|
+
'readonly'?: boolean;
|
|
3395
3998
|
}
|
|
3396
3999
|
/**
|
|
3397
4000
|
* Order Totals
|
|
@@ -3441,6 +4044,12 @@ export interface OrderTotalModel {
|
|
|
3441
4044
|
* @memberof OrderTotalModel
|
|
3442
4045
|
*/
|
|
3443
4046
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
4047
|
+
/**
|
|
4048
|
+
* Delivery
|
|
4049
|
+
* @type {number}
|
|
4050
|
+
* @memberof OrderTotalModel
|
|
4051
|
+
*/
|
|
4052
|
+
'delivery'?: number | null;
|
|
3444
4053
|
}
|
|
3445
4054
|
|
|
3446
4055
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3822,6 +4431,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3822
4431
|
*/
|
|
3823
4432
|
'scopes'?: Array<string>;
|
|
3824
4433
|
}
|
|
4434
|
+
/**
|
|
4435
|
+
*
|
|
4436
|
+
* @export
|
|
4437
|
+
* @interface PostGetProductForCustomerRequest
|
|
4438
|
+
*/
|
|
4439
|
+
export interface PostGetProductForCustomerRequest {
|
|
4440
|
+
/**
|
|
4441
|
+
* Quantity
|
|
4442
|
+
* @type {number}
|
|
4443
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4444
|
+
*/
|
|
4445
|
+
'quantity'?: number | null;
|
|
4446
|
+
/**
|
|
4447
|
+
* 3CX Licence Key
|
|
4448
|
+
* @type {string}
|
|
4449
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4450
|
+
*/
|
|
4451
|
+
'licenceKey'?: string | null;
|
|
4452
|
+
/**
|
|
4453
|
+
* 3CX Hosting
|
|
4454
|
+
* @type {boolean}
|
|
4455
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4456
|
+
*/
|
|
4457
|
+
'hosting'?: boolean | null;
|
|
4458
|
+
}
|
|
3825
4459
|
/**
|
|
3826
4460
|
* Price & Stock List
|
|
3827
4461
|
* @export
|
|
@@ -3910,10 +4544,10 @@ export interface PrizesEntity {
|
|
|
3910
4544
|
export interface ProductSearchResultsModel {
|
|
3911
4545
|
/**
|
|
3912
4546
|
* Results
|
|
3913
|
-
* @type {Array<
|
|
4547
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3914
4548
|
* @memberof ProductSearchResultsModel
|
|
3915
4549
|
*/
|
|
3916
|
-
'results'?: Array<
|
|
4550
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3917
4551
|
}
|
|
3918
4552
|
/**
|
|
3919
4553
|
* Product Serial Info
|
|
@@ -3949,45 +4583,51 @@ export interface ProductSerialInfoModel {
|
|
|
3949
4583
|
/**
|
|
3950
4584
|
* Product Summary
|
|
3951
4585
|
* @export
|
|
3952
|
-
* @interface
|
|
4586
|
+
* @interface ProductSummaryDTO
|
|
3953
4587
|
*/
|
|
3954
|
-
export interface
|
|
4588
|
+
export interface ProductSummaryDTO {
|
|
3955
4589
|
/**
|
|
3956
4590
|
* SKU
|
|
3957
4591
|
* @type {string}
|
|
3958
|
-
* @memberof
|
|
4592
|
+
* @memberof ProductSummaryDTO
|
|
3959
4593
|
*/
|
|
3960
4594
|
'sku'?: string;
|
|
3961
4595
|
/**
|
|
3962
4596
|
* Title
|
|
3963
4597
|
* @type {string}
|
|
3964
|
-
* @memberof
|
|
4598
|
+
* @memberof ProductSummaryDTO
|
|
3965
4599
|
*/
|
|
3966
4600
|
'title'?: string;
|
|
3967
4601
|
/**
|
|
3968
4602
|
* Stock Quantity
|
|
3969
4603
|
* @type {number}
|
|
3970
|
-
* @memberof
|
|
4604
|
+
* @memberof ProductSummaryDTO
|
|
3971
4605
|
*/
|
|
3972
4606
|
'quantity'?: number | null;
|
|
3973
4607
|
/**
|
|
3974
4608
|
* Stock Product
|
|
3975
4609
|
* @type {boolean}
|
|
3976
|
-
* @memberof
|
|
4610
|
+
* @memberof ProductSummaryDTO
|
|
3977
4611
|
*/
|
|
3978
4612
|
'stockProduct'?: boolean;
|
|
3979
4613
|
/**
|
|
3980
4614
|
* Price
|
|
3981
4615
|
* @type {number}
|
|
3982
|
-
* @memberof
|
|
4616
|
+
* @memberof ProductSummaryDTO
|
|
3983
4617
|
*/
|
|
3984
4618
|
'price'?: number | null;
|
|
3985
4619
|
/**
|
|
3986
4620
|
* Carton Size
|
|
3987
4621
|
* @type {number}
|
|
3988
|
-
* @memberof
|
|
4622
|
+
* @memberof ProductSummaryDTO
|
|
3989
4623
|
*/
|
|
3990
4624
|
'cartonSize'?: number | null;
|
|
4625
|
+
/**
|
|
4626
|
+
* RRP Price
|
|
4627
|
+
* @type {number}
|
|
4628
|
+
* @memberof ProductSummaryDTO
|
|
4629
|
+
*/
|
|
4630
|
+
'rrp'?: number | null;
|
|
3991
4631
|
}
|
|
3992
4632
|
/**
|
|
3993
4633
|
* PromoCodesEntity
|
|
@@ -4126,37 +4766,37 @@ export interface PromoItemsEntity {
|
|
|
4126
4766
|
/**
|
|
4127
4767
|
* Provisioning Group
|
|
4128
4768
|
* @export
|
|
4129
|
-
* @interface
|
|
4769
|
+
* @interface ProvisioningModel
|
|
4130
4770
|
*/
|
|
4131
|
-
export interface
|
|
4771
|
+
export interface ProvisioningModel {
|
|
4132
4772
|
/**
|
|
4133
4773
|
* Provisioning Group Name
|
|
4134
4774
|
* @type {string}
|
|
4135
|
-
* @memberof
|
|
4775
|
+
* @memberof ProvisioningModel
|
|
4136
4776
|
*/
|
|
4137
4777
|
'groupName'?: string;
|
|
4138
4778
|
/**
|
|
4139
4779
|
* Provisioning URL (Static Provisioning Server)
|
|
4140
4780
|
* @type {string}
|
|
4141
|
-
* @memberof
|
|
4781
|
+
* @memberof ProvisioningModel
|
|
4142
4782
|
*/
|
|
4143
4783
|
'provisioningUrl'?: string;
|
|
4144
4784
|
/**
|
|
4145
4785
|
* Additional Authentication Secret
|
|
4146
4786
|
* @type {string}
|
|
4147
|
-
* @memberof
|
|
4787
|
+
* @memberof ProvisioningModel
|
|
4148
4788
|
*/
|
|
4149
4789
|
'auth'?: string;
|
|
4150
4790
|
/**
|
|
4151
4791
|
* Provisioning Group ID
|
|
4152
4792
|
* @type {number}
|
|
4153
|
-
* @memberof
|
|
4793
|
+
* @memberof ProvisioningModel
|
|
4154
4794
|
*/
|
|
4155
4795
|
'id'?: number;
|
|
4156
4796
|
/**
|
|
4157
4797
|
* Owner ID
|
|
4158
4798
|
* @type {number}
|
|
4159
|
-
* @memberof
|
|
4799
|
+
* @memberof ProvisioningModel
|
|
4160
4800
|
*/
|
|
4161
4801
|
'customerId'?: number;
|
|
4162
4802
|
}
|
|
@@ -4510,7 +5150,7 @@ export interface ShipmentEntity {
|
|
|
4510
5150
|
* @type {string}
|
|
4511
5151
|
* @memberof ShipmentEntity
|
|
4512
5152
|
*/
|
|
4513
|
-
'
|
|
5153
|
+
'dateShipped'?: string;
|
|
4514
5154
|
/**
|
|
4515
5155
|
* requestDate
|
|
4516
5156
|
* @type {string}
|
|
@@ -4562,23 +5202,172 @@ export interface ShipmentItemEntity {
|
|
|
4562
5202
|
'itemId'?: string;
|
|
4563
5203
|
}
|
|
4564
5204
|
/**
|
|
4565
|
-
*
|
|
5205
|
+
*
|
|
4566
5206
|
* @export
|
|
4567
|
-
* @interface
|
|
5207
|
+
* @interface ShippingConsignmentModel
|
|
4568
5208
|
*/
|
|
4569
|
-
export interface
|
|
4570
|
-
/**
|
|
4571
|
-
* ID
|
|
4572
|
-
* @type {string}
|
|
4573
|
-
* @memberof SipTrunkChangeResponseModel
|
|
4574
|
-
*/
|
|
4575
|
-
'changeId'?: string;
|
|
5209
|
+
export interface ShippingConsignmentModel {
|
|
4576
5210
|
/**
|
|
4577
5211
|
*
|
|
4578
|
-
* @type {
|
|
4579
|
-
* @memberof
|
|
5212
|
+
* @type {ShippingServiceModel}
|
|
5213
|
+
* @memberof ShippingConsignmentModel
|
|
4580
5214
|
*/
|
|
4581
|
-
'
|
|
5215
|
+
'service'?: ShippingServiceModel;
|
|
5216
|
+
/**
|
|
5217
|
+
* ID/Number
|
|
5218
|
+
* @type {string}
|
|
5219
|
+
* @memberof ShippingConsignmentModel
|
|
5220
|
+
*/
|
|
5221
|
+
'id'?: string;
|
|
5222
|
+
/**
|
|
5223
|
+
* Tracking Number
|
|
5224
|
+
* @type {string}
|
|
5225
|
+
* @memberof ShippingConsignmentModel
|
|
5226
|
+
*/
|
|
5227
|
+
'trackingNumber'?: string;
|
|
5228
|
+
/**
|
|
5229
|
+
* Parcels
|
|
5230
|
+
* @type {Array<string>}
|
|
5231
|
+
* @memberof ShippingConsignmentModel
|
|
5232
|
+
*/
|
|
5233
|
+
'parcelIds'?: Array<string>;
|
|
5234
|
+
}
|
|
5235
|
+
/**
|
|
5236
|
+
* Shipping Information
|
|
5237
|
+
* @export
|
|
5238
|
+
* @interface ShippingInformationDTO
|
|
5239
|
+
*/
|
|
5240
|
+
export interface ShippingInformationDTO {
|
|
5241
|
+
/**
|
|
5242
|
+
* Items
|
|
5243
|
+
* @type {Array<BasicItemDTO>}
|
|
5244
|
+
* @memberof ShippingInformationDTO
|
|
5245
|
+
*/
|
|
5246
|
+
'items'?: Array<BasicItemDTO>;
|
|
5247
|
+
/**
|
|
5248
|
+
* Destination Post Code
|
|
5249
|
+
* @type {string}
|
|
5250
|
+
* @memberof ShippingInformationDTO
|
|
5251
|
+
*/
|
|
5252
|
+
'postalCode'?: string;
|
|
5253
|
+
/**
|
|
5254
|
+
* Destination ISO
|
|
5255
|
+
* @type {string}
|
|
5256
|
+
* @memberof ShippingInformationDTO
|
|
5257
|
+
*/
|
|
5258
|
+
'iso'?: string;
|
|
5259
|
+
}
|
|
5260
|
+
/**
|
|
5261
|
+
* Shipping Service
|
|
5262
|
+
* @export
|
|
5263
|
+
* @interface ShippingServiceDTO
|
|
5264
|
+
*/
|
|
5265
|
+
export interface ShippingServiceDTO {
|
|
5266
|
+
/**
|
|
5267
|
+
* Courier
|
|
5268
|
+
* @type {string}
|
|
5269
|
+
* @memberof ShippingServiceDTO
|
|
5270
|
+
*/
|
|
5271
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5272
|
+
/**
|
|
5273
|
+
* Service Name
|
|
5274
|
+
* @type {string}
|
|
5275
|
+
* @memberof ShippingServiceDTO
|
|
5276
|
+
*/
|
|
5277
|
+
'serviceName'?: string;
|
|
5278
|
+
}
|
|
5279
|
+
|
|
5280
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5281
|
+
Dpd: 'DPD',
|
|
5282
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5283
|
+
Pops: 'POPS'
|
|
5284
|
+
} as const;
|
|
5285
|
+
|
|
5286
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5287
|
+
|
|
5288
|
+
/**
|
|
5289
|
+
* Shipping Service
|
|
5290
|
+
* @export
|
|
5291
|
+
* @interface ShippingServiceModel
|
|
5292
|
+
*/
|
|
5293
|
+
export interface ShippingServiceModel {
|
|
5294
|
+
/**
|
|
5295
|
+
* Courier
|
|
5296
|
+
* @type {string}
|
|
5297
|
+
* @memberof ShippingServiceModel
|
|
5298
|
+
*/
|
|
5299
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5300
|
+
/**
|
|
5301
|
+
* Code
|
|
5302
|
+
* @type {string}
|
|
5303
|
+
* @memberof ShippingServiceModel
|
|
5304
|
+
*/
|
|
5305
|
+
'code'?: string;
|
|
5306
|
+
/**
|
|
5307
|
+
* Name
|
|
5308
|
+
* @type {string}
|
|
5309
|
+
* @memberof ShippingServiceModel
|
|
5310
|
+
*/
|
|
5311
|
+
'name'?: string;
|
|
5312
|
+
/**
|
|
5313
|
+
* Description
|
|
5314
|
+
* @type {string}
|
|
5315
|
+
* @memberof ShippingServiceModel
|
|
5316
|
+
*/
|
|
5317
|
+
'description'?: string;
|
|
5318
|
+
/**
|
|
5319
|
+
* Label
|
|
5320
|
+
* @type {string}
|
|
5321
|
+
* @memberof ShippingServiceModel
|
|
5322
|
+
*/
|
|
5323
|
+
'label'?: string | null;
|
|
5324
|
+
/**
|
|
5325
|
+
* Price
|
|
5326
|
+
* @type {number}
|
|
5327
|
+
* @memberof ShippingServiceModel
|
|
5328
|
+
*/
|
|
5329
|
+
'price'?: number | null;
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5333
|
+
Dpd: 'DPD',
|
|
5334
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5335
|
+
Pops: 'POPS'
|
|
5336
|
+
} as const;
|
|
5337
|
+
|
|
5338
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5339
|
+
|
|
5340
|
+
/**
|
|
5341
|
+
*
|
|
5342
|
+
* @export
|
|
5343
|
+
* @interface ShippingServicesModel
|
|
5344
|
+
*/
|
|
5345
|
+
export interface ShippingServicesModel {
|
|
5346
|
+
/**
|
|
5347
|
+
* Services
|
|
5348
|
+
* @type {Array<ShippingServiceModel>}
|
|
5349
|
+
* @memberof ShippingServicesModel
|
|
5350
|
+
*/
|
|
5351
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5352
|
+
}
|
|
5353
|
+
/**
|
|
5354
|
+
* Change Response
|
|
5355
|
+
* @export
|
|
5356
|
+
* @interface SipTrunkChangeResponseModel
|
|
5357
|
+
*/
|
|
5358
|
+
export interface SipTrunkChangeResponseModel {
|
|
5359
|
+
/**
|
|
5360
|
+
* ID
|
|
5361
|
+
* @type {string}
|
|
5362
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5363
|
+
*/
|
|
5364
|
+
'changeId'?: string;
|
|
5365
|
+
/**
|
|
5366
|
+
*
|
|
5367
|
+
* @type {SipTrunkEntity}
|
|
5368
|
+
* @memberof SipTrunkChangeResponseModel
|
|
5369
|
+
*/
|
|
5370
|
+
'trunk'?: SipTrunkEntity;
|
|
4582
5371
|
/**
|
|
4583
5372
|
* Type
|
|
4584
5373
|
* @type {string}
|
|
@@ -7400,6 +8189,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7400
8189
|
*/
|
|
7401
8190
|
'secretAccessKey'?: string;
|
|
7402
8191
|
}
|
|
8192
|
+
/**
|
|
8193
|
+
* SBC Data
|
|
8194
|
+
* @export
|
|
8195
|
+
* @interface TcxSbcDTO
|
|
8196
|
+
*/
|
|
8197
|
+
export interface TcxSbcDTO {
|
|
8198
|
+
/**
|
|
8199
|
+
* LAN IP Address
|
|
8200
|
+
* @type {string}
|
|
8201
|
+
* @memberof TcxSbcDTO
|
|
8202
|
+
*/
|
|
8203
|
+
'ipAddress'?: string;
|
|
8204
|
+
/**
|
|
8205
|
+
* LAN Default Gateway
|
|
8206
|
+
* @type {string}
|
|
8207
|
+
* @memberof TcxSbcDTO
|
|
8208
|
+
*/
|
|
8209
|
+
'defaultGateway'?: string;
|
|
8210
|
+
/**
|
|
8211
|
+
* LAN Subnet Mask
|
|
8212
|
+
* @type {string}
|
|
8213
|
+
* @memberof TcxSbcDTO
|
|
8214
|
+
*/
|
|
8215
|
+
'netmask'?: string;
|
|
8216
|
+
/**
|
|
8217
|
+
* DNS
|
|
8218
|
+
* @type {string}
|
|
8219
|
+
* @memberof TcxSbcDTO
|
|
8220
|
+
*/
|
|
8221
|
+
'dns'?: string;
|
|
8222
|
+
/**
|
|
8223
|
+
* 3CX URL
|
|
8224
|
+
* @type {string}
|
|
8225
|
+
* @memberof TcxSbcDTO
|
|
8226
|
+
*/
|
|
8227
|
+
'tcxUrl'?: string;
|
|
8228
|
+
/**
|
|
8229
|
+
* 3CX SBC Key
|
|
8230
|
+
* @type {string}
|
|
8231
|
+
* @memberof TcxSbcDTO
|
|
8232
|
+
*/
|
|
8233
|
+
'tcxKey'?: string;
|
|
8234
|
+
}
|
|
7403
8235
|
/**
|
|
7404
8236
|
* 3CX Wizard SBC
|
|
7405
8237
|
* @export
|
|
@@ -7504,7 +8336,7 @@ export interface TcxSbcEntity {
|
|
|
7504
8336
|
'technicalContact'?: string;
|
|
7505
8337
|
}
|
|
7506
8338
|
/**
|
|
7507
|
-
* 3CX SBC
|
|
8339
|
+
* 3CX Wizard SBC
|
|
7508
8340
|
* @export
|
|
7509
8341
|
* @interface TcxSbcModel
|
|
7510
8342
|
*/
|
|
@@ -8689,6 +9521,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8689
9521
|
|
|
8690
9522
|
|
|
8691
9523
|
|
|
9524
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9526
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9527
|
+
|
|
9528
|
+
return {
|
|
9529
|
+
url: toPathString(localVarUrlObj),
|
|
9530
|
+
options: localVarRequestOptions,
|
|
9531
|
+
};
|
|
9532
|
+
},
|
|
9533
|
+
/**
|
|
9534
|
+
* Get Account Detailed Summary
|
|
9535
|
+
* @summary Get Account Detailed Summary
|
|
9536
|
+
* @param {number} id Customer ID
|
|
9537
|
+
* @param {*} [options] Override http request option.
|
|
9538
|
+
* @throws {RequiredError}
|
|
9539
|
+
*/
|
|
9540
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9541
|
+
// verify required parameter 'id' is not null or undefined
|
|
9542
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9543
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9544
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9546
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9547
|
+
let baseOptions;
|
|
9548
|
+
if (configuration) {
|
|
9549
|
+
baseOptions = configuration.baseOptions;
|
|
9550
|
+
}
|
|
9551
|
+
|
|
9552
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9553
|
+
const localVarHeaderParameter = {} as any;
|
|
9554
|
+
const localVarQueryParameter = {} as any;
|
|
9555
|
+
|
|
9556
|
+
|
|
9557
|
+
|
|
8692
9558
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8693
9559
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8694
9560
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -8987,6 +9853,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8987
9853
|
options: localVarRequestOptions,
|
|
8988
9854
|
};
|
|
8989
9855
|
},
|
|
9856
|
+
/**
|
|
9857
|
+
* Get Admin Account
|
|
9858
|
+
* @summary Get Admin Account
|
|
9859
|
+
* @param {*} [options] Override http request option.
|
|
9860
|
+
* @throws {RequiredError}
|
|
9861
|
+
*/
|
|
9862
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9863
|
+
const localVarPath = `/admin/me`;
|
|
9864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9866
|
+
let baseOptions;
|
|
9867
|
+
if (configuration) {
|
|
9868
|
+
baseOptions = configuration.baseOptions;
|
|
9869
|
+
}
|
|
9870
|
+
|
|
9871
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9872
|
+
const localVarHeaderParameter = {} as any;
|
|
9873
|
+
const localVarQueryParameter = {} as any;
|
|
9874
|
+
|
|
9875
|
+
|
|
9876
|
+
|
|
9877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9879
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9880
|
+
|
|
9881
|
+
return {
|
|
9882
|
+
url: toPathString(localVarUrlObj),
|
|
9883
|
+
options: localVarRequestOptions,
|
|
9884
|
+
};
|
|
9885
|
+
},
|
|
8990
9886
|
/**
|
|
8991
9887
|
* Create client credentials
|
|
8992
9888
|
* @summary Create client credentials
|
|
@@ -9236,6 +10132,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9236
10132
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9237
10133
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9238
10134
|
},
|
|
10135
|
+
/**
|
|
10136
|
+
* Get Account Detailed Summary
|
|
10137
|
+
* @summary Get Account Detailed Summary
|
|
10138
|
+
* @param {number} id Customer ID
|
|
10139
|
+
* @param {*} [options] Override http request option.
|
|
10140
|
+
* @throws {RequiredError}
|
|
10141
|
+
*/
|
|
10142
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10143
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10144
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10145
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10147
|
+
},
|
|
9239
10148
|
/**
|
|
9240
10149
|
* Get Accounts
|
|
9241
10150
|
* @summary Get Accounts
|
|
@@ -9341,6 +10250,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9341
10250
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9342
10251
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9343
10252
|
},
|
|
10253
|
+
/**
|
|
10254
|
+
* Get Admin Account
|
|
10255
|
+
* @summary Get Admin Account
|
|
10256
|
+
* @param {*} [options] Override http request option.
|
|
10257
|
+
* @throws {RequiredError}
|
|
10258
|
+
*/
|
|
10259
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10260
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10261
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10262
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10263
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10264
|
+
},
|
|
9344
10265
|
/**
|
|
9345
10266
|
* Create client credentials
|
|
9346
10267
|
* @summary Create client credentials
|
|
@@ -9458,6 +10379,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9458
10379
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9459
10380
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9460
10381
|
},
|
|
10382
|
+
/**
|
|
10383
|
+
* Get Account Detailed Summary
|
|
10384
|
+
* @summary Get Account Detailed Summary
|
|
10385
|
+
* @param {number} id Customer ID
|
|
10386
|
+
* @param {*} [options] Override http request option.
|
|
10387
|
+
* @throws {RequiredError}
|
|
10388
|
+
*/
|
|
10389
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10390
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10391
|
+
},
|
|
9461
10392
|
/**
|
|
9462
10393
|
* Get Accounts
|
|
9463
10394
|
* @summary Get Accounts
|
|
@@ -9539,6 +10470,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9539
10470
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9540
10471
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9541
10472
|
},
|
|
10473
|
+
/**
|
|
10474
|
+
* Get Admin Account
|
|
10475
|
+
* @summary Get Admin Account
|
|
10476
|
+
* @param {*} [options] Override http request option.
|
|
10477
|
+
* @throws {RequiredError}
|
|
10478
|
+
*/
|
|
10479
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10480
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10481
|
+
},
|
|
9542
10482
|
/**
|
|
9543
10483
|
* Create client credentials
|
|
9544
10484
|
* @summary Create client credentials
|
|
@@ -9649,6 +10589,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9649
10589
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9650
10590
|
}
|
|
9651
10591
|
|
|
10592
|
+
/**
|
|
10593
|
+
* Get Account Detailed Summary
|
|
10594
|
+
* @summary Get Account Detailed Summary
|
|
10595
|
+
* @param {number} id Customer ID
|
|
10596
|
+
* @param {*} [options] Override http request option.
|
|
10597
|
+
* @throws {RequiredError}
|
|
10598
|
+
* @memberof AccountsApi
|
|
10599
|
+
*/
|
|
10600
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10601
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10602
|
+
}
|
|
10603
|
+
|
|
9652
10604
|
/**
|
|
9653
10605
|
* Get Accounts
|
|
9654
10606
|
* @summary Get Accounts
|
|
@@ -9746,6 +10698,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9746
10698
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9747
10699
|
}
|
|
9748
10700
|
|
|
10701
|
+
/**
|
|
10702
|
+
* Get Admin Account
|
|
10703
|
+
* @summary Get Admin Account
|
|
10704
|
+
* @param {*} [options] Override http request option.
|
|
10705
|
+
* @throws {RequiredError}
|
|
10706
|
+
* @memberof AccountsApi
|
|
10707
|
+
*/
|
|
10708
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10709
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10710
|
+
}
|
|
10711
|
+
|
|
9749
10712
|
/**
|
|
9750
10713
|
* Create client credentials
|
|
9751
10714
|
* @summary Create client credentials
|
|
@@ -9943,43 +10906,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9943
10906
|
|
|
9944
10907
|
|
|
9945
10908
|
|
|
9946
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9947
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9948
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9949
|
-
|
|
9950
|
-
return {
|
|
9951
|
-
url: toPathString(localVarUrlObj),
|
|
9952
|
-
options: localVarRequestOptions,
|
|
9953
|
-
};
|
|
9954
|
-
},
|
|
9955
|
-
/**
|
|
9956
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
9957
|
-
* @summary Convert a password to a hashed 3CX password
|
|
9958
|
-
* @param {string} password Desired 3CX web access password
|
|
9959
|
-
* @param {*} [options] Override http request option.
|
|
9960
|
-
* @throws {RequiredError}
|
|
9961
|
-
*/
|
|
9962
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9963
|
-
// verify required parameter 'password' is not null or undefined
|
|
9964
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
9965
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
9966
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9967
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9968
|
-
let baseOptions;
|
|
9969
|
-
if (configuration) {
|
|
9970
|
-
baseOptions = configuration.baseOptions;
|
|
9971
|
-
}
|
|
9972
|
-
|
|
9973
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9974
|
-
const localVarHeaderParameter = {} as any;
|
|
9975
|
-
const localVarQueryParameter = {} as any;
|
|
9976
|
-
|
|
9977
|
-
if (password !== undefined) {
|
|
9978
|
-
localVarQueryParameter['password'] = password;
|
|
9979
|
-
}
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
10909
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9984
10910
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9985
10911
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10046,19 +10972,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
10046
10972
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
10047
10973
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10048
10974
|
},
|
|
10049
|
-
/**
|
|
10050
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10051
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10052
|
-
* @param {string} password Desired 3CX web access password
|
|
10053
|
-
* @param {*} [options] Override http request option.
|
|
10054
|
-
* @throws {RequiredError}
|
|
10055
|
-
*/
|
|
10056
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
10057
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
10058
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10059
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
10060
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10061
|
-
},
|
|
10062
10975
|
/**
|
|
10063
10976
|
* Get Bulk 3CX Licence Details
|
|
10064
10977
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10092,16 +11005,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
10092
11005
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
10093
11006
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
10094
11007
|
},
|
|
10095
|
-
/**
|
|
10096
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10097
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10098
|
-
* @param {string} password Desired 3CX web access password
|
|
10099
|
-
* @param {*} [options] Override http request option.
|
|
10100
|
-
* @throws {RequiredError}
|
|
10101
|
-
*/
|
|
10102
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
10103
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
10104
|
-
},
|
|
10105
11008
|
/**
|
|
10106
11009
|
* Get Bulk 3CX Licence Details
|
|
10107
11010
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10134,18 +11037,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
10134
11037
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
10135
11038
|
}
|
|
10136
11039
|
|
|
10137
|
-
/**
|
|
10138
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10139
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10140
|
-
* @param {string} password Desired 3CX web access password
|
|
10141
|
-
* @param {*} [options] Override http request option.
|
|
10142
|
-
* @throws {RequiredError}
|
|
10143
|
-
* @memberof Class3CXApi
|
|
10144
|
-
*/
|
|
10145
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
10146
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
10147
|
-
}
|
|
10148
|
-
|
|
10149
11040
|
/**
|
|
10150
11041
|
* Get Bulk 3CX Licence Details
|
|
10151
11042
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -12590,10 +13481,11 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
|
|
|
12590
13481
|
* @param {string} [search] Search
|
|
12591
13482
|
* @param {GetGetInstallationsStatusEnum} [status] Status
|
|
12592
13483
|
* @param {GetGetInstallationsHostingEnum} [hosting] Hosting
|
|
13484
|
+
* @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
|
|
12593
13485
|
* @param {*} [options] Override http request option.
|
|
12594
13486
|
* @throws {RequiredError}
|
|
12595
13487
|
*/
|
|
12596
|
-
getGetInstallations: async (pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13488
|
+
getGetInstallations: async (pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12597
13489
|
const localVarPath = `/tcx/installations`;
|
|
12598
13490
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12599
13491
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -12630,6 +13522,10 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
|
|
|
12630
13522
|
localVarQueryParameter['hosting'] = hosting;
|
|
12631
13523
|
}
|
|
12632
13524
|
|
|
13525
|
+
if (installType !== undefined) {
|
|
13526
|
+
localVarQueryParameter['installType'] = installType;
|
|
13527
|
+
}
|
|
13528
|
+
|
|
12633
13529
|
|
|
12634
13530
|
|
|
12635
13531
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13038,11 +13934,12 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
|
|
|
13038
13934
|
* @param {string} [search] Search
|
|
13039
13935
|
* @param {GetGetInstallationsStatusEnum} [status] Status
|
|
13040
13936
|
* @param {GetGetInstallationsHostingEnum} [hosting] Hosting
|
|
13937
|
+
* @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
|
|
13041
13938
|
* @param {*} [options] Override http request option.
|
|
13042
13939
|
* @throws {RequiredError}
|
|
13043
13940
|
*/
|
|
13044
|
-
async getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxInstallationsModel>> {
|
|
13045
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetInstallations(pageSize, page, customerId, search, status, hosting, options);
|
|
13941
|
+
async getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxInstallationsModel>> {
|
|
13942
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options);
|
|
13046
13943
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13047
13944
|
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetInstallations']?.[localVarOperationServerIndex]?.url;
|
|
13048
13945
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13202,11 +14099,12 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
|
|
|
13202
14099
|
* @param {string} [search] Search
|
|
13203
14100
|
* @param {GetGetInstallationsStatusEnum} [status] Status
|
|
13204
14101
|
* @param {GetGetInstallationsHostingEnum} [hosting] Hosting
|
|
14102
|
+
* @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
|
|
13205
14103
|
* @param {*} [options] Override http request option.
|
|
13206
14104
|
* @throws {RequiredError}
|
|
13207
14105
|
*/
|
|
13208
|
-
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel> {
|
|
13209
|
-
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, options).then((request) => request(axios, basePath));
|
|
14106
|
+
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel> {
|
|
14107
|
+
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(axios, basePath));
|
|
13210
14108
|
},
|
|
13211
14109
|
/**
|
|
13212
14110
|
* Create a root user
|
|
@@ -13338,12 +14236,13 @@ export class Class3CXInstallationsApi extends BaseAPI {
|
|
|
13338
14236
|
* @param {string} [search] Search
|
|
13339
14237
|
* @param {GetGetInstallationsStatusEnum} [status] Status
|
|
13340
14238
|
* @param {GetGetInstallationsHostingEnum} [hosting] Hosting
|
|
14239
|
+
* @param {GetGetInstallationsInstallTypeEnum} [installType] Install Type
|
|
13341
14240
|
* @param {*} [options] Override http request option.
|
|
13342
14241
|
* @throws {RequiredError}
|
|
13343
14242
|
* @memberof Class3CXInstallationsApi
|
|
13344
14243
|
*/
|
|
13345
|
-
public getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, options?: RawAxiosRequestConfig) {
|
|
13346
|
-
return Class3CXInstallationsApiFp(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, options).then((request) => request(this.axios, this.basePath));
|
|
14244
|
+
public getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig) {
|
|
14245
|
+
return Class3CXInstallationsApiFp(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(this.axios, this.basePath));
|
|
13347
14246
|
}
|
|
13348
14247
|
|
|
13349
14248
|
/**
|
|
@@ -13484,6 +14383,16 @@ export const GetGetInstallationsHostingEnum = {
|
|
|
13484
14383
|
All: 'all'
|
|
13485
14384
|
} as const;
|
|
13486
14385
|
export type GetGetInstallationsHostingEnum = typeof GetGetInstallationsHostingEnum[keyof typeof GetGetInstallationsHostingEnum];
|
|
14386
|
+
/**
|
|
14387
|
+
* @export
|
|
14388
|
+
*/
|
|
14389
|
+
export const GetGetInstallationsInstallTypeEnum = {
|
|
14390
|
+
New: 'new',
|
|
14391
|
+
Restore: 'restore',
|
|
14392
|
+
Failover: 'failover',
|
|
14393
|
+
MultiTenant: 'multi-tenant'
|
|
14394
|
+
} as const;
|
|
14395
|
+
export type GetGetInstallationsInstallTypeEnum = typeof GetGetInstallationsInstallTypeEnum[keyof typeof GetGetInstallationsInstallTypeEnum];
|
|
13487
14396
|
/**
|
|
13488
14397
|
* @export
|
|
13489
14398
|
*/
|
|
@@ -15302,13 +16211,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15302
16211
|
return {
|
|
15303
16212
|
/**
|
|
15304
16213
|
* Delete Orders
|
|
16214
|
+
* @summary Delete Orders
|
|
15305
16215
|
* @param {number} id Order ID
|
|
15306
16216
|
* @param {*} [options] Override http request option.
|
|
15307
16217
|
* @throws {RequiredError}
|
|
15308
16218
|
*/
|
|
15309
|
-
|
|
16219
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15310
16220
|
// verify required parameter 'id' is not null or undefined
|
|
15311
|
-
assertParamExists('
|
|
16221
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15312
16222
|
const localVarPath = `/orders/{id}`
|
|
15313
16223
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15314
16224
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15324,6 +16234,74 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15324
16234
|
|
|
15325
16235
|
|
|
15326
16236
|
|
|
16237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16240
|
+
|
|
16241
|
+
return {
|
|
16242
|
+
url: toPathString(localVarUrlObj),
|
|
16243
|
+
options: localVarRequestOptions,
|
|
16244
|
+
};
|
|
16245
|
+
},
|
|
16246
|
+
/**
|
|
16247
|
+
* Get Editable Order (Admin)
|
|
16248
|
+
* @summary Get Editable Order (Admin)
|
|
16249
|
+
* @param {number} id Order ID
|
|
16250
|
+
* @param {*} [options] Override http request option.
|
|
16251
|
+
* @throws {RequiredError}
|
|
16252
|
+
*/
|
|
16253
|
+
getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16254
|
+
// verify required parameter 'id' is not null or undefined
|
|
16255
|
+
assertParamExists('getGetAdminEditableOrder', 'id', id)
|
|
16256
|
+
const localVarPath = `/admin/orders/{id}/views/editable`
|
|
16257
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16258
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16259
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16260
|
+
let baseOptions;
|
|
16261
|
+
if (configuration) {
|
|
16262
|
+
baseOptions = configuration.baseOptions;
|
|
16263
|
+
}
|
|
16264
|
+
|
|
16265
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16266
|
+
const localVarHeaderParameter = {} as any;
|
|
16267
|
+
const localVarQueryParameter = {} as any;
|
|
16268
|
+
|
|
16269
|
+
|
|
16270
|
+
|
|
16271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16273
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16274
|
+
|
|
16275
|
+
return {
|
|
16276
|
+
url: toPathString(localVarUrlObj),
|
|
16277
|
+
options: localVarRequestOptions,
|
|
16278
|
+
};
|
|
16279
|
+
},
|
|
16280
|
+
/**
|
|
16281
|
+
* Get Editable Order
|
|
16282
|
+
* @summary Get Editable Order
|
|
16283
|
+
* @param {number} id Order ID
|
|
16284
|
+
* @param {*} [options] Override http request option.
|
|
16285
|
+
* @throws {RequiredError}
|
|
16286
|
+
*/
|
|
16287
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16288
|
+
// verify required parameter 'id' is not null or undefined
|
|
16289
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16290
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16291
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16293
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16294
|
+
let baseOptions;
|
|
16295
|
+
if (configuration) {
|
|
16296
|
+
baseOptions = configuration.baseOptions;
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16299
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16300
|
+
const localVarHeaderParameter = {} as any;
|
|
16301
|
+
const localVarQueryParameter = {} as any;
|
|
16302
|
+
|
|
16303
|
+
|
|
16304
|
+
|
|
15327
16305
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15328
16306
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15329
16307
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15393,6 +16371,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15393
16371
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15394
16372
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15395
16373
|
|
|
16374
|
+
return {
|
|
16375
|
+
url: toPathString(localVarUrlObj),
|
|
16376
|
+
options: localVarRequestOptions,
|
|
16377
|
+
};
|
|
16378
|
+
},
|
|
16379
|
+
/**
|
|
16380
|
+
* Create An Order (Admin)
|
|
16381
|
+
* @summary Create An Order (Admin)
|
|
16382
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16383
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16384
|
+
* @param {*} [options] Override http request option.
|
|
16385
|
+
* @throws {RequiredError}
|
|
16386
|
+
*/
|
|
16387
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16388
|
+
const localVarPath = `/admin/orders`;
|
|
16389
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16390
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16391
|
+
let baseOptions;
|
|
16392
|
+
if (configuration) {
|
|
16393
|
+
baseOptions = configuration.baseOptions;
|
|
16394
|
+
}
|
|
16395
|
+
|
|
16396
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16397
|
+
const localVarHeaderParameter = {} as any;
|
|
16398
|
+
const localVarQueryParameter = {} as any;
|
|
16399
|
+
|
|
16400
|
+
if (readonly !== undefined) {
|
|
16401
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16402
|
+
}
|
|
16403
|
+
|
|
16404
|
+
|
|
16405
|
+
|
|
16406
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16407
|
+
|
|
16408
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16410
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16411
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16412
|
+
|
|
16413
|
+
return {
|
|
16414
|
+
url: toPathString(localVarUrlObj),
|
|
16415
|
+
options: localVarRequestOptions,
|
|
16416
|
+
};
|
|
16417
|
+
},
|
|
16418
|
+
/**
|
|
16419
|
+
* Create An Order
|
|
16420
|
+
* @summary Create An Order
|
|
16421
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16422
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16423
|
+
* @param {*} [options] Override http request option.
|
|
16424
|
+
* @throws {RequiredError}
|
|
16425
|
+
*/
|
|
16426
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16427
|
+
const localVarPath = `/orders`;
|
|
16428
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16429
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16430
|
+
let baseOptions;
|
|
16431
|
+
if (configuration) {
|
|
16432
|
+
baseOptions = configuration.baseOptions;
|
|
16433
|
+
}
|
|
16434
|
+
|
|
16435
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16436
|
+
const localVarHeaderParameter = {} as any;
|
|
16437
|
+
const localVarQueryParameter = {} as any;
|
|
16438
|
+
|
|
16439
|
+
if (readonly !== undefined) {
|
|
16440
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16441
|
+
}
|
|
16442
|
+
|
|
16443
|
+
|
|
16444
|
+
|
|
16445
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16446
|
+
|
|
16447
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16449
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16450
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16451
|
+
|
|
16452
|
+
return {
|
|
16453
|
+
url: toPathString(localVarUrlObj),
|
|
16454
|
+
options: localVarRequestOptions,
|
|
16455
|
+
};
|
|
16456
|
+
},
|
|
16457
|
+
/**
|
|
16458
|
+
* Update An Order (Admin)
|
|
16459
|
+
* @summary Update An Order (Admin)
|
|
16460
|
+
* @param {number} id Order ID
|
|
16461
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16462
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16463
|
+
* @param {*} [options] Override http request option.
|
|
16464
|
+
* @throws {RequiredError}
|
|
16465
|
+
*/
|
|
16466
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16467
|
+
// verify required parameter 'id' is not null or undefined
|
|
16468
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16469
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16470
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16471
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16472
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16473
|
+
let baseOptions;
|
|
16474
|
+
if (configuration) {
|
|
16475
|
+
baseOptions = configuration.baseOptions;
|
|
16476
|
+
}
|
|
16477
|
+
|
|
16478
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16479
|
+
const localVarHeaderParameter = {} as any;
|
|
16480
|
+
const localVarQueryParameter = {} as any;
|
|
16481
|
+
|
|
16482
|
+
if (readonly !== undefined) {
|
|
16483
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16484
|
+
}
|
|
16485
|
+
|
|
16486
|
+
|
|
16487
|
+
|
|
16488
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16489
|
+
|
|
16490
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16491
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16492
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16493
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16494
|
+
|
|
16495
|
+
return {
|
|
16496
|
+
url: toPathString(localVarUrlObj),
|
|
16497
|
+
options: localVarRequestOptions,
|
|
16498
|
+
};
|
|
16499
|
+
},
|
|
16500
|
+
/**
|
|
16501
|
+
* Update An Order
|
|
16502
|
+
* @summary Update An Order
|
|
16503
|
+
* @param {number} id Order ID
|
|
16504
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16505
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16506
|
+
* @param {*} [options] Override http request option.
|
|
16507
|
+
* @throws {RequiredError}
|
|
16508
|
+
*/
|
|
16509
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16510
|
+
// verify required parameter 'id' is not null or undefined
|
|
16511
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16512
|
+
const localVarPath = `/orders/{id}`
|
|
16513
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16514
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16515
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16516
|
+
let baseOptions;
|
|
16517
|
+
if (configuration) {
|
|
16518
|
+
baseOptions = configuration.baseOptions;
|
|
16519
|
+
}
|
|
16520
|
+
|
|
16521
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16522
|
+
const localVarHeaderParameter = {} as any;
|
|
16523
|
+
const localVarQueryParameter = {} as any;
|
|
16524
|
+
|
|
16525
|
+
if (readonly !== undefined) {
|
|
16526
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16527
|
+
}
|
|
16528
|
+
|
|
16529
|
+
|
|
16530
|
+
|
|
16531
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16532
|
+
|
|
16533
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16534
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16535
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16537
|
+
|
|
15396
16538
|
return {
|
|
15397
16539
|
url: toPathString(localVarUrlObj),
|
|
15398
16540
|
options: localVarRequestOptions,
|
|
@@ -15410,14 +16552,41 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15410
16552
|
return {
|
|
15411
16553
|
/**
|
|
15412
16554
|
* Delete Orders
|
|
16555
|
+
* @summary Delete Orders
|
|
16556
|
+
* @param {number} id Order ID
|
|
16557
|
+
* @param {*} [options] Override http request option.
|
|
16558
|
+
* @throws {RequiredError}
|
|
16559
|
+
*/
|
|
16560
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
16562
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16563
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16564
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16565
|
+
},
|
|
16566
|
+
/**
|
|
16567
|
+
* Get Editable Order (Admin)
|
|
16568
|
+
* @summary Get Editable Order (Admin)
|
|
15413
16569
|
* @param {number} id Order ID
|
|
15414
16570
|
* @param {*} [options] Override http request option.
|
|
15415
16571
|
* @throws {RequiredError}
|
|
15416
16572
|
*/
|
|
15417
|
-
async
|
|
15418
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16573
|
+
async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
16574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
|
|
15419
16575
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15420
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
16576
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
16577
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16578
|
+
},
|
|
16579
|
+
/**
|
|
16580
|
+
* Get Editable Order
|
|
16581
|
+
* @summary Get Editable Order
|
|
16582
|
+
* @param {number} id Order ID
|
|
16583
|
+
* @param {*} [options] Override http request option.
|
|
16584
|
+
* @throws {RequiredError}
|
|
16585
|
+
*/
|
|
16586
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomerOrderRequestDTO>> {
|
|
16587
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
16588
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16589
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15421
16590
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15422
16591
|
},
|
|
15423
16592
|
/**
|
|
@@ -15439,6 +16608,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15439
16608
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15440
16609
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15441
16610
|
},
|
|
16611
|
+
/**
|
|
16612
|
+
* Create An Order (Admin)
|
|
16613
|
+
* @summary Create An Order (Admin)
|
|
16614
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16615
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16616
|
+
* @param {*} [options] Override http request option.
|
|
16617
|
+
* @throws {RequiredError}
|
|
16618
|
+
*/
|
|
16619
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16622
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16623
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16624
|
+
},
|
|
16625
|
+
/**
|
|
16626
|
+
* Create An Order
|
|
16627
|
+
* @summary Create An Order
|
|
16628
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16629
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16630
|
+
* @param {*} [options] Override http request option.
|
|
16631
|
+
* @throws {RequiredError}
|
|
16632
|
+
*/
|
|
16633
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16634
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16635
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16636
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16637
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16638
|
+
},
|
|
16639
|
+
/**
|
|
16640
|
+
* Update An Order (Admin)
|
|
16641
|
+
* @summary Update An Order (Admin)
|
|
16642
|
+
* @param {number} id Order ID
|
|
16643
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16644
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16645
|
+
* @param {*} [options] Override http request option.
|
|
16646
|
+
* @throws {RequiredError}
|
|
16647
|
+
*/
|
|
16648
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16650
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16651
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16653
|
+
},
|
|
16654
|
+
/**
|
|
16655
|
+
* Update An Order
|
|
16656
|
+
* @summary Update An Order
|
|
16657
|
+
* @param {number} id Order ID
|
|
16658
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16659
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16660
|
+
* @param {*} [options] Override http request option.
|
|
16661
|
+
* @throws {RequiredError}
|
|
16662
|
+
*/
|
|
16663
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16665
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16666
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16667
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16668
|
+
},
|
|
15442
16669
|
}
|
|
15443
16670
|
};
|
|
15444
16671
|
|
|
@@ -15451,12 +16678,33 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15451
16678
|
return {
|
|
15452
16679
|
/**
|
|
15453
16680
|
* Delete Orders
|
|
16681
|
+
* @summary Delete Orders
|
|
16682
|
+
* @param {number} id Order ID
|
|
16683
|
+
* @param {*} [options] Override http request option.
|
|
16684
|
+
* @throws {RequiredError}
|
|
16685
|
+
*/
|
|
16686
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16687
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
16688
|
+
},
|
|
16689
|
+
/**
|
|
16690
|
+
* Get Editable Order (Admin)
|
|
16691
|
+
* @summary Get Editable Order (Admin)
|
|
16692
|
+
* @param {number} id Order ID
|
|
16693
|
+
* @param {*} [options] Override http request option.
|
|
16694
|
+
* @throws {RequiredError}
|
|
16695
|
+
*/
|
|
16696
|
+
getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
|
|
16697
|
+
return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
16698
|
+
},
|
|
16699
|
+
/**
|
|
16700
|
+
* Get Editable Order
|
|
16701
|
+
* @summary Get Editable Order
|
|
15454
16702
|
* @param {number} id Order ID
|
|
15455
16703
|
* @param {*} [options] Override http request option.
|
|
15456
16704
|
* @throws {RequiredError}
|
|
15457
16705
|
*/
|
|
15458
|
-
|
|
15459
|
-
return localVarFp.
|
|
16706
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<CustomerOrderRequestDTO> {
|
|
16707
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
15460
16708
|
},
|
|
15461
16709
|
/**
|
|
15462
16710
|
* Get Orders
|
|
@@ -15474,6 +16722,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15474
16722
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15475
16723
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15476
16724
|
},
|
|
16725
|
+
/**
|
|
16726
|
+
* Create An Order (Admin)
|
|
16727
|
+
* @summary Create An Order (Admin)
|
|
16728
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16729
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16730
|
+
* @param {*} [options] Override http request option.
|
|
16731
|
+
* @throws {RequiredError}
|
|
16732
|
+
*/
|
|
16733
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16734
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16735
|
+
},
|
|
16736
|
+
/**
|
|
16737
|
+
* Create An Order
|
|
16738
|
+
* @summary Create An Order
|
|
16739
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16740
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16741
|
+
* @param {*} [options] Override http request option.
|
|
16742
|
+
* @throws {RequiredError}
|
|
16743
|
+
*/
|
|
16744
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16745
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16746
|
+
},
|
|
16747
|
+
/**
|
|
16748
|
+
* Update An Order (Admin)
|
|
16749
|
+
* @summary Update An Order (Admin)
|
|
16750
|
+
* @param {number} id Order ID
|
|
16751
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16752
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16753
|
+
* @param {*} [options] Override http request option.
|
|
16754
|
+
* @throws {RequiredError}
|
|
16755
|
+
*/
|
|
16756
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16757
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16758
|
+
},
|
|
16759
|
+
/**
|
|
16760
|
+
* Update An Order
|
|
16761
|
+
* @summary Update An Order
|
|
16762
|
+
* @param {number} id Order ID
|
|
16763
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16764
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16765
|
+
* @param {*} [options] Override http request option.
|
|
16766
|
+
* @throws {RequiredError}
|
|
16767
|
+
*/
|
|
16768
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16769
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16770
|
+
},
|
|
15477
16771
|
};
|
|
15478
16772
|
};
|
|
15479
16773
|
|
|
@@ -15486,13 +16780,38 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15486
16780
|
export class OrdersApi extends BaseAPI {
|
|
15487
16781
|
/**
|
|
15488
16782
|
* Delete Orders
|
|
16783
|
+
* @summary Delete Orders
|
|
16784
|
+
* @param {number} id Order ID
|
|
16785
|
+
* @param {*} [options] Override http request option.
|
|
16786
|
+
* @throws {RequiredError}
|
|
16787
|
+
* @memberof OrdersApi
|
|
16788
|
+
*/
|
|
16789
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16790
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16791
|
+
}
|
|
16792
|
+
|
|
16793
|
+
/**
|
|
16794
|
+
* Get Editable Order (Admin)
|
|
16795
|
+
* @summary Get Editable Order (Admin)
|
|
15489
16796
|
* @param {number} id Order ID
|
|
15490
16797
|
* @param {*} [options] Override http request option.
|
|
15491
16798
|
* @throws {RequiredError}
|
|
15492
16799
|
* @memberof OrdersApi
|
|
15493
16800
|
*/
|
|
15494
|
-
public
|
|
15495
|
-
return OrdersApiFp(this.configuration).
|
|
16801
|
+
public getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16802
|
+
return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16803
|
+
}
|
|
16804
|
+
|
|
16805
|
+
/**
|
|
16806
|
+
* Get Editable Order
|
|
16807
|
+
* @summary Get Editable Order
|
|
16808
|
+
* @param {number} id Order ID
|
|
16809
|
+
* @param {*} [options] Override http request option.
|
|
16810
|
+
* @throws {RequiredError}
|
|
16811
|
+
* @memberof OrdersApi
|
|
16812
|
+
*/
|
|
16813
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16814
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15496
16815
|
}
|
|
15497
16816
|
|
|
15498
16817
|
/**
|
|
@@ -15512,6 +16831,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15512
16831
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15513
16832
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15514
16833
|
}
|
|
16834
|
+
|
|
16835
|
+
/**
|
|
16836
|
+
* Create An Order (Admin)
|
|
16837
|
+
* @summary Create An Order (Admin)
|
|
16838
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16839
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16840
|
+
* @param {*} [options] Override http request option.
|
|
16841
|
+
* @throws {RequiredError}
|
|
16842
|
+
* @memberof OrdersApi
|
|
16843
|
+
*/
|
|
16844
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16845
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16846
|
+
}
|
|
16847
|
+
|
|
16848
|
+
/**
|
|
16849
|
+
* Create An Order
|
|
16850
|
+
* @summary Create An Order
|
|
16851
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16852
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16853
|
+
* @param {*} [options] Override http request option.
|
|
16854
|
+
* @throws {RequiredError}
|
|
16855
|
+
* @memberof OrdersApi
|
|
16856
|
+
*/
|
|
16857
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16858
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16859
|
+
}
|
|
16860
|
+
|
|
16861
|
+
/**
|
|
16862
|
+
* Update An Order (Admin)
|
|
16863
|
+
* @summary Update An Order (Admin)
|
|
16864
|
+
* @param {number} id Order ID
|
|
16865
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16866
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16867
|
+
* @param {*} [options] Override http request option.
|
|
16868
|
+
* @throws {RequiredError}
|
|
16869
|
+
* @memberof OrdersApi
|
|
16870
|
+
*/
|
|
16871
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16872
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16873
|
+
}
|
|
16874
|
+
|
|
16875
|
+
/**
|
|
16876
|
+
* Update An Order
|
|
16877
|
+
* @summary Update An Order
|
|
16878
|
+
* @param {number} id Order ID
|
|
16879
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16880
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16881
|
+
* @param {*} [options] Override http request option.
|
|
16882
|
+
* @throws {RequiredError}
|
|
16883
|
+
* @memberof OrdersApi
|
|
16884
|
+
*/
|
|
16885
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16886
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16887
|
+
}
|
|
15515
16888
|
}
|
|
15516
16889
|
|
|
15517
16890
|
/**
|
|
@@ -15897,8 +17270,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15897
17270
|
* @param {*} [options] Override http request option.
|
|
15898
17271
|
* @throws {RequiredError}
|
|
15899
17272
|
*/
|
|
15900
|
-
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15901
|
-
const localVarPath = `/products/attributes`;
|
|
17273
|
+
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17274
|
+
const localVarPath = `/products/attributes`;
|
|
17275
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17276
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17277
|
+
let baseOptions;
|
|
17278
|
+
if (configuration) {
|
|
17279
|
+
baseOptions = configuration.baseOptions;
|
|
17280
|
+
}
|
|
17281
|
+
|
|
17282
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17283
|
+
const localVarHeaderParameter = {} as any;
|
|
17284
|
+
const localVarQueryParameter = {} as any;
|
|
17285
|
+
|
|
17286
|
+
|
|
17287
|
+
|
|
17288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17290
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17291
|
+
|
|
17292
|
+
return {
|
|
17293
|
+
url: toPathString(localVarUrlObj),
|
|
17294
|
+
options: localVarRequestOptions,
|
|
17295
|
+
};
|
|
17296
|
+
},
|
|
17297
|
+
/**
|
|
17298
|
+
* Get Current Stock & Pricing
|
|
17299
|
+
* @summary Get Current Stock & Pricing
|
|
17300
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
17301
|
+
* @param {*} [options] Override http request option.
|
|
17302
|
+
* @deprecated
|
|
17303
|
+
* @throws {RequiredError}
|
|
17304
|
+
*/
|
|
17305
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17306
|
+
// verify required parameter 'format' is not null or undefined
|
|
17307
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17308
|
+
const localVarPath = `/products/stock/legacy`;
|
|
15902
17309
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15903
17310
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15904
17311
|
let baseOptions;
|
|
@@ -15910,6 +17317,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15910
17317
|
const localVarHeaderParameter = {} as any;
|
|
15911
17318
|
const localVarQueryParameter = {} as any;
|
|
15912
17319
|
|
|
17320
|
+
if (format !== undefined) {
|
|
17321
|
+
localVarQueryParameter['format'] = format;
|
|
17322
|
+
}
|
|
17323
|
+
|
|
15913
17324
|
|
|
15914
17325
|
|
|
15915
17326
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15922,13 +17333,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15922
17333
|
};
|
|
15923
17334
|
},
|
|
15924
17335
|
/**
|
|
15925
|
-
* Get
|
|
15926
|
-
* @summary Get
|
|
17336
|
+
* Get Products
|
|
17337
|
+
* @summary Get Products
|
|
15927
17338
|
* @param {*} [options] Override http request option.
|
|
15928
17339
|
* @throws {RequiredError}
|
|
15929
17340
|
*/
|
|
15930
|
-
|
|
15931
|
-
const localVarPath = `/products
|
|
17341
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17342
|
+
const localVarPath = `/products`;
|
|
15932
17343
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15933
17344
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15934
17345
|
let baseOptions;
|
|
@@ -15954,15 +17365,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15954
17365
|
/**
|
|
15955
17366
|
* Get Current Stock & Pricing
|
|
15956
17367
|
* @summary Get Current Stock & Pricing
|
|
15957
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
15958
17368
|
* @param {*} [options] Override http request option.
|
|
15959
|
-
* @deprecated
|
|
15960
17369
|
* @throws {RequiredError}
|
|
15961
17370
|
*/
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
15965
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17371
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17372
|
+
const localVarPath = `/products/stock`;
|
|
15966
17373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15967
17374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15968
17375
|
let baseOptions;
|
|
@@ -15974,10 +17381,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15974
17381
|
const localVarHeaderParameter = {} as any;
|
|
15975
17382
|
const localVarQueryParameter = {} as any;
|
|
15976
17383
|
|
|
15977
|
-
|
|
15978
|
-
|
|
17384
|
+
|
|
17385
|
+
|
|
17386
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17388
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17389
|
+
|
|
17390
|
+
return {
|
|
17391
|
+
url: toPathString(localVarUrlObj),
|
|
17392
|
+
options: localVarRequestOptions,
|
|
17393
|
+
};
|
|
17394
|
+
},
|
|
17395
|
+
/**
|
|
17396
|
+
* Get 3CX Templates
|
|
17397
|
+
* @summary Get 3CX Templates
|
|
17398
|
+
* @param {*} [options] Override http request option.
|
|
17399
|
+
* @throws {RequiredError}
|
|
17400
|
+
*/
|
|
17401
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17402
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17403
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17404
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17405
|
+
let baseOptions;
|
|
17406
|
+
if (configuration) {
|
|
17407
|
+
baseOptions = configuration.baseOptions;
|
|
15979
17408
|
}
|
|
15980
17409
|
|
|
17410
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17411
|
+
const localVarHeaderParameter = {} as any;
|
|
17412
|
+
const localVarQueryParameter = {} as any;
|
|
17413
|
+
|
|
15981
17414
|
|
|
15982
17415
|
|
|
15983
17416
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15990,15 +17423,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15990
17423
|
};
|
|
15991
17424
|
},
|
|
15992
17425
|
/**
|
|
15993
|
-
*
|
|
15994
|
-
* @summary
|
|
17426
|
+
* Search Products
|
|
17427
|
+
* @summary Search Products
|
|
15995
17428
|
* @param {number} [pageSize] Number Of Results
|
|
15996
17429
|
* @param {number} [page] Page Number
|
|
15997
17430
|
* @param {string} [search] Search
|
|
15998
17431
|
* @param {*} [options] Override http request option.
|
|
15999
17432
|
* @throws {RequiredError}
|
|
16000
17433
|
*/
|
|
16001
|
-
|
|
17434
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16002
17435
|
const localVarPath = `/products/search`;
|
|
16003
17436
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16004
17437
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16035,13 +17468,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16035
17468
|
};
|
|
16036
17469
|
},
|
|
16037
17470
|
/**
|
|
16038
|
-
* Get
|
|
16039
|
-
* @summary Get
|
|
17471
|
+
* Get Product
|
|
17472
|
+
* @summary Get Product
|
|
17473
|
+
* @param {string} sku Product SKU
|
|
17474
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16040
17475
|
* @param {*} [options] Override http request option.
|
|
16041
17476
|
* @throws {RequiredError}
|
|
16042
17477
|
*/
|
|
16043
|
-
|
|
16044
|
-
|
|
17478
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17479
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17480
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17481
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17482
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17483
|
+
const localVarPath = `/products/{sku}`
|
|
17484
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16045
17485
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16046
17486
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16047
17487
|
let baseOptions;
|
|
@@ -16049,15 +17489,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16049
17489
|
baseOptions = configuration.baseOptions;
|
|
16050
17490
|
}
|
|
16051
17491
|
|
|
16052
|
-
const localVarRequestOptions = { method: '
|
|
17492
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16053
17493
|
const localVarHeaderParameter = {} as any;
|
|
16054
17494
|
const localVarQueryParameter = {} as any;
|
|
16055
17495
|
|
|
16056
17496
|
|
|
16057
17497
|
|
|
17498
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17499
|
+
|
|
16058
17500
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16059
17501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16060
17502
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17503
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16061
17504
|
|
|
16062
17505
|
return {
|
|
16063
17506
|
url: toPathString(localVarUrlObj),
|
|
@@ -16065,13 +17508,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16065
17508
|
};
|
|
16066
17509
|
},
|
|
16067
17510
|
/**
|
|
16068
|
-
* Get
|
|
16069
|
-
* @summary Get
|
|
17511
|
+
* Get Product For Customer
|
|
17512
|
+
* @summary Get Product For Customer
|
|
17513
|
+
* @param {number} customerId Customer ID
|
|
17514
|
+
* @param {string} sku Product SKU
|
|
17515
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16070
17516
|
* @param {*} [options] Override http request option.
|
|
16071
17517
|
* @throws {RequiredError}
|
|
16072
17518
|
*/
|
|
16073
|
-
|
|
16074
|
-
|
|
17519
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17520
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17521
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17522
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17523
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17524
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17525
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17526
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17527
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16075
17528
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16076
17529
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16077
17530
|
let baseOptions;
|
|
@@ -16079,15 +17532,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16079
17532
|
baseOptions = configuration.baseOptions;
|
|
16080
17533
|
}
|
|
16081
17534
|
|
|
16082
|
-
const localVarRequestOptions = { method: '
|
|
17535
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16083
17536
|
const localVarHeaderParameter = {} as any;
|
|
16084
17537
|
const localVarQueryParameter = {} as any;
|
|
16085
17538
|
|
|
17539
|
+
if (customerId !== undefined) {
|
|
17540
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17541
|
+
}
|
|
17542
|
+
|
|
16086
17543
|
|
|
16087
17544
|
|
|
17545
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17546
|
+
|
|
16088
17547
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16089
17548
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16090
17549
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17550
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16091
17551
|
|
|
16092
17552
|
return {
|
|
16093
17553
|
url: toPathString(localVarUrlObj),
|
|
@@ -16116,18 +17576,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16116
17576
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
16117
17577
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16118
17578
|
},
|
|
16119
|
-
/**
|
|
16120
|
-
* Get Customer Price Lists
|
|
16121
|
-
* @summary Get Customer Price Lists
|
|
16122
|
-
* @param {*} [options] Override http request option.
|
|
16123
|
-
* @throws {RequiredError}
|
|
16124
|
-
*/
|
|
16125
|
-
async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
|
|
16126
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
|
|
16127
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16128
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
|
|
16129
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16130
|
-
},
|
|
16131
17579
|
/**
|
|
16132
17580
|
* Get Current Stock & Pricing
|
|
16133
17581
|
* @summary Get Current Stock & Pricing
|
|
@@ -16145,14 +17593,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16145
17593
|
/**
|
|
16146
17594
|
* Get Products
|
|
16147
17595
|
* @summary Get Products
|
|
16148
|
-
* @param {number} [pageSize] Number Of Results
|
|
16149
|
-
* @param {number} [page] Page Number
|
|
16150
|
-
* @param {string} [search] Search
|
|
16151
17596
|
* @param {*} [options] Override http request option.
|
|
16152
17597
|
* @throws {RequiredError}
|
|
16153
17598
|
*/
|
|
16154
|
-
async getGetProducts(
|
|
16155
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17599
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17600
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16156
17601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16157
17602
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16158
17603
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16181,6 +17626,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16181
17626
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16182
17627
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16183
17628
|
},
|
|
17629
|
+
/**
|
|
17630
|
+
* Search Products
|
|
17631
|
+
* @summary Search Products
|
|
17632
|
+
* @param {number} [pageSize] Number Of Results
|
|
17633
|
+
* @param {number} [page] Page Number
|
|
17634
|
+
* @param {string} [search] Search
|
|
17635
|
+
* @param {*} [options] Override http request option.
|
|
17636
|
+
* @throws {RequiredError}
|
|
17637
|
+
*/
|
|
17638
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17639
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17640
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17641
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17642
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17643
|
+
},
|
|
17644
|
+
/**
|
|
17645
|
+
* Get Product
|
|
17646
|
+
* @summary Get Product
|
|
17647
|
+
* @param {string} sku Product SKU
|
|
17648
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17649
|
+
* @param {*} [options] Override http request option.
|
|
17650
|
+
* @throws {RequiredError}
|
|
17651
|
+
*/
|
|
17652
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17654
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17655
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17656
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17657
|
+
},
|
|
17658
|
+
/**
|
|
17659
|
+
* Get Product For Customer
|
|
17660
|
+
* @summary Get Product For Customer
|
|
17661
|
+
* @param {number} customerId Customer ID
|
|
17662
|
+
* @param {string} sku Product SKU
|
|
17663
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17664
|
+
* @param {*} [options] Override http request option.
|
|
17665
|
+
* @throws {RequiredError}
|
|
17666
|
+
*/
|
|
17667
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17668
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17669
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17670
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17671
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17672
|
+
},
|
|
16184
17673
|
}
|
|
16185
17674
|
};
|
|
16186
17675
|
|
|
@@ -16200,15 +17689,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16200
17689
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16201
17690
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16202
17691
|
},
|
|
16203
|
-
/**
|
|
16204
|
-
* Get Customer Price Lists
|
|
16205
|
-
* @summary Get Customer Price Lists
|
|
16206
|
-
* @param {*} [options] Override http request option.
|
|
16207
|
-
* @throws {RequiredError}
|
|
16208
|
-
*/
|
|
16209
|
-
getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
|
|
16210
|
-
return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
|
|
16211
|
-
},
|
|
16212
17692
|
/**
|
|
16213
17693
|
* Get Current Stock & Pricing
|
|
16214
17694
|
* @summary Get Current Stock & Pricing
|
|
@@ -16223,14 +17703,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16223
17703
|
/**
|
|
16224
17704
|
* Get Products
|
|
16225
17705
|
* @summary Get Products
|
|
16226
|
-
* @param {number} [pageSize] Number Of Results
|
|
16227
|
-
* @param {number} [page] Page Number
|
|
16228
|
-
* @param {string} [search] Search
|
|
16229
17706
|
* @param {*} [options] Override http request option.
|
|
16230
17707
|
* @throws {RequiredError}
|
|
16231
17708
|
*/
|
|
16232
|
-
getGetProducts(
|
|
16233
|
-
return localVarFp.getGetProducts(
|
|
17709
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17710
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16234
17711
|
},
|
|
16235
17712
|
/**
|
|
16236
17713
|
* Get Current Stock & Pricing
|
|
@@ -16250,6 +17727,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16250
17727
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16251
17728
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16252
17729
|
},
|
|
17730
|
+
/**
|
|
17731
|
+
* Search Products
|
|
17732
|
+
* @summary Search Products
|
|
17733
|
+
* @param {number} [pageSize] Number Of Results
|
|
17734
|
+
* @param {number} [page] Page Number
|
|
17735
|
+
* @param {string} [search] Search
|
|
17736
|
+
* @param {*} [options] Override http request option.
|
|
17737
|
+
* @throws {RequiredError}
|
|
17738
|
+
*/
|
|
17739
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17740
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17741
|
+
},
|
|
17742
|
+
/**
|
|
17743
|
+
* Get Product
|
|
17744
|
+
* @summary Get Product
|
|
17745
|
+
* @param {string} sku Product SKU
|
|
17746
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17747
|
+
* @param {*} [options] Override http request option.
|
|
17748
|
+
* @throws {RequiredError}
|
|
17749
|
+
*/
|
|
17750
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17751
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17752
|
+
},
|
|
17753
|
+
/**
|
|
17754
|
+
* Get Product For Customer
|
|
17755
|
+
* @summary Get Product For Customer
|
|
17756
|
+
* @param {number} customerId Customer ID
|
|
17757
|
+
* @param {string} sku Product SKU
|
|
17758
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17759
|
+
* @param {*} [options] Override http request option.
|
|
17760
|
+
* @throws {RequiredError}
|
|
17761
|
+
*/
|
|
17762
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17763
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17764
|
+
},
|
|
16253
17765
|
};
|
|
16254
17766
|
};
|
|
16255
17767
|
|
|
@@ -16271,17 +17783,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16271
17783
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16272
17784
|
}
|
|
16273
17785
|
|
|
16274
|
-
/**
|
|
16275
|
-
* Get Customer Price Lists
|
|
16276
|
-
* @summary Get Customer Price Lists
|
|
16277
|
-
* @param {*} [options] Override http request option.
|
|
16278
|
-
* @throws {RequiredError}
|
|
16279
|
-
* @memberof ProductsApi
|
|
16280
|
-
*/
|
|
16281
|
-
public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
|
|
16282
|
-
return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
|
|
16283
|
-
}
|
|
16284
|
-
|
|
16285
17786
|
/**
|
|
16286
17787
|
* Get Current Stock & Pricing
|
|
16287
17788
|
* @summary Get Current Stock & Pricing
|
|
@@ -16298,15 +17799,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16298
17799
|
/**
|
|
16299
17800
|
* Get Products
|
|
16300
17801
|
* @summary Get Products
|
|
16301
|
-
* @param {number} [pageSize] Number Of Results
|
|
16302
|
-
* @param {number} [page] Page Number
|
|
16303
|
-
* @param {string} [search] Search
|
|
16304
17802
|
* @param {*} [options] Override http request option.
|
|
16305
17803
|
* @throws {RequiredError}
|
|
16306
17804
|
* @memberof ProductsApi
|
|
16307
17805
|
*/
|
|
16308
|
-
public getGetProducts(
|
|
16309
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
17806
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
17807
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16310
17808
|
}
|
|
16311
17809
|
|
|
16312
17810
|
/**
|
|
@@ -16330,6 +17828,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16330
17828
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16331
17829
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16332
17830
|
}
|
|
17831
|
+
|
|
17832
|
+
/**
|
|
17833
|
+
* Search Products
|
|
17834
|
+
* @summary Search Products
|
|
17835
|
+
* @param {number} [pageSize] Number Of Results
|
|
17836
|
+
* @param {number} [page] Page Number
|
|
17837
|
+
* @param {string} [search] Search
|
|
17838
|
+
* @param {*} [options] Override http request option.
|
|
17839
|
+
* @throws {RequiredError}
|
|
17840
|
+
* @memberof ProductsApi
|
|
17841
|
+
*/
|
|
17842
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
17843
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
17844
|
+
}
|
|
17845
|
+
|
|
17846
|
+
/**
|
|
17847
|
+
* Get Product
|
|
17848
|
+
* @summary Get Product
|
|
17849
|
+
* @param {string} sku Product SKU
|
|
17850
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17851
|
+
* @param {*} [options] Override http request option.
|
|
17852
|
+
* @throws {RequiredError}
|
|
17853
|
+
* @memberof ProductsApi
|
|
17854
|
+
*/
|
|
17855
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17856
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17857
|
+
}
|
|
17858
|
+
|
|
17859
|
+
/**
|
|
17860
|
+
* Get Product For Customer
|
|
17861
|
+
* @summary Get Product For Customer
|
|
17862
|
+
* @param {number} customerId Customer ID
|
|
17863
|
+
* @param {string} sku Product SKU
|
|
17864
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17865
|
+
* @param {*} [options] Override http request option.
|
|
17866
|
+
* @throws {RequiredError}
|
|
17867
|
+
* @memberof ProductsApi
|
|
17868
|
+
*/
|
|
17869
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17870
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17871
|
+
}
|
|
16333
17872
|
}
|
|
16334
17873
|
|
|
16335
17874
|
/**
|
|
@@ -16670,7 +18209,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16670
18209
|
* @param {*} [options] Override http request option.
|
|
16671
18210
|
* @throws {RequiredError}
|
|
16672
18211
|
*/
|
|
16673
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
18212
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16674
18213
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16675
18214
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16676
18215
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16683,7 +18222,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16683
18222
|
* @param {*} [options] Override http request option.
|
|
16684
18223
|
* @throws {RequiredError}
|
|
16685
18224
|
*/
|
|
16686
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18225
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16687
18226
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16688
18227
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16689
18228
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16762,7 +18301,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16762
18301
|
* @param {*} [options] Override http request option.
|
|
16763
18302
|
* @throws {RequiredError}
|
|
16764
18303
|
*/
|
|
16765
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18304
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16766
18305
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16767
18306
|
},
|
|
16768
18307
|
/**
|
|
@@ -16772,7 +18311,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16772
18311
|
* @param {*} [options] Override http request option.
|
|
16773
18312
|
* @throws {RequiredError}
|
|
16774
18313
|
*/
|
|
16775
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18314
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16776
18315
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16777
18316
|
},
|
|
16778
18317
|
/**
|
|
@@ -18673,6 +20212,114 @@ export class SMSApi extends BaseAPI {
|
|
|
18673
20212
|
|
|
18674
20213
|
|
|
18675
20214
|
|
|
20215
|
+
/**
|
|
20216
|
+
* ShippingApi - axios parameter creator
|
|
20217
|
+
* @export
|
|
20218
|
+
*/
|
|
20219
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20220
|
+
return {
|
|
20221
|
+
/**
|
|
20222
|
+
* Get Shipping Services
|
|
20223
|
+
* @summary Get Shipping Services
|
|
20224
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20225
|
+
* @param {*} [options] Override http request option.
|
|
20226
|
+
* @throws {RequiredError}
|
|
20227
|
+
*/
|
|
20228
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20229
|
+
const localVarPath = `/shipping/services`;
|
|
20230
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20231
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20232
|
+
let baseOptions;
|
|
20233
|
+
if (configuration) {
|
|
20234
|
+
baseOptions = configuration.baseOptions;
|
|
20235
|
+
}
|
|
20236
|
+
|
|
20237
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20238
|
+
const localVarHeaderParameter = {} as any;
|
|
20239
|
+
const localVarQueryParameter = {} as any;
|
|
20240
|
+
|
|
20241
|
+
|
|
20242
|
+
|
|
20243
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20244
|
+
|
|
20245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20248
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20249
|
+
|
|
20250
|
+
return {
|
|
20251
|
+
url: toPathString(localVarUrlObj),
|
|
20252
|
+
options: localVarRequestOptions,
|
|
20253
|
+
};
|
|
20254
|
+
},
|
|
20255
|
+
}
|
|
20256
|
+
};
|
|
20257
|
+
|
|
20258
|
+
/**
|
|
20259
|
+
* ShippingApi - functional programming interface
|
|
20260
|
+
* @export
|
|
20261
|
+
*/
|
|
20262
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20263
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20264
|
+
return {
|
|
20265
|
+
/**
|
|
20266
|
+
* Get Shipping Services
|
|
20267
|
+
* @summary Get Shipping Services
|
|
20268
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20269
|
+
* @param {*} [options] Override http request option.
|
|
20270
|
+
* @throws {RequiredError}
|
|
20271
|
+
*/
|
|
20272
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20273
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20274
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20275
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20276
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20277
|
+
},
|
|
20278
|
+
}
|
|
20279
|
+
};
|
|
20280
|
+
|
|
20281
|
+
/**
|
|
20282
|
+
* ShippingApi - factory interface
|
|
20283
|
+
* @export
|
|
20284
|
+
*/
|
|
20285
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20286
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20287
|
+
return {
|
|
20288
|
+
/**
|
|
20289
|
+
* Get Shipping Services
|
|
20290
|
+
* @summary Get Shipping Services
|
|
20291
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20292
|
+
* @param {*} [options] Override http request option.
|
|
20293
|
+
* @throws {RequiredError}
|
|
20294
|
+
*/
|
|
20295
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20296
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20297
|
+
},
|
|
20298
|
+
};
|
|
20299
|
+
};
|
|
20300
|
+
|
|
20301
|
+
/**
|
|
20302
|
+
* ShippingApi - object-oriented interface
|
|
20303
|
+
* @export
|
|
20304
|
+
* @class ShippingApi
|
|
20305
|
+
* @extends {BaseAPI}
|
|
20306
|
+
*/
|
|
20307
|
+
export class ShippingApi extends BaseAPI {
|
|
20308
|
+
/**
|
|
20309
|
+
* Get Shipping Services
|
|
20310
|
+
* @summary Get Shipping Services
|
|
20311
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20312
|
+
* @param {*} [options] Override http request option.
|
|
20313
|
+
* @throws {RequiredError}
|
|
20314
|
+
* @memberof ShippingApi
|
|
20315
|
+
*/
|
|
20316
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20317
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20318
|
+
}
|
|
20319
|
+
}
|
|
20320
|
+
|
|
20321
|
+
|
|
20322
|
+
|
|
18676
20323
|
/**
|
|
18677
20324
|
* StockManagementApi - axios parameter creator
|
|
18678
20325
|
* @export
|
|
@@ -19759,7 +21406,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19759
21406
|
* @param {*} [options] Override http request option.
|
|
19760
21407
|
* @throws {RequiredError}
|
|
19761
21408
|
*/
|
|
19762
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21409
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19763
21410
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19764
21411
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19765
21412
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20062,7 +21709,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
20062
21709
|
* @param {*} [options] Override http request option.
|
|
20063
21710
|
* @throws {RequiredError}
|
|
20064
21711
|
*/
|
|
20065
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
21712
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
20066
21713
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
20067
21714
|
},
|
|
20068
21715
|
/**
|