yellowgrid-api-ts 3.1.12 → 3.1.13-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 +34 -7
- package/api.ts +1832 -229
- 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 +1376 -151
- package/dist/api.js +1063 -207
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AbstractOrderRequestDTO.md +33 -0
- package/docs/AccountDetailedSummaryDTO.md +39 -0
- package/docs/AccountsApi.md +103 -0
- package/docs/AddressModel.md +2 -0
- package/docs/AdminItemRequestDTO.md +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/ItemDTO.md +12 -4
- package/docs/ItemDiscountEntity.md +31 -0
- package/docs/ItemEntity.md +2 -0
- package/docs/LinkedOrderEntity.md +23 -0
- package/docs/OrderSummaryDTO.md +8 -0
- package/docs/OrderTotalModel.md +2 -0
- package/docs/OrdersApi.md +301 -4
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductSearchResultsModel.md +1 -1
- package/docs/{ProductSummaryModel.md → ProductSummaryDTO.md} +5 -3
- package/docs/ProductsApi.md +164 -43
- package/docs/ProvisioningApi.md +4 -4
- package/docs/{ProvisioningEntity.md → ProvisioningModel.md} +3 -3
- package/docs/ShipmentEntity.md +2 -2
- package/docs/ShippingApi.md +63 -0
- package/docs/ShippingConsignmentModel.md +26 -0
- package/docs/ShippingInformationDTO.md +25 -0
- package/docs/ShippingServiceDTO.md +23 -0
- package/docs/ShippingServiceModel.md +31 -0
- package/docs/{GetGetPasswordHash200Response.md → ShippingServicesModel.md} +5 -5
- package/docs/StockManagementApi.md +2 -2
- package/docs/TcxSbcDTO.md +31 -0
- package/docs/TcxSbcModel.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Yellowgrid
|
|
5
|
-
* Welcome to the Yellowgrid API documentation.
|
|
5
|
+
* Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 0
|
|
8
8
|
*
|
|
@@ -23,6 +23,55 @@ import type { RequestArgs } from './base';
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Order Request
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AbstractOrderRequestDTO
|
|
30
|
+
*/
|
|
31
|
+
export interface AbstractOrderRequestDTO {
|
|
32
|
+
/**
|
|
33
|
+
* Order Reference
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AbstractOrderRequestDTO
|
|
36
|
+
*/
|
|
37
|
+
'orderReference'?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* Items
|
|
40
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
41
|
+
* @memberof AbstractOrderRequestDTO
|
|
42
|
+
*/
|
|
43
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ShippingServiceDTO}
|
|
47
|
+
* @memberof AbstractOrderRequestDTO
|
|
48
|
+
*/
|
|
49
|
+
'shippingService'?: ShippingServiceDTO;
|
|
50
|
+
/**
|
|
51
|
+
* Provisioning URL
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AbstractOrderRequestDTO
|
|
54
|
+
*/
|
|
55
|
+
'provisioningUrl'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {AddressModel}
|
|
59
|
+
* @memberof AbstractOrderRequestDTO
|
|
60
|
+
*/
|
|
61
|
+
'shippingAddress'?: AddressModel | null;
|
|
62
|
+
/**
|
|
63
|
+
* Part Ship Order
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof AbstractOrderRequestDTO
|
|
66
|
+
*/
|
|
67
|
+
'partShip'?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Quote
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof AbstractOrderRequestDTO
|
|
72
|
+
*/
|
|
73
|
+
'quote'?: boolean;
|
|
74
|
+
}
|
|
26
75
|
/**
|
|
27
76
|
* AccountContactsEntity
|
|
28
77
|
* @export
|
|
@@ -254,6 +303,73 @@ export interface AccountContactRequestModel {
|
|
|
254
303
|
*/
|
|
255
304
|
'despatchEmails'?: boolean;
|
|
256
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Account Details
|
|
308
|
+
* @export
|
|
309
|
+
* @interface AccountDetailedSummaryDTO
|
|
310
|
+
*/
|
|
311
|
+
export interface AccountDetailedSummaryDTO {
|
|
312
|
+
/**
|
|
313
|
+
* ID
|
|
314
|
+
* @type {number}
|
|
315
|
+
* @memberof AccountDetailedSummaryDTO
|
|
316
|
+
*/
|
|
317
|
+
'id'?: number;
|
|
318
|
+
/**
|
|
319
|
+
* Xero ID
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof AccountDetailedSummaryDTO
|
|
322
|
+
*/
|
|
323
|
+
'xeroId'?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Company
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof AccountDetailedSummaryDTO
|
|
328
|
+
*/
|
|
329
|
+
'company'?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Credit Limit
|
|
332
|
+
* @type {number}
|
|
333
|
+
* @memberof AccountDetailedSummaryDTO
|
|
334
|
+
*/
|
|
335
|
+
'creditLimit'?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Contacts
|
|
338
|
+
* @type {Array<AccountContactModel>}
|
|
339
|
+
* @memberof AccountDetailedSummaryDTO
|
|
340
|
+
*/
|
|
341
|
+
'contacts'?: Array<AccountContactModel>;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {AddressModel}
|
|
345
|
+
* @memberof AccountDetailedSummaryDTO
|
|
346
|
+
*/
|
|
347
|
+
'billingAddress'?: AddressModel;
|
|
348
|
+
/**
|
|
349
|
+
* Addresses
|
|
350
|
+
* @type {Array<AddressModel>}
|
|
351
|
+
* @memberof AccountDetailedSummaryDTO
|
|
352
|
+
*/
|
|
353
|
+
'addresses'?: Array<AddressModel>;
|
|
354
|
+
/**
|
|
355
|
+
* Provisioning URLs
|
|
356
|
+
* @type {Array<ProvisioningModel>}
|
|
357
|
+
* @memberof AccountDetailedSummaryDTO
|
|
358
|
+
*/
|
|
359
|
+
'provisioningUrls'?: Array<ProvisioningModel>;
|
|
360
|
+
/**
|
|
361
|
+
* On Hold
|
|
362
|
+
* @type {boolean}
|
|
363
|
+
* @memberof AccountDetailedSummaryDTO
|
|
364
|
+
*/
|
|
365
|
+
'onHold'?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Balance (£)
|
|
368
|
+
* @type {number}
|
|
369
|
+
* @memberof AccountDetailedSummaryDTO
|
|
370
|
+
*/
|
|
371
|
+
'balance'?: number | null;
|
|
372
|
+
}
|
|
257
373
|
/**
|
|
258
374
|
* New Account Request
|
|
259
375
|
* @export
|
|
@@ -503,6 +619,12 @@ export interface AddressModel {
|
|
|
503
619
|
* @memberof AddressModel
|
|
504
620
|
*/
|
|
505
621
|
'company'?: string;
|
|
622
|
+
/**
|
|
623
|
+
* Default
|
|
624
|
+
* @type {boolean}
|
|
625
|
+
* @memberof AddressModel
|
|
626
|
+
*/
|
|
627
|
+
'default'?: boolean;
|
|
506
628
|
}
|
|
507
629
|
/**
|
|
508
630
|
* Address Request
|
|
@@ -535,6 +657,218 @@ export interface AddressRequestModel {
|
|
|
535
657
|
*/
|
|
536
658
|
'addressPostcode'?: string;
|
|
537
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* Admin Order Item Request
|
|
662
|
+
* @export
|
|
663
|
+
* @interface AdminItemRequestDTO
|
|
664
|
+
*/
|
|
665
|
+
export interface AdminItemRequestDTO {
|
|
666
|
+
/**
|
|
667
|
+
* SKU
|
|
668
|
+
* @type {string}
|
|
669
|
+
* @memberof AdminItemRequestDTO
|
|
670
|
+
*/
|
|
671
|
+
'sku'?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Quantity
|
|
674
|
+
* @type {number}
|
|
675
|
+
* @memberof AdminItemRequestDTO
|
|
676
|
+
*/
|
|
677
|
+
'quantity'?: number;
|
|
678
|
+
/**
|
|
679
|
+
* ID
|
|
680
|
+
* @type {number}
|
|
681
|
+
* @memberof AdminItemRequestDTO
|
|
682
|
+
*/
|
|
683
|
+
'id'?: number | null;
|
|
684
|
+
/**
|
|
685
|
+
* 3CX Licence Key
|
|
686
|
+
* @type {string}
|
|
687
|
+
* @memberof AdminItemRequestDTO
|
|
688
|
+
*/
|
|
689
|
+
'licenceKey'?: string | null;
|
|
690
|
+
/**
|
|
691
|
+
* 3CX Hosting
|
|
692
|
+
* @type {boolean}
|
|
693
|
+
* @memberof AdminItemRequestDTO
|
|
694
|
+
*/
|
|
695
|
+
'hosting'?: boolean | null;
|
|
696
|
+
/**
|
|
697
|
+
* Date Time
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof AdminItemRequestDTO
|
|
700
|
+
*/
|
|
701
|
+
'processDate'?: string;
|
|
702
|
+
/**
|
|
703
|
+
* 3CX Sales Code
|
|
704
|
+
* @type {string}
|
|
705
|
+
* @memberof AdminItemRequestDTO
|
|
706
|
+
*/
|
|
707
|
+
'tcxSalesCode'?: string | null;
|
|
708
|
+
/**
|
|
709
|
+
* SBCS
|
|
710
|
+
* @type {Array<TcxSbcDTO>}
|
|
711
|
+
* @memberof AdminItemRequestDTO
|
|
712
|
+
*/
|
|
713
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
714
|
+
/**
|
|
715
|
+
* Read Only (Cannot be edited)
|
|
716
|
+
* @type {boolean}
|
|
717
|
+
* @memberof AdminItemRequestDTO
|
|
718
|
+
*/
|
|
719
|
+
'readOnly'?: boolean;
|
|
720
|
+
/**
|
|
721
|
+
* Title
|
|
722
|
+
* @type {string}
|
|
723
|
+
* @memberof AdminItemRequestDTO
|
|
724
|
+
*/
|
|
725
|
+
'title'?: string | null;
|
|
726
|
+
/**
|
|
727
|
+
* Price (£)
|
|
728
|
+
* @type {number}
|
|
729
|
+
* @memberof AdminItemRequestDTO
|
|
730
|
+
*/
|
|
731
|
+
'itemPrice'?: number | null;
|
|
732
|
+
/**
|
|
733
|
+
* Additional Discount
|
|
734
|
+
* @type {number}
|
|
735
|
+
* @memberof AdminItemRequestDTO
|
|
736
|
+
*/
|
|
737
|
+
'additionalDiscount'?: number | null;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Admin Order Request
|
|
741
|
+
* @export
|
|
742
|
+
* @interface AdminOrderRequestDTO
|
|
743
|
+
*/
|
|
744
|
+
export interface AdminOrderRequestDTO {
|
|
745
|
+
/**
|
|
746
|
+
* Order Reference
|
|
747
|
+
* @type {string}
|
|
748
|
+
* @memberof AdminOrderRequestDTO
|
|
749
|
+
*/
|
|
750
|
+
'orderReference'?: string | null;
|
|
751
|
+
/**
|
|
752
|
+
* Items
|
|
753
|
+
* @type {Array<AdminItemRequestDTO>}
|
|
754
|
+
* @memberof AdminOrderRequestDTO
|
|
755
|
+
*/
|
|
756
|
+
'items'?: Array<AdminItemRequestDTO>;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {ShippingServiceDTO}
|
|
760
|
+
* @memberof AdminOrderRequestDTO
|
|
761
|
+
*/
|
|
762
|
+
'shippingService'?: ShippingServiceDTO;
|
|
763
|
+
/**
|
|
764
|
+
* Provisioning URL
|
|
765
|
+
* @type {string}
|
|
766
|
+
* @memberof AdminOrderRequestDTO
|
|
767
|
+
*/
|
|
768
|
+
'provisioningUrl'?: string | null;
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @type {AddressModel}
|
|
772
|
+
* @memberof AdminOrderRequestDTO
|
|
773
|
+
*/
|
|
774
|
+
'shippingAddress'?: AddressModel;
|
|
775
|
+
/**
|
|
776
|
+
* Part Ship Order
|
|
777
|
+
* @type {boolean}
|
|
778
|
+
* @memberof AdminOrderRequestDTO
|
|
779
|
+
*/
|
|
780
|
+
'partShip'?: boolean;
|
|
781
|
+
/**
|
|
782
|
+
* Quote
|
|
783
|
+
* @type {boolean}
|
|
784
|
+
* @memberof AdminOrderRequestDTO
|
|
785
|
+
*/
|
|
786
|
+
'quote'?: boolean;
|
|
787
|
+
/**
|
|
788
|
+
* Customer ID
|
|
789
|
+
* @type {number}
|
|
790
|
+
* @memberof AdminOrderRequestDTO
|
|
791
|
+
*/
|
|
792
|
+
'customerId'?: number;
|
|
793
|
+
/**
|
|
794
|
+
* Contact
|
|
795
|
+
* @type {string}
|
|
796
|
+
* @memberof AdminOrderRequestDTO
|
|
797
|
+
*/
|
|
798
|
+
'contact'?: string;
|
|
799
|
+
/**
|
|
800
|
+
* Ignore Customer On Hold
|
|
801
|
+
* @type {boolean}
|
|
802
|
+
* @memberof AdminOrderRequestDTO
|
|
803
|
+
*/
|
|
804
|
+
'ignoreOnHold'?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* Ignore Customer Credit Limit
|
|
807
|
+
* @type {boolean}
|
|
808
|
+
* @memberof AdminOrderRequestDTO
|
|
809
|
+
*/
|
|
810
|
+
'ignoreCreditLimit'?: boolean;
|
|
811
|
+
/**
|
|
812
|
+
* Include NFR Promos
|
|
813
|
+
* @type {boolean}
|
|
814
|
+
* @memberof AdminOrderRequestDTO
|
|
815
|
+
*/
|
|
816
|
+
'includeNfrPromos'?: boolean;
|
|
817
|
+
/**
|
|
818
|
+
* Carriage Charge
|
|
819
|
+
* @type {number}
|
|
820
|
+
* @memberof AdminOrderRequestDTO
|
|
821
|
+
*/
|
|
822
|
+
'carriageCharge'?: number;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Admin User
|
|
826
|
+
* @export
|
|
827
|
+
* @interface AdminUserModel
|
|
828
|
+
*/
|
|
829
|
+
export interface AdminUserModel {
|
|
830
|
+
/**
|
|
831
|
+
* First Name
|
|
832
|
+
* @type {string}
|
|
833
|
+
* @memberof AdminUserModel
|
|
834
|
+
*/
|
|
835
|
+
'firstName'?: string;
|
|
836
|
+
/**
|
|
837
|
+
* Last Name
|
|
838
|
+
* @type {string}
|
|
839
|
+
* @memberof AdminUserModel
|
|
840
|
+
*/
|
|
841
|
+
'lastName'?: string;
|
|
842
|
+
/**
|
|
843
|
+
* Avatar
|
|
844
|
+
* @type {string}
|
|
845
|
+
* @memberof AdminUserModel
|
|
846
|
+
*/
|
|
847
|
+
'avatar'?: string | null;
|
|
848
|
+
/**
|
|
849
|
+
* Role
|
|
850
|
+
* @type {number}
|
|
851
|
+
* @memberof AdminUserModel
|
|
852
|
+
*/
|
|
853
|
+
'role'?: AdminUserModelRoleEnum;
|
|
854
|
+
/**
|
|
855
|
+
* Email
|
|
856
|
+
* @type {string}
|
|
857
|
+
* @memberof AdminUserModel
|
|
858
|
+
*/
|
|
859
|
+
'email'?: string | null;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
export const AdminUserModelRoleEnum = {
|
|
863
|
+
NUMBER_0: 0,
|
|
864
|
+
NUMBER_1: 1,
|
|
865
|
+
NUMBER_2: 2,
|
|
866
|
+
NUMBER_3: 3,
|
|
867
|
+
NUMBER_4: 4
|
|
868
|
+
} as const;
|
|
869
|
+
|
|
870
|
+
export type AdminUserModelRoleEnum = typeof AdminUserModelRoleEnum[keyof typeof AdminUserModelRoleEnum];
|
|
871
|
+
|
|
538
872
|
/**
|
|
539
873
|
* Agent Hours Graph
|
|
540
874
|
* @export
|
|
@@ -764,6 +1098,44 @@ export interface AuthCodeResponseModel {
|
|
|
764
1098
|
*/
|
|
765
1099
|
'redirect_uri'?: string | null;
|
|
766
1100
|
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Basic Order Item
|
|
1103
|
+
* @export
|
|
1104
|
+
* @interface BasicItemDTO
|
|
1105
|
+
*/
|
|
1106
|
+
export interface BasicItemDTO {
|
|
1107
|
+
/**
|
|
1108
|
+
* SKU
|
|
1109
|
+
* @type {string}
|
|
1110
|
+
* @memberof BasicItemDTO
|
|
1111
|
+
*/
|
|
1112
|
+
'sku'?: string;
|
|
1113
|
+
/**
|
|
1114
|
+
* Quantity
|
|
1115
|
+
* @type {number}
|
|
1116
|
+
* @memberof BasicItemDTO
|
|
1117
|
+
*/
|
|
1118
|
+
'quantity'?: number;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* Basic Product
|
|
1122
|
+
* @export
|
|
1123
|
+
* @interface BasicProductDTO
|
|
1124
|
+
*/
|
|
1125
|
+
export interface BasicProductDTO {
|
|
1126
|
+
/**
|
|
1127
|
+
* SKU
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @memberof BasicProductDTO
|
|
1130
|
+
*/
|
|
1131
|
+
'sku'?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Title
|
|
1134
|
+
* @type {string}
|
|
1135
|
+
* @memberof BasicProductDTO
|
|
1136
|
+
*/
|
|
1137
|
+
'title'?: string;
|
|
1138
|
+
}
|
|
767
1139
|
/**
|
|
768
1140
|
* BatchesEntity
|
|
769
1141
|
* @export
|
|
@@ -958,12 +1330,6 @@ export interface ClientDetailsModel {
|
|
|
958
1330
|
* @memberof ClientDetailsModel
|
|
959
1331
|
*/
|
|
960
1332
|
'lastName'?: string;
|
|
961
|
-
/**
|
|
962
|
-
* User Profile Picture
|
|
963
|
-
* @type {string}
|
|
964
|
-
* @memberof ClientDetailsModel
|
|
965
|
-
*/
|
|
966
|
-
'image'?: string | null;
|
|
967
1333
|
}
|
|
968
1334
|
/**
|
|
969
1335
|
* OAuth client details
|
|
@@ -1126,31 +1492,98 @@ export interface ConversationModel {
|
|
|
1126
1492
|
'attachments'?: Array<AttachmentModel>;
|
|
1127
1493
|
}
|
|
1128
1494
|
/**
|
|
1129
|
-
*
|
|
1495
|
+
* CourierPricesEntity
|
|
1130
1496
|
* @export
|
|
1131
|
-
* @interface
|
|
1497
|
+
* @interface CourierPriceEntity
|
|
1132
1498
|
*/
|
|
1133
|
-
export interface
|
|
1499
|
+
export interface CourierPriceEntity {
|
|
1134
1500
|
/**
|
|
1135
|
-
*
|
|
1501
|
+
* id
|
|
1136
1502
|
* @type {number}
|
|
1137
|
-
* @memberof
|
|
1503
|
+
* @memberof CourierPriceEntity
|
|
1138
1504
|
*/
|
|
1139
1505
|
'id'?: number;
|
|
1140
1506
|
/**
|
|
1141
|
-
*
|
|
1507
|
+
* courier
|
|
1142
1508
|
* @type {string}
|
|
1143
|
-
* @memberof
|
|
1509
|
+
* @memberof CourierPriceEntity
|
|
1144
1510
|
*/
|
|
1145
|
-
'
|
|
1511
|
+
'courier'?: string;
|
|
1146
1512
|
/**
|
|
1147
|
-
*
|
|
1513
|
+
* destinationIso
|
|
1148
1514
|
* @type {string}
|
|
1149
|
-
* @memberof
|
|
1515
|
+
* @memberof CourierPriceEntity
|
|
1150
1516
|
*/
|
|
1151
|
-
'
|
|
1517
|
+
'destinationIso'?: string;
|
|
1152
1518
|
/**
|
|
1153
|
-
*
|
|
1519
|
+
* serviceDescription
|
|
1520
|
+
* @type {string}
|
|
1521
|
+
* @memberof CourierPriceEntity
|
|
1522
|
+
*/
|
|
1523
|
+
'serviceDescription'?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* flatRate
|
|
1526
|
+
* @type {number}
|
|
1527
|
+
* @memberof CourierPriceEntity
|
|
1528
|
+
*/
|
|
1529
|
+
'flatRate'?: number;
|
|
1530
|
+
/**
|
|
1531
|
+
* initialBox
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof CourierPriceEntity
|
|
1534
|
+
*/
|
|
1535
|
+
'initialBox'?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* initialKg
|
|
1538
|
+
* @type {number}
|
|
1539
|
+
* @memberof CourierPriceEntity
|
|
1540
|
+
*/
|
|
1541
|
+
'initialKg'?: number;
|
|
1542
|
+
/**
|
|
1543
|
+
* perBox
|
|
1544
|
+
* @type {number}
|
|
1545
|
+
* @memberof CourierPriceEntity
|
|
1546
|
+
*/
|
|
1547
|
+
'perBox'?: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* perKg
|
|
1550
|
+
* @type {number}
|
|
1551
|
+
* @memberof CourierPriceEntity
|
|
1552
|
+
*/
|
|
1553
|
+
'perKg'?: number;
|
|
1554
|
+
/**
|
|
1555
|
+
* maxKg
|
|
1556
|
+
* @type {number}
|
|
1557
|
+
* @memberof CourierPriceEntity
|
|
1558
|
+
*/
|
|
1559
|
+
'maxKg'?: number;
|
|
1560
|
+
}
|
|
1561
|
+
/**
|
|
1562
|
+
* Credit Account
|
|
1563
|
+
* @export
|
|
1564
|
+
* @interface CreditAccountEntity
|
|
1565
|
+
*/
|
|
1566
|
+
export interface CreditAccountEntity {
|
|
1567
|
+
/**
|
|
1568
|
+
* ID
|
|
1569
|
+
* @type {number}
|
|
1570
|
+
* @memberof CreditAccountEntity
|
|
1571
|
+
*/
|
|
1572
|
+
'id'?: number;
|
|
1573
|
+
/**
|
|
1574
|
+
* Contact Name
|
|
1575
|
+
* @type {string}
|
|
1576
|
+
* @memberof CreditAccountEntity
|
|
1577
|
+
*/
|
|
1578
|
+
'name'?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* Email
|
|
1581
|
+
* @type {string}
|
|
1582
|
+
* @memberof CreditAccountEntity
|
|
1583
|
+
*/
|
|
1584
|
+
'email'?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Phone Number
|
|
1154
1587
|
* @type {string}
|
|
1155
1588
|
* @memberof CreditAccountEntity
|
|
1156
1589
|
*/
|
|
@@ -1356,6 +1789,116 @@ export interface CustomerInformationModel {
|
|
|
1356
1789
|
*/
|
|
1357
1790
|
'contactLastName'?: string;
|
|
1358
1791
|
}
|
|
1792
|
+
/**
|
|
1793
|
+
* Order Item Request
|
|
1794
|
+
* @export
|
|
1795
|
+
* @interface CustomerItemRequestDTO
|
|
1796
|
+
*/
|
|
1797
|
+
export interface CustomerItemRequestDTO {
|
|
1798
|
+
/**
|
|
1799
|
+
* SKU
|
|
1800
|
+
* @type {string}
|
|
1801
|
+
* @memberof CustomerItemRequestDTO
|
|
1802
|
+
*/
|
|
1803
|
+
'sku'?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Quantity
|
|
1806
|
+
* @type {number}
|
|
1807
|
+
* @memberof CustomerItemRequestDTO
|
|
1808
|
+
*/
|
|
1809
|
+
'quantity'?: number;
|
|
1810
|
+
/**
|
|
1811
|
+
* ID
|
|
1812
|
+
* @type {number}
|
|
1813
|
+
* @memberof CustomerItemRequestDTO
|
|
1814
|
+
*/
|
|
1815
|
+
'id'?: number | null;
|
|
1816
|
+
/**
|
|
1817
|
+
* 3CX Licence Key
|
|
1818
|
+
* @type {string}
|
|
1819
|
+
* @memberof CustomerItemRequestDTO
|
|
1820
|
+
*/
|
|
1821
|
+
'licenceKey'?: string | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* 3CX Hosting
|
|
1824
|
+
* @type {boolean}
|
|
1825
|
+
* @memberof CustomerItemRequestDTO
|
|
1826
|
+
*/
|
|
1827
|
+
'hosting'?: boolean | null;
|
|
1828
|
+
/**
|
|
1829
|
+
* Date Time
|
|
1830
|
+
* @type {string}
|
|
1831
|
+
* @memberof CustomerItemRequestDTO
|
|
1832
|
+
*/
|
|
1833
|
+
'processDate'?: string;
|
|
1834
|
+
/**
|
|
1835
|
+
* 3CX Sales Code
|
|
1836
|
+
* @type {string}
|
|
1837
|
+
* @memberof CustomerItemRequestDTO
|
|
1838
|
+
*/
|
|
1839
|
+
'tcxSalesCode'?: string | null;
|
|
1840
|
+
/**
|
|
1841
|
+
* SBCS
|
|
1842
|
+
* @type {Array<TcxSbcDTO>}
|
|
1843
|
+
* @memberof CustomerItemRequestDTO
|
|
1844
|
+
*/
|
|
1845
|
+
'sbcs'?: Array<TcxSbcDTO>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Read Only (Cannot be edited)
|
|
1848
|
+
* @type {boolean}
|
|
1849
|
+
* @memberof CustomerItemRequestDTO
|
|
1850
|
+
*/
|
|
1851
|
+
'readOnly'?: boolean;
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Order Request
|
|
1855
|
+
* @export
|
|
1856
|
+
* @interface CustomerOrderRequestDTO
|
|
1857
|
+
*/
|
|
1858
|
+
export interface CustomerOrderRequestDTO {
|
|
1859
|
+
/**
|
|
1860
|
+
* Order Reference
|
|
1861
|
+
* @type {string}
|
|
1862
|
+
* @memberof CustomerOrderRequestDTO
|
|
1863
|
+
*/
|
|
1864
|
+
'orderReference'?: string | null;
|
|
1865
|
+
/**
|
|
1866
|
+
* Items
|
|
1867
|
+
* @type {Array<CustomerItemRequestDTO>}
|
|
1868
|
+
* @memberof CustomerOrderRequestDTO
|
|
1869
|
+
*/
|
|
1870
|
+
'items'?: Array<CustomerItemRequestDTO>;
|
|
1871
|
+
/**
|
|
1872
|
+
*
|
|
1873
|
+
* @type {ShippingServiceDTO}
|
|
1874
|
+
* @memberof CustomerOrderRequestDTO
|
|
1875
|
+
*/
|
|
1876
|
+
'shippingService'?: ShippingServiceDTO;
|
|
1877
|
+
/**
|
|
1878
|
+
* Provisioning URL
|
|
1879
|
+
* @type {string}
|
|
1880
|
+
* @memberof CustomerOrderRequestDTO
|
|
1881
|
+
*/
|
|
1882
|
+
'provisioningUrl'?: string | null;
|
|
1883
|
+
/**
|
|
1884
|
+
*
|
|
1885
|
+
* @type {AddressModel}
|
|
1886
|
+
* @memberof CustomerOrderRequestDTO
|
|
1887
|
+
*/
|
|
1888
|
+
'shippingAddress'?: AddressModel;
|
|
1889
|
+
/**
|
|
1890
|
+
* Part Ship Order
|
|
1891
|
+
* @type {boolean}
|
|
1892
|
+
* @memberof CustomerOrderRequestDTO
|
|
1893
|
+
*/
|
|
1894
|
+
'partShip'?: boolean;
|
|
1895
|
+
/**
|
|
1896
|
+
* Quote
|
|
1897
|
+
* @type {boolean}
|
|
1898
|
+
* @memberof CustomerOrderRequestDTO
|
|
1899
|
+
*/
|
|
1900
|
+
'quote'?: boolean;
|
|
1901
|
+
}
|
|
1359
1902
|
/**
|
|
1360
1903
|
* Customer Price List
|
|
1361
1904
|
* @export
|
|
@@ -1865,19 +2408,6 @@ export interface GenericFileModel {
|
|
|
1865
2408
|
*/
|
|
1866
2409
|
'type'?: string;
|
|
1867
2410
|
}
|
|
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
2411
|
/**
|
|
1882
2412
|
*
|
|
1883
2413
|
* @export
|
|
@@ -2479,35 +3009,35 @@ export interface InstanceUserCredentialsEntity {
|
|
|
2479
3009
|
*/
|
|
2480
3010
|
export interface ItemDTO {
|
|
2481
3011
|
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @type {
|
|
3012
|
+
* SKU
|
|
3013
|
+
* @type {string}
|
|
2484
3014
|
* @memberof ItemDTO
|
|
2485
3015
|
*/
|
|
2486
|
-
'
|
|
3016
|
+
'sku'?: string;
|
|
2487
3017
|
/**
|
|
2488
|
-
*
|
|
3018
|
+
* Quantity
|
|
2489
3019
|
* @type {number}
|
|
2490
3020
|
* @memberof ItemDTO
|
|
2491
3021
|
*/
|
|
2492
|
-
'
|
|
3022
|
+
'quantity'?: number;
|
|
2493
3023
|
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @type {
|
|
3024
|
+
* ID
|
|
3025
|
+
* @type {number}
|
|
2496
3026
|
* @memberof ItemDTO
|
|
2497
3027
|
*/
|
|
2498
|
-
'
|
|
3028
|
+
'id'?: number | null;
|
|
2499
3029
|
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {
|
|
3030
|
+
* Order ID
|
|
3031
|
+
* @type {number}
|
|
2502
3032
|
* @memberof ItemDTO
|
|
2503
3033
|
*/
|
|
2504
|
-
'
|
|
3034
|
+
'orderId'?: number | null;
|
|
2505
3035
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
* @type {
|
|
3036
|
+
* Title
|
|
3037
|
+
* @type {string}
|
|
2508
3038
|
* @memberof ItemDTO
|
|
2509
3039
|
*/
|
|
2510
|
-
'
|
|
3040
|
+
'title'?: string;
|
|
2511
3041
|
/**
|
|
2512
3042
|
* Price
|
|
2513
3043
|
* @type {number}
|
|
@@ -2532,6 +3062,12 @@ export interface ItemDTO {
|
|
|
2532
3062
|
* @memberof ItemDTO
|
|
2533
3063
|
*/
|
|
2534
3064
|
'processDate'?: string;
|
|
3065
|
+
/**
|
|
3066
|
+
* 3CX Hosting
|
|
3067
|
+
* @type {boolean}
|
|
3068
|
+
* @memberof ItemDTO
|
|
3069
|
+
*/
|
|
3070
|
+
'hosting'?: boolean | null;
|
|
2535
3071
|
/**
|
|
2536
3072
|
* Promo Item
|
|
2537
3073
|
* @type {boolean}
|
|
@@ -2543,7 +3079,68 @@ export interface ItemDTO {
|
|
|
2543
3079
|
* @type {number}
|
|
2544
3080
|
* @memberof ItemDTO
|
|
2545
3081
|
*/
|
|
2546
|
-
'refunded'?: number;
|
|
3082
|
+
'refunded'?: number | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* SBCs
|
|
3085
|
+
* @type {Array<TcxSbcDTO>}
|
|
3086
|
+
* @memberof ItemDTO
|
|
3087
|
+
*/
|
|
3088
|
+
'sbcs'?: Array<TcxSbcDTO> | null;
|
|
3089
|
+
/**
|
|
3090
|
+
* Readonly
|
|
3091
|
+
* @type {boolean}
|
|
3092
|
+
* @memberof ItemDTO
|
|
3093
|
+
*/
|
|
3094
|
+
'readonly'?: boolean;
|
|
3095
|
+
/**
|
|
3096
|
+
* 3CX Sales Code
|
|
3097
|
+
* @type {string}
|
|
3098
|
+
* @memberof ItemDTO
|
|
3099
|
+
*/
|
|
3100
|
+
'tcxSalesCode'?: string | null;
|
|
3101
|
+
}
|
|
3102
|
+
/**
|
|
3103
|
+
* ItemDiscountsEntity
|
|
3104
|
+
* @export
|
|
3105
|
+
* @interface ItemDiscountEntity
|
|
3106
|
+
*/
|
|
3107
|
+
export interface ItemDiscountEntity {
|
|
3108
|
+
/**
|
|
3109
|
+
* id
|
|
3110
|
+
* @type {number}
|
|
3111
|
+
* @memberof ItemDiscountEntity
|
|
3112
|
+
*/
|
|
3113
|
+
'id'?: number;
|
|
3114
|
+
/**
|
|
3115
|
+
* itemId
|
|
3116
|
+
* @type {number}
|
|
3117
|
+
* @memberof ItemDiscountEntity
|
|
3118
|
+
*/
|
|
3119
|
+
'itemId'?: number;
|
|
3120
|
+
/**
|
|
3121
|
+
* priceList
|
|
3122
|
+
* @type {string}
|
|
3123
|
+
* @memberof ItemDiscountEntity
|
|
3124
|
+
*/
|
|
3125
|
+
'priceList'?: string;
|
|
3126
|
+
/**
|
|
3127
|
+
* discount
|
|
3128
|
+
* @type {number}
|
|
3129
|
+
* @memberof ItemDiscountEntity
|
|
3130
|
+
*/
|
|
3131
|
+
'discount'?: number;
|
|
3132
|
+
/**
|
|
3133
|
+
* description
|
|
3134
|
+
* @type {string}
|
|
3135
|
+
* @memberof ItemDiscountEntity
|
|
3136
|
+
*/
|
|
3137
|
+
'description'?: string;
|
|
3138
|
+
/**
|
|
3139
|
+
* priority
|
|
3140
|
+
* @type {number}
|
|
3141
|
+
* @memberof ItemDiscountEntity
|
|
3142
|
+
*/
|
|
3143
|
+
'priority'?: number;
|
|
2547
3144
|
}
|
|
2548
3145
|
/**
|
|
2549
3146
|
* ItemsEntity
|
|
@@ -2677,6 +3274,31 @@ export interface ItemEntity {
|
|
|
2677
3274
|
* @memberof ItemEntity
|
|
2678
3275
|
*/
|
|
2679
3276
|
'promoItem'?: number;
|
|
3277
|
+
/**
|
|
3278
|
+
* 3CX Sales Code
|
|
3279
|
+
* @type {string}
|
|
3280
|
+
* @memberof ItemEntity
|
|
3281
|
+
*/
|
|
3282
|
+
'tcxSalesCode'?: string | null;
|
|
3283
|
+
}
|
|
3284
|
+
/**
|
|
3285
|
+
* LinkedOrdersEntity
|
|
3286
|
+
* @export
|
|
3287
|
+
* @interface LinkedOrderEntity
|
|
3288
|
+
*/
|
|
3289
|
+
export interface LinkedOrderEntity {
|
|
3290
|
+
/**
|
|
3291
|
+
* orderId
|
|
3292
|
+
* @type {number}
|
|
3293
|
+
* @memberof LinkedOrderEntity
|
|
3294
|
+
*/
|
|
3295
|
+
'orderId'?: number;
|
|
3296
|
+
/**
|
|
3297
|
+
* linkedOrderId
|
|
3298
|
+
* @type {number}
|
|
3299
|
+
* @memberof LinkedOrderEntity
|
|
3300
|
+
*/
|
|
3301
|
+
'linkedOrderId'?: number;
|
|
2680
3302
|
}
|
|
2681
3303
|
/**
|
|
2682
3304
|
* MFA Required
|
|
@@ -3337,13 +3959,19 @@ export interface OrderSummaryDTO {
|
|
|
3337
3959
|
* @type {string}
|
|
3338
3960
|
* @memberof OrderSummaryDTO
|
|
3339
3961
|
*/
|
|
3340
|
-
'reference'?: string;
|
|
3962
|
+
'reference'?: string | null;
|
|
3341
3963
|
/**
|
|
3342
3964
|
* Invoice Number
|
|
3343
3965
|
* @type {string}
|
|
3344
3966
|
* @memberof OrderSummaryDTO
|
|
3345
3967
|
*/
|
|
3346
3968
|
'invoiceNumber'?: string;
|
|
3969
|
+
/**
|
|
3970
|
+
* Invoice ID
|
|
3971
|
+
* @type {string}
|
|
3972
|
+
* @memberof OrderSummaryDTO
|
|
3973
|
+
*/
|
|
3974
|
+
'invoiceId'?: string | null;
|
|
3347
3975
|
/**
|
|
3348
3976
|
* Date Time
|
|
3349
3977
|
* @type {string}
|
|
@@ -3398,6 +4026,24 @@ export interface OrderSummaryDTO {
|
|
|
3398
4026
|
* @memberof OrderSummaryDTO
|
|
3399
4027
|
*/
|
|
3400
4028
|
'fulfillable'?: boolean | null;
|
|
4029
|
+
/**
|
|
4030
|
+
* Provisioning URL
|
|
4031
|
+
* @type {string}
|
|
4032
|
+
* @memberof OrderSummaryDTO
|
|
4033
|
+
*/
|
|
4034
|
+
'provisioningUrl'?: string | null;
|
|
4035
|
+
/**
|
|
4036
|
+
*
|
|
4037
|
+
* @type {ShippingServiceDTO}
|
|
4038
|
+
* @memberof OrderSummaryDTO
|
|
4039
|
+
*/
|
|
4040
|
+
'shippingService'?: ShippingServiceDTO | null;
|
|
4041
|
+
/**
|
|
4042
|
+
* Readonly
|
|
4043
|
+
* @type {boolean}
|
|
4044
|
+
* @memberof OrderSummaryDTO
|
|
4045
|
+
*/
|
|
4046
|
+
'readonly'?: boolean;
|
|
3401
4047
|
}
|
|
3402
4048
|
/**
|
|
3403
4049
|
* Order Totals
|
|
@@ -3447,6 +4093,12 @@ export interface OrderTotalModel {
|
|
|
3447
4093
|
* @memberof OrderTotalModel
|
|
3448
4094
|
*/
|
|
3449
4095
|
'currency'?: OrderTotalModelCurrencyEnum;
|
|
4096
|
+
/**
|
|
4097
|
+
* Delivery
|
|
4098
|
+
* @type {number}
|
|
4099
|
+
* @memberof OrderTotalModel
|
|
4100
|
+
*/
|
|
4101
|
+
'delivery'?: number | null;
|
|
3450
4102
|
}
|
|
3451
4103
|
|
|
3452
4104
|
export const OrderTotalModelCurrencyEnum = {
|
|
@@ -3828,6 +4480,31 @@ export interface PostGetClientCredentialsRequest {
|
|
|
3828
4480
|
*/
|
|
3829
4481
|
'scopes'?: Array<string>;
|
|
3830
4482
|
}
|
|
4483
|
+
/**
|
|
4484
|
+
*
|
|
4485
|
+
* @export
|
|
4486
|
+
* @interface PostGetProductForCustomerRequest
|
|
4487
|
+
*/
|
|
4488
|
+
export interface PostGetProductForCustomerRequest {
|
|
4489
|
+
/**
|
|
4490
|
+
* Quantity
|
|
4491
|
+
* @type {number}
|
|
4492
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4493
|
+
*/
|
|
4494
|
+
'quantity'?: number | null;
|
|
4495
|
+
/**
|
|
4496
|
+
* 3CX Licence Key
|
|
4497
|
+
* @type {string}
|
|
4498
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4499
|
+
*/
|
|
4500
|
+
'licenceKey'?: string | null;
|
|
4501
|
+
/**
|
|
4502
|
+
* 3CX Hosting
|
|
4503
|
+
* @type {boolean}
|
|
4504
|
+
* @memberof PostGetProductForCustomerRequest
|
|
4505
|
+
*/
|
|
4506
|
+
'hosting'?: boolean | null;
|
|
4507
|
+
}
|
|
3831
4508
|
/**
|
|
3832
4509
|
* Price & Stock List
|
|
3833
4510
|
* @export
|
|
@@ -3959,10 +4636,10 @@ export interface ProductPriceListItemModel {
|
|
|
3959
4636
|
export interface ProductSearchResultsModel {
|
|
3960
4637
|
/**
|
|
3961
4638
|
* Results
|
|
3962
|
-
* @type {Array<
|
|
4639
|
+
* @type {Array<ProductSummaryDTO>}
|
|
3963
4640
|
* @memberof ProductSearchResultsModel
|
|
3964
4641
|
*/
|
|
3965
|
-
'results'?: Array<
|
|
4642
|
+
'results'?: Array<ProductSummaryDTO>;
|
|
3966
4643
|
}
|
|
3967
4644
|
/**
|
|
3968
4645
|
* Product Serial Info
|
|
@@ -3998,46 +4675,52 @@ export interface ProductSerialInfoModel {
|
|
|
3998
4675
|
/**
|
|
3999
4676
|
* Product Summary
|
|
4000
4677
|
* @export
|
|
4001
|
-
* @interface
|
|
4678
|
+
* @interface ProductSummaryDTO
|
|
4002
4679
|
*/
|
|
4003
|
-
export interface
|
|
4680
|
+
export interface ProductSummaryDTO {
|
|
4004
4681
|
/**
|
|
4005
4682
|
* SKU
|
|
4006
4683
|
* @type {string}
|
|
4007
|
-
* @memberof
|
|
4684
|
+
* @memberof ProductSummaryDTO
|
|
4008
4685
|
*/
|
|
4009
4686
|
'sku'?: string;
|
|
4010
4687
|
/**
|
|
4011
4688
|
* Title
|
|
4012
4689
|
* @type {string}
|
|
4013
|
-
* @memberof
|
|
4690
|
+
* @memberof ProductSummaryDTO
|
|
4014
4691
|
*/
|
|
4015
4692
|
'title'?: string;
|
|
4016
4693
|
/**
|
|
4017
4694
|
* Stock Quantity
|
|
4018
4695
|
* @type {number}
|
|
4019
|
-
* @memberof
|
|
4696
|
+
* @memberof ProductSummaryDTO
|
|
4020
4697
|
*/
|
|
4021
4698
|
'quantity'?: number | null;
|
|
4022
4699
|
/**
|
|
4023
4700
|
* Stock Product
|
|
4024
4701
|
* @type {boolean}
|
|
4025
|
-
* @memberof
|
|
4702
|
+
* @memberof ProductSummaryDTO
|
|
4026
4703
|
*/
|
|
4027
4704
|
'stockProduct'?: boolean;
|
|
4028
4705
|
/**
|
|
4029
4706
|
* Price
|
|
4030
4707
|
* @type {number}
|
|
4031
|
-
* @memberof
|
|
4708
|
+
* @memberof ProductSummaryDTO
|
|
4032
4709
|
*/
|
|
4033
4710
|
'price'?: number | null;
|
|
4034
4711
|
/**
|
|
4035
4712
|
* Carton Size
|
|
4036
4713
|
* @type {number}
|
|
4037
|
-
* @memberof
|
|
4714
|
+
* @memberof ProductSummaryDTO
|
|
4038
4715
|
*/
|
|
4039
4716
|
'cartonSize'?: number | null;
|
|
4040
|
-
|
|
4717
|
+
/**
|
|
4718
|
+
* RRP Price
|
|
4719
|
+
* @type {number}
|
|
4720
|
+
* @memberof ProductSummaryDTO
|
|
4721
|
+
*/
|
|
4722
|
+
'rrp'?: number | null;
|
|
4723
|
+
}
|
|
4041
4724
|
/**
|
|
4042
4725
|
* PromoCodesEntity
|
|
4043
4726
|
* @export
|
|
@@ -4175,37 +4858,37 @@ export interface PromoItemsEntity {
|
|
|
4175
4858
|
/**
|
|
4176
4859
|
* Provisioning Group
|
|
4177
4860
|
* @export
|
|
4178
|
-
* @interface
|
|
4861
|
+
* @interface ProvisioningModel
|
|
4179
4862
|
*/
|
|
4180
|
-
export interface
|
|
4863
|
+
export interface ProvisioningModel {
|
|
4181
4864
|
/**
|
|
4182
4865
|
* Provisioning Group Name
|
|
4183
4866
|
* @type {string}
|
|
4184
|
-
* @memberof
|
|
4867
|
+
* @memberof ProvisioningModel
|
|
4185
4868
|
*/
|
|
4186
4869
|
'groupName'?: string;
|
|
4187
4870
|
/**
|
|
4188
4871
|
* Provisioning URL (Static Provisioning Server)
|
|
4189
4872
|
* @type {string}
|
|
4190
|
-
* @memberof
|
|
4873
|
+
* @memberof ProvisioningModel
|
|
4191
4874
|
*/
|
|
4192
4875
|
'provisioningUrl'?: string;
|
|
4193
4876
|
/**
|
|
4194
4877
|
* Additional Authentication Secret
|
|
4195
4878
|
* @type {string}
|
|
4196
|
-
* @memberof
|
|
4879
|
+
* @memberof ProvisioningModel
|
|
4197
4880
|
*/
|
|
4198
4881
|
'auth'?: string;
|
|
4199
4882
|
/**
|
|
4200
4883
|
* Provisioning Group ID
|
|
4201
4884
|
* @type {number}
|
|
4202
|
-
* @memberof
|
|
4885
|
+
* @memberof ProvisioningModel
|
|
4203
4886
|
*/
|
|
4204
4887
|
'id'?: number;
|
|
4205
4888
|
/**
|
|
4206
4889
|
* Owner ID
|
|
4207
4890
|
* @type {number}
|
|
4208
|
-
* @memberof
|
|
4891
|
+
* @memberof ProvisioningModel
|
|
4209
4892
|
*/
|
|
4210
4893
|
'customerId'?: number;
|
|
4211
4894
|
}
|
|
@@ -4559,7 +5242,7 @@ export interface ShipmentEntity {
|
|
|
4559
5242
|
* @type {string}
|
|
4560
5243
|
* @memberof ShipmentEntity
|
|
4561
5244
|
*/
|
|
4562
|
-
'
|
|
5245
|
+
'dateShipped'?: string;
|
|
4563
5246
|
/**
|
|
4564
5247
|
* requestDate
|
|
4565
5248
|
* @type {string}
|
|
@@ -4610,6 +5293,155 @@ export interface ShipmentItemEntity {
|
|
|
4610
5293
|
*/
|
|
4611
5294
|
'itemId'?: string;
|
|
4612
5295
|
}
|
|
5296
|
+
/**
|
|
5297
|
+
*
|
|
5298
|
+
* @export
|
|
5299
|
+
* @interface ShippingConsignmentModel
|
|
5300
|
+
*/
|
|
5301
|
+
export interface ShippingConsignmentModel {
|
|
5302
|
+
/**
|
|
5303
|
+
*
|
|
5304
|
+
* @type {ShippingServiceModel}
|
|
5305
|
+
* @memberof ShippingConsignmentModel
|
|
5306
|
+
*/
|
|
5307
|
+
'service'?: ShippingServiceModel;
|
|
5308
|
+
/**
|
|
5309
|
+
* ID/Number
|
|
5310
|
+
* @type {string}
|
|
5311
|
+
* @memberof ShippingConsignmentModel
|
|
5312
|
+
*/
|
|
5313
|
+
'id'?: string;
|
|
5314
|
+
/**
|
|
5315
|
+
* Tracking Number
|
|
5316
|
+
* @type {string}
|
|
5317
|
+
* @memberof ShippingConsignmentModel
|
|
5318
|
+
*/
|
|
5319
|
+
'trackingNumber'?: string;
|
|
5320
|
+
/**
|
|
5321
|
+
* Parcels
|
|
5322
|
+
* @type {Array<string>}
|
|
5323
|
+
* @memberof ShippingConsignmentModel
|
|
5324
|
+
*/
|
|
5325
|
+
'parcelIds'?: Array<string>;
|
|
5326
|
+
}
|
|
5327
|
+
/**
|
|
5328
|
+
* Shipping Information
|
|
5329
|
+
* @export
|
|
5330
|
+
* @interface ShippingInformationDTO
|
|
5331
|
+
*/
|
|
5332
|
+
export interface ShippingInformationDTO {
|
|
5333
|
+
/**
|
|
5334
|
+
* Items
|
|
5335
|
+
* @type {Array<BasicItemDTO>}
|
|
5336
|
+
* @memberof ShippingInformationDTO
|
|
5337
|
+
*/
|
|
5338
|
+
'items'?: Array<BasicItemDTO>;
|
|
5339
|
+
/**
|
|
5340
|
+
* Destination Post Code
|
|
5341
|
+
* @type {string}
|
|
5342
|
+
* @memberof ShippingInformationDTO
|
|
5343
|
+
*/
|
|
5344
|
+
'postalCode'?: string;
|
|
5345
|
+
/**
|
|
5346
|
+
* Destination ISO
|
|
5347
|
+
* @type {string}
|
|
5348
|
+
* @memberof ShippingInformationDTO
|
|
5349
|
+
*/
|
|
5350
|
+
'iso'?: string;
|
|
5351
|
+
}
|
|
5352
|
+
/**
|
|
5353
|
+
* Shipping Service
|
|
5354
|
+
* @export
|
|
5355
|
+
* @interface ShippingServiceDTO
|
|
5356
|
+
*/
|
|
5357
|
+
export interface ShippingServiceDTO {
|
|
5358
|
+
/**
|
|
5359
|
+
* Courier
|
|
5360
|
+
* @type {string}
|
|
5361
|
+
* @memberof ShippingServiceDTO
|
|
5362
|
+
*/
|
|
5363
|
+
'courier'?: ShippingServiceDTOCourierEnum;
|
|
5364
|
+
/**
|
|
5365
|
+
* Service Name
|
|
5366
|
+
* @type {string}
|
|
5367
|
+
* @memberof ShippingServiceDTO
|
|
5368
|
+
*/
|
|
5369
|
+
'serviceName'?: string;
|
|
5370
|
+
}
|
|
5371
|
+
|
|
5372
|
+
export const ShippingServiceDTOCourierEnum = {
|
|
5373
|
+
Dpd: 'DPD',
|
|
5374
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5375
|
+
Pops: 'POPS'
|
|
5376
|
+
} as const;
|
|
5377
|
+
|
|
5378
|
+
export type ShippingServiceDTOCourierEnum = typeof ShippingServiceDTOCourierEnum[keyof typeof ShippingServiceDTOCourierEnum];
|
|
5379
|
+
|
|
5380
|
+
/**
|
|
5381
|
+
* Shipping Service
|
|
5382
|
+
* @export
|
|
5383
|
+
* @interface ShippingServiceModel
|
|
5384
|
+
*/
|
|
5385
|
+
export interface ShippingServiceModel {
|
|
5386
|
+
/**
|
|
5387
|
+
* Courier
|
|
5388
|
+
* @type {string}
|
|
5389
|
+
* @memberof ShippingServiceModel
|
|
5390
|
+
*/
|
|
5391
|
+
'courier'?: ShippingServiceModelCourierEnum;
|
|
5392
|
+
/**
|
|
5393
|
+
* Code
|
|
5394
|
+
* @type {string}
|
|
5395
|
+
* @memberof ShippingServiceModel
|
|
5396
|
+
*/
|
|
5397
|
+
'code'?: string;
|
|
5398
|
+
/**
|
|
5399
|
+
* Name
|
|
5400
|
+
* @type {string}
|
|
5401
|
+
* @memberof ShippingServiceModel
|
|
5402
|
+
*/
|
|
5403
|
+
'name'?: string;
|
|
5404
|
+
/**
|
|
5405
|
+
* Description
|
|
5406
|
+
* @type {string}
|
|
5407
|
+
* @memberof ShippingServiceModel
|
|
5408
|
+
*/
|
|
5409
|
+
'description'?: string;
|
|
5410
|
+
/**
|
|
5411
|
+
* Label
|
|
5412
|
+
* @type {string}
|
|
5413
|
+
* @memberof ShippingServiceModel
|
|
5414
|
+
*/
|
|
5415
|
+
'label'?: string | null;
|
|
5416
|
+
/**
|
|
5417
|
+
* Price
|
|
5418
|
+
* @type {number}
|
|
5419
|
+
* @memberof ShippingServiceModel
|
|
5420
|
+
*/
|
|
5421
|
+
'price'?: number | null;
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5424
|
+
export const ShippingServiceModelCourierEnum = {
|
|
5425
|
+
Dpd: 'DPD',
|
|
5426
|
+
ChorltonPallet: 'Chorlton Pallet',
|
|
5427
|
+
Pops: 'POPS'
|
|
5428
|
+
} as const;
|
|
5429
|
+
|
|
5430
|
+
export type ShippingServiceModelCourierEnum = typeof ShippingServiceModelCourierEnum[keyof typeof ShippingServiceModelCourierEnum];
|
|
5431
|
+
|
|
5432
|
+
/**
|
|
5433
|
+
*
|
|
5434
|
+
* @export
|
|
5435
|
+
* @interface ShippingServicesModel
|
|
5436
|
+
*/
|
|
5437
|
+
export interface ShippingServicesModel {
|
|
5438
|
+
/**
|
|
5439
|
+
* Services
|
|
5440
|
+
* @type {Array<ShippingServiceModel>}
|
|
5441
|
+
* @memberof ShippingServicesModel
|
|
5442
|
+
*/
|
|
5443
|
+
'services'?: Array<ShippingServiceModel>;
|
|
5444
|
+
}
|
|
4613
5445
|
/**
|
|
4614
5446
|
* Change Response
|
|
4615
5447
|
* @export
|
|
@@ -7449,6 +8281,49 @@ export interface TcxRemoteStorageModel {
|
|
|
7449
8281
|
*/
|
|
7450
8282
|
'secretAccessKey'?: string;
|
|
7451
8283
|
}
|
|
8284
|
+
/**
|
|
8285
|
+
* SBC Data
|
|
8286
|
+
* @export
|
|
8287
|
+
* @interface TcxSbcDTO
|
|
8288
|
+
*/
|
|
8289
|
+
export interface TcxSbcDTO {
|
|
8290
|
+
/**
|
|
8291
|
+
* LAN IP Address
|
|
8292
|
+
* @type {string}
|
|
8293
|
+
* @memberof TcxSbcDTO
|
|
8294
|
+
*/
|
|
8295
|
+
'ipAddress'?: string;
|
|
8296
|
+
/**
|
|
8297
|
+
* LAN Default Gateway
|
|
8298
|
+
* @type {string}
|
|
8299
|
+
* @memberof TcxSbcDTO
|
|
8300
|
+
*/
|
|
8301
|
+
'defaultGateway'?: string;
|
|
8302
|
+
/**
|
|
8303
|
+
* LAN Subnet Mask
|
|
8304
|
+
* @type {string}
|
|
8305
|
+
* @memberof TcxSbcDTO
|
|
8306
|
+
*/
|
|
8307
|
+
'netmask'?: string;
|
|
8308
|
+
/**
|
|
8309
|
+
* DNS
|
|
8310
|
+
* @type {string}
|
|
8311
|
+
* @memberof TcxSbcDTO
|
|
8312
|
+
*/
|
|
8313
|
+
'dns'?: string;
|
|
8314
|
+
/**
|
|
8315
|
+
* 3CX URL
|
|
8316
|
+
* @type {string}
|
|
8317
|
+
* @memberof TcxSbcDTO
|
|
8318
|
+
*/
|
|
8319
|
+
'tcxUrl'?: string;
|
|
8320
|
+
/**
|
|
8321
|
+
* 3CX SBC Key
|
|
8322
|
+
* @type {string}
|
|
8323
|
+
* @memberof TcxSbcDTO
|
|
8324
|
+
*/
|
|
8325
|
+
'tcxKey'?: string;
|
|
8326
|
+
}
|
|
7452
8327
|
/**
|
|
7453
8328
|
* 3CX Wizard SBC
|
|
7454
8329
|
* @export
|
|
@@ -7553,7 +8428,7 @@ export interface TcxSbcEntity {
|
|
|
7553
8428
|
'technicalContact'?: string;
|
|
7554
8429
|
}
|
|
7555
8430
|
/**
|
|
7556
|
-
* 3CX SBC
|
|
8431
|
+
* 3CX Wizard SBC
|
|
7557
8432
|
* @export
|
|
7558
8433
|
* @interface TcxSbcModel
|
|
7559
8434
|
*/
|
|
@@ -8738,6 +9613,40 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8738
9613
|
|
|
8739
9614
|
|
|
8740
9615
|
|
|
9616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9618
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9619
|
+
|
|
9620
|
+
return {
|
|
9621
|
+
url: toPathString(localVarUrlObj),
|
|
9622
|
+
options: localVarRequestOptions,
|
|
9623
|
+
};
|
|
9624
|
+
},
|
|
9625
|
+
/**
|
|
9626
|
+
* Get Account Detailed Summary
|
|
9627
|
+
* @summary Get Account Detailed Summary
|
|
9628
|
+
* @param {number} id Customer ID
|
|
9629
|
+
* @param {*} [options] Override http request option.
|
|
9630
|
+
* @throws {RequiredError}
|
|
9631
|
+
*/
|
|
9632
|
+
getGetAccountDetailedSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9633
|
+
// verify required parameter 'id' is not null or undefined
|
|
9634
|
+
assertParamExists('getGetAccountDetailedSummary', 'id', id)
|
|
9635
|
+
const localVarPath = `/accounts/{id}/summary`
|
|
9636
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9637
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9638
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9639
|
+
let baseOptions;
|
|
9640
|
+
if (configuration) {
|
|
9641
|
+
baseOptions = configuration.baseOptions;
|
|
9642
|
+
}
|
|
9643
|
+
|
|
9644
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9645
|
+
const localVarHeaderParameter = {} as any;
|
|
9646
|
+
const localVarQueryParameter = {} as any;
|
|
9647
|
+
|
|
9648
|
+
|
|
9649
|
+
|
|
8741
9650
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8742
9651
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8743
9652
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9036,6 +9945,36 @@ export const AccountsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9036
9945
|
options: localVarRequestOptions,
|
|
9037
9946
|
};
|
|
9038
9947
|
},
|
|
9948
|
+
/**
|
|
9949
|
+
* Get Admin Account
|
|
9950
|
+
* @summary Get Admin Account
|
|
9951
|
+
* @param {*} [options] Override http request option.
|
|
9952
|
+
* @throws {RequiredError}
|
|
9953
|
+
*/
|
|
9954
|
+
postGetAdminAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9955
|
+
const localVarPath = `/admin/me`;
|
|
9956
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9957
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9958
|
+
let baseOptions;
|
|
9959
|
+
if (configuration) {
|
|
9960
|
+
baseOptions = configuration.baseOptions;
|
|
9961
|
+
}
|
|
9962
|
+
|
|
9963
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9964
|
+
const localVarHeaderParameter = {} as any;
|
|
9965
|
+
const localVarQueryParameter = {} as any;
|
|
9966
|
+
|
|
9967
|
+
|
|
9968
|
+
|
|
9969
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9971
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9972
|
+
|
|
9973
|
+
return {
|
|
9974
|
+
url: toPathString(localVarUrlObj),
|
|
9975
|
+
options: localVarRequestOptions,
|
|
9976
|
+
};
|
|
9977
|
+
},
|
|
9039
9978
|
/**
|
|
9040
9979
|
* Create client credentials
|
|
9041
9980
|
* @summary Create client credentials
|
|
@@ -9285,6 +10224,19 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9285
10224
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountContacts']?.[localVarOperationServerIndex]?.url;
|
|
9286
10225
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9287
10226
|
},
|
|
10227
|
+
/**
|
|
10228
|
+
* Get Account Detailed Summary
|
|
10229
|
+
* @summary Get Account Detailed Summary
|
|
10230
|
+
* @param {number} id Customer ID
|
|
10231
|
+
* @param {*} [options] Override http request option.
|
|
10232
|
+
* @throws {RequiredError}
|
|
10233
|
+
*/
|
|
10234
|
+
async getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDetailedSummaryDTO>> {
|
|
10235
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAccountDetailedSummary(id, options);
|
|
10236
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10237
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.getGetAccountDetailedSummary']?.[localVarOperationServerIndex]?.url;
|
|
10238
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10239
|
+
},
|
|
9288
10240
|
/**
|
|
9289
10241
|
* Get Accounts
|
|
9290
10242
|
* @summary Get Accounts
|
|
@@ -9390,6 +10342,18 @@ export const AccountsApiFp = function(configuration?: Configuration) {
|
|
|
9390
10342
|
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAccounts']?.[localVarOperationServerIndex]?.url;
|
|
9391
10343
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9392
10344
|
},
|
|
10345
|
+
/**
|
|
10346
|
+
* Get Admin Account
|
|
10347
|
+
* @summary Get Admin Account
|
|
10348
|
+
* @param {*} [options] Override http request option.
|
|
10349
|
+
* @throws {RequiredError}
|
|
10350
|
+
*/
|
|
10351
|
+
async postGetAdminAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminUserModel>> {
|
|
10352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetAdminAccount(options);
|
|
10353
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10354
|
+
const localVarOperationServerBasePath = operationServerMap['AccountsApi.postGetAdminAccount']?.[localVarOperationServerIndex]?.url;
|
|
10355
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10356
|
+
},
|
|
9393
10357
|
/**
|
|
9394
10358
|
* Create client credentials
|
|
9395
10359
|
* @summary Create client credentials
|
|
@@ -9507,6 +10471,16 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9507
10471
|
getGetAccountContacts(email?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AccountContactModel>> {
|
|
9508
10472
|
return localVarFp.getGetAccountContacts(email, options).then((request) => request(axios, basePath));
|
|
9509
10473
|
},
|
|
10474
|
+
/**
|
|
10475
|
+
* Get Account Detailed Summary
|
|
10476
|
+
* @summary Get Account Detailed Summary
|
|
10477
|
+
* @param {number} id Customer ID
|
|
10478
|
+
* @param {*} [options] Override http request option.
|
|
10479
|
+
* @throws {RequiredError}
|
|
10480
|
+
*/
|
|
10481
|
+
getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AccountDetailedSummaryDTO> {
|
|
10482
|
+
return localVarFp.getGetAccountDetailedSummary(id, options).then((request) => request(axios, basePath));
|
|
10483
|
+
},
|
|
9510
10484
|
/**
|
|
9511
10485
|
* Get Accounts
|
|
9512
10486
|
* @summary Get Accounts
|
|
@@ -9588,6 +10562,15 @@ export const AccountsApiFactory = function (configuration?: Configuration, baseP
|
|
|
9588
10562
|
postGetAccounts(accountRequestModel?: AccountRequestModel, options?: RawAxiosRequestConfig): AxiosPromise<PortalAccountModel> {
|
|
9589
10563
|
return localVarFp.postGetAccounts(accountRequestModel, options).then((request) => request(axios, basePath));
|
|
9590
10564
|
},
|
|
10565
|
+
/**
|
|
10566
|
+
* Get Admin Account
|
|
10567
|
+
* @summary Get Admin Account
|
|
10568
|
+
* @param {*} [options] Override http request option.
|
|
10569
|
+
* @throws {RequiredError}
|
|
10570
|
+
*/
|
|
10571
|
+
postGetAdminAccount(options?: RawAxiosRequestConfig): AxiosPromise<AdminUserModel> {
|
|
10572
|
+
return localVarFp.postGetAdminAccount(options).then((request) => request(axios, basePath));
|
|
10573
|
+
},
|
|
9591
10574
|
/**
|
|
9592
10575
|
* Create client credentials
|
|
9593
10576
|
* @summary Create client credentials
|
|
@@ -9698,6 +10681,18 @@ export class AccountsApi extends BaseAPI {
|
|
|
9698
10681
|
return AccountsApiFp(this.configuration).getGetAccountContacts(email, options).then((request) => request(this.axios, this.basePath));
|
|
9699
10682
|
}
|
|
9700
10683
|
|
|
10684
|
+
/**
|
|
10685
|
+
* Get Account Detailed Summary
|
|
10686
|
+
* @summary Get Account Detailed Summary
|
|
10687
|
+
* @param {number} id Customer ID
|
|
10688
|
+
* @param {*} [options] Override http request option.
|
|
10689
|
+
* @throws {RequiredError}
|
|
10690
|
+
* @memberof AccountsApi
|
|
10691
|
+
*/
|
|
10692
|
+
public getGetAccountDetailedSummary(id: number, options?: RawAxiosRequestConfig) {
|
|
10693
|
+
return AccountsApiFp(this.configuration).getGetAccountDetailedSummary(id, options).then((request) => request(this.axios, this.basePath));
|
|
10694
|
+
}
|
|
10695
|
+
|
|
9701
10696
|
/**
|
|
9702
10697
|
* Get Accounts
|
|
9703
10698
|
* @summary Get Accounts
|
|
@@ -9795,6 +10790,17 @@ export class AccountsApi extends BaseAPI {
|
|
|
9795
10790
|
return AccountsApiFp(this.configuration).postGetAccounts(accountRequestModel, options).then((request) => request(this.axios, this.basePath));
|
|
9796
10791
|
}
|
|
9797
10792
|
|
|
10793
|
+
/**
|
|
10794
|
+
* Get Admin Account
|
|
10795
|
+
* @summary Get Admin Account
|
|
10796
|
+
* @param {*} [options] Override http request option.
|
|
10797
|
+
* @throws {RequiredError}
|
|
10798
|
+
* @memberof AccountsApi
|
|
10799
|
+
*/
|
|
10800
|
+
public postGetAdminAccount(options?: RawAxiosRequestConfig) {
|
|
10801
|
+
return AccountsApiFp(this.configuration).postGetAdminAccount(options).then((request) => request(this.axios, this.basePath));
|
|
10802
|
+
}
|
|
10803
|
+
|
|
9798
10804
|
/**
|
|
9799
10805
|
* Create client credentials
|
|
9800
10806
|
* @summary Create client credentials
|
|
@@ -9992,43 +10998,6 @@ export const Class3CXApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
9992
10998
|
|
|
9993
10999
|
|
|
9994
11000
|
|
|
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
11001
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10033
11002
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10034
11003
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -10095,19 +11064,6 @@ export const Class3CXApiFp = function(configuration?: Configuration) {
|
|
|
10095
11064
|
const localVarOperationServerBasePath = operationServerMap['Class3CXApi.getGetLicenceDetails']?.[localVarOperationServerIndex]?.url;
|
|
10096
11065
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10097
11066
|
},
|
|
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
11067
|
/**
|
|
10112
11068
|
* Get Bulk 3CX Licence Details
|
|
10113
11069
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10141,16 +11097,6 @@ export const Class3CXApiFactory = function (configuration?: Configuration, baseP
|
|
|
10141
11097
|
getGetLicenceDetails(key: string, options?: RawAxiosRequestConfig): AxiosPromise<TcxLicenceDetailsModel> {
|
|
10142
11098
|
return localVarFp.getGetLicenceDetails(key, options).then((request) => request(axios, basePath));
|
|
10143
11099
|
},
|
|
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
11100
|
/**
|
|
10155
11101
|
* Get Bulk 3CX Licence Details
|
|
10156
11102
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -10183,18 +11129,6 @@ export class Class3CXApi extends BaseAPI {
|
|
|
10183
11129
|
return Class3CXApiFp(this.configuration).getGetLicenceDetails(key, options).then((request) => request(this.axios, this.basePath));
|
|
10184
11130
|
}
|
|
10185
11131
|
|
|
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
11132
|
/**
|
|
10199
11133
|
* Get Bulk 3CX Licence Details
|
|
10200
11134
|
* @summary Get bulk 3CX Licence Details
|
|
@@ -15369,13 +16303,14 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15369
16303
|
return {
|
|
15370
16304
|
/**
|
|
15371
16305
|
* Delete Orders
|
|
16306
|
+
* @summary Delete Orders
|
|
15372
16307
|
* @param {number} id Order ID
|
|
15373
16308
|
* @param {*} [options] Override http request option.
|
|
15374
16309
|
* @throws {RequiredError}
|
|
15375
16310
|
*/
|
|
15376
|
-
|
|
16311
|
+
deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15377
16312
|
// verify required parameter 'id' is not null or undefined
|
|
15378
|
-
assertParamExists('
|
|
16313
|
+
assertParamExists('deleteUpdateOrder', 'id', id)
|
|
15379
16314
|
const localVarPath = `/orders/{id}`
|
|
15380
16315
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
15381
16316
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -15391,6 +16326,40 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15391
16326
|
|
|
15392
16327
|
|
|
15393
16328
|
|
|
16329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16331
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16332
|
+
|
|
16333
|
+
return {
|
|
16334
|
+
url: toPathString(localVarUrlObj),
|
|
16335
|
+
options: localVarRequestOptions,
|
|
16336
|
+
};
|
|
16337
|
+
},
|
|
16338
|
+
/**
|
|
16339
|
+
* Get Editable Order
|
|
16340
|
+
* @summary Get Editable Order
|
|
16341
|
+
* @param {number} id Order ID
|
|
16342
|
+
* @param {*} [options] Override http request option.
|
|
16343
|
+
* @throws {RequiredError}
|
|
16344
|
+
*/
|
|
16345
|
+
getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16346
|
+
// verify required parameter 'id' is not null or undefined
|
|
16347
|
+
assertParamExists('getGetEditableOrder', 'id', id)
|
|
16348
|
+
const localVarPath = `/orders/{id}/views/editable`
|
|
16349
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16352
|
+
let baseOptions;
|
|
16353
|
+
if (configuration) {
|
|
16354
|
+
baseOptions = configuration.baseOptions;
|
|
16355
|
+
}
|
|
16356
|
+
|
|
16357
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16358
|
+
const localVarHeaderParameter = {} as any;
|
|
16359
|
+
const localVarQueryParameter = {} as any;
|
|
16360
|
+
|
|
16361
|
+
|
|
16362
|
+
|
|
15394
16363
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15395
16364
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15396
16365
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -15460,6 +16429,170 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
15460
16429
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15461
16430
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15462
16431
|
|
|
16432
|
+
return {
|
|
16433
|
+
url: toPathString(localVarUrlObj),
|
|
16434
|
+
options: localVarRequestOptions,
|
|
16435
|
+
};
|
|
16436
|
+
},
|
|
16437
|
+
/**
|
|
16438
|
+
* Create An Order (Admin)
|
|
16439
|
+
* @summary Create An Order (Admin)
|
|
16440
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16441
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16442
|
+
* @param {*} [options] Override http request option.
|
|
16443
|
+
* @throws {RequiredError}
|
|
16444
|
+
*/
|
|
16445
|
+
postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16446
|
+
const localVarPath = `/admin/orders`;
|
|
16447
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16448
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16449
|
+
let baseOptions;
|
|
16450
|
+
if (configuration) {
|
|
16451
|
+
baseOptions = configuration.baseOptions;
|
|
16452
|
+
}
|
|
16453
|
+
|
|
16454
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16455
|
+
const localVarHeaderParameter = {} as any;
|
|
16456
|
+
const localVarQueryParameter = {} as any;
|
|
16457
|
+
|
|
16458
|
+
if (readonly !== undefined) {
|
|
16459
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16460
|
+
}
|
|
16461
|
+
|
|
16462
|
+
|
|
16463
|
+
|
|
16464
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16465
|
+
|
|
16466
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16467
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16468
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16469
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16470
|
+
|
|
16471
|
+
return {
|
|
16472
|
+
url: toPathString(localVarUrlObj),
|
|
16473
|
+
options: localVarRequestOptions,
|
|
16474
|
+
};
|
|
16475
|
+
},
|
|
16476
|
+
/**
|
|
16477
|
+
* Create An Order
|
|
16478
|
+
* @summary Create An Order
|
|
16479
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16480
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16481
|
+
* @param {*} [options] Override http request option.
|
|
16482
|
+
* @throws {RequiredError}
|
|
16483
|
+
*/
|
|
16484
|
+
postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16485
|
+
const localVarPath = `/orders`;
|
|
16486
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16487
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16488
|
+
let baseOptions;
|
|
16489
|
+
if (configuration) {
|
|
16490
|
+
baseOptions = configuration.baseOptions;
|
|
16491
|
+
}
|
|
16492
|
+
|
|
16493
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16494
|
+
const localVarHeaderParameter = {} as any;
|
|
16495
|
+
const localVarQueryParameter = {} as any;
|
|
16496
|
+
|
|
16497
|
+
if (readonly !== undefined) {
|
|
16498
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16499
|
+
}
|
|
16500
|
+
|
|
16501
|
+
|
|
16502
|
+
|
|
16503
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16504
|
+
|
|
16505
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16506
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16507
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16508
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16509
|
+
|
|
16510
|
+
return {
|
|
16511
|
+
url: toPathString(localVarUrlObj),
|
|
16512
|
+
options: localVarRequestOptions,
|
|
16513
|
+
};
|
|
16514
|
+
},
|
|
16515
|
+
/**
|
|
16516
|
+
* Update An Order (Admin)
|
|
16517
|
+
* @summary Update An Order (Admin)
|
|
16518
|
+
* @param {number} id Order ID
|
|
16519
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16520
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16521
|
+
* @param {*} [options] Override http request option.
|
|
16522
|
+
* @throws {RequiredError}
|
|
16523
|
+
*/
|
|
16524
|
+
putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16525
|
+
// verify required parameter 'id' is not null or undefined
|
|
16526
|
+
assertParamExists('putUpdateAdminOrder', 'id', id)
|
|
16527
|
+
const localVarPath = `/admin/orders/{id}`
|
|
16528
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16529
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16531
|
+
let baseOptions;
|
|
16532
|
+
if (configuration) {
|
|
16533
|
+
baseOptions = configuration.baseOptions;
|
|
16534
|
+
}
|
|
16535
|
+
|
|
16536
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16537
|
+
const localVarHeaderParameter = {} as any;
|
|
16538
|
+
const localVarQueryParameter = {} as any;
|
|
16539
|
+
|
|
16540
|
+
if (readonly !== undefined) {
|
|
16541
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16542
|
+
}
|
|
16543
|
+
|
|
16544
|
+
|
|
16545
|
+
|
|
16546
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16547
|
+
|
|
16548
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16549
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16550
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16551
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16552
|
+
|
|
16553
|
+
return {
|
|
16554
|
+
url: toPathString(localVarUrlObj),
|
|
16555
|
+
options: localVarRequestOptions,
|
|
16556
|
+
};
|
|
16557
|
+
},
|
|
16558
|
+
/**
|
|
16559
|
+
* Update An Order
|
|
16560
|
+
* @summary Update An Order
|
|
16561
|
+
* @param {number} id Order ID
|
|
16562
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16563
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16564
|
+
* @param {*} [options] Override http request option.
|
|
16565
|
+
* @throws {RequiredError}
|
|
16566
|
+
*/
|
|
16567
|
+
putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16568
|
+
// verify required parameter 'id' is not null or undefined
|
|
16569
|
+
assertParamExists('putUpdateOrder', 'id', id)
|
|
16570
|
+
const localVarPath = `/orders/{id}`
|
|
16571
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
16572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16574
|
+
let baseOptions;
|
|
16575
|
+
if (configuration) {
|
|
16576
|
+
baseOptions = configuration.baseOptions;
|
|
16577
|
+
}
|
|
16578
|
+
|
|
16579
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16580
|
+
const localVarHeaderParameter = {} as any;
|
|
16581
|
+
const localVarQueryParameter = {} as any;
|
|
16582
|
+
|
|
16583
|
+
if (readonly !== undefined) {
|
|
16584
|
+
localVarQueryParameter['readonly'] = readonly;
|
|
16585
|
+
}
|
|
16586
|
+
|
|
16587
|
+
|
|
16588
|
+
|
|
16589
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16590
|
+
|
|
16591
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16592
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16593
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16594
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
|
|
16595
|
+
|
|
15463
16596
|
return {
|
|
15464
16597
|
url: toPathString(localVarUrlObj),
|
|
15465
16598
|
options: localVarRequestOptions,
|
|
@@ -15477,14 +16610,28 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15477
16610
|
return {
|
|
15478
16611
|
/**
|
|
15479
16612
|
* Delete Orders
|
|
16613
|
+
* @summary Delete Orders
|
|
15480
16614
|
* @param {number} id Order ID
|
|
15481
16615
|
* @param {*} [options] Override http request option.
|
|
15482
16616
|
* @throws {RequiredError}
|
|
15483
16617
|
*/
|
|
15484
|
-
async
|
|
15485
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
16618
|
+
async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
16619
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
|
|
15486
16620
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15487
|
-
const localVarOperationServerBasePath = operationServerMap['OrdersApi.
|
|
16621
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16622
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16623
|
+
},
|
|
16624
|
+
/**
|
|
16625
|
+
* Get Editable Order
|
|
16626
|
+
* @summary Get Editable Order
|
|
16627
|
+
* @param {number} id Order ID
|
|
16628
|
+
* @param {*} [options] Override http request option.
|
|
16629
|
+
* @throws {RequiredError}
|
|
16630
|
+
*/
|
|
16631
|
+
async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
|
|
16632
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
|
|
16633
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16634
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
|
|
15488
16635
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15489
16636
|
},
|
|
15490
16637
|
/**
|
|
@@ -15506,6 +16653,64 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
15506
16653
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
15507
16654
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15508
16655
|
},
|
|
16656
|
+
/**
|
|
16657
|
+
* Create An Order (Admin)
|
|
16658
|
+
* @summary Create An Order (Admin)
|
|
16659
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16660
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16661
|
+
* @param {*} [options] Override http request option.
|
|
16662
|
+
* @throws {RequiredError}
|
|
16663
|
+
*/
|
|
16664
|
+
async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
|
|
16666
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16667
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16668
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16669
|
+
},
|
|
16670
|
+
/**
|
|
16671
|
+
* Create An Order
|
|
16672
|
+
* @summary Create An Order
|
|
16673
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16674
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16675
|
+
* @param {*} [options] Override http request option.
|
|
16676
|
+
* @throws {RequiredError}
|
|
16677
|
+
*/
|
|
16678
|
+
async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16679
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
|
|
16680
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16681
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
|
|
16682
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16683
|
+
},
|
|
16684
|
+
/**
|
|
16685
|
+
* Update An Order (Admin)
|
|
16686
|
+
* @summary Update An Order (Admin)
|
|
16687
|
+
* @param {number} id Order ID
|
|
16688
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16689
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16690
|
+
* @param {*} [options] Override http request option.
|
|
16691
|
+
* @throws {RequiredError}
|
|
16692
|
+
*/
|
|
16693
|
+
async putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16694
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options);
|
|
16695
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16696
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateAdminOrder']?.[localVarOperationServerIndex]?.url;
|
|
16697
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16698
|
+
},
|
|
16699
|
+
/**
|
|
16700
|
+
* Update An Order
|
|
16701
|
+
* @summary Update An Order
|
|
16702
|
+
* @param {number} id Order ID
|
|
16703
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16704
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16705
|
+
* @param {*} [options] Override http request option.
|
|
16706
|
+
* @throws {RequiredError}
|
|
16707
|
+
*/
|
|
16708
|
+
async putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
|
|
16709
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateOrder(id, readonly, customerOrderRequestDTO, options);
|
|
16710
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16711
|
+
const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
|
|
16712
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16713
|
+
},
|
|
15509
16714
|
}
|
|
15510
16715
|
};
|
|
15511
16716
|
|
|
@@ -15518,12 +16723,23 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15518
16723
|
return {
|
|
15519
16724
|
/**
|
|
15520
16725
|
* Delete Orders
|
|
16726
|
+
* @summary Delete Orders
|
|
15521
16727
|
* @param {number} id Order ID
|
|
15522
16728
|
* @param {*} [options] Override http request option.
|
|
15523
16729
|
* @throws {RequiredError}
|
|
15524
16730
|
*/
|
|
15525
|
-
|
|
15526
|
-
return localVarFp.
|
|
16731
|
+
deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
16732
|
+
return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
|
|
16733
|
+
},
|
|
16734
|
+
/**
|
|
16735
|
+
* Get Editable Order
|
|
16736
|
+
* @summary Get Editable Order
|
|
16737
|
+
* @param {number} id Order ID
|
|
16738
|
+
* @param {*} [options] Override http request option.
|
|
16739
|
+
* @throws {RequiredError}
|
|
16740
|
+
*/
|
|
16741
|
+
getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
|
|
16742
|
+
return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
|
|
15527
16743
|
},
|
|
15528
16744
|
/**
|
|
15529
16745
|
* Get Orders
|
|
@@ -15541,6 +16757,52 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15541
16757
|
getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
|
|
15542
16758
|
return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
|
|
15543
16759
|
},
|
|
16760
|
+
/**
|
|
16761
|
+
* Create An Order (Admin)
|
|
16762
|
+
* @summary Create An Order (Admin)
|
|
16763
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16764
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16765
|
+
* @param {*} [options] Override http request option.
|
|
16766
|
+
* @throws {RequiredError}
|
|
16767
|
+
*/
|
|
16768
|
+
postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16769
|
+
return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16770
|
+
},
|
|
16771
|
+
/**
|
|
16772
|
+
* Create An Order
|
|
16773
|
+
* @summary Create An Order
|
|
16774
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16775
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16776
|
+
* @param {*} [options] Override http request option.
|
|
16777
|
+
* @throws {RequiredError}
|
|
16778
|
+
*/
|
|
16779
|
+
postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16780
|
+
return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16781
|
+
},
|
|
16782
|
+
/**
|
|
16783
|
+
* Update An Order (Admin)
|
|
16784
|
+
* @summary Update An Order (Admin)
|
|
16785
|
+
* @param {number} id Order ID
|
|
16786
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16787
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16788
|
+
* @param {*} [options] Override http request option.
|
|
16789
|
+
* @throws {RequiredError}
|
|
16790
|
+
*/
|
|
16791
|
+
putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16792
|
+
return localVarFp.putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16793
|
+
},
|
|
16794
|
+
/**
|
|
16795
|
+
* Update An Order
|
|
16796
|
+
* @summary Update An Order
|
|
16797
|
+
* @param {number} id Order ID
|
|
16798
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16799
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16800
|
+
* @param {*} [options] Override http request option.
|
|
16801
|
+
* @throws {RequiredError}
|
|
16802
|
+
*/
|
|
16803
|
+
putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
|
|
16804
|
+
return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
|
|
16805
|
+
},
|
|
15544
16806
|
};
|
|
15545
16807
|
};
|
|
15546
16808
|
|
|
@@ -15553,13 +16815,26 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
15553
16815
|
export class OrdersApi extends BaseAPI {
|
|
15554
16816
|
/**
|
|
15555
16817
|
* Delete Orders
|
|
16818
|
+
* @summary Delete Orders
|
|
15556
16819
|
* @param {number} id Order ID
|
|
15557
16820
|
* @param {*} [options] Override http request option.
|
|
15558
16821
|
* @throws {RequiredError}
|
|
15559
16822
|
* @memberof OrdersApi
|
|
15560
16823
|
*/
|
|
15561
|
-
public
|
|
15562
|
-
return OrdersApiFp(this.configuration).
|
|
16824
|
+
public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16825
|
+
return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
16826
|
+
}
|
|
16827
|
+
|
|
16828
|
+
/**
|
|
16829
|
+
* Get Editable Order
|
|
16830
|
+
* @summary Get Editable Order
|
|
16831
|
+
* @param {number} id Order ID
|
|
16832
|
+
* @param {*} [options] Override http request option.
|
|
16833
|
+
* @throws {RequiredError}
|
|
16834
|
+
* @memberof OrdersApi
|
|
16835
|
+
*/
|
|
16836
|
+
public getGetEditableOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
16837
|
+
return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
15563
16838
|
}
|
|
15564
16839
|
|
|
15565
16840
|
/**
|
|
@@ -15579,6 +16854,60 @@ export class OrdersApi extends BaseAPI {
|
|
|
15579
16854
|
public getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig) {
|
|
15580
16855
|
return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
15581
16856
|
}
|
|
16857
|
+
|
|
16858
|
+
/**
|
|
16859
|
+
* Create An Order (Admin)
|
|
16860
|
+
* @summary Create An Order (Admin)
|
|
16861
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16862
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
|
|
16863
|
+
* @param {*} [options] Override http request option.
|
|
16864
|
+
* @throws {RequiredError}
|
|
16865
|
+
* @memberof OrdersApi
|
|
16866
|
+
*/
|
|
16867
|
+
public postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16868
|
+
return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16869
|
+
}
|
|
16870
|
+
|
|
16871
|
+
/**
|
|
16872
|
+
* Create An Order
|
|
16873
|
+
* @summary Create An Order
|
|
16874
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16875
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16876
|
+
* @param {*} [options] Override http request option.
|
|
16877
|
+
* @throws {RequiredError}
|
|
16878
|
+
* @memberof OrdersApi
|
|
16879
|
+
*/
|
|
16880
|
+
public postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16881
|
+
return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16882
|
+
}
|
|
16883
|
+
|
|
16884
|
+
/**
|
|
16885
|
+
* Update An Order (Admin)
|
|
16886
|
+
* @summary Update An Order (Admin)
|
|
16887
|
+
* @param {number} id Order ID
|
|
16888
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16889
|
+
* @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
|
|
16890
|
+
* @param {*} [options] Override http request option.
|
|
16891
|
+
* @throws {RequiredError}
|
|
16892
|
+
* @memberof OrdersApi
|
|
16893
|
+
*/
|
|
16894
|
+
public putUpdateAdminOrder(id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16895
|
+
return OrdersApiFp(this.configuration).putUpdateAdminOrder(id, readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16896
|
+
}
|
|
16897
|
+
|
|
16898
|
+
/**
|
|
16899
|
+
* Update An Order
|
|
16900
|
+
* @summary Update An Order
|
|
16901
|
+
* @param {number} id Order ID
|
|
16902
|
+
* @param {boolean} [readonly] Readonly Order
|
|
16903
|
+
* @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
|
|
16904
|
+
* @param {*} [options] Override http request option.
|
|
16905
|
+
* @throws {RequiredError}
|
|
16906
|
+
* @memberof OrdersApi
|
|
16907
|
+
*/
|
|
16908
|
+
public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
|
|
16909
|
+
return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16910
|
+
}
|
|
15582
16911
|
}
|
|
15583
16912
|
|
|
15584
16913
|
/**
|
|
@@ -15964,8 +17293,42 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15964
17293
|
* @param {*} [options] Override http request option.
|
|
15965
17294
|
* @throws {RequiredError}
|
|
15966
17295
|
*/
|
|
15967
|
-
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15968
|
-
const localVarPath = `/products/attributes`;
|
|
17296
|
+
getGetAttributeSets: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17297
|
+
const localVarPath = `/products/attributes`;
|
|
17298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17300
|
+
let baseOptions;
|
|
17301
|
+
if (configuration) {
|
|
17302
|
+
baseOptions = configuration.baseOptions;
|
|
17303
|
+
}
|
|
17304
|
+
|
|
17305
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17306
|
+
const localVarHeaderParameter = {} as any;
|
|
17307
|
+
const localVarQueryParameter = {} as any;
|
|
17308
|
+
|
|
17309
|
+
|
|
17310
|
+
|
|
17311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17313
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17314
|
+
|
|
17315
|
+
return {
|
|
17316
|
+
url: toPathString(localVarUrlObj),
|
|
17317
|
+
options: localVarRequestOptions,
|
|
17318
|
+
};
|
|
17319
|
+
},
|
|
17320
|
+
/**
|
|
17321
|
+
* Get Current Stock & Pricing
|
|
17322
|
+
* @summary Get Current Stock & Pricing
|
|
17323
|
+
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
17324
|
+
* @param {*} [options] Override http request option.
|
|
17325
|
+
* @deprecated
|
|
17326
|
+
* @throws {RequiredError}
|
|
17327
|
+
*/
|
|
17328
|
+
getGetLegacyStockList: async (format: GetGetLegacyStockListFormatEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17329
|
+
// verify required parameter 'format' is not null or undefined
|
|
17330
|
+
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
17331
|
+
const localVarPath = `/products/stock/legacy`;
|
|
15969
17332
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15970
17333
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15971
17334
|
let baseOptions;
|
|
@@ -15977,6 +17340,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15977
17340
|
const localVarHeaderParameter = {} as any;
|
|
15978
17341
|
const localVarQueryParameter = {} as any;
|
|
15979
17342
|
|
|
17343
|
+
if (format !== undefined) {
|
|
17344
|
+
localVarQueryParameter['format'] = format;
|
|
17345
|
+
}
|
|
17346
|
+
|
|
15980
17347
|
|
|
15981
17348
|
|
|
15982
17349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -15989,13 +17356,13 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
15989
17356
|
};
|
|
15990
17357
|
},
|
|
15991
17358
|
/**
|
|
15992
|
-
* Get
|
|
15993
|
-
* @summary Get
|
|
17359
|
+
* Get Products
|
|
17360
|
+
* @summary Get Products
|
|
15994
17361
|
* @param {*} [options] Override http request option.
|
|
15995
17362
|
* @throws {RequiredError}
|
|
15996
17363
|
*/
|
|
15997
|
-
|
|
15998
|
-
const localVarPath = `/products
|
|
17364
|
+
getGetProducts: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17365
|
+
const localVarPath = `/products`;
|
|
15999
17366
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16000
17367
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16001
17368
|
let baseOptions;
|
|
@@ -16021,15 +17388,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16021
17388
|
/**
|
|
16022
17389
|
* Get Current Stock & Pricing
|
|
16023
17390
|
* @summary Get Current Stock & Pricing
|
|
16024
|
-
* @param {GetGetLegacyStockListFormatEnum} format File Format
|
|
16025
17391
|
* @param {*} [options] Override http request option.
|
|
16026
|
-
* @deprecated
|
|
16027
17392
|
* @throws {RequiredError}
|
|
16028
17393
|
*/
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
assertParamExists('getGetLegacyStockList', 'format', format)
|
|
16032
|
-
const localVarPath = `/products/stock/legacy`;
|
|
17394
|
+
getGetStockList: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17395
|
+
const localVarPath = `/products/stock`;
|
|
16033
17396
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16034
17397
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16035
17398
|
let baseOptions;
|
|
@@ -16041,10 +17404,36 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16041
17404
|
const localVarHeaderParameter = {} as any;
|
|
16042
17405
|
const localVarQueryParameter = {} as any;
|
|
16043
17406
|
|
|
16044
|
-
|
|
16045
|
-
|
|
17407
|
+
|
|
17408
|
+
|
|
17409
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17410
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17411
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17412
|
+
|
|
17413
|
+
return {
|
|
17414
|
+
url: toPathString(localVarUrlObj),
|
|
17415
|
+
options: localVarRequestOptions,
|
|
17416
|
+
};
|
|
17417
|
+
},
|
|
17418
|
+
/**
|
|
17419
|
+
* Get 3CX Templates
|
|
17420
|
+
* @summary Get 3CX Templates
|
|
17421
|
+
* @param {*} [options] Override http request option.
|
|
17422
|
+
* @throws {RequiredError}
|
|
17423
|
+
*/
|
|
17424
|
+
getGetTcxTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17425
|
+
const localVarPath = `/products/attributes/tcx/templates`;
|
|
17426
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17427
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17428
|
+
let baseOptions;
|
|
17429
|
+
if (configuration) {
|
|
17430
|
+
baseOptions = configuration.baseOptions;
|
|
16046
17431
|
}
|
|
16047
17432
|
|
|
17433
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17434
|
+
const localVarHeaderParameter = {} as any;
|
|
17435
|
+
const localVarQueryParameter = {} as any;
|
|
17436
|
+
|
|
16048
17437
|
|
|
16049
17438
|
|
|
16050
17439
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16057,15 +17446,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16057
17446
|
};
|
|
16058
17447
|
},
|
|
16059
17448
|
/**
|
|
16060
|
-
*
|
|
16061
|
-
* @summary
|
|
17449
|
+
* Search Products
|
|
17450
|
+
* @summary Search Products
|
|
16062
17451
|
* @param {number} [pageSize] Number Of Results
|
|
16063
17452
|
* @param {number} [page] Page Number
|
|
16064
17453
|
* @param {string} [search] Search
|
|
16065
17454
|
* @param {*} [options] Override http request option.
|
|
16066
17455
|
* @throws {RequiredError}
|
|
16067
17456
|
*/
|
|
16068
|
-
|
|
17457
|
+
getSearchProducts: async (pageSize?: number, page?: number, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16069
17458
|
const localVarPath = `/products/search`;
|
|
16070
17459
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16071
17460
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -16102,13 +17491,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16102
17491
|
};
|
|
16103
17492
|
},
|
|
16104
17493
|
/**
|
|
16105
|
-
* Get
|
|
16106
|
-
* @summary Get
|
|
17494
|
+
* Get Product
|
|
17495
|
+
* @summary Get Product
|
|
17496
|
+
* @param {string} sku Product SKU
|
|
17497
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16107
17498
|
* @param {*} [options] Override http request option.
|
|
16108
17499
|
* @throws {RequiredError}
|
|
16109
17500
|
*/
|
|
16110
|
-
|
|
16111
|
-
|
|
17501
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17502
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17503
|
+
assertParamExists('postGetProduct', 'sku', sku)
|
|
17504
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17505
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17506
|
+
const localVarPath = `/products/{sku}`
|
|
17507
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16112
17508
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16113
17509
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16114
17510
|
let baseOptions;
|
|
@@ -16116,15 +17512,18 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16116
17512
|
baseOptions = configuration.baseOptions;
|
|
16117
17513
|
}
|
|
16118
17514
|
|
|
16119
|
-
const localVarRequestOptions = { method: '
|
|
17515
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16120
17516
|
const localVarHeaderParameter = {} as any;
|
|
16121
17517
|
const localVarQueryParameter = {} as any;
|
|
16122
17518
|
|
|
16123
17519
|
|
|
16124
17520
|
|
|
17521
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17522
|
+
|
|
16125
17523
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16126
17524
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16127
17525
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17526
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16128
17527
|
|
|
16129
17528
|
return {
|
|
16130
17529
|
url: toPathString(localVarUrlObj),
|
|
@@ -16132,13 +17531,23 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16132
17531
|
};
|
|
16133
17532
|
},
|
|
16134
17533
|
/**
|
|
16135
|
-
* Get
|
|
16136
|
-
* @summary Get
|
|
17534
|
+
* Get Product For Customer
|
|
17535
|
+
* @summary Get Product For Customer
|
|
17536
|
+
* @param {number} customerId Customer ID
|
|
17537
|
+
* @param {string} sku Product SKU
|
|
17538
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16137
17539
|
* @param {*} [options] Override http request option.
|
|
16138
17540
|
* @throws {RequiredError}
|
|
16139
17541
|
*/
|
|
16140
|
-
|
|
16141
|
-
|
|
17542
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17543
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
17544
|
+
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
17545
|
+
// verify required parameter 'sku' is not null or undefined
|
|
17546
|
+
assertParamExists('postGetProductForCustomer', 'sku', sku)
|
|
17547
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
17548
|
+
assertParamExists('postGetProductForCustomer', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
17549
|
+
const localVarPath = `/admin/products/{sku}`
|
|
17550
|
+
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
16142
17551
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16143
17552
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16144
17553
|
let baseOptions;
|
|
@@ -16146,15 +17555,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
16146
17555
|
baseOptions = configuration.baseOptions;
|
|
16147
17556
|
}
|
|
16148
17557
|
|
|
16149
|
-
const localVarRequestOptions = { method: '
|
|
17558
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16150
17559
|
const localVarHeaderParameter = {} as any;
|
|
16151
17560
|
const localVarQueryParameter = {} as any;
|
|
16152
17561
|
|
|
17562
|
+
if (customerId !== undefined) {
|
|
17563
|
+
localVarQueryParameter['customerId'] = customerId;
|
|
17564
|
+
}
|
|
17565
|
+
|
|
16153
17566
|
|
|
16154
17567
|
|
|
17568
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17569
|
+
|
|
16155
17570
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16156
17571
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16157
17572
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17573
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
16158
17574
|
|
|
16159
17575
|
return {
|
|
16160
17576
|
url: toPathString(localVarUrlObj),
|
|
@@ -16183,18 +17599,6 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16183
17599
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetAttributeSets']?.[localVarOperationServerIndex]?.url;
|
|
16184
17600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16185
17601
|
},
|
|
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
17602
|
/**
|
|
16199
17603
|
* Get Current Stock & Pricing
|
|
16200
17604
|
* @summary Get Current Stock & Pricing
|
|
@@ -16212,14 +17616,11 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16212
17616
|
/**
|
|
16213
17617
|
* Get Products
|
|
16214
17618
|
* @summary Get Products
|
|
16215
|
-
* @param {number} [pageSize] Number Of Results
|
|
16216
|
-
* @param {number} [page] Page Number
|
|
16217
|
-
* @param {string} [search] Search
|
|
16218
17619
|
* @param {*} [options] Override http request option.
|
|
16219
17620
|
* @throws {RequiredError}
|
|
16220
17621
|
*/
|
|
16221
|
-
async getGetProducts(
|
|
16222
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(
|
|
17622
|
+
async getGetProducts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BasicProductDTO>>> {
|
|
17623
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetProducts(options);
|
|
16223
17624
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16224
17625
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetProducts']?.[localVarOperationServerIndex]?.url;
|
|
16225
17626
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16248,6 +17649,50 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
16248
17649
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getGetTcxTemplates']?.[localVarOperationServerIndex]?.url;
|
|
16249
17650
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16250
17651
|
},
|
|
17652
|
+
/**
|
|
17653
|
+
* Search Products
|
|
17654
|
+
* @summary Search Products
|
|
17655
|
+
* @param {number} [pageSize] Number Of Results
|
|
17656
|
+
* @param {number} [page] Page Number
|
|
17657
|
+
* @param {string} [search] Search
|
|
17658
|
+
* @param {*} [options] Override http request option.
|
|
17659
|
+
* @throws {RequiredError}
|
|
17660
|
+
*/
|
|
17661
|
+
async getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSearchResultsModel>> {
|
|
17662
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchProducts(pageSize, page, search, options);
|
|
17663
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17664
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.getSearchProducts']?.[localVarOperationServerIndex]?.url;
|
|
17665
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17666
|
+
},
|
|
17667
|
+
/**
|
|
17668
|
+
* Get Product
|
|
17669
|
+
* @summary Get Product
|
|
17670
|
+
* @param {string} sku Product SKU
|
|
17671
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17672
|
+
* @param {*} [options] Override http request option.
|
|
17673
|
+
* @throws {RequiredError}
|
|
17674
|
+
*/
|
|
17675
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17676
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
17677
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17678
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
17679
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17680
|
+
},
|
|
17681
|
+
/**
|
|
17682
|
+
* Get Product For Customer
|
|
17683
|
+
* @summary Get Product For Customer
|
|
17684
|
+
* @param {number} customerId Customer ID
|
|
17685
|
+
* @param {string} sku Product SKU
|
|
17686
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17687
|
+
* @param {*} [options] Override http request option.
|
|
17688
|
+
* @throws {RequiredError}
|
|
17689
|
+
*/
|
|
17690
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
17691
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
17692
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17693
|
+
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
17694
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17695
|
+
},
|
|
16251
17696
|
}
|
|
16252
17697
|
};
|
|
16253
17698
|
|
|
@@ -16267,15 +17712,6 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16267
17712
|
getGetAttributeSets(options?: RawAxiosRequestConfig): AxiosPromise<Array<AttributeSetEnum>> {
|
|
16268
17713
|
return localVarFp.getGetAttributeSets(options).then((request) => request(axios, basePath));
|
|
16269
17714
|
},
|
|
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
17715
|
/**
|
|
16280
17716
|
* Get Current Stock & Pricing
|
|
16281
17717
|
* @summary Get Current Stock & Pricing
|
|
@@ -16290,14 +17726,11 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16290
17726
|
/**
|
|
16291
17727
|
* Get Products
|
|
16292
17728
|
* @summary Get Products
|
|
16293
|
-
* @param {number} [pageSize] Number Of Results
|
|
16294
|
-
* @param {number} [page] Page Number
|
|
16295
|
-
* @param {string} [search] Search
|
|
16296
17729
|
* @param {*} [options] Override http request option.
|
|
16297
17730
|
* @throws {RequiredError}
|
|
16298
17731
|
*/
|
|
16299
|
-
getGetProducts(
|
|
16300
|
-
return localVarFp.getGetProducts(
|
|
17732
|
+
getGetProducts(options?: RawAxiosRequestConfig): AxiosPromise<Array<BasicProductDTO>> {
|
|
17733
|
+
return localVarFp.getGetProducts(options).then((request) => request(axios, basePath));
|
|
16301
17734
|
},
|
|
16302
17735
|
/**
|
|
16303
17736
|
* Get Current Stock & Pricing
|
|
@@ -16317,6 +17750,41 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
16317
17750
|
getGetTcxTemplates(options?: RawAxiosRequestConfig): AxiosPromise<Array<TcxTemplateXmlEnum>> {
|
|
16318
17751
|
return localVarFp.getGetTcxTemplates(options).then((request) => request(axios, basePath));
|
|
16319
17752
|
},
|
|
17753
|
+
/**
|
|
17754
|
+
* Search Products
|
|
17755
|
+
* @summary Search Products
|
|
17756
|
+
* @param {number} [pageSize] Number Of Results
|
|
17757
|
+
* @param {number} [page] Page Number
|
|
17758
|
+
* @param {string} [search] Search
|
|
17759
|
+
* @param {*} [options] Override http request option.
|
|
17760
|
+
* @throws {RequiredError}
|
|
17761
|
+
*/
|
|
17762
|
+
getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductSearchResultsModel> {
|
|
17763
|
+
return localVarFp.getSearchProducts(pageSize, page, search, options).then((request) => request(axios, basePath));
|
|
17764
|
+
},
|
|
17765
|
+
/**
|
|
17766
|
+
* Get Product
|
|
17767
|
+
* @summary Get Product
|
|
17768
|
+
* @param {string} sku Product SKU
|
|
17769
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17770
|
+
* @param {*} [options] Override http request option.
|
|
17771
|
+
* @throws {RequiredError}
|
|
17772
|
+
*/
|
|
17773
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17774
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17775
|
+
},
|
|
17776
|
+
/**
|
|
17777
|
+
* Get Product For Customer
|
|
17778
|
+
* @summary Get Product For Customer
|
|
17779
|
+
* @param {number} customerId Customer ID
|
|
17780
|
+
* @param {string} sku Product SKU
|
|
17781
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17782
|
+
* @param {*} [options] Override http request option.
|
|
17783
|
+
* @throws {RequiredError}
|
|
17784
|
+
*/
|
|
17785
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
17786
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
17787
|
+
},
|
|
16320
17788
|
};
|
|
16321
17789
|
};
|
|
16322
17790
|
|
|
@@ -16338,17 +17806,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
16338
17806
|
return ProductsApiFp(this.configuration).getGetAttributeSets(options).then((request) => request(this.axios, this.basePath));
|
|
16339
17807
|
}
|
|
16340
17808
|
|
|
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
17809
|
/**
|
|
16353
17810
|
* Get Current Stock & Pricing
|
|
16354
17811
|
* @summary Get Current Stock & Pricing
|
|
@@ -16365,15 +17822,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
16365
17822
|
/**
|
|
16366
17823
|
* Get Products
|
|
16367
17824
|
* @summary Get Products
|
|
16368
|
-
* @param {number} [pageSize] Number Of Results
|
|
16369
|
-
* @param {number} [page] Page Number
|
|
16370
|
-
* @param {string} [search] Search
|
|
16371
17825
|
* @param {*} [options] Override http request option.
|
|
16372
17826
|
* @throws {RequiredError}
|
|
16373
17827
|
* @memberof ProductsApi
|
|
16374
17828
|
*/
|
|
16375
|
-
public getGetProducts(
|
|
16376
|
-
return ProductsApiFp(this.configuration).getGetProducts(
|
|
17829
|
+
public getGetProducts(options?: RawAxiosRequestConfig) {
|
|
17830
|
+
return ProductsApiFp(this.configuration).getGetProducts(options).then((request) => request(this.axios, this.basePath));
|
|
16377
17831
|
}
|
|
16378
17832
|
|
|
16379
17833
|
/**
|
|
@@ -16397,6 +17851,47 @@ export class ProductsApi extends BaseAPI {
|
|
|
16397
17851
|
public getGetTcxTemplates(options?: RawAxiosRequestConfig) {
|
|
16398
17852
|
return ProductsApiFp(this.configuration).getGetTcxTemplates(options).then((request) => request(this.axios, this.basePath));
|
|
16399
17853
|
}
|
|
17854
|
+
|
|
17855
|
+
/**
|
|
17856
|
+
* Search Products
|
|
17857
|
+
* @summary Search Products
|
|
17858
|
+
* @param {number} [pageSize] Number Of Results
|
|
17859
|
+
* @param {number} [page] Page Number
|
|
17860
|
+
* @param {string} [search] Search
|
|
17861
|
+
* @param {*} [options] Override http request option.
|
|
17862
|
+
* @throws {RequiredError}
|
|
17863
|
+
* @memberof ProductsApi
|
|
17864
|
+
*/
|
|
17865
|
+
public getSearchProducts(pageSize?: number, page?: number, search?: string, options?: RawAxiosRequestConfig) {
|
|
17866
|
+
return ProductsApiFp(this.configuration).getSearchProducts(pageSize, page, search, options).then((request) => request(this.axios, this.basePath));
|
|
17867
|
+
}
|
|
17868
|
+
|
|
17869
|
+
/**
|
|
17870
|
+
* Get Product
|
|
17871
|
+
* @summary Get Product
|
|
17872
|
+
* @param {string} sku Product SKU
|
|
17873
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17874
|
+
* @param {*} [options] Override http request option.
|
|
17875
|
+
* @throws {RequiredError}
|
|
17876
|
+
* @memberof ProductsApi
|
|
17877
|
+
*/
|
|
17878
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17879
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17880
|
+
}
|
|
17881
|
+
|
|
17882
|
+
/**
|
|
17883
|
+
* Get Product For Customer
|
|
17884
|
+
* @summary Get Product For Customer
|
|
17885
|
+
* @param {number} customerId Customer ID
|
|
17886
|
+
* @param {string} sku Product SKU
|
|
17887
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17888
|
+
* @param {*} [options] Override http request option.
|
|
17889
|
+
* @throws {RequiredError}
|
|
17890
|
+
* @memberof ProductsApi
|
|
17891
|
+
*/
|
|
17892
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
17893
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17894
|
+
}
|
|
16400
17895
|
}
|
|
16401
17896
|
|
|
16402
17897
|
/**
|
|
@@ -16737,7 +18232,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16737
18232
|
* @param {*} [options] Override http request option.
|
|
16738
18233
|
* @throws {RequiredError}
|
|
16739
18234
|
*/
|
|
16740
|
-
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
18235
|
+
async getGetGroups(id?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProvisioningModel>>> {
|
|
16741
18236
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetGroups(id, options);
|
|
16742
18237
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16743
18238
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.getGetGroups']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16750,7 +18245,7 @@ export const ProvisioningApiFp = function(configuration?: Configuration) {
|
|
|
16750
18245
|
* @param {*} [options] Override http request option.
|
|
16751
18246
|
* @throws {RequiredError}
|
|
16752
18247
|
*/
|
|
16753
|
-
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18248
|
+
async postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisioningModel>> {
|
|
16754
18249
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddFanvilGroup(provisioningRequestEntity, options);
|
|
16755
18250
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16756
18251
|
const localVarOperationServerBasePath = operationServerMap['ProvisioningApi.postAddFanvilGroup']?.[localVarOperationServerIndex]?.url;
|
|
@@ -16829,7 +18324,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16829
18324
|
* @param {*} [options] Override http request option.
|
|
16830
18325
|
* @throws {RequiredError}
|
|
16831
18326
|
*/
|
|
16832
|
-
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
18327
|
+
getGetGroups(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProvisioningModel>> {
|
|
16833
18328
|
return localVarFp.getGetGroups(id, options).then((request) => request(axios, basePath));
|
|
16834
18329
|
},
|
|
16835
18330
|
/**
|
|
@@ -16839,7 +18334,7 @@ export const ProvisioningApiFactory = function (configuration?: Configuration, b
|
|
|
16839
18334
|
* @param {*} [options] Override http request option.
|
|
16840
18335
|
* @throws {RequiredError}
|
|
16841
18336
|
*/
|
|
16842
|
-
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18337
|
+
postAddFanvilGroup(provisioningRequestEntity?: ProvisioningRequestEntity, options?: RawAxiosRequestConfig): AxiosPromise<ProvisioningModel> {
|
|
16843
18338
|
return localVarFp.postAddFanvilGroup(provisioningRequestEntity, options).then((request) => request(axios, basePath));
|
|
16844
18339
|
},
|
|
16845
18340
|
/**
|
|
@@ -18740,6 +20235,114 @@ export class SMSApi extends BaseAPI {
|
|
|
18740
20235
|
|
|
18741
20236
|
|
|
18742
20237
|
|
|
20238
|
+
/**
|
|
20239
|
+
* ShippingApi - axios parameter creator
|
|
20240
|
+
* @export
|
|
20241
|
+
*/
|
|
20242
|
+
export const ShippingApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
20243
|
+
return {
|
|
20244
|
+
/**
|
|
20245
|
+
* Get Shipping Services
|
|
20246
|
+
* @summary Get Shipping Services
|
|
20247
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20248
|
+
* @param {*} [options] Override http request option.
|
|
20249
|
+
* @throws {RequiredError}
|
|
20250
|
+
*/
|
|
20251
|
+
postGetShippingServices: async (shippingInformationDTO?: ShippingInformationDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20252
|
+
const localVarPath = `/shipping/services`;
|
|
20253
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20254
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
20255
|
+
let baseOptions;
|
|
20256
|
+
if (configuration) {
|
|
20257
|
+
baseOptions = configuration.baseOptions;
|
|
20258
|
+
}
|
|
20259
|
+
|
|
20260
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
20261
|
+
const localVarHeaderParameter = {} as any;
|
|
20262
|
+
const localVarQueryParameter = {} as any;
|
|
20263
|
+
|
|
20264
|
+
|
|
20265
|
+
|
|
20266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20267
|
+
|
|
20268
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20270
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
20271
|
+
localVarRequestOptions.data = serializeDataIfNeeded(shippingInformationDTO, localVarRequestOptions, configuration)
|
|
20272
|
+
|
|
20273
|
+
return {
|
|
20274
|
+
url: toPathString(localVarUrlObj),
|
|
20275
|
+
options: localVarRequestOptions,
|
|
20276
|
+
};
|
|
20277
|
+
},
|
|
20278
|
+
}
|
|
20279
|
+
};
|
|
20280
|
+
|
|
20281
|
+
/**
|
|
20282
|
+
* ShippingApi - functional programming interface
|
|
20283
|
+
* @export
|
|
20284
|
+
*/
|
|
20285
|
+
export const ShippingApiFp = function(configuration?: Configuration) {
|
|
20286
|
+
const localVarAxiosParamCreator = ShippingApiAxiosParamCreator(configuration)
|
|
20287
|
+
return {
|
|
20288
|
+
/**
|
|
20289
|
+
* Get Shipping Services
|
|
20290
|
+
* @summary Get Shipping Services
|
|
20291
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20292
|
+
* @param {*} [options] Override http request option.
|
|
20293
|
+
* @throws {RequiredError}
|
|
20294
|
+
*/
|
|
20295
|
+
async postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShippingServicesModel>> {
|
|
20296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetShippingServices(shippingInformationDTO, options);
|
|
20297
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
20298
|
+
const localVarOperationServerBasePath = operationServerMap['ShippingApi.postGetShippingServices']?.[localVarOperationServerIndex]?.url;
|
|
20299
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
20300
|
+
},
|
|
20301
|
+
}
|
|
20302
|
+
};
|
|
20303
|
+
|
|
20304
|
+
/**
|
|
20305
|
+
* ShippingApi - factory interface
|
|
20306
|
+
* @export
|
|
20307
|
+
*/
|
|
20308
|
+
export const ShippingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
20309
|
+
const localVarFp = ShippingApiFp(configuration)
|
|
20310
|
+
return {
|
|
20311
|
+
/**
|
|
20312
|
+
* Get Shipping Services
|
|
20313
|
+
* @summary Get Shipping Services
|
|
20314
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20315
|
+
* @param {*} [options] Override http request option.
|
|
20316
|
+
* @throws {RequiredError}
|
|
20317
|
+
*/
|
|
20318
|
+
postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShippingServicesModel> {
|
|
20319
|
+
return localVarFp.postGetShippingServices(shippingInformationDTO, options).then((request) => request(axios, basePath));
|
|
20320
|
+
},
|
|
20321
|
+
};
|
|
20322
|
+
};
|
|
20323
|
+
|
|
20324
|
+
/**
|
|
20325
|
+
* ShippingApi - object-oriented interface
|
|
20326
|
+
* @export
|
|
20327
|
+
* @class ShippingApi
|
|
20328
|
+
* @extends {BaseAPI}
|
|
20329
|
+
*/
|
|
20330
|
+
export class ShippingApi extends BaseAPI {
|
|
20331
|
+
/**
|
|
20332
|
+
* Get Shipping Services
|
|
20333
|
+
* @summary Get Shipping Services
|
|
20334
|
+
* @param {ShippingInformationDTO} [shippingInformationDTO] Shipping Information
|
|
20335
|
+
* @param {*} [options] Override http request option.
|
|
20336
|
+
* @throws {RequiredError}
|
|
20337
|
+
* @memberof ShippingApi
|
|
20338
|
+
*/
|
|
20339
|
+
public postGetShippingServices(shippingInformationDTO?: ShippingInformationDTO, options?: RawAxiosRequestConfig) {
|
|
20340
|
+
return ShippingApiFp(this.configuration).postGetShippingServices(shippingInformationDTO, options).then((request) => request(this.axios, this.basePath));
|
|
20341
|
+
}
|
|
20342
|
+
}
|
|
20343
|
+
|
|
20344
|
+
|
|
20345
|
+
|
|
18743
20346
|
/**
|
|
18744
20347
|
* StockManagementApi - axios parameter creator
|
|
18745
20348
|
* @export
|
|
@@ -19826,7 +21429,7 @@ export const StockManagementApiFp = function(configuration?: Configuration) {
|
|
|
19826
21429
|
* @param {*} [options] Override http request option.
|
|
19827
21430
|
* @throws {RequiredError}
|
|
19828
21431
|
*/
|
|
19829
|
-
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
21432
|
+
async getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductSummaryDTO>>> {
|
|
19830
21433
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGetStockSupplierProducts(id, options);
|
|
19831
21434
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19832
21435
|
const localVarOperationServerBasePath = operationServerMap['StockManagementApi.getGetStockSupplierProducts']?.[localVarOperationServerIndex]?.url;
|
|
@@ -20129,7 +21732,7 @@ export const StockManagementApiFactory = function (configuration?: Configuration
|
|
|
20129
21732
|
* @param {*} [options] Override http request option.
|
|
20130
21733
|
* @throws {RequiredError}
|
|
20131
21734
|
*/
|
|
20132
|
-
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
21735
|
+
getGetStockSupplierProducts(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProductSummaryDTO>> {
|
|
20133
21736
|
return localVarFp.getGetStockSupplierProducts(id, options).then((request) => request(axios, basePath));
|
|
20134
21737
|
},
|
|
20135
21738
|
/**
|