yellowgrid-api-ts 3.1.12 → 3.1.14-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 +217 -198
- package/README.md +36 -7
- package/api.ts +1978 -242
- 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 +1478 -159
- package/dist/api.js +1139 -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 +43 -0
- package/docs/AdminOrderRequestDTO.md +45 -0
- package/docs/AdminUserModel.md +29 -0
- package/docs/BasicItemDTO.md +23 -0
- package/docs/BasicProductDTO.md +23 -0
- package/docs/Class3CXApi.md +0 -55
- package/docs/ClientDetailsModel.md +0 -2
- package/docs/CourierPriceEntity.md +39 -0
- package/docs/CustomerItemRequestDTO.md +37 -0
- package/docs/CustomerOrderRequestDTO.md +33 -0
- package/docs/DetailedItemRequestDTO.md +43 -0
- package/docs/DetailedOrderRequestDTO.md +33 -0
- package/docs/ItemDTO.md +12 -4
- package/docs/ItemDiscountEntity.md +33 -0
- package/docs/ItemEntity.md +4 -2
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +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,139 @@ export interface AddressRequestModel {
|
|
|
535
657
|
*/
|
|
536
658
|
'addressPostcode'?: string;
|
|
537
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Admin Order Request
|
|
662
|
+
* @export
|
|
663
|
+
* @interface AdminOrderRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
export interface AdminOrderRequestDTO {
|
|
666
|
+
/**
|
|
667
|
+
* Order Reference
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof AdminOrderRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'orderReference'?: string | null;
|
|
672
|
+
/**
|
|
673
|
+
* Items
|
|
674
|
+
* @type {Array<DetailedItemRequestDTO>}
|
|
675
|
+
* @memberof AdminOrderRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'items'?: Array<DetailedItemRequestDTO>;
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @type {ShippingServiceDTO}
|
|
681
|
+
* @memberof AdminOrderRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'shippingService'?: ShippingServiceDTO;
|
|
684
|
+
/**
|
|
685
|
+
* Provisioning URL
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof AdminOrderRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'provisioningUrl'?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @type {AddressModel}
|
|
693
|
+
* @memberof AdminOrderRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'shippingAddress'?: AddressModel;
|
|
696
|
+
/**
|
|
697
|
+
* Part Ship Order
|
|
698
|
+
* @type {boolean}
|
|
699
|
+
* @memberof AdminOrderRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'partShip'?: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* Quote
|
|
704
|
+
* @type {boolean}
|
|
705
|
+
* @memberof AdminOrderRequestDTO
|
|
706
|
+
*/
|
|
707
|
+
'quote'?: boolean;
|
|
708
|
+
/**
|
|
709
|
+
* Customer ID
|
|
710
|
+
* @type {number}
|
|
711
|
+
* @memberof AdminOrderRequestDTO
|
|
712
|
+
*/
|
|
713
|
+
'customerId'?: number;
|
|
714
|
+
/**
|
|
715
|
+
* Contact
|
|
716
|
+
* @type {string}
|
|
717
|
+
* @memberof AdminOrderRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'contact'?: string;
|
|
720
|
+
/**
|
|
721
|
+
* Ignore Customer On Hold
|
|
722
|
+
* @type {boolean}
|
|
723
|
+
* @memberof AdminOrderRequestDTO
|
|
724
|
+
*/
|
|
725
|
+
'ignoreOnHold'?: boolean;
|
|
726
|
+
/**
|
|
727
|
+
* Ignore Customer Credit Limit
|
|
728
|
+
* @type {boolean}
|
|
729
|
+
* @memberof AdminOrderRequestDTO
|
|
730
|
+
*/
|
|
731
|
+
'ignoreCreditLimit'?: boolean;
|
|
732
|
+
/**
|
|
733
|
+
* Include NFR Promos
|
|
734
|
+
* @type {boolean}
|
|
735
|
+
* @memberof AdminOrderRequestDTO
|
|
736
|
+
*/
|
|
737
|
+
'includeNfrPromos'?: boolean;
|
|
738
|
+
/**
|
|
739
|
+
* Carriage Charge
|
|
740
|
+
* @type {number}
|
|
741
|
+
* @memberof AdminOrderRequestDTO
|
|
742
|
+
*/
|
|
743
|
+
'carriageCharge'?: number;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Admin User
|
|
747
|
+
* @export
|
|
748
|
+
* @interface AdminUserModel
|
|
749
|
+
*/
|
|
750
|
+
export interface AdminUserModel {
|
|
751
|
+
/**
|
|
752
|
+
* First Name
|
|
753
|
+
* @type {string}
|
|
754
|
+
* @memberof AdminUserModel
|
|
755
|
+
*/
|
|
756
|
+
'firstName'?: string;
|
|
757
|
+
/**
|
|
758
|
+
* Last Name
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof AdminUserModel
|
|
761
|
+
*/
|
|
762
|
+
'lastName'?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Avatar
|
|
765
|
+
* @type {string}
|
|
766
|
+
* @memberof AdminUserModel
|
|
767
|
+
*/
|
|
768
|
+
'avatar'?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
* Role
|
|
771
|
+
* @type {number}
|
|
772
|
+
* @memberof AdminUserModel
|
|
773
|
+
*/
|
|
774
|
+
'role'?: AdminUserModelRoleEnum;
|
|
775
|
+
/**
|
|
776
|
+
* Email
|
|
777
|
+
* @type {string}
|
|
778
|
+
* @memberof AdminUserModel
|
|
779
|
+
*/
|
|
780
|
+
'email'?: string | null;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export const AdminUserModelRoleEnum = {
|
|
784
|
+
NUMBER_0: 0,
|
|
785
|
+
NUMBER_1: 1,
|
|
786
|
+
NUMBER_2: 2,
|
|
787
|
+
NUMBER_3: 3,
|
|
788
|
+
NUMBER_4: 4
|
|
789
|
+
} as const;
|
|
790
|
+
|
|
791
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
792
|
+
|
|
538
793
|
/**
|
|
539
794
|
* Agent Hours Graph
|
|
540
795
|
* @export
|
|
@@ -764,6 +1019,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1019
|
*/
|
|
765
1020
|
'redirect_uri'?: string | null;
|
|
766
1021
|
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Basic Order Item
|
|
1024
|
+
* @export
|
|
1025
|
+
* @interface BasicItemDTO
|
|
1026
|
+
*/
|
|
1027
|
+
export interface BasicItemDTO {
|
|
1028
|
+
/**
|
|
1029
|
+
* SKU
|
|
1030
|
+
* @type {string}
|
|
1031
|
+
* @memberof BasicItemDTO
|
|
1032
|
+
*/
|
|
1033
|
+
'sku'?: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* Quantity
|
|
1036
|
+
* @type {number}
|
|
1037
|
+
* @memberof BasicItemDTO
|
|
1038
|
+
*/
|
|
1039
|
+
'quantity'?: number;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Basic Product
|
|
1043
|
+
* @export
|
|
1044
|
+
* @interface BasicProductDTO
|
|
1045
|
+
*/
|
|
1046
|
+
export interface BasicProductDTO {
|
|
1047
|
+
/**
|
|
1048
|
+
* SKU
|
|
1049
|
+
* @type {string}
|
|
1050
|
+
* @memberof BasicProductDTO
|
|
1051
|
+
*/
|
|
1052
|
+
'sku'?: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* Title
|
|
1055
|
+
* @type {string}
|
|
1056
|
+
* @memberof BasicProductDTO
|
|
1057
|
+
*/
|
|
1058
|
+
'title'?: string;
|
|
1059
|
+
}
|
|
767
1060
|
/**
|
|
768
1061
|
* BatchesEntity
|
|
769
1062
|
* @export
|
|
@@ -958,12 +1251,6 @@ export interface ClientDetailsModel {
|
|
|
958
1251
|
* @memberof ClientDetailsModel
|
|
959
1252
|
*/
|
|
960
1253
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1254
|
}
|
|
968
1255
|
/**
|
|
969
1256
|
* OAuth client details
|
|
@@ -1125,6 +1412,73 @@ export interface ConversationModel {
|
|
|
1125
1412
|
*/
|
|
1126
1413
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* CourierPricesEntity
|
|
1417
|
+
* @export
|
|
1418
|
+
* @interface CourierPriceEntity
|
|
1419
|
+
*/
|
|
1420
|
+
export interface CourierPriceEntity {
|
|
1421
|
+
/**
|
|
1422
|
+
* id
|
|
1423
|
+
* @type {number}
|
|
1424
|
+
* @memberof CourierPriceEntity
|
|
1425
|
+
*/
|
|
1426
|
+
'id'?: number;
|
|
1427
|
+
/**
|
|
1428
|
+
* courier
|
|
1429
|
+
* @type {string}
|
|
1430
|
+
* @memberof CourierPriceEntity
|
|
1431
|
+
*/
|
|
1432
|
+
'courier'?: string;
|
|
1433
|
+
/**
|
|
1434
|
+
* destinationIso
|
|
1435
|
+
* @type {string}
|
|
1436
|
+
* @memberof CourierPriceEntity
|
|
1437
|
+
*/
|
|
1438
|
+
'destinationIso'?: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* serviceDescription
|
|
1441
|
+
* @type {string}
|
|
1442
|
+
* @memberof CourierPriceEntity
|
|
1443
|
+
*/
|
|
1444
|
+
'serviceDescription'?: string;
|
|
1445
|
+
/**
|
|
1446
|
+
* flatRate
|
|
1447
|
+
* @type {number}
|
|
1448
|
+
* @memberof CourierPriceEntity
|
|
1449
|
+
*/
|
|
1450
|
+
'flatRate'?: number;
|
|
1451
|
+
/**
|
|
1452
|
+
* initialBox
|
|
1453
|
+
* @type {number}
|
|
1454
|
+
* @memberof CourierPriceEntity
|
|
1455
|
+
*/
|
|
1456
|
+
'initialBox'?: number;
|
|
1457
|
+
/**
|
|
1458
|
+
* initialKg
|
|
1459
|
+
* @type {number}
|
|
1460
|
+
* @memberof CourierPriceEntity
|
|
1461
|
+
*/
|
|
1462
|
+
'initialKg'?: number;
|
|
1463
|
+
/**
|
|
1464
|
+
* perBox
|
|
1465
|
+
* @type {number}
|
|
1466
|
+
* @memberof CourierPriceEntity
|
|
1467
|
+
*/
|
|
1468
|
+
'perBox'?: number;
|
|
1469
|
+
/**
|
|
1470
|
+
* perKg
|
|
1471
|
+
* @type {number}
|
|
1472
|
+
* @memberof CourierPriceEntity
|
|
1473
|
+
*/
|
|
1474
|
+
'perKg'?: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* maxKg
|
|
1477
|
+
* @type {number}
|
|
1478
|
+
* @memberof CourierPriceEntity
|
|
1479
|
+
*/
|
|
1480
|
+
'maxKg'?: number;
|
|
1481
|
+
}
|
|
1128
1482
|
/**
|
|
1129
1483
|
* Credit Account
|
|
1130
1484
|
* @export
|
|
@@ -1357,30 +1711,140 @@ export interface CustomerInformationModel {
|
|
|
1357
1711
|
'contactLastName'?: string;
|
|
1358
1712
|
}
|
|
1359
1713
|
/**
|
|
1360
|
-
*
|
|
1714
|
+
* Order Item Request
|
|
1361
1715
|
* @export
|
|
1362
|
-
* @interface
|
|
1716
|
+
* @interface CustomerItemRequestDTO
|
|
1363
1717
|
*/
|
|
1364
|
-
export interface
|
|
1718
|
+
export interface CustomerItemRequestDTO {
|
|
1365
1719
|
/**
|
|
1366
|
-
*
|
|
1720
|
+
* SKU
|
|
1721
|
+
* @type {string}
|
|
1722
|
+
* @memberof CustomerItemRequestDTO
|
|
1723
|
+
*/
|
|
1724
|
+
'sku'?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Quantity
|
|
1367
1727
|
* @type {number}
|
|
1368
|
-
* @memberof
|
|
1728
|
+
* @memberof CustomerItemRequestDTO
|
|
1369
1729
|
*/
|
|
1370
|
-
'
|
|
1730
|
+
'quantity'?: number;
|
|
1371
1731
|
/**
|
|
1372
|
-
*
|
|
1373
|
-
* @type {
|
|
1374
|
-
* @memberof
|
|
1732
|
+
* ID
|
|
1733
|
+
* @type {number}
|
|
1734
|
+
* @memberof CustomerItemRequestDTO
|
|
1375
1735
|
*/
|
|
1376
|
-
'
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1736
|
+
'id'?: number | null;
|
|
1737
|
+
/**
|
|
1738
|
+
* 3CX Licence Key
|
|
1739
|
+
* @type {string}
|
|
1740
|
+
* @memberof CustomerItemRequestDTO
|
|
1741
|
+
*/
|
|
1742
|
+
'licenceKey'?: string | null;
|
|
1743
|
+
/**
|
|
1744
|
+
* 3CX Hosting
|
|
1745
|
+
* @type {boolean}
|
|
1746
|
+
* @memberof CustomerItemRequestDTO
|
|
1747
|
+
*/
|
|
1748
|
+
'hosting'?: boolean | null;
|
|
1749
|
+
/**
|
|
1750
|
+
* Date Time
|
|
1751
|
+
* @type {string}
|
|
1752
|
+
* @memberof CustomerItemRequestDTO
|
|
1753
|
+
*/
|
|
1754
|
+
'processDate'?: string;
|
|
1755
|
+
/**
|
|
1756
|
+
* 3CX Sales Code
|
|
1757
|
+
* @type {string}
|
|
1758
|
+
* @memberof CustomerItemRequestDTO
|
|
1759
|
+
*/
|
|
1760
|
+
'tcxSalesCode'?: string | null;
|
|
1761
|
+
/**
|
|
1762
|
+
* SBCS
|
|
1763
|
+
* @type {Array<TcxSbcDTO>}
|
|
1764
|
+
* @memberof CustomerItemRequestDTO
|
|
1765
|
+
*/
|
|
1766
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Read Only (Cannot be edited)
|
|
1769
|
+
* @type {boolean}
|
|
1770
|
+
* @memberof CustomerItemRequestDTO
|
|
1771
|
+
*/
|
|
1772
|
+
'readOnly'?: boolean;
|
|
1773
|
+
}
|
|
1774
|
+
/**
|
|
1775
|
+
* Order Request
|
|
1776
|
+
* @export
|
|
1777
|
+
* @interface CustomerOrderRequestDTO
|
|
1778
|
+
*/
|
|
1779
|
+
export interface CustomerOrderRequestDTO {
|
|
1780
|
+
/**
|
|
1781
|
+
* Order Reference
|
|
1782
|
+
* @type {string}
|
|
1783
|
+
* @memberof CustomerOrderRequestDTO
|
|
1784
|
+
*/
|
|
1785
|
+
'orderReference'?: string | null;
|
|
1786
|
+
/**
|
|
1787
|
+
* Items
|
|
1788
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1789
|
+
* @memberof CustomerOrderRequestDTO
|
|
1790
|
+
*/
|
|
1791
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1792
|
+
/**
|
|
1793
|
+
*
|
|
1794
|
+
* @type {ShippingServiceDTO}
|
|
1795
|
+
* @memberof CustomerOrderRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1798
|
+
/**
|
|
1799
|
+
* Provisioning URL
|
|
1800
|
+
* @type {string}
|
|
1801
|
+
* @memberof CustomerOrderRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'provisioningUrl'?: string | null;
|
|
1804
|
+
/**
|
|
1805
|
+
*
|
|
1806
|
+
* @type {AddressModel}
|
|
1807
|
+
* @memberof CustomerOrderRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'shippingAddress'?: AddressModel;
|
|
1810
|
+
/**
|
|
1811
|
+
* Part Ship Order
|
|
1812
|
+
* @type {boolean}
|
|
1813
|
+
* @memberof CustomerOrderRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'partShip'?: boolean;
|
|
1816
|
+
/**
|
|
1817
|
+
* Quote
|
|
1818
|
+
* @type {boolean}
|
|
1819
|
+
* @memberof CustomerOrderRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'quote'?: boolean;
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* Customer Price List
|
|
1825
|
+
* @export
|
|
1826
|
+
* @interface CustomerPriceListEnum
|
|
1827
|
+
*/
|
|
1828
|
+
export interface CustomerPriceListEnum {
|
|
1829
|
+
/**
|
|
1830
|
+
* Price List ID
|
|
1831
|
+
* @type {number}
|
|
1832
|
+
* @memberof CustomerPriceListEnum
|
|
1833
|
+
*/
|
|
1834
|
+
'id'?: number;
|
|
1835
|
+
/**
|
|
1836
|
+
* Price List Name
|
|
1837
|
+
* @type {string}
|
|
1838
|
+
* @memberof CustomerPriceListEnum
|
|
1839
|
+
*/
|
|
1840
|
+
'name'?: string;
|
|
1841
|
+
}
|
|
1842
|
+
/**
|
|
1843
|
+
* Customer Summary Report
|
|
1844
|
+
* @export
|
|
1845
|
+
* @interface CustomerSummaryReportDTO
|
|
1846
|
+
*/
|
|
1847
|
+
export interface CustomerSummaryReportDTO {
|
|
1384
1848
|
/**
|
|
1385
1849
|
* Company Name
|
|
1386
1850
|
* @type {string}
|
|
@@ -1456,6 +1920,134 @@ export interface DdiRangesRequestModel {
|
|
|
1456
1920
|
*/
|
|
1457
1921
|
'ranges'?: Array<DdiRangeRequestModel>;
|
|
1458
1922
|
}
|
|
1923
|
+
/**
|
|
1924
|
+
* Detailed Order Item Request
|
|
1925
|
+
* @export
|
|
1926
|
+
* @interface DetailedItemRequestDTO
|
|
1927
|
+
*/
|
|
1928
|
+
export interface DetailedItemRequestDTO {
|
|
1929
|
+
/**
|
|
1930
|
+
* SKU
|
|
1931
|
+
* @type {string}
|
|
1932
|
+
* @memberof DetailedItemRequestDTO
|
|
1933
|
+
*/
|
|
1934
|
+
'sku'?: string;
|
|
1935
|
+
/**
|
|
1936
|
+
* Quantity
|
|
1937
|
+
* @type {number}
|
|
1938
|
+
* @memberof DetailedItemRequestDTO
|
|
1939
|
+
*/
|
|
1940
|
+
'quantity'?: number;
|
|
1941
|
+
/**
|
|
1942
|
+
* ID
|
|
1943
|
+
* @type {number}
|
|
1944
|
+
* @memberof DetailedItemRequestDTO
|
|
1945
|
+
*/
|
|
1946
|
+
'id'?: number | null;
|
|
1947
|
+
/**
|
|
1948
|
+
* 3CX Licence Key
|
|
1949
|
+
* @type {string}
|
|
1950
|
+
* @memberof DetailedItemRequestDTO
|
|
1951
|
+
*/
|
|
1952
|
+
'licenceKey'?: string | null;
|
|
1953
|
+
/**
|
|
1954
|
+
* 3CX Hosting
|
|
1955
|
+
* @type {boolean}
|
|
1956
|
+
* @memberof DetailedItemRequestDTO
|
|
1957
|
+
*/
|
|
1958
|
+
'hosting'?: boolean | null;
|
|
1959
|
+
/**
|
|
1960
|
+
* Date Time
|
|
1961
|
+
* @type {string}
|
|
1962
|
+
* @memberof DetailedItemRequestDTO
|
|
1963
|
+
*/
|
|
1964
|
+
'processDate'?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* 3CX Sales Code
|
|
1967
|
+
* @type {string}
|
|
1968
|
+
* @memberof DetailedItemRequestDTO
|
|
1969
|
+
*/
|
|
1970
|
+
'tcxSalesCode'?: string | null;
|
|
1971
|
+
/**
|
|
1972
|
+
* SBCS
|
|
1973
|
+
* @type {Array<TcxSbcDTO>}
|
|
1974
|
+
* @memberof DetailedItemRequestDTO
|
|
1975
|
+
*/
|
|
1976
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1977
|
+
/**
|
|
1978
|
+
* Read Only (Cannot be edited)
|
|
1979
|
+
* @type {boolean}
|
|
1980
|
+
* @memberof DetailedItemRequestDTO
|
|
1981
|
+
*/
|
|
1982
|
+
'readOnly'?: boolean;
|
|
1983
|
+
/**
|
|
1984
|
+
* Title
|
|
1985
|
+
* @type {string}
|
|
1986
|
+
* @memberof DetailedItemRequestDTO
|
|
1987
|
+
*/
|
|
1988
|
+
'title'?: string | null;
|
|
1989
|
+
/**
|
|
1990
|
+
* Price (£)
|
|
1991
|
+
* @type {number}
|
|
1992
|
+
* @memberof DetailedItemRequestDTO
|
|
1993
|
+
*/
|
|
1994
|
+
'itemPrice'?: number | null;
|
|
1995
|
+
/**
|
|
1996
|
+
* Additional Discount
|
|
1997
|
+
* @type {number}
|
|
1998
|
+
* @memberof DetailedItemRequestDTO
|
|
1999
|
+
*/
|
|
2000
|
+
'additionalDiscount'?: number | null;
|
|
2001
|
+
}
|
|
2002
|
+
/**
|
|
2003
|
+
* Detailed Order Request
|
|
2004
|
+
* @export
|
|
2005
|
+
* @interface DetailedOrderRequestDTO
|
|
2006
|
+
*/
|
|
2007
|
+
export interface DetailedOrderRequestDTO {
|
|
2008
|
+
/**
|
|
2009
|
+
* Order Reference
|
|
2010
|
+
* @type {string}
|
|
2011
|
+
* @memberof DetailedOrderRequestDTO
|
|
2012
|
+
*/
|
|
2013
|
+
'orderReference'?: string | null;
|
|
2014
|
+
/**
|
|
2015
|
+
* Items
|
|
2016
|
+
* @type {Array<DetailedItemRequestDTO>}
|
|
2017
|
+
* @memberof DetailedOrderRequestDTO
|
|
2018
|
+
*/
|
|
2019
|
+
'items'?: Array<DetailedItemRequestDTO>;
|
|
2020
|
+
/**
|
|
2021
|
+
*
|
|
2022
|
+
* @type {ShippingServiceDTO}
|
|
2023
|
+
* @memberof DetailedOrderRequestDTO
|
|
2024
|
+
*/
|
|
2025
|
+
'shippingService'?: ShippingServiceDTO;
|
|
2026
|
+
/**
|
|
2027
|
+
* Provisioning URL
|
|
2028
|
+
* @type {string}
|
|
2029
|
+
* @memberof DetailedOrderRequestDTO
|
|
2030
|
+
*/
|
|
2031
|
+
'provisioningUrl'?: string | null;
|
|
2032
|
+
/**
|
|
2033
|
+
*
|
|
2034
|
+
* @type {AddressModel}
|
|
2035
|
+
* @memberof DetailedOrderRequestDTO
|
|
2036
|
+
*/
|
|
2037
|
+
'shippingAddress'?: AddressModel;
|
|
2038
|
+
/**
|
|
2039
|
+
* Part Ship Order
|
|
2040
|
+
* @type {boolean}
|
|
2041
|
+
* @memberof DetailedOrderRequestDTO
|
|
2042
|
+
*/
|
|
2043
|
+
'partShip'?: boolean;
|
|
2044
|
+
/**
|
|
2045
|
+
* Quote
|
|
2046
|
+
* @type {boolean}
|
|
2047
|
+
* @memberof DetailedOrderRequestDTO
|
|
2048
|
+
*/
|
|
2049
|
+
'quote'?: boolean;
|
|
2050
|
+
}
|
|
1459
2051
|
/**
|
|
1460
2052
|
* Divert Request
|
|
1461
2053
|
* @export
|
|
@@ -1865,19 +2457,6 @@ export interface GenericFileModel {
|
|
|
1865
2457
|
*/
|
|
1866
2458
|
'type'?: string;
|
|
1867
2459
|
}
|
|
1868
|
-
/**
|
|
1869
|
-
*
|
|
1870
|
-
* @export
|
|
1871
|
-
* @interface GetGetPasswordHash200Response
|
|
1872
|
-
*/
|
|
1873
|
-
export interface GetGetPasswordHash200Response {
|
|
1874
|
-
/**
|
|
1875
|
-
*
|
|
1876
|
-
* @type {string}
|
|
1877
|
-
* @memberof GetGetPasswordHash200Response
|
|
1878
|
-
*/
|
|
1879
|
-
'hash'?: string;
|
|
1880
|
-
}
|
|
1881
2460
|
/**
|
|
1882
2461
|
*
|
|
1883
2462
|
* @export
|
|
@@ -2479,35 +3058,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2479
3058
|
*/
|
|
2480
3059
|
export interface ItemDTO {
|
|
2481
3060
|
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @type {
|
|
3061
|
+
* SKU
|
|
3062
|
+
* @type {string}
|
|
2484
3063
|
* @memberof ItemDTO
|
|
2485
3064
|
*/
|
|
2486
|
-
'
|
|
3065
|
+
'sku'?: string;
|
|
2487
3066
|
/**
|
|
2488
|
-
*
|
|
3067
|
+
* Quantity
|
|
2489
3068
|
* @type {number}
|
|
2490
3069
|
* @memberof ItemDTO
|
|
2491
3070
|
*/
|
|
2492
|
-
'
|
|
3071
|
+
'quantity'?: number;
|
|
2493
3072
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @type {
|
|
3073
|
+
* ID
|
|
3074
|
+
* @type {number}
|
|
2496
3075
|
* @memberof ItemDTO
|
|
2497
3076
|
*/
|
|
2498
|
-
'
|
|
3077
|
+
'id'?: number | null;
|
|
2499
3078
|
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {
|
|
3079
|
+
* Order ID
|
|
3080
|
+
* @type {number}
|
|
2502
3081
|
* @memberof ItemDTO
|
|
2503
3082
|
*/
|
|
2504
|
-
'
|
|
3083
|
+
'orderId'?: number | null;
|
|
2505
3084
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
* @type {
|
|
3085
|
+
* Title
|
|
3086
|
+
* @type {string}
|
|
2508
3087
|
* @memberof ItemDTO
|
|
2509
3088
|
*/
|
|
2510
|
-
'
|
|
3089
|
+
'title'?: string;
|
|
2511
3090
|
/**
|
|
2512
3091
|
* Price
|
|
2513
3092
|
* @type {number}
|
|
@@ -2532,6 +3111,12 @@ export interface ItemDTO {
|
|
|
2532
3111
|
* @memberof ItemDTO
|
|
2533
3112
|
*/
|
|
2534
3113
|
'processDate'?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* 3CX Hosting
|
|
3116
|
+
* @type {boolean}
|
|
3117
|
+
* @memberof ItemDTO
|
|
3118
|
+
*/
|
|
3119
|
+
'hosting'?: boolean | null;
|
|
2535
3120
|
/**
|
|
2536
3121
|
* Promo Item
|
|
2537
3122
|
* @type {boolean}
|
|
@@ -2543,8 +3128,84 @@ export interface ItemDTO {
|
|
|
2543
3128
|
* @type {number}
|
|
2544
3129
|
* @memberof ItemDTO
|
|
2545
3130
|
*/
|
|
2546
|
-
'refunded'?: number;
|
|
3131
|
+
'refunded'?: number | null;
|
|
3132
|
+
/**
|
|
3133
|
+
* SBCs
|
|
3134
|
+
* @type {Array<TcxSbcDTO>}
|
|
3135
|
+
* @memberof ItemDTO
|
|
3136
|
+
*/
|
|
3137
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3138
|
+
/**
|
|
3139
|
+
* Readonly
|
|
3140
|
+
* @type {boolean}
|
|
3141
|
+
* @memberof ItemDTO
|
|
3142
|
+
*/
|
|
3143
|
+
'readonly'?: boolean;
|
|
3144
|
+
/**
|
|
3145
|
+
* 3CX Sales Code
|
|
3146
|
+
* @type {string}
|
|
3147
|
+
* @memberof ItemDTO
|
|
3148
|
+
*/
|
|
3149
|
+
'tcxSalesCode'?: string | null;
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3152
|
+
* ItemDiscountsEntity
|
|
3153
|
+
* @export
|
|
3154
|
+
* @interface ItemDiscountEntity
|
|
3155
|
+
*/
|
|
3156
|
+
export interface ItemDiscountEntity {
|
|
3157
|
+
/**
|
|
3158
|
+
* id
|
|
3159
|
+
* @type {number}
|
|
3160
|
+
* @memberof ItemDiscountEntity
|
|
3161
|
+
*/
|
|
3162
|
+
'id'?: number;
|
|
3163
|
+
/**
|
|
3164
|
+
* itemId
|
|
3165
|
+
* @type {number}
|
|
3166
|
+
* @memberof ItemDiscountEntity
|
|
3167
|
+
*/
|
|
3168
|
+
'itemId'?: number;
|
|
3169
|
+
/**
|
|
3170
|
+
* priceList
|
|
3171
|
+
* @type {string}
|
|
3172
|
+
* @memberof ItemDiscountEntity
|
|
3173
|
+
*/
|
|
3174
|
+
'priceList'?: string;
|
|
3175
|
+
/**
|
|
3176
|
+
* discount
|
|
3177
|
+
* @type {number}
|
|
3178
|
+
* @memberof ItemDiscountEntity
|
|
3179
|
+
*/
|
|
3180
|
+
'discount'?: number;
|
|
3181
|
+
/**
|
|
3182
|
+
* type
|
|
3183
|
+
* @type {string}
|
|
3184
|
+
* @memberof ItemDiscountEntity
|
|
3185
|
+
*/
|
|
3186
|
+
'type'?: ItemDiscountEntityTypeEnum | null;
|
|
3187
|
+
/**
|
|
3188
|
+
* description
|
|
3189
|
+
* @type {string}
|
|
3190
|
+
* @memberof ItemDiscountEntity
|
|
3191
|
+
*/
|
|
3192
|
+
'description'?: string;
|
|
3193
|
+
/**
|
|
3194
|
+
* priority
|
|
3195
|
+
* @type {number}
|
|
3196
|
+
* @memberof ItemDiscountEntity
|
|
3197
|
+
*/
|
|
3198
|
+
'priority'?: number;
|
|
2547
3199
|
}
|
|
3200
|
+
|
|
3201
|
+
export const ItemDiscountEntityTypeEnum = {
|
|
3202
|
+
TcxPhones: 'TCX_PHONES',
|
|
3203
|
+
PhoneBulk: 'PHONE_BULK',
|
|
3204
|
+
Additional: 'ADDITIONAL'
|
|
3205
|
+
} as const;
|
|
3206
|
+
|
|
3207
|
+
export type ItemDiscountEntityTypeEnum = typeof ItemDiscountEntityTypeEnum[keyof typeof ItemDiscountEntityTypeEnum];
|
|
3208
|
+
|
|
2548
3209
|
/**
|
|
2549
3210
|
* ItemsEntity
|
|
2550
3211
|
* @export
|
|
@@ -2652,7 +3313,7 @@ export interface ItemEntity {
|
|
|
2652
3313
|
* @type {string}
|
|
2653
3314
|
* @memberof ItemEntity
|
|
2654
3315
|
*/
|
|
2655
|
-
'
|
|
3316
|
+
'licenceKey'?: string;
|
|
2656
3317
|
/**
|
|
2657
3318
|
* addHosting
|
|
2658
3319
|
* @type {number}
|
|
@@ -2677,16 +3338,41 @@ export interface ItemEntity {
|
|
|
2677
3338
|
* @memberof ItemEntity
|
|
2678
3339
|
*/
|
|
2679
3340
|
'promoItem'?: number;
|
|
3341
|
+
/**
|
|
3342
|
+
* 3CX Sales Code
|
|
3343
|
+
* @type {string}
|
|
3344
|
+
* @memberof ItemEntity
|
|
3345
|
+
*/
|
|
3346
|
+
'tcxSalesCode'?: string | null;
|
|
2680
3347
|
}
|
|
2681
3348
|
/**
|
|
2682
|
-
*
|
|
3349
|
+
* LinkedOrdersEntity
|
|
2683
3350
|
* @export
|
|
2684
|
-
* @interface
|
|
3351
|
+
* @interface LinkedOrderEntity
|
|
2685
3352
|
*/
|
|
2686
|
-
export interface
|
|
3353
|
+
export interface LinkedOrderEntity {
|
|
2687
3354
|
/**
|
|
2688
|
-
*
|
|
2689
|
-
* @type {
|
|
3355
|
+
* orderId
|
|
3356
|
+
* @type {number}
|
|
3357
|
+
* @memberof LinkedOrderEntity
|
|
3358
|
+
*/
|
|
3359
|
+
'orderId'?: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* linkedOrderId
|
|
3362
|
+
* @type {number}
|
|
3363
|
+
* @memberof LinkedOrderEntity
|
|
3364
|
+
*/
|
|
3365
|
+
'linkedOrderId'?: number;
|
|
3366
|
+
}
|
|
3367
|
+
/**
|
|
3368
|
+
* MFA Required
|
|
3369
|
+
* @export
|
|
3370
|
+
* @interface MFARequiredModel
|
|
3371
|
+
*/
|
|
3372
|
+
export interface MFARequiredModel {
|
|
3373
|
+
/**
|
|
3374
|
+
* MFA Secret
|
|
3375
|
+
* @type {string}
|
|
2690
3376
|
* @memberof MFARequiredModel
|
|
2691
3377
|
*/
|
|
2692
3378
|
'secret'?: string;
|
|
@@ -3337,13 +4023,19 @@ export interface OrderSummaryDTO {
|
|
|
3337
4023
|
* @type {string}
|
|
3338
4024
|
* @memberof OrderSummaryDTO
|
|
3339
4025
|
*/
|
|
3340
|
-
'reference'?: string;
|
|
4026
|
+
'reference'?: string | null;
|
|
3341
4027
|
/**
|
|
3342
4028
|
* Invoice Number
|
|
3343
4029
|
* @type {string}
|
|
3344
4030
|
* @memberof OrderSummaryDTO
|
|
3345
4031
|
*/
|
|
3346
4032
|
'invoiceNumber'?: string;
|
|
4033
|
+
/**
|
|
4034
|
+
* Invoice ID
|
|
4035
|
+
* @type {string}
|
|
4036
|
+
* @memberof OrderSummaryDTO
|
|
4037
|
+
*/
|
|
4038
|
+
'invoiceId'?: string | null;
|
|
3347
4039
|
/**
|
|
3348
4040
|
* Date Time
|
|
3349
4041
|
* @type {string}
|
|
@@ -3398,6 +4090,24 @@ export interface OrderSummaryDTO {
|
|
|
3398
4090
|
* @memberof OrderSummaryDTO
|
|
3399
4091
|
*/
|
|
3400
4092
|
'fulfillable'?: boolean | null;
|
|
4093
|
+
/**
|
|
4094
|
+
* Provisioning URL
|
|
4095
|
+
* @type {string}
|
|
4096
|
+
* @memberof OrderSummaryDTO
|
|
4097
|
+
*/
|
|
4098
|
+
'provisioningUrl'?: string | null;
|
|
4099
|
+
/**
|
|
4100
|
+
*
|
|
4101
|
+
* @type {ShippingServiceDTO}
|
|
4102
|
+
* @memberof OrderSummaryDTO
|
|
4103
|
+
*/
|
|
4104
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
4105
|
+
/**
|
|
4106
|
+
* Readonly
|
|
4107
|
+
* @type {boolean}
|
|
4108
|
+
* @memberof OrderSummaryDTO
|
|
4109
|
+
*/
|
|
4110
|
+
'readonly'?: boolean;
|
|
3401
4111
|
}
|
|
3402
4112
|
/**
|
|
3403
4113
|
* Order Totals
|
|
@@ -3447,6 +4157,12 @@ export interface OrderTotalModel {
|
|
|
3447
4157
|
* @memberof OrderTotalModel
|
|
3448
4158
|
*/
|
|
3449
4159
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
4160
|
+
/**
|
|
4161
|
+
* Delivery
|
|
4162
|
+
* @type {number}
|
|
4163
|
+
* @memberof OrderTotalModel
|
|
4164
|
+
*/
|
|
4165
|
+
'delivery'?: number | null;
|
|
3450
4166
|
}
|
|
3451
4167
|
|
|
3452
4168
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3828,6 +4544,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3828
4544
|
*/
|
|
3829
4545
|
'scopes'?: Array<string>;
|
|
3830
4546
|
}
|
|
4547
|
+
/**
|
|
4548
|
+
*
|
|
4549
|
+
* @export
|
|
4550
|
+
* @interface PostGetProductForCustomerRequest
|
|
4551
|
+
*/
|
|
4552
|
+
export interface PostGetProductForCustomerRequest {
|
|
4553
|
+
/**
|
|
4554
|
+
* Quantity
|
|
4555
|
+
* @type {number}
|
|
4556
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4557
|
+
*/
|
|
4558
|
+
'quantity'?: number | null;
|
|
4559
|
+
/**
|
|
4560
|
+
* 3CX Licence Key
|
|
4561
|
+
* @type {string}
|
|
4562
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4563
|
+
*/
|
|
4564
|
+
'licenceKey'?: string | null;
|
|
4565
|
+
/**
|
|
4566
|
+
* 3CX Hosting
|
|
4567
|
+
* @type {boolean}
|
|
4568
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4569
|
+
*/
|
|
4570
|
+
'hosting'?: boolean | null;
|
|
4571
|
+
}
|
|
3831
4572
|
/**
|
|
3832
4573
|
* Price & Stock List
|
|
3833
4574
|
* @export
|
|
@@ -3959,10 +4700,10 @@ export interface ProductPriceListItemModel {
|
|
|
3959
4700
|
export interface ProductSearchResultsModel {
|
|
3960
4701
|
/**
|
|
3961
4702
|
* Results
|
|
3962
|
-
* @type {Array<
|
|
4703
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3963
4704
|
* @memberof ProductSearchResultsModel
|
|
3964
4705
|
*/
|
|
3965
|
-
'results'?: Array<
|
|
4706
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3966
4707
|
}
|
|
3967
4708
|
/**
|
|
3968
4709
|
* Product Serial Info
|
|
@@ -3998,45 +4739,51 @@ export interface ProductSerialInfoModel {
|
|
|
3998
4739
|
/**
|
|
3999
4740
|
* Product Summary
|
|
4000
4741
|
* @export
|
|
4001
|
-
* @interface
|
|
4742
|
+
* @interface ProductSummaryDTO
|
|
4002
4743
|
*/
|
|
4003
|
-
export interface
|
|
4744
|
+
export interface ProductSummaryDTO {
|
|
4004
4745
|
/**
|
|
4005
4746
|
* SKU
|
|
4006
4747
|
* @type {string}
|
|
4007
|
-
* @memberof
|
|
4748
|
+
* @memberof ProductSummaryDTO
|
|
4008
4749
|
*/
|
|
4009
4750
|
'sku'?: string;
|
|
4010
4751
|
/**
|
|
4011
4752
|
* Title
|
|
4012
4753
|
* @type {string}
|
|
4013
|
-
* @memberof
|
|
4754
|
+
* @memberof ProductSummaryDTO
|
|
4014
4755
|
*/
|
|
4015
4756
|
'title'?: string;
|
|
4016
4757
|
/**
|
|
4017
4758
|
* Stock Quantity
|
|
4018
4759
|
* @type {number}
|
|
4019
|
-
* @memberof
|
|
4760
|
+
* @memberof ProductSummaryDTO
|
|
4020
4761
|
*/
|
|
4021
4762
|
'quantity'?: number | null;
|
|
4022
4763
|
/**
|
|
4023
4764
|
* Stock Product
|
|
4024
4765
|
* @type {boolean}
|
|
4025
|
-
* @memberof
|
|
4766
|
+
* @memberof ProductSummaryDTO
|
|
4026
4767
|
*/
|
|
4027
4768
|
'stockProduct'?: boolean;
|
|
4028
4769
|
/**
|
|
4029
4770
|
* Price
|
|
4030
4771
|
* @type {number}
|
|
4031
|
-
* @memberof
|
|
4772
|
+
* @memberof ProductSummaryDTO
|
|
4032
4773
|
*/
|
|
4033
4774
|
'price'?: number | null;
|
|
4034
4775
|
/**
|
|
4035
4776
|
* Carton Size
|
|
4036
4777
|
* @type {number}
|
|
4037
|
-
* @memberof
|
|
4778
|
+
* @memberof ProductSummaryDTO
|
|
4038
4779
|
*/
|
|
4039
4780
|
'cartonSize'?: number | null;
|
|
4781
|
+
/**
|
|
4782
|
+
* RRP Price
|
|
4783
|
+
* @type {number}
|
|
4784
|
+
* @memberof ProductSummaryDTO
|
|
4785
|
+
*/
|
|
4786
|
+
'rrp'?: number | null;
|
|
4040
4787
|
}
|
|
4041
4788
|
/**
|
|
4042
4789
|
* PromoCodesEntity
|
|
@@ -4175,37 +4922,37 @@ export interface PromoItemsEntity {
|
|
|
4175
4922
|
/**
|
|
4176
4923
|
* Provisioning Group
|
|
4177
4924
|
* @export
|
|
4178
|
-
* @interface
|
|
4925
|
+
* @interface ProvisioningModel
|
|
4179
4926
|
*/
|
|
4180
|
-
export interface
|
|
4927
|
+
export interface ProvisioningModel {
|
|
4181
4928
|
/**
|
|
4182
4929
|
* Provisioning Group Name
|
|
4183
4930
|
* @type {string}
|
|
4184
|
-
* @memberof
|
|
4931
|
+
* @memberof ProvisioningModel
|
|
4185
4932
|
*/
|
|
4186
4933
|
'groupName'?: string;
|
|
4187
4934
|
/**
|
|
4188
4935
|
* Provisioning URL (Static Provisioning Server)
|
|
4189
4936
|
* @type {string}
|
|
4190
|
-
* @memberof
|
|
4937
|
+
* @memberof ProvisioningModel
|
|
4191
4938
|
*/
|
|
4192
4939
|
'provisioningUrl'?: string;
|
|
4193
4940
|
/**
|
|
4194
4941
|
* Additional Authentication Secret
|
|
4195
4942
|
* @type {string}
|
|
4196
|
-
* @memberof
|
|
4943
|
+
* @memberof ProvisioningModel
|
|
4197
4944
|
*/
|
|
4198
4945
|
'auth'?: string;
|
|
4199
4946
|
/**
|
|
4200
4947
|
* Provisioning Group ID
|
|
4201
4948
|
* @type {number}
|
|
4202
|
-
* @memberof
|
|
4949
|
+
* @memberof ProvisioningModel
|
|
4203
4950
|
*/
|
|
4204
4951
|
'id'?: number;
|
|
4205
4952
|
/**
|
|
4206
4953
|
* Owner ID
|
|
4207
4954
|
* @type {number}
|
|
4208
|
-
* @memberof
|
|
4955
|
+
* @memberof ProvisioningModel
|
|
4209
4956
|
*/
|
|
4210
4957
|
'customerId'?: number;
|
|
4211
4958
|
}
|
|
@@ -4559,7 +5306,7 @@ export interface ShipmentEntity {
|
|
|
4559
5306
|
* @type {string}
|
|
4560
5307
|
* @memberof ShipmentEntity
|
|
4561
5308
|
*/
|
|
4562
|
-
'
|
|
5309
|
+
'dateShipped'?: string;
|
|
4563
5310
|
/**
|
|
4564
5311
|
* requestDate
|
|
4565
5312
|
* @type {string}
|
|
@@ -4610,6 +5357,155 @@ export interface ShipmentItemEntity {
|
|
|
4610
5357
|
*/
|
|
4611
5358
|
'itemId'?: string;
|
|
4612
5359
|
}
|
|
5360
|
+
/**
|
|
5361
|
+
*
|
|
5362
|
+
* @export
|
|
5363
|
+
* @interface ShippingConsignmentModel
|
|
5364
|
+
*/
|
|
5365
|
+
export interface ShippingConsignmentModel {
|
|
5366
|
+
/**
|
|
5367
|
+
*
|
|
5368
|
+
* @type {ShippingServiceModel}
|
|
5369
|
+
* @memberof ShippingConsignmentModel
|
|
5370
|
+
*/
|
|
5371
|
+
'service'?: ShippingServiceModel;
|
|
5372
|
+
/**
|
|
5373
|
+
* ID/Number
|
|
5374
|
+
* @type {string}
|
|
5375
|
+
* @memberof ShippingConsignmentModel
|
|
5376
|
+
*/
|
|
5377
|
+
'id'?: string;
|
|
5378
|
+
/**
|
|
5379
|
+
* Tracking Number
|
|
5380
|
+
* @type {string}
|
|
5381
|
+
* @memberof ShippingConsignmentModel
|
|
5382
|
+
*/
|
|
5383
|
+
'trackingNumber'?: string;
|
|
5384
|
+
/**
|
|
5385
|
+
* Parcels
|
|
5386
|
+
* @type {Array<string>}
|
|
5387
|
+
* @memberof ShippingConsignmentModel
|
|
5388
|
+
*/
|
|
5389
|
+
'parcelIds'?: Array<string>;
|
|
5390
|
+
}
|
|
5391
|
+
/**
|
|
5392
|
+
* Shipping Information
|
|
5393
|
+
* @export
|
|
5394
|
+
* @interface ShippingInformationDTO
|
|
5395
|
+
*/
|
|
5396
|
+
export interface ShippingInformationDTO {
|
|
5397
|
+
/**
|
|
5398
|
+
* Items
|
|
5399
|
+
* @type {Array<BasicItemDTO>}
|
|
5400
|
+
* @memberof ShippingInformationDTO
|
|
5401
|
+
*/
|
|
5402
|
+
'items'?: Array<BasicItemDTO>;
|
|
5403
|
+
/**
|
|
5404
|
+
* Destination Post Code
|
|
5405
|
+
* @type {string}
|
|
5406
|
+
* @memberof ShippingInformationDTO
|
|
5407
|
+
*/
|
|
5408
|
+
'postalCode'?: string;
|
|
5409
|
+
/**
|
|
5410
|
+
* Destination ISO
|
|
5411
|
+
* @type {string}
|
|
5412
|
+
* @memberof ShippingInformationDTO
|
|
5413
|
+
*/
|
|
5414
|
+
'iso'?: string;
|
|
5415
|
+
}
|
|
5416
|
+
/**
|
|
5417
|
+
* Shipping Service
|
|
5418
|
+
* @export
|
|
5419
|
+
* @interface ShippingServiceDTO
|
|
5420
|
+
*/
|
|
5421
|
+
export interface ShippingServiceDTO {
|
|
5422
|
+
/**
|
|
5423
|
+
* Courier
|
|
5424
|
+
* @type {string}
|
|
5425
|
+
* @memberof ShippingServiceDTO
|
|
5426
|
+
*/
|
|
5427
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5428
|
+
/**
|
|
5429
|
+
* Service Name
|
|
5430
|
+
* @type {string}
|
|
5431
|
+
* @memberof ShippingServiceDTO
|
|
5432
|
+
*/
|
|
5433
|
+
'serviceName'?: string;
|
|
5434
|
+
}
|
|
5435
|
+
|
|
5436
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5437
|
+
Dpd: 'DPD',
|
|
5438
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5439
|
+
Pops: 'POPS'
|
|
5440
|
+
} as const;
|
|
5441
|
+
|
|
5442
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5443
|
+
|
|
5444
|
+
/**
|
|
5445
|
+
* Shipping Service
|
|
5446
|
+
* @export
|
|
5447
|
+
* @interface ShippingServiceModel
|
|
5448
|
+
*/
|
|
5449
|
+
export interface ShippingServiceModel {
|
|
5450
|
+
/**
|
|
5451
|
+
* Courier
|
|
5452
|
+
* @type {string}
|
|
5453
|
+
* @memberof ShippingServiceModel
|
|
5454
|
+
*/
|
|
5455
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5456
|
+
/**
|
|
5457
|
+
* Code
|
|
5458
|
+
* @type {string}
|
|
5459
|
+
* @memberof ShippingServiceModel
|
|
5460
|
+
*/
|
|
5461
|
+
'code'?: string;
|
|
5462
|
+
/**
|
|
5463
|
+
* Name
|
|
5464
|
+
* @type {string}
|
|
5465
|
+
* @memberof ShippingServiceModel
|
|
5466
|
+
*/
|
|
5467
|
+
'name'?: string;
|
|
5468
|
+
/**
|
|
5469
|
+
* Description
|
|
5470
|
+
* @type {string}
|
|
5471
|
+
* @memberof ShippingServiceModel
|
|
5472
|
+
*/
|
|
5473
|
+
'description'?: string;
|
|
5474
|
+
/**
|
|
5475
|
+
* Label
|
|
5476
|
+
* @type {string}
|
|
5477
|
+
* @memberof ShippingServiceModel
|
|
5478
|
+
*/
|
|
5479
|
+
'label'?: string | null;
|
|
5480
|
+
/**
|
|
5481
|
+
* Price
|
|
5482
|
+
* @type {number}
|
|
5483
|
+
* @memberof ShippingServiceModel
|
|
5484
|
+
*/
|
|
5485
|
+
'price'?: number | null;
|
|
5486
|
+
}
|
|
5487
|
+
|
|
5488
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5489
|
+
Dpd: 'DPD',
|
|
5490
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5491
|
+
Pops: 'POPS'
|
|
5492
|
+
} as const;
|
|
5493
|
+
|
|
5494
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5495
|
+
|
|
5496
|
+
/**
|
|
5497
|
+
*
|
|
5498
|
+
* @export
|
|
5499
|
+
* @interface ShippingServicesModel
|
|
5500
|
+
*/
|
|
5501
|
+
export interface ShippingServicesModel {
|
|
5502
|
+
/**
|
|
5503
|
+
* Services
|
|
5504
|
+
* @type {Array<ShippingServiceModel>}
|
|
5505
|
+
* @memberof ShippingServicesModel
|
|
5506
|
+
*/
|
|
5507
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5508
|
+
}
|
|
4613
5509
|
/**
|
|
4614
5510
|
* Change Response
|
|
4615
5511
|
* @export
|
|
@@ -7449,6 +8345,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7449
8345
|
*/
|
|
7450
8346
|
'secretAccessKey'?: string;
|
|
7451
8347
|
}
|
|
8348
|
+
/**
|
|
8349
|
+
* SBC Data
|
|
8350
|
+
* @export
|
|
8351
|
+
* @interface TcxSbcDTO
|
|
8352
|
+
*/
|
|
8353
|
+
export interface TcxSbcDTO {
|
|
8354
|
+
/**
|
|
8355
|
+
* LAN IP Address
|
|
8356
|
+
* @type {string}
|
|
8357
|
+
* @memberof TcxSbcDTO
|
|
8358
|
+
*/
|
|
8359
|
+
'ipAddress'?: string;
|
|
8360
|
+
/**
|
|
8361
|
+
* LAN Default Gateway
|
|
8362
|
+
* @type {string}
|
|
8363
|
+
* @memberof TcxSbcDTO
|
|
8364
|
+
*/
|
|
8365
|
+
'defaultGateway'?: string;
|
|
8366
|
+
/**
|
|
8367
|
+
* LAN Subnet Mask
|
|
8368
|
+
* @type {string}
|
|
8369
|
+
* @memberof TcxSbcDTO
|
|
8370
|
+
*/
|
|
8371
|
+
'netmask'?: string;
|
|
8372
|
+
/**
|
|
8373
|
+
* DNS
|
|
8374
|
+
* @type {string}
|
|
8375
|
+
* @memberof TcxSbcDTO
|
|
8376
|
+
*/
|
|
8377
|
+
'dns'?: string;
|
|
8378
|
+
/**
|
|
8379
|
+
* 3CX URL
|
|
8380
|
+
* @type {string}
|
|
8381
|
+
* @memberof TcxSbcDTO
|
|
8382
|
+
*/
|
|
8383
|
+
'tcxUrl'?: string;
|
|
8384
|
+
/**
|
|
8385
|
+
* 3CX SBC Key
|
|
8386
|
+
* @type {string}
|
|
8387
|
+
* @memberof TcxSbcDTO
|
|
8388
|
+
*/
|
|
8389
|
+
'tcxKey'?: string;
|
|
8390
|
+
}
|
|
7452
8391
|
/**
|
|
7453
8392
|
* 3CX Wizard SBC
|
|
7454
8393
|
* @export
|
|
@@ -7553,7 +8492,7 @@ export interface TcxSbcEntity {
|
|
|
7553
8492
|
'technicalContact'?: string;
|
|
7554
8493
|
}
|
|
7555
8494
|
/**
|
|
7556
|
-
* 3CX SBC
|
|
8495
|
+
* 3CX Wizard SBC
|
|
7557
8496
|
* @export
|
|
7558
8497
|
* @interface TcxSbcModel
|
|
7559
8498
|
*/
|
|
@@ -8738,6 +9677,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8738
9677
|
|
|
8739
9678
|
|
|
8740
9679
|
|
|
9680
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9681
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9682
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9683
|
+
|
|
9684
|
+
return {
|
|
9685
|
+
url: toPathString(localVarUrlObj),
|
|
9686
|
+
options: localVarRequestOptions,
|
|
9687
|
+
};
|
|
9688
|
+
},
|
|
9689
|
+
/**
|
|
9690
|
+
* Get Account Detailed Summary
|
|
9691
|
+
* @summary Get Account Detailed Summary
|
|
9692
|
+
* @param {number} id Customer ID
|
|
9693
|
+
* @param {*} [options] Override http request option.
|
|
9694
|
+
* @throws {RequiredError}
|
|
9695
|
+
*/
|
|
9696
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9697
|
+
// verify required parameter 'id' is not null or undefined
|
|
9698
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9699
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9700
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9702
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9703
|
+
let baseOptions;
|
|
9704
|
+
if (configuration) {
|
|
9705
|
+
baseOptions = configuration.baseOptions;
|
|
9706
|
+
}
|
|
9707
|
+
|
|
9708
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9709
|
+
const localVarHeaderParameter = {} as any;
|
|
9710
|
+
const localVarQueryParameter = {} as any;
|
|
9711
|
+
|
|
9712
|
+
|
|
9713
|
+
|
|
8741
9714
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8742
9715
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8743
9716
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9036,6 +10009,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9036
10009
|
options: localVarRequestOptions,
|
|
9037
10010
|
};
|
|
9038
10011
|
},
|
|
10012
|
+
/**
|
|
10013
|
+
* Get Admin Account
|
|
10014
|
+
* @summary Get Admin Account
|
|
10015
|
+
* @param {*} [options] Override http request option.
|
|
10016
|
+
* @throws {RequiredError}
|
|
10017
|
+
*/
|
|
10018
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10019
|
+
const localVarPath = `/admin/me`;
|
|
10020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10022
|
+
let baseOptions;
|
|
10023
|
+
if (configuration) {
|
|
10024
|
+
baseOptions = configuration.baseOptions;
|
|
10025
|
+
}
|
|
10026
|
+
|
|
10027
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10028
|
+
const localVarHeaderParameter = {} as any;
|
|
10029
|
+
const localVarQueryParameter = {} as any;
|
|
10030
|
+
|
|
10031
|
+
|
|
10032
|
+
|
|
10033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10035
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10036
|
+
|
|
10037
|
+
return {
|
|
10038
|
+
url: toPathString(localVarUrlObj),
|
|
10039
|
+
options: localVarRequestOptions,
|
|
10040
|
+
};
|
|
10041
|
+
},
|
|
9039
10042
|
/**
|
|
9040
10043
|
* Create client credentials
|
|
9041
10044
|
* @summary Create client credentials
|
|
@@ -9285,6 +10288,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9285
10288
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9286
10289
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9287
10290
|
},
|
|
10291
|
+
/**
|
|
10292
|
+
* Get Account Detailed Summary
|
|
10293
|
+
* @summary Get Account Detailed Summary
|
|
10294
|
+
* @param {number} id Customer ID
|
|
10295
|
+
* @param {*} [options] Override http request option.
|
|
10296
|
+
* @throws {RequiredError}
|
|
10297
|
+
*/
|
|
10298
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10301
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10303
|
+
},
|
|
9288
10304
|
/**
|
|
9289
10305
|
* Get Accounts
|
|
9290
10306
|
* @summary Get Accounts
|
|
@@ -9390,6 +10406,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9390
10406
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9391
10407
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9392
10408
|
},
|
|
10409
|
+
/**
|
|
10410
|
+
* Get Admin Account
|
|
10411
|
+
* @summary Get Admin Account
|
|
10412
|
+
* @param {*} [options] Override http request option.
|
|
10413
|
+
* @throws {RequiredError}
|
|
10414
|
+
*/
|
|
10415
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10417
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10418
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10419
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10420
|
+
},
|
|
9393
10421
|
/**
|
|
9394
10422
|
* Create client credentials
|
|
9395
10423
|
* @summary Create client credentials
|
|
@@ -9507,6 +10535,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9507
10535
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9508
10536
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9509
10537
|
},
|
|
10538
|
+
/**
|
|
10539
|
+
* Get Account Detailed Summary
|
|
10540
|
+
* @summary Get Account Detailed Summary
|
|
10541
|
+
* @param {number} id Customer ID
|
|
10542
|
+
* @param {*} [options] Override http request option.
|
|
10543
|
+
* @throws {RequiredError}
|
|
10544
|
+
*/
|
|
10545
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10546
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10547
|
+
},
|
|
9510
10548
|
/**
|
|
9511
10549
|
* Get Accounts
|
|
9512
10550
|
* @summary Get Accounts
|
|
@@ -9589,9 +10627,18 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9589
10627
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9590
10628
|
},
|
|
9591
10629
|
/**
|
|
9592
|
-
*
|
|
9593
|
-
* @summary
|
|
9594
|
-
* @param {
|
|
10630
|
+
* Get Admin Account
|
|
10631
|
+
* @summary Get Admin Account
|
|
10632
|
+
* @param {*} [options] Override http request option.
|
|
10633
|
+
* @throws {RequiredError}
|
|
10634
|
+
*/
|
|
10635
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10636
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10637
|
+
},
|
|
10638
|
+
/**
|
|
10639
|
+
* Create client credentials
|
|
10640
|
+
* @summary Create client credentials
|
|
10641
|
+
* @param {PostGetClientCredentialsRequest} [postGetClientCredentialsRequest] New client credentials request
|
|
9595
10642
|
* @param {*} [options] Override http request option.
|
|
9596
10643
|
* @throws {RequiredError}
|
|
9597
10644
|
*/
|
|
@@ -9698,6 +10745,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9698
10745
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9699
10746
|
}
|
|
9700
10747
|
|
|
10748
|
+
/**
|
|
10749
|
+
* Get Account Detailed Summary
|
|
10750
|
+
* @summary Get Account Detailed Summary
|
|
10751
|
+
* @param {number} id Customer ID
|
|
10752
|
+
* @param {*} [options] Override http request option.
|
|
10753
|
+
* @throws {RequiredError}
|
|
10754
|
+
* @memberof AccountsApi
|
|
10755
|
+
*/
|
|
10756
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10757
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10758
|
+
}
|
|
10759
|
+
|
|
9701
10760
|
/**
|
|
9702
10761
|
* Get Accounts
|
|
9703
10762
|
* @summary Get Accounts
|
|
@@ -9795,6 +10854,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9795
10854
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9796
10855
|
}
|
|
9797
10856
|
|
|
10857
|
+
/**
|
|
10858
|
+
* Get Admin Account
|
|
10859
|
+
* @summary Get Admin Account
|
|
10860
|
+
* @param {*} [options] Override http request option.
|
|
10861
|
+
* @throws {RequiredError}
|
|
10862
|
+
* @memberof AccountsApi
|
|
10863
|
+
*/
|
|
10864
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10865
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10866
|
+
}
|
|
10867
|
+
|
|
9798
10868
|
/**
|
|
9799
10869
|
* Create client credentials
|
|
9800
10870
|
* @summary Create client credentials
|
|
@@ -9992,43 +11062,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9992
11062
|
|
|
9993
11063
|
|
|
9994
11064
|
|
|
9995
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9996
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9997
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9998
|
-
|
|
9999
|
-
return {
|
|
10000
|
-
url: toPathString(localVarUrlObj),
|
|
10001
|
-
options: localVarRequestOptions,
|
|
10002
|
-
};
|
|
10003
|
-
},
|
|
10004
|
-
/**
|
|
10005
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10006
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10007
|
-
* @param {string} password Desired 3CX web access password
|
|
10008
|
-
* @param {*} [options] Override http request option.
|
|
10009
|
-
* @throws {RequiredError}
|
|
10010
|
-
*/
|
|
10011
|
-
getGetPasswordHash: async (password: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10012
|
-
// verify required parameter 'password' is not null or undefined
|
|
10013
|
-
assertParamExists('getGetPasswordHash', 'password', password)
|
|
10014
|
-
const localVarPath = `/tcx/pwd2hash`;
|
|
10015
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10016
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10017
|
-
let baseOptions;
|
|
10018
|
-
if (configuration) {
|
|
10019
|
-
baseOptions = configuration.baseOptions;
|
|
10020
|
-
}
|
|
10021
|
-
|
|
10022
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10023
|
-
const localVarHeaderParameter = {} as any;
|
|
10024
|
-
const localVarQueryParameter = {} as any;
|
|
10025
|
-
|
|
10026
|
-
if (password !== undefined) {
|
|
10027
|
-
localVarQueryParameter['password'] = password;
|
|
10028
|
-
}
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
11065
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10033
11066
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10034
11067
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10095,19 +11128,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
10095
11128
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
10096
11129
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10097
11130
|
},
|
|
10098
|
-
/**
|
|
10099
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10100
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10101
|
-
* @param {string} password Desired 3CX web access password
|
|
10102
|
-
* @param {*} [options] Override http request option.
|
|
10103
|
-
* @throws {RequiredError}
|
|
10104
|
-
*/
|
|
10105
|
-
async getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGetPasswordHash200Response>> {
|
|
10106
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetPasswordHash(password, options);
|
|
10107
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10108
|
-
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetPasswordHash']?.[localVarOperationServerIndex]?.url;
|
|
10109
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10110
|
-
},
|
|
10111
11131
|
/**
|
|
10112
11132
|
* Get Bulk 3CX Licence Details
|
|
10113
11133
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10141,16 +11161,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
10141
11161
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
10142
11162
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
10143
11163
|
},
|
|
10144
|
-
/**
|
|
10145
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10146
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10147
|
-
* @param {string} password Desired 3CX web access password
|
|
10148
|
-
* @param {*} [options] Override http request option.
|
|
10149
|
-
* @throws {RequiredError}
|
|
10150
|
-
*/
|
|
10151
|
-
getGetPasswordHash(password: string, options?: RawAxiosRequestConfig): AxiosPromise<GetGetPasswordHash200Response> {
|
|
10152
|
-
return localVarFp.getGetPasswordHash(password, options).then((request) => request(axios, basePath));
|
|
10153
|
-
},
|
|
10154
11164
|
/**
|
|
10155
11165
|
* Get Bulk 3CX Licence Details
|
|
10156
11166
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10183,18 +11193,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
10183
11193
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
10184
11194
|
}
|
|
10185
11195
|
|
|
10186
|
-
/**
|
|
10187
|
-
* Generate a 3CX hashed password for 3CX installation
|
|
10188
|
-
* @summary Convert a password to a hashed 3CX password
|
|
10189
|
-
* @param {string} password Desired 3CX web access password
|
|
10190
|
-
* @param {*} [options] Override http request option.
|
|
10191
|
-
* @throws {RequiredError}
|
|
10192
|
-
* @memberof Class3CXApi
|
|
10193
|
-
*/
|
|
10194
|
-
public getGetPasswordHash(password: string, options?: RawAxiosRequestConfig) {
|
|
10195
|
-
return Class3CXApiFp(this.configuration).getGetPasswordHash(password, options).then((request) => request(this.axios, this.basePath));
|
|
10196
|
-
}
|
|
10197
|
-
|
|
10198
11196
|
/**
|
|
10199
11197
|
* Get Bulk 3CX Licence Details
|
|
10200
11198
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -15369,13 +16367,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15369
16367
|
return {
|
|
15370
16368
|
/**
|
|
15371
16369
|
* Delete Orders
|
|
16370
|
+
* @summary Delete Orders
|
|
15372
16371
|
* @param {number} id Order ID
|
|
15373
16372
|
* @param {*} [options] Override http request option.
|
|
15374
16373
|
* @throws {RequiredError}
|
|
15375
16374
|
*/
|
|
15376
|
-
|
|
16375
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15377
16376
|
// verify required parameter 'id' is not null or undefined
|
|
15378
|
-
assertParamExists('
|
|
16377
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15379
16378
|
const localVarPath = `/orders/{id}`
|
|
15380
16379
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15381
16380
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15391,6 +16390,74 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15391
16390
|
|
|
15392
16391
|
|
|
15393
16392
|
|
|
16393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16395
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16396
|
+
|
|
16397
|
+
return {
|
|
16398
|
+
url: toPathString(localVarUrlObj),
|
|
16399
|
+
options: localVarRequestOptions,
|
|
16400
|
+
};
|
|
16401
|
+
},
|
|
16402
|
+
/**
|
|
16403
|
+
* Get Editable Order (Admin)
|
|
16404
|
+
* @summary Get Editable Order (Admin)
|
|
16405
|
+
* @param {number} id Order ID
|
|
16406
|
+
* @param {*} [options] Override http request option.
|
|
16407
|
+
* @throws {RequiredError}
|
|
16408
|
+
*/
|
|
16409
|
+
getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16410
|
+
// verify required parameter 'id' is not null or undefined
|
|
16411
|
+
assertParamExists('getGetAdminEditableOrder', 'id', id)
|
|
16412
|
+
const localVarPath = `/admin/orders/{id}/views/editable`
|
|
16413
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16414
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16415
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16416
|
+
let baseOptions;
|
|
16417
|
+
if (configuration) {
|
|
16418
|
+
baseOptions = configuration.baseOptions;
|
|
16419
|
+
}
|
|
16420
|
+
|
|
16421
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16422
|
+
const localVarHeaderParameter = {} as any;
|
|
16423
|
+
const localVarQueryParameter = {} as any;
|
|
16424
|
+
|
|
16425
|
+
|
|
16426
|
+
|
|
16427
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16429
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16430
|
+
|
|
16431
|
+
return {
|
|
16432
|
+
url: toPathString(localVarUrlObj),
|
|
16433
|
+
options: localVarRequestOptions,
|
|
16434
|
+
};
|
|
16435
|
+
},
|
|
16436
|
+
/**
|
|
16437
|
+
* Get Editable Order
|
|
16438
|
+
* @summary Get Editable Order
|
|
16439
|
+
* @param {number} id Order ID
|
|
16440
|
+
* @param {*} [options] Override http request option.
|
|
16441
|
+
* @throws {RequiredError}
|
|
16442
|
+
*/
|
|
16443
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16444
|
+
// verify required parameter 'id' is not null or undefined
|
|
16445
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16446
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16447
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16449
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16450
|
+
let baseOptions;
|
|
16451
|
+
if (configuration) {
|
|
16452
|
+
baseOptions = configuration.baseOptions;
|
|
16453
|
+
}
|
|
16454
|
+
|
|
16455
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16456
|
+
const localVarHeaderParameter = {} as any;
|
|
16457
|
+
const localVarQueryParameter = {} as any;
|
|
16458
|
+
|
|
16459
|
+
|
|
16460
|
+
|
|
15394
16461
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15395
16462
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15396
16463
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15460,6 +16527,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15460
16527
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15461
16528
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15462
16529
|
|
|
16530
|
+
return {
|
|
16531
|
+
url: toPathString(localVarUrlObj),
|
|
16532
|
+
options: localVarRequestOptions,
|
|
16533
|
+
};
|
|
16534
|
+
},
|
|
16535
|
+
/**
|
|
16536
|
+
* Create An Order (Admin)
|
|
16537
|
+
* @summary Create An Order (Admin)
|
|
16538
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16539
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16540
|
+
* @param {*} [options] Override http request option.
|
|
16541
|
+
* @throws {RequiredError}
|
|
16542
|
+
*/
|
|
16543
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16544
|
+
const localVarPath = `/admin/orders`;
|
|
16545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16546
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16547
|
+
let baseOptions;
|
|
16548
|
+
if (configuration) {
|
|
16549
|
+
baseOptions = configuration.baseOptions;
|
|
16550
|
+
}
|
|
16551
|
+
|
|
16552
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16553
|
+
const localVarHeaderParameter = {} as any;
|
|
16554
|
+
const localVarQueryParameter = {} as any;
|
|
16555
|
+
|
|
16556
|
+
if (readonly !== undefined) {
|
|
16557
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16558
|
+
}
|
|
16559
|
+
|
|
16560
|
+
|
|
16561
|
+
|
|
16562
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16563
|
+
|
|
16564
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16565
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16566
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16567
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16568
|
+
|
|
16569
|
+
return {
|
|
16570
|
+
url: toPathString(localVarUrlObj),
|
|
16571
|
+
options: localVarRequestOptions,
|
|
16572
|
+
};
|
|
16573
|
+
},
|
|
16574
|
+
/**
|
|
16575
|
+
* Create An Order
|
|
16576
|
+
* @summary Create An Order
|
|
16577
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16578
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16579
|
+
* @param {*} [options] Override http request option.
|
|
16580
|
+
* @throws {RequiredError}
|
|
16581
|
+
*/
|
|
16582
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16583
|
+
const localVarPath = `/orders`;
|
|
16584
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16585
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16586
|
+
let baseOptions;
|
|
16587
|
+
if (configuration) {
|
|
16588
|
+
baseOptions = configuration.baseOptions;
|
|
16589
|
+
}
|
|
16590
|
+
|
|
16591
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16592
|
+
const localVarHeaderParameter = {} as any;
|
|
16593
|
+
const localVarQueryParameter = {} as any;
|
|
16594
|
+
|
|
16595
|
+
if (readonly !== undefined) {
|
|
16596
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16597
|
+
}
|
|
16598
|
+
|
|
16599
|
+
|
|
16600
|
+
|
|
16601
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16602
|
+
|
|
16603
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16605
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16606
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16607
|
+
|
|
16608
|
+
return {
|
|
16609
|
+
url: toPathString(localVarUrlObj),
|
|
16610
|
+
options: localVarRequestOptions,
|
|
16611
|
+
};
|
|
16612
|
+
},
|
|
16613
|
+
/**
|
|
16614
|
+
* Update An Order (Admin)
|
|
16615
|
+
* @summary Update An Order (Admin)
|
|
16616
|
+
* @param {number} id Order ID
|
|
16617
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16618
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16619
|
+
* @param {*} [options] Override http request option.
|
|
16620
|
+
* @throws {RequiredError}
|
|
16621
|
+
*/
|
|
16622
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16623
|
+
// verify required parameter 'id' is not null or undefined
|
|
16624
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16625
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16626
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16629
|
+
let baseOptions;
|
|
16630
|
+
if (configuration) {
|
|
16631
|
+
baseOptions = configuration.baseOptions;
|
|
16632
|
+
}
|
|
16633
|
+
|
|
16634
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16635
|
+
const localVarHeaderParameter = {} as any;
|
|
16636
|
+
const localVarQueryParameter = {} as any;
|
|
16637
|
+
|
|
16638
|
+
if (readonly !== undefined) {
|
|
16639
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16640
|
+
}
|
|
16641
|
+
|
|
16642
|
+
|
|
16643
|
+
|
|
16644
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16645
|
+
|
|
16646
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16647
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16648
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16649
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16650
|
+
|
|
16651
|
+
return {
|
|
16652
|
+
url: toPathString(localVarUrlObj),
|
|
16653
|
+
options: localVarRequestOptions,
|
|
16654
|
+
};
|
|
16655
|
+
},
|
|
16656
|
+
/**
|
|
16657
|
+
* Update An Order
|
|
16658
|
+
* @summary Update An Order
|
|
16659
|
+
* @param {number} id Order ID
|
|
16660
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16661
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16662
|
+
* @param {*} [options] Override http request option.
|
|
16663
|
+
* @throws {RequiredError}
|
|
16664
|
+
*/
|
|
16665
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16666
|
+
// verify required parameter 'id' is not null or undefined
|
|
16667
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16668
|
+
const localVarPath = `/orders/{id}`
|
|
16669
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16671
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16672
|
+
let baseOptions;
|
|
16673
|
+
if (configuration) {
|
|
16674
|
+
baseOptions = configuration.baseOptions;
|
|
16675
|
+
}
|
|
16676
|
+
|
|
16677
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16678
|
+
const localVarHeaderParameter = {} as any;
|
|
16679
|
+
const localVarQueryParameter = {} as any;
|
|
16680
|
+
|
|
16681
|
+
if (readonly !== undefined) {
|
|
16682
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16683
|
+
}
|
|
16684
|
+
|
|
16685
|
+
|
|
16686
|
+
|
|
16687
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16688
|
+
|
|
16689
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16690
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16691
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16692
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16693
|
+
|
|
15463
16694
|
return {
|
|
15464
16695
|
url: toPathString(localVarUrlObj),
|
|
15465
16696
|
options: localVarRequestOptions,
|
|
@@ -15477,14 +16708,41 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15477
16708
|
return {
|
|
15478
16709
|
/**
|
|
15479
16710
|
* Delete Orders
|
|
16711
|
+
* @summary Delete Orders
|
|
15480
16712
|
* @param {number} id Order ID
|
|
15481
16713
|
* @param {*} [options] Override http request option.
|
|
15482
16714
|
* @throws {RequiredError}
|
|
15483
16715
|
*/
|
|
15484
|
-
async
|
|
15485
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16716
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
15486
16718
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15487
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
16719
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16720
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16721
|
+
},
|
|
16722
|
+
/**
|
|
16723
|
+
* Get Editable Order (Admin)
|
|
16724
|
+
* @summary Get Editable Order (Admin)
|
|
16725
|
+
* @param {number} id Order ID
|
|
16726
|
+
* @param {*} [options] Override http request option.
|
|
16727
|
+
* @throws {RequiredError}
|
|
16728
|
+
*/
|
|
16729
|
+
async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
16730
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
|
|
16731
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16732
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
16733
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16734
|
+
},
|
|
16735
|
+
/**
|
|
16736
|
+
* Get Editable Order
|
|
16737
|
+
* @summary Get Editable Order
|
|
16738
|
+
* @param {number} id Order ID
|
|
16739
|
+
* @param {*} [options] Override http request option.
|
|
16740
|
+
* @throws {RequiredError}
|
|
16741
|
+
*/
|
|
16742
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
|
|
16743
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
16744
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16745
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15488
16746
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15489
16747
|
},
|
|
15490
16748
|
/**
|
|
@@ -15506,6 +16764,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15506
16764
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15507
16765
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15508
16766
|
},
|
|
16767
|
+
/**
|
|
16768
|
+
* Create An Order (Admin)
|
|
16769
|
+
* @summary Create An Order (Admin)
|
|
16770
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16771
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16772
|
+
* @param {*} [options] Override http request option.
|
|
16773
|
+
* @throws {RequiredError}
|
|
16774
|
+
*/
|
|
16775
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16776
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16777
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16778
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16779
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16780
|
+
},
|
|
16781
|
+
/**
|
|
16782
|
+
* Create An Order
|
|
16783
|
+
* @summary Create An Order
|
|
16784
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16785
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16786
|
+
* @param {*} [options] Override http request option.
|
|
16787
|
+
* @throws {RequiredError}
|
|
16788
|
+
*/
|
|
16789
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16790
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16791
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16792
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16794
|
+
},
|
|
16795
|
+
/**
|
|
16796
|
+
* Update An Order (Admin)
|
|
16797
|
+
* @summary Update An Order (Admin)
|
|
16798
|
+
* @param {number} id Order ID
|
|
16799
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16800
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16801
|
+
* @param {*} [options] Override http request option.
|
|
16802
|
+
* @throws {RequiredError}
|
|
16803
|
+
*/
|
|
16804
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16806
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16807
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16808
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16809
|
+
},
|
|
16810
|
+
/**
|
|
16811
|
+
* Update An Order
|
|
16812
|
+
* @summary Update An Order
|
|
16813
|
+
* @param {number} id Order ID
|
|
16814
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16815
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16816
|
+
* @param {*} [options] Override http request option.
|
|
16817
|
+
* @throws {RequiredError}
|
|
16818
|
+
*/
|
|
16819
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16821
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16822
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16823
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16824
|
+
},
|
|
15509
16825
|
}
|
|
15510
16826
|
};
|
|
15511
16827
|
|
|
@@ -15518,12 +16834,33 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15518
16834
|
return {
|
|
15519
16835
|
/**
|
|
15520
16836
|
* Delete Orders
|
|
16837
|
+
* @summary Delete Orders
|
|
16838
|
+
* @param {number} id Order ID
|
|
16839
|
+
* @param {*} [options] Override http request option.
|
|
16840
|
+
* @throws {RequiredError}
|
|
16841
|
+
*/
|
|
16842
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16843
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
16844
|
+
},
|
|
16845
|
+
/**
|
|
16846
|
+
* Get Editable Order (Admin)
|
|
16847
|
+
* @summary Get Editable Order (Admin)
|
|
15521
16848
|
* @param {number} id Order ID
|
|
15522
16849
|
* @param {*} [options] Override http request option.
|
|
15523
16850
|
* @throws {RequiredError}
|
|
15524
16851
|
*/
|
|
15525
|
-
|
|
15526
|
-
return localVarFp.
|
|
16852
|
+
getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
|
|
16853
|
+
return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
16854
|
+
},
|
|
16855
|
+
/**
|
|
16856
|
+
* Get Editable Order
|
|
16857
|
+
* @summary Get Editable Order
|
|
16858
|
+
* @param {number} id Order ID
|
|
16859
|
+
* @param {*} [options] Override http request option.
|
|
16860
|
+
* @throws {RequiredError}
|
|
16861
|
+
*/
|
|
16862
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
|
|
16863
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
15527
16864
|
},
|
|
15528
16865
|
/**
|
|
15529
16866
|
* Get Orders
|
|
@@ -15541,6 +16878,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15541
16878
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15542
16879
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15543
16880
|
},
|
|
16881
|
+
/**
|
|
16882
|
+
* Create An Order (Admin)
|
|
16883
|
+
* @summary Create An Order (Admin)
|
|
16884
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16885
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16886
|
+
* @param {*} [options] Override http request option.
|
|
16887
|
+
* @throws {RequiredError}
|
|
16888
|
+
*/
|
|
16889
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16890
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16891
|
+
},
|
|
16892
|
+
/**
|
|
16893
|
+
* Create An Order
|
|
16894
|
+
* @summary Create An Order
|
|
16895
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16896
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16897
|
+
* @param {*} [options] Override http request option.
|
|
16898
|
+
* @throws {RequiredError}
|
|
16899
|
+
*/
|
|
16900
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16901
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16902
|
+
},
|
|
16903
|
+
/**
|
|
16904
|
+
* Update An Order (Admin)
|
|
16905
|
+
* @summary Update An Order (Admin)
|
|
16906
|
+
* @param {number} id Order ID
|
|
16907
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16908
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16909
|
+
* @param {*} [options] Override http request option.
|
|
16910
|
+
* @throws {RequiredError}
|
|
16911
|
+
*/
|
|
16912
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16913
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16914
|
+
},
|
|
16915
|
+
/**
|
|
16916
|
+
* Update An Order
|
|
16917
|
+
* @summary Update An Order
|
|
16918
|
+
* @param {number} id Order ID
|
|
16919
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16920
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16921
|
+
* @param {*} [options] Override http request option.
|
|
16922
|
+
* @throws {RequiredError}
|
|
16923
|
+
*/
|
|
16924
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16925
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16926
|
+
},
|
|
15544
16927
|
};
|
|
15545
16928
|
};
|
|
15546
16929
|
|
|
@@ -15553,13 +16936,38 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15553
16936
|
export class OrdersApi extends BaseAPI {
|
|
15554
16937
|
/**
|
|
15555
16938
|
* Delete Orders
|
|
16939
|
+
* @summary Delete Orders
|
|
15556
16940
|
* @param {number} id Order ID
|
|
15557
16941
|
* @param {*} [options] Override http request option.
|
|
15558
16942
|
* @throws {RequiredError}
|
|
15559
16943
|
* @memberof OrdersApi
|
|
15560
16944
|
*/
|
|
15561
|
-
public
|
|
15562
|
-
return OrdersApiFp(this.configuration).
|
|
16945
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16946
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16947
|
+
}
|
|
16948
|
+
|
|
16949
|
+
/**
|
|
16950
|
+
* Get Editable Order (Admin)
|
|
16951
|
+
* @summary Get Editable Order (Admin)
|
|
16952
|
+
* @param {number} id Order ID
|
|
16953
|
+
* @param {*} [options] Override http request option.
|
|
16954
|
+
* @throws {RequiredError}
|
|
16955
|
+
* @memberof OrdersApi
|
|
16956
|
+
*/
|
|
16957
|
+
public getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16958
|
+
return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16959
|
+
}
|
|
16960
|
+
|
|
16961
|
+
/**
|
|
16962
|
+
* Get Editable Order
|
|
16963
|
+
* @summary Get Editable Order
|
|
16964
|
+
* @param {number} id Order ID
|
|
16965
|
+
* @param {*} [options] Override http request option.
|
|
16966
|
+
* @throws {RequiredError}
|
|
16967
|
+
* @memberof OrdersApi
|
|
16968
|
+
*/
|
|
16969
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16970
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15563
16971
|
}
|
|
15564
16972
|
|
|
15565
16973
|
/**
|
|
@@ -15579,6 +16987,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15579
16987
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15580
16988
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15581
16989
|
}
|
|
16990
|
+
|
|
16991
|
+
/**
|
|
16992
|
+
* Create An Order (Admin)
|
|
16993
|
+
* @summary Create An Order (Admin)
|
|
16994
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16995
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16996
|
+
* @param {*} [options] Override http request option.
|
|
16997
|
+
* @throws {RequiredError}
|
|
16998
|
+
* @memberof OrdersApi
|
|
16999
|
+
*/
|
|
17000
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17001
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17002
|
+
}
|
|
17003
|
+
|
|
17004
|
+
/**
|
|
17005
|
+
* Create An Order
|
|
17006
|
+
* @summary Create An Order
|
|
17007
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17008
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
17009
|
+
* @param {*} [options] Override http request option.
|
|
17010
|
+
* @throws {RequiredError}
|
|
17011
|
+
* @memberof OrdersApi
|
|
17012
|
+
*/
|
|
17013
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17014
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17015
|
+
}
|
|
17016
|
+
|
|
17017
|
+
/**
|
|
17018
|
+
* Update An Order (Admin)
|
|
17019
|
+
* @summary Update An Order (Admin)
|
|
17020
|
+
* @param {number} id Order ID
|
|
17021
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17022
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
17023
|
+
* @param {*} [options] Override http request option.
|
|
17024
|
+
* @throws {RequiredError}
|
|
17025
|
+
* @memberof OrdersApi
|
|
17026
|
+
*/
|
|
17027
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17028
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17029
|
+
}
|
|
17030
|
+
|
|
17031
|
+
/**
|
|
17032
|
+
* Update An Order
|
|
17033
|
+
* @summary Update An Order
|
|
17034
|
+
* @param {number} id Order ID
|
|
17035
|
+
* @param {boolean} [readonly] Readonly Order
|
|
17036
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
17037
|
+
* @param {*} [options] Override http request option.
|
|
17038
|
+
* @throws {RequiredError}
|
|
17039
|
+
* @memberof OrdersApi
|
|
17040
|
+
*/
|
|
17041
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
17042
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
17043
|
+
}
|
|
15582
17044
|
}
|
|
15583
17045
|
|
|
15584
17046
|
/**
|
|
@@ -15964,8 +17426,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15964
17426
|
* @param {*} [options] Override http request option.
|
|
15965
17427
|
* @throws {RequiredError}
|
|
15966
17428
|
*/
|
|
15967
|
-
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15968
|
-
const localVarPath = `/products/attributes`;
|
|
17429
|
+
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17430
|
+
const localVarPath = `/products/attributes`;
|
|
17431
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17432
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17433
|
+
let baseOptions;
|
|
17434
|
+
if (configuration) {
|
|
17435
|
+
baseOptions = configuration.baseOptions;
|
|
17436
|
+
}
|
|
17437
|
+
|
|
17438
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17439
|
+
const localVarHeaderParameter = {} as any;
|
|
17440
|
+
const localVarQueryParameter = {} as any;
|
|
17441
|
+
|
|
17442
|
+
|
|
17443
|
+
|
|
17444
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17445
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17446
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17447
|
+
|
|
17448
|
+
return {
|
|
17449
|
+
url: toPathString(localVarUrlObj),
|
|
17450
|
+
options: localVarRequestOptions,
|
|
17451
|
+
};
|
|
17452
|
+
},
|
|
17453
|
+
/**
|
|
17454
|
+
* Get Current Stock & Pricing
|
|
17455
|
+
* @summary Get Current Stock & Pricing
|
|
17456
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
17457
|
+
* @param {*} [options] Override http request option.
|
|
17458
|
+
* @deprecated
|
|
17459
|
+
* @throws {RequiredError}
|
|
17460
|
+
*/
|
|
17461
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17462
|
+
// verify required parameter 'format' is not null or undefined
|
|
17463
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17464
|
+
const localVarPath = `/products/stock/legacy`;
|
|
15969
17465
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15970
17466
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15971
17467
|
let baseOptions;
|
|
@@ -15977,6 +17473,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15977
17473
|
const localVarHeaderParameter = {} as any;
|
|
15978
17474
|
const localVarQueryParameter = {} as any;
|
|
15979
17475
|
|
|
17476
|
+
if (format !== undefined) {
|
|
17477
|
+
localVarQueryParameter['format'] = format;
|
|
17478
|
+
}
|
|
17479
|
+
|
|
15980
17480
|
|
|
15981
17481
|
|
|
15982
17482
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15989,13 +17489,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15989
17489
|
};
|
|
15990
17490
|
},
|
|
15991
17491
|
/**
|
|
15992
|
-
* Get
|
|
15993
|
-
* @summary Get
|
|
17492
|
+
* Get Products
|
|
17493
|
+
* @summary Get Products
|
|
15994
17494
|
* @param {*} [options] Override http request option.
|
|
15995
17495
|
* @throws {RequiredError}
|
|
15996
17496
|
*/
|
|
15997
|
-
|
|
15998
|
-
const localVarPath = `/products
|
|
17497
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17498
|
+
const localVarPath = `/products`;
|
|
15999
17499
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16000
17500
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16001
17501
|
let baseOptions;
|
|
@@ -16021,15 +17521,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16021
17521
|
/**
|
|
16022
17522
|
* Get Current Stock & Pricing
|
|
16023
17523
|
* @summary Get Current Stock & Pricing
|
|
16024
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
16025
17524
|
* @param {*} [options] Override http request option.
|
|
16026
|
-
* @deprecated
|
|
16027
17525
|
* @throws {RequiredError}
|
|
16028
17526
|
*/
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
16032
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17527
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17528
|
+
const localVarPath = `/products/stock`;
|
|
16033
17529
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16034
17530
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16035
17531
|
let baseOptions;
|
|
@@ -16041,10 +17537,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16041
17537
|
const localVarHeaderParameter = {} as any;
|
|
16042
17538
|
const localVarQueryParameter = {} as any;
|
|
16043
17539
|
|
|
16044
|
-
|
|
16045
|
-
|
|
17540
|
+
|
|
17541
|
+
|
|
17542
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17544
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17545
|
+
|
|
17546
|
+
return {
|
|
17547
|
+
url: toPathString(localVarUrlObj),
|
|
17548
|
+
options: localVarRequestOptions,
|
|
17549
|
+
};
|
|
17550
|
+
},
|
|
17551
|
+
/**
|
|
17552
|
+
* Get 3CX Templates
|
|
17553
|
+
* @summary Get 3CX Templates
|
|
17554
|
+
* @param {*} [options] Override http request option.
|
|
17555
|
+
* @throws {RequiredError}
|
|
17556
|
+
*/
|
|
17557
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17558
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17561
|
+
let baseOptions;
|
|
17562
|
+
if (configuration) {
|
|
17563
|
+
baseOptions = configuration.baseOptions;
|
|
16046
17564
|
}
|
|
16047
17565
|
|
|
17566
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17567
|
+
const localVarHeaderParameter = {} as any;
|
|
17568
|
+
const localVarQueryParameter = {} as any;
|
|
17569
|
+
|
|
16048
17570
|
|
|
16049
17571
|
|
|
16050
17572
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16057,15 +17579,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16057
17579
|
};
|
|
16058
17580
|
},
|
|
16059
17581
|
/**
|
|
16060
|
-
*
|
|
16061
|
-
* @summary
|
|
17582
|
+
* Search Products
|
|
17583
|
+
* @summary Search Products
|
|
16062
17584
|
* @param {number} [pageSize] Number Of Results
|
|
16063
17585
|
* @param {number} [page] Page Number
|
|
16064
17586
|
* @param {string} [search] Search
|
|
16065
17587
|
* @param {*} [options] Override http request option.
|
|
16066
17588
|
* @throws {RequiredError}
|
|
16067
17589
|
*/
|
|
16068
|
-
|
|
17590
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16069
17591
|
const localVarPath = `/products/search`;
|
|
16070
17592
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16071
17593
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16102,13 +17624,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16102
17624
|
};
|
|
16103
17625
|
},
|
|
16104
17626
|
/**
|
|
16105
|
-
* Get
|
|
16106
|
-
* @summary Get
|
|
17627
|
+
* Get Product
|
|
17628
|
+
* @summary Get Product
|
|
17629
|
+
* @param {string} sku Product SKU
|
|
17630
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16107
17631
|
* @param {*} [options] Override http request option.
|
|
16108
17632
|
* @throws {RequiredError}
|
|
16109
17633
|
*/
|
|
16110
|
-
|
|
16111
|
-
|
|
17634
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17635
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17636
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17637
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17638
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17639
|
+
const localVarPath = `/products/{sku}`
|
|
17640
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16112
17641
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16113
17642
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16114
17643
|
let baseOptions;
|
|
@@ -16116,15 +17645,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16116
17645
|
baseOptions = configuration.baseOptions;
|
|
16117
17646
|
}
|
|
16118
17647
|
|
|
16119
|
-
const localVarRequestOptions = { method: '
|
|
17648
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16120
17649
|
const localVarHeaderParameter = {} as any;
|
|
16121
17650
|
const localVarQueryParameter = {} as any;
|
|
16122
17651
|
|
|
16123
17652
|
|
|
16124
17653
|
|
|
17654
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17655
|
+
|
|
16125
17656
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16126
17657
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16127
17658
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17659
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16128
17660
|
|
|
16129
17661
|
return {
|
|
16130
17662
|
url: toPathString(localVarUrlObj),
|
|
@@ -16132,13 +17664,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16132
17664
|
};
|
|
16133
17665
|
},
|
|
16134
17666
|
/**
|
|
16135
|
-
* Get
|
|
16136
|
-
* @summary Get
|
|
17667
|
+
* Get Product For Customer
|
|
17668
|
+
* @summary Get Product For Customer
|
|
17669
|
+
* @param {number} customerId Customer ID
|
|
17670
|
+
* @param {string} sku Product SKU
|
|
17671
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16137
17672
|
* @param {*} [options] Override http request option.
|
|
16138
17673
|
* @throws {RequiredError}
|
|
16139
17674
|
*/
|
|
16140
|
-
|
|
16141
|
-
|
|
17675
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17676
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17677
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17678
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17679
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17680
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17681
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17682
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17683
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16142
17684
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16143
17685
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16144
17686
|
let baseOptions;
|
|
@@ -16146,15 +17688,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16146
17688
|
baseOptions = configuration.baseOptions;
|
|
16147
17689
|
}
|
|
16148
17690
|
|
|
16149
|
-
const localVarRequestOptions = { method: '
|
|
17691
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16150
17692
|
const localVarHeaderParameter = {} as any;
|
|
16151
17693
|
const localVarQueryParameter = {} as any;
|
|
16152
17694
|
|
|
17695
|
+
if (customerId !== undefined) {
|
|
17696
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17697
|
+
}
|
|
17698
|
+
|
|
16153
17699
|
|
|
16154
17700
|
|
|
17701
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17702
|
+
|
|
16155
17703
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16156
17704
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16157
17705
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17706
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16158
17707
|
|
|
16159
17708
|
return {
|
|
16160
17709
|
url: toPathString(localVarUrlObj),
|
|
@@ -16183,18 +17732,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16183
17732
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
16184
17733
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16185
17734
|
},
|
|
16186
|
-
/**
|
|
16187
|
-
* Get Customer Price Lists
|
|
16188
|
-
* @summary Get Customer Price Lists
|
|
16189
|
-
* @param {*} [options] Override http request option.
|
|
16190
|
-
* @throws {RequiredError}
|
|
16191
|
-
*/
|
|
16192
|
-
async getGetCustomerPriceLists(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CustomerPriceListEnum>>> {
|
|
16193
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetCustomerPriceLists(options);
|
|
16194
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16195
|
-
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetCustomerPriceLists']?.[localVarOperationServerIndex]?.url;
|
|
16196
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16197
|
-
},
|
|
16198
17735
|
/**
|
|
16199
17736
|
* Get Current Stock & Pricing
|
|
16200
17737
|
* @summary Get Current Stock & Pricing
|
|
@@ -16212,14 +17749,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16212
17749
|
/**
|
|
16213
17750
|
* Get Products
|
|
16214
17751
|
* @summary Get Products
|
|
16215
|
-
* @param {number} [pageSize] Number Of Results
|
|
16216
|
-
* @param {number} [page] Page Number
|
|
16217
|
-
* @param {string} [search] Search
|
|
16218
17752
|
* @param {*} [options] Override http request option.
|
|
16219
17753
|
* @throws {RequiredError}
|
|
16220
17754
|
*/
|
|
16221
|
-
async getGetProducts(
|
|
16222
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17755
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17756
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16223
17757
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16224
17758
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16225
17759
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16248,6 +17782,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16248
17782
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16249
17783
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16250
17784
|
},
|
|
17785
|
+
/**
|
|
17786
|
+
* Search Products
|
|
17787
|
+
* @summary Search Products
|
|
17788
|
+
* @param {number} [pageSize] Number Of Results
|
|
17789
|
+
* @param {number} [page] Page Number
|
|
17790
|
+
* @param {string} [search] Search
|
|
17791
|
+
* @param {*} [options] Override http request option.
|
|
17792
|
+
* @throws {RequiredError}
|
|
17793
|
+
*/
|
|
17794
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17795
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17796
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17797
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17798
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17799
|
+
},
|
|
17800
|
+
/**
|
|
17801
|
+
* Get Product
|
|
17802
|
+
* @summary Get Product
|
|
17803
|
+
* @param {string} sku Product SKU
|
|
17804
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17805
|
+
* @param {*} [options] Override http request option.
|
|
17806
|
+
* @throws {RequiredError}
|
|
17807
|
+
*/
|
|
17808
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17809
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17810
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17811
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17812
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17813
|
+
},
|
|
17814
|
+
/**
|
|
17815
|
+
* Get Product For Customer
|
|
17816
|
+
* @summary Get Product For Customer
|
|
17817
|
+
* @param {number} customerId Customer ID
|
|
17818
|
+
* @param {string} sku Product SKU
|
|
17819
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17820
|
+
* @param {*} [options] Override http request option.
|
|
17821
|
+
* @throws {RequiredError}
|
|
17822
|
+
*/
|
|
17823
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17824
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17825
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17826
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17827
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17828
|
+
},
|
|
16251
17829
|
}
|
|
16252
17830
|
};
|
|
16253
17831
|
|
|
@@ -16267,15 +17845,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16267
17845
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16268
17846
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16269
17847
|
},
|
|
16270
|
-
/**
|
|
16271
|
-
* Get Customer Price Lists
|
|
16272
|
-
* @summary Get Customer Price Lists
|
|
16273
|
-
* @param {*} [options] Override http request option.
|
|
16274
|
-
* @throws {RequiredError}
|
|
16275
|
-
*/
|
|
16276
|
-
getGetCustomerPriceLists(options?: RawAxiosRequestConfig): AxiosPromise<Array<CustomerPriceListEnum>> {
|
|
16277
|
-
return localVarFp.getGetCustomerPriceLists(options).then((request) => request(axios, basePath));
|
|
16278
|
-
},
|
|
16279
17848
|
/**
|
|
16280
17849
|
* Get Current Stock & Pricing
|
|
16281
17850
|
* @summary Get Current Stock & Pricing
|
|
@@ -16290,14 +17859,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16290
17859
|
/**
|
|
16291
17860
|
* Get Products
|
|
16292
17861
|
* @summary Get Products
|
|
16293
|
-
* @param {number} [pageSize] Number Of Results
|
|
16294
|
-
* @param {number} [page] Page Number
|
|
16295
|
-
* @param {string} [search] Search
|
|
16296
17862
|
* @param {*} [options] Override http request option.
|
|
16297
17863
|
* @throws {RequiredError}
|
|
16298
17864
|
*/
|
|
16299
|
-
getGetProducts(
|
|
16300
|
-
return localVarFp.getGetProducts(
|
|
17865
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17866
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16301
17867
|
},
|
|
16302
17868
|
/**
|
|
16303
17869
|
* Get Current Stock & Pricing
|
|
@@ -16317,6 +17883,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16317
17883
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16318
17884
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16319
17885
|
},
|
|
17886
|
+
/**
|
|
17887
|
+
* Search Products
|
|
17888
|
+
* @summary Search Products
|
|
17889
|
+
* @param {number} [pageSize] Number Of Results
|
|
17890
|
+
* @param {number} [page] Page Number
|
|
17891
|
+
* @param {string} [search] Search
|
|
17892
|
+
* @param {*} [options] Override http request option.
|
|
17893
|
+
* @throws {RequiredError}
|
|
17894
|
+
*/
|
|
17895
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17896
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17897
|
+
},
|
|
17898
|
+
/**
|
|
17899
|
+
* Get Product
|
|
17900
|
+
* @summary Get Product
|
|
17901
|
+
* @param {string} sku Product SKU
|
|
17902
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17903
|
+
* @param {*} [options] Override http request option.
|
|
17904
|
+
* @throws {RequiredError}
|
|
17905
|
+
*/
|
|
17906
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17907
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17908
|
+
},
|
|
17909
|
+
/**
|
|
17910
|
+
* Get Product For Customer
|
|
17911
|
+
* @summary Get Product For Customer
|
|
17912
|
+
* @param {number} customerId Customer ID
|
|
17913
|
+
* @param {string} sku Product SKU
|
|
17914
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17915
|
+
* @param {*} [options] Override http request option.
|
|
17916
|
+
* @throws {RequiredError}
|
|
17917
|
+
*/
|
|
17918
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17919
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17920
|
+
},
|
|
16320
17921
|
};
|
|
16321
17922
|
};
|
|
16322
17923
|
|
|
@@ -16338,17 +17939,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16338
17939
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16339
17940
|
}
|
|
16340
17941
|
|
|
16341
|
-
/**
|
|
16342
|
-
* Get Customer Price Lists
|
|
16343
|
-
* @summary Get Customer Price Lists
|
|
16344
|
-
* @param {*} [options] Override http request option.
|
|
16345
|
-
* @throws {RequiredError}
|
|
16346
|
-
* @memberof ProductsApi
|
|
16347
|
-
*/
|
|
16348
|
-
public getGetCustomerPriceLists(options?: RawAxiosRequestConfig) {
|
|
16349
|
-
return ProductsApiFp(this.configuration).getGetCustomerPriceLists(options).then((request) => request(this.axios, this.basePath));
|
|
16350
|
-
}
|
|
16351
|
-
|
|
16352
17942
|
/**
|
|
16353
17943
|
* Get Current Stock & Pricing
|
|
16354
17944
|
* @summary Get Current Stock & Pricing
|
|
@@ -16365,15 +17955,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16365
17955
|
/**
|
|
16366
17956
|
* Get Products
|
|
16367
17957
|
* @summary Get Products
|
|
16368
|
-
* @param {number} [pageSize] Number Of Results
|
|
16369
|
-
* @param {number} [page] Page Number
|
|
16370
|
-
* @param {string} [search] Search
|
|
16371
17958
|
* @param {*} [options] Override http request option.
|
|
16372
17959
|
* @throws {RequiredError}
|
|
16373
17960
|
* @memberof ProductsApi
|
|
16374
17961
|
*/
|
|
16375
|
-
public getGetProducts(
|
|
16376
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
17962
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
17963
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16377
17964
|
}
|
|
16378
17965
|
|
|
16379
17966
|
/**
|
|
@@ -16397,6 +17984,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16397
17984
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16398
17985
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16399
17986
|
}
|
|
17987
|
+
|
|
17988
|
+
/**
|
|
17989
|
+
* Search Products
|
|
17990
|
+
* @summary Search Products
|
|
17991
|
+
* @param {number} [pageSize] Number Of Results
|
|
17992
|
+
* @param {number} [page] Page Number
|
|
17993
|
+
* @param {string} [search] Search
|
|
17994
|
+
* @param {*} [options] Override http request option.
|
|
17995
|
+
* @throws {RequiredError}
|
|
17996
|
+
* @memberof ProductsApi
|
|
17997
|
+
*/
|
|
17998
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
17999
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
18000
|
+
}
|
|
18001
|
+
|
|
18002
|
+
/**
|
|
18003
|
+
* Get Product
|
|
18004
|
+
* @summary Get Product
|
|
18005
|
+
* @param {string} sku Product SKU
|
|
18006
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
18007
|
+
* @param {*} [options] Override http request option.
|
|
18008
|
+
* @throws {RequiredError}
|
|
18009
|
+
* @memberof ProductsApi
|
|
18010
|
+
*/
|
|
18011
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
18012
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18013
|
+
}
|
|
18014
|
+
|
|
18015
|
+
/**
|
|
18016
|
+
* Get Product For Customer
|
|
18017
|
+
* @summary Get Product For Customer
|
|
18018
|
+
* @param {number} customerId Customer ID
|
|
18019
|
+
* @param {string} sku Product SKU
|
|
18020
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
18021
|
+
* @param {*} [options] Override http request option.
|
|
18022
|
+
* @throws {RequiredError}
|
|
18023
|
+
* @memberof ProductsApi
|
|
18024
|
+
*/
|
|
18025
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
18026
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18027
|
+
}
|
|
16400
18028
|
}
|
|
16401
18029
|
|
|
16402
18030
|
/**
|
|
@@ -16737,7 +18365,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16737
18365
|
* @param {*} [options] Override http request option.
|
|
16738
18366
|
* @throws {RequiredError}
|
|
16739
18367
|
*/
|
|
16740
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
18368
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16741
18369
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16742
18370
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16743
18371
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16750,7 +18378,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16750
18378
|
* @param {*} [options] Override http request option.
|
|
16751
18379
|
* @throws {RequiredError}
|
|
16752
18380
|
*/
|
|
16753
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18381
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16754
18382
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16755
18383
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16756
18384
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16829,7 +18457,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16829
18457
|
* @param {*} [options] Override http request option.
|
|
16830
18458
|
* @throws {RequiredError}
|
|
16831
18459
|
*/
|
|
16832
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18460
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16833
18461
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16834
18462
|
},
|
|
16835
18463
|
/**
|
|
@@ -16839,7 +18467,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16839
18467
|
* @param {*} [options] Override http request option.
|
|
16840
18468
|
* @throws {RequiredError}
|
|
16841
18469
|
*/
|
|
16842
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18470
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16843
18471
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16844
18472
|
},
|
|
16845
18473
|
/**
|
|
@@ -18740,6 +20368,114 @@ export class SMSApi extends BaseAPI {
|
|
|
18740
20368
|
|
|
18741
20369
|
|
|
18742
20370
|
|
|
20371
|
+
/**
|
|
20372
|
+
* ShippingApi - axios parameter creator
|
|
20373
|
+
* @export
|
|
20374
|
+
*/
|
|
20375
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20376
|
+
return {
|
|
20377
|
+
/**
|
|
20378
|
+
* Get Shipping Services
|
|
20379
|
+
* @summary Get Shipping Services
|
|
20380
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20381
|
+
* @param {*} [options] Override http request option.
|
|
20382
|
+
* @throws {RequiredError}
|
|
20383
|
+
*/
|
|
20384
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20385
|
+
const localVarPath = `/shipping/services`;
|
|
20386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20387
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20388
|
+
let baseOptions;
|
|
20389
|
+
if (configuration) {
|
|
20390
|
+
baseOptions = configuration.baseOptions;
|
|
20391
|
+
}
|
|
20392
|
+
|
|
20393
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20394
|
+
const localVarHeaderParameter = {} as any;
|
|
20395
|
+
const localVarQueryParameter = {} as any;
|
|
20396
|
+
|
|
20397
|
+
|
|
20398
|
+
|
|
20399
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20400
|
+
|
|
20401
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20403
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20404
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20405
|
+
|
|
20406
|
+
return {
|
|
20407
|
+
url: toPathString(localVarUrlObj),
|
|
20408
|
+
options: localVarRequestOptions,
|
|
20409
|
+
};
|
|
20410
|
+
},
|
|
20411
|
+
}
|
|
20412
|
+
};
|
|
20413
|
+
|
|
20414
|
+
/**
|
|
20415
|
+
* ShippingApi - functional programming interface
|
|
20416
|
+
* @export
|
|
20417
|
+
*/
|
|
20418
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20419
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20420
|
+
return {
|
|
20421
|
+
/**
|
|
20422
|
+
* Get Shipping Services
|
|
20423
|
+
* @summary Get Shipping Services
|
|
20424
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20425
|
+
* @param {*} [options] Override http request option.
|
|
20426
|
+
* @throws {RequiredError}
|
|
20427
|
+
*/
|
|
20428
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20430
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20431
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20433
|
+
},
|
|
20434
|
+
}
|
|
20435
|
+
};
|
|
20436
|
+
|
|
20437
|
+
/**
|
|
20438
|
+
* ShippingApi - factory interface
|
|
20439
|
+
* @export
|
|
20440
|
+
*/
|
|
20441
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20442
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20443
|
+
return {
|
|
20444
|
+
/**
|
|
20445
|
+
* Get Shipping Services
|
|
20446
|
+
* @summary Get Shipping Services
|
|
20447
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20448
|
+
* @param {*} [options] Override http request option.
|
|
20449
|
+
* @throws {RequiredError}
|
|
20450
|
+
*/
|
|
20451
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20452
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20453
|
+
},
|
|
20454
|
+
};
|
|
20455
|
+
};
|
|
20456
|
+
|
|
20457
|
+
/**
|
|
20458
|
+
* ShippingApi - object-oriented interface
|
|
20459
|
+
* @export
|
|
20460
|
+
* @class ShippingApi
|
|
20461
|
+
* @extends {BaseAPI}
|
|
20462
|
+
*/
|
|
20463
|
+
export class ShippingApi extends BaseAPI {
|
|
20464
|
+
/**
|
|
20465
|
+
* Get Shipping Services
|
|
20466
|
+
* @summary Get Shipping Services
|
|
20467
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20468
|
+
* @param {*} [options] Override http request option.
|
|
20469
|
+
* @throws {RequiredError}
|
|
20470
|
+
* @memberof ShippingApi
|
|
20471
|
+
*/
|
|
20472
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20473
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20474
|
+
}
|
|
20475
|
+
}
|
|
20476
|
+
|
|
20477
|
+
|
|
20478
|
+
|
|
18743
20479
|
/**
|
|
18744
20480
|
* StockManagementApi - axios parameter creator
|
|
18745
20481
|
* @export
|
|
@@ -19826,7 +21562,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19826
21562
|
* @param {*} [options] Override http request option.
|
|
19827
21563
|
* @throws {RequiredError}
|
|
19828
21564
|
*/
|
|
19829
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21565
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19830
21566
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19831
21567
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19832
21568
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20129,7 +21865,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
20129
21865
|
* @param {*} [options] Override http request option.
|
|
20130
21866
|
* @throws {RequiredError}
|
|
20131
21867
|
*/
|
|
20132
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
21868
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
20133
21869
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
20134
21870
|
},
|
|
20135
21871
|
/**
|