yellowgrid-api-ts 3.2.53-dev.0 → 3.2.53

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.
Files changed (49) hide show
  1. package/.openapi-generator/FILES +229 -249
  2. package/README.md +0 -34
  3. package/api.ts +209 -2363
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/config.json +3 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +109 -1719
  9. package/dist/api.js +84 -1379
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +1 -1
  12. package/dist/common.d.ts +1 -1
  13. package/dist/common.js +1 -1
  14. package/dist/configuration.d.ts +1 -1
  15. package/dist/configuration.js +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/docs/OrdersApi.md +12 -788
  19. package/getEnums.php +31 -31
  20. package/index.ts +1 -1
  21. package/package.json +1 -1
  22. package/dist/models/CourierEnum.d.ts +0 -18
  23. package/dist/models/CourierEnum.js +0 -20
  24. package/dist/models/PrinterEnum.d.ts +0 -18
  25. package/dist/models/PrinterEnum.js +0 -20
  26. package/docs/BatchDTO.md +0 -57
  27. package/docs/CreditNoteDTO.md +0 -21
  28. package/docs/CreditNoteEntity.md +0 -29
  29. package/docs/CreditNoteItemDTO.md +0 -25
  30. package/docs/CreditNoteItemEntity.md +0 -29
  31. package/docs/CreditNoteModel.md +0 -29
  32. package/docs/OrderDetailsDTO.md +0 -61
  33. package/docs/OrderItemDTO.md +0 -51
  34. package/docs/OrderedItemModel.md +0 -47
  35. package/docs/PostAddOrderNoteRequest.md +0 -20
  36. package/docs/PostSplitOrderRequest.md +0 -20
  37. package/docs/PrinterEntity.md +0 -29
  38. package/docs/PutAllocateItemsRequest.md +0 -20
  39. package/docs/PutAllocateItemsRequestItemsInner.md +0 -22
  40. package/docs/ShipmentDTO.md +0 -31
  41. package/docs/ShipmentItemDTO.md +0 -23
  42. package/docs/ShipmentItemModel.md +0 -29
  43. package/docs/ShipmentModel.md +0 -43
  44. package/docs/ShipmentRequestDTO.md +0 -31
  45. package/docs/ShippingRequestDTO.md +0 -24
  46. package/docs/SupplierModel.md +0 -37
  47. package/hs_err_pid58424.log +0 -247
  48. package/models/CourierEnum.ts +0 -19
  49. package/models/PrinterEnum.ts +0 -19
package/api.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Yellowgrid
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.
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
  *
@@ -1029,13 +1029,13 @@ export interface AuditLogEntity {
1029
1029
  * @type {string}
1030
1030
  * @memberof AuditLogEntity
1031
1031
  */
1032
- 'action'?: AuditLogEntityActionEnum;
1032
+ 'action'?: string;
1033
1033
  /**
1034
1034
  * type
1035
1035
  * @type {string}
1036
1036
  * @memberof AuditLogEntity
1037
1037
  */
1038
- 'type'?: AuditLogEntityTypeEnum;
1038
+ 'type'?: string;
1039
1039
  /**
1040
1040
  * identifier
1041
1041
  * @type {string}
@@ -1073,93 +1073,6 @@ export interface AuditLogEntity {
1073
1073
  */
1074
1074
  'description'?: string;
1075
1075
  }
1076
-
1077
- export const AuditLogEntityActionEnum = {
1078
- Create: 'CREATE',
1079
- Read: 'READ',
1080
- Update: 'UPDATE',
1081
- Delete: 'DELETE'
1082
- } as const;
1083
-
1084
- export type AuditLogEntityActionEnum = typeof AuditLogEntityActionEnum[keyof typeof AuditLogEntityActionEnum];
1085
- export const AuditLogEntityTypeEnum = {
1086
- AuditLog: 'audit_log',
1087
- PopsOrders: 'pops_orders',
1088
- PopsAccountContacts: 'pops_account_contacts',
1089
- ApiLog: 'api_log',
1090
- PopsBatches: 'pops_batches',
1091
- PopsCourierPrices: 'pops_courier_prices',
1092
- PopsCreditAccounts: 'pops_credit_accounts',
1093
- PopsCreditNotes: 'pops_credit_notes',
1094
- PopsCreditNotesItems: 'pops_credit_notes_items',
1095
- EdtechproClients: 'edtechpro_clients',
1096
- EdtechproSchools: 'edtechpro_schools',
1097
- FreshdeskTickets: 'freshdesk_tickets',
1098
- PopsFtpAccounts: 'pops_ftp_accounts',
1099
- ServiceEvents: 'service_events',
1100
- ServiceEventUpdates: 'service_event_updates',
1101
- ServiceEventSubscriptions: 'service_event_subscriptions',
1102
- PopsInstanceFailoverIps: 'pops_instance_failover_ips',
1103
- PopsOvhDeleteSchedule: 'pops_ovh_delete_schedule',
1104
- PopsOvhInstances: 'pops_ovh_instances',
1105
- PopsInstanceFailover: 'pops_instance_failover',
1106
- PopsInstanceMonitoring: 'pops_instance_monitoring',
1107
- PopsInstanceMonitoringLog: 'pops_instance_monitoring_log',
1108
- PopsInstanceScheduledTasks: 'pops_instance_scheduled_tasks',
1109
- PopsInstance3cxDetails: 'pops_instance_3cx_details',
1110
- PopsInstanceUserCredentials: 'pops_instance_user_credentials',
1111
- IpBlacklist: 'ip_blacklist',
1112
- PopsItemDiscounts: 'pops_item_discounts',
1113
- PopsItems: 'pops_items',
1114
- PopsLinkedOrders: 'pops_linked_orders',
1115
- PopsOfflineInstances: 'pops_offline_instances',
1116
- PopsOrderedItems: 'pops_ordered_items',
1117
- PopsPrizes: 'pops_prizes',
1118
- PopsPrinters: 'pops_printers',
1119
- PopsPromoCodes: 'pops_promo_codes',
1120
- PopsPromoItems: 'pops_promo_items',
1121
- PopsProvisioning: 'pops_provisioning',
1122
- S3Buckets: 's3_buckets',
1123
- PopsShipmentAddress: 'pops_shipment_address',
1124
- PopsShipments: 'pops_shipments',
1125
- PopsShipmentItems: 'pops_shipment_items',
1126
- PopsSipTrunkChangeQueue: 'pops_sip_trunk_change_queue',
1127
- PopsSipTrunks: 'pops_sip_trunks',
1128
- PopsSms: 'pops_sms',
1129
- PopsSmsNumbers: 'pops_sms_numbers',
1130
- PopsSmsWhitelist: 'pops_sms_whitelist',
1131
- PopsDistCourier: 'pops_dist_courier',
1132
- PopsDistDeductions: 'pops_dist_deductions',
1133
- PopsDistOrder: 'pops_dist_order',
1134
- PopsDistItems: 'pops_dist_items',
1135
- PopsDistPrices: 'pops_dist_prices',
1136
- PopsDistManufacturer: 'pops_dist_manufacturer',
1137
- PopsStockTransactions: 'pops_stock_transactions',
1138
- PopsSuppliers: 'pops_suppliers',
1139
- PopsSupplierItems: 'pops_supplier_items',
1140
- Pops3cxBackup: 'pops_3cx_backup',
1141
- Pops3cxBilling: 'pops_3cx_billing',
1142
- PopsDeadLicences: 'pops_dead_licences',
1143
- Pops3cxExts: 'pops_3cx_exts',
1144
- PopsHostingPricing: 'pops_hosting_pricing',
1145
- Pops3cxKeys: 'pops_3cx_keys',
1146
- Pops3cxMacs: 'pops_3cx_macs',
1147
- Pops3cxNumbers: 'pops_3cx_numbers',
1148
- Pops3cxOfficeHours: 'pops_3cx_office_hours',
1149
- Pops3cxPhones: 'pops_3cx_phones',
1150
- Pops3cxSbc: 'pops_3cx_sbc',
1151
- Pops3cxSetup: 'pops_3cx_setup',
1152
- Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
1153
- Pops3cxUsers: 'pops_3cx_users',
1154
- PopsUsers: 'pops_users',
1155
- Webhook: 'webhook',
1156
- PopsXeroLog: 'pops_xero_log',
1157
- Oauth2Clients: 'oauth2_clients',
1158
- Oauth2Tokens: 'oauth2_tokens'
1159
- } as const;
1160
-
1161
- export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
1162
-
1163
1076
  /**
1164
1077
  * OAuth Auth Code Response
1165
1078
  * @export
@@ -1223,127 +1136,6 @@ export interface BasicProductDTO {
1223
1136
  */
1224
1137
  'title'?: string;
1225
1138
  }
1226
- /**
1227
- * Batch DTO
1228
- * @export
1229
- * @interface BatchDTO
1230
- */
1231
- export interface BatchDTO {
1232
- /**
1233
- * id
1234
- * @type {number}
1235
- * @memberof BatchDTO
1236
- */
1237
- 'id'?: number;
1238
- /**
1239
- * orderId
1240
- * @type {number}
1241
- * @memberof BatchDTO
1242
- */
1243
- 'orderId'?: number;
1244
- /**
1245
- * supplierId
1246
- * @type {number}
1247
- * @memberof BatchDTO
1248
- */
1249
- 'supplierId'?: number;
1250
- /**
1251
- * poNumber
1252
- * @type {string}
1253
- * @memberof BatchDTO
1254
- */
1255
- 'poNumber'?: string;
1256
- /**
1257
- * carriage
1258
- * @type {number}
1259
- * @memberof BatchDTO
1260
- */
1261
- 'carriage'?: number;
1262
- /**
1263
- * courier
1264
- * @type {string}
1265
- * @memberof BatchDTO
1266
- */
1267
- 'courier'?: string;
1268
- /**
1269
- * courierService
1270
- * @type {string}
1271
- * @memberof BatchDTO
1272
- */
1273
- 'courierService'?: string;
1274
- /**
1275
- * courierReference
1276
- * @type {string}
1277
- * @memberof BatchDTO
1278
- */
1279
- 'courierReference'?: string;
1280
- /**
1281
- * courierUnique
1282
- * @type {string}
1283
- * @memberof BatchDTO
1284
- */
1285
- 'courierUnique'?: string;
1286
- /**
1287
- * notes
1288
- * @type {string}
1289
- * @memberof BatchDTO
1290
- */
1291
- 'notes'?: string;
1292
- /**
1293
- * ordered
1294
- * @type {number}
1295
- * @memberof BatchDTO
1296
- */
1297
- 'ordered'?: number;
1298
- /**
1299
- * carriagePaid
1300
- * @type {number}
1301
- * @memberof BatchDTO
1302
- */
1303
- 'carriagePaid'?: number;
1304
- /**
1305
- * carriageRefunded
1306
- * @type {number}
1307
- * @memberof BatchDTO
1308
- */
1309
- 'carriageRefunded'?: number;
1310
- /**
1311
- * carriageRefundedDue
1312
- * @type {number}
1313
- * @memberof BatchDTO
1314
- */
1315
- 'carriageRefundedDue'?: number;
1316
- /**
1317
- * netdespatchLabel
1318
- * @type {string}
1319
- * @memberof BatchDTO
1320
- */
1321
- 'netdespatchLabel'?: string;
1322
- /**
1323
- * courierBoxes
1324
- * @type {number}
1325
- * @memberof BatchDTO
1326
- */
1327
- 'courierBoxes'?: number;
1328
- /**
1329
- * mac
1330
- * @type {string}
1331
- * @memberof BatchDTO
1332
- */
1333
- 'mac'?: string;
1334
- /**
1335
- * Shipments
1336
- * @type {Array<ShipmentDTO>}
1337
- * @memberof BatchDTO
1338
- */
1339
- 'shipments'?: Array<ShipmentDTO>;
1340
- /**
1341
- * Items
1342
- * @type {Array<OrderedItemModel>}
1343
- * @memberof BatchDTO
1344
- */
1345
- 'items'?: Array<OrderedItemModel>;
1346
- }
1347
1139
  /**
1348
1140
  * BatchesEntity
1349
1141
  * @export
@@ -1899,155 +1691,6 @@ export interface CreditAccountEntity {
1899
1691
  */
1900
1692
  'prizePromo'?: boolean;
1901
1693
  }
1902
- /**
1903
- * Credit Note
1904
- * @export
1905
- * @interface CreditNoteDTO
1906
- */
1907
- export interface CreditNoteDTO {
1908
- /**
1909
- * Items
1910
- * @type {Array<CreditNoteItemDTO>}
1911
- * @memberof CreditNoteDTO
1912
- */
1913
- 'items'?: Array<CreditNoteItemDTO>;
1914
- }
1915
- /**
1916
- * CreditNotesEntity
1917
- * @export
1918
- * @interface CreditNoteEntity
1919
- */
1920
- export interface CreditNoteEntity {
1921
- /**
1922
- * id
1923
- * @type {number}
1924
- * @memberof CreditNoteEntity
1925
- */
1926
- 'id'?: number;
1927
- /**
1928
- * orderId
1929
- * @type {number}
1930
- * @memberof CreditNoteEntity
1931
- */
1932
- 'orderId'?: number;
1933
- /**
1934
- * transactionId
1935
- * @type {string}
1936
- * @memberof CreditNoteEntity
1937
- */
1938
- 'transactionId'?: string;
1939
- /**
1940
- * amount
1941
- * @type {number}
1942
- * @memberof CreditNoteEntity
1943
- */
1944
- 'amount'?: number;
1945
- /**
1946
- * timestamp
1947
- * @type {string}
1948
- * @memberof CreditNoteEntity
1949
- */
1950
- 'timestamp'?: string;
1951
- }
1952
- /**
1953
- * Credit Note Item
1954
- * @export
1955
- * @interface CreditNoteItemDTO
1956
- */
1957
- export interface CreditNoteItemDTO {
1958
- /**
1959
- * Item ID
1960
- * @type {number}
1961
- * @memberof CreditNoteItemDTO
1962
- */
1963
- 'itemId'?: number;
1964
- /**
1965
- * Quantity
1966
- * @type {number}
1967
- * @memberof CreditNoteItemDTO
1968
- */
1969
- 'quantity'?: number | null;
1970
- /**
1971
- * Amount
1972
- * @type {number}
1973
- * @memberof CreditNoteItemDTO
1974
- */
1975
- 'amount'?: number | null;
1976
- }
1977
- /**
1978
- * CreditNotesItemsEntity
1979
- * @export
1980
- * @interface CreditNoteItemEntity
1981
- */
1982
- export interface CreditNoteItemEntity {
1983
- /**
1984
- * id
1985
- * @type {number}
1986
- * @memberof CreditNoteItemEntity
1987
- */
1988
- 'id'?: number;
1989
- /**
1990
- * creditNoteId
1991
- * @type {number}
1992
- * @memberof CreditNoteItemEntity
1993
- */
1994
- 'creditNoteId'?: number;
1995
- /**
1996
- * orderId
1997
- * @type {number}
1998
- * @memberof CreditNoteItemEntity
1999
- */
2000
- 'orderId'?: number;
2001
- /**
2002
- * itemId
2003
- * @type {number}
2004
- * @memberof CreditNoteItemEntity
2005
- */
2006
- 'itemId'?: number;
2007
- /**
2008
- * amount
2009
- * @type {number}
2010
- * @memberof CreditNoteItemEntity
2011
- */
2012
- 'amount'?: number;
2013
- }
2014
- /**
2015
- * Credit Note Model
2016
- * @export
2017
- * @interface CreditNoteModel
2018
- */
2019
- export interface CreditNoteModel {
2020
- /**
2021
- * id
2022
- * @type {number}
2023
- * @memberof CreditNoteModel
2024
- */
2025
- 'id'?: number;
2026
- /**
2027
- * orderId
2028
- * @type {number}
2029
- * @memberof CreditNoteModel
2030
- */
2031
- 'orderId'?: number;
2032
- /**
2033
- * transactionId
2034
- * @type {string}
2035
- * @memberof CreditNoteModel
2036
- */
2037
- 'transactionId'?: string;
2038
- /**
2039
- * amount
2040
- * @type {number}
2041
- * @memberof CreditNoteModel
2042
- */
2043
- 'amount'?: number;
2044
- /**
2045
- * timestamp
2046
- * @type {string}
2047
- * @memberof CreditNoteModel
2048
- */
2049
- 'timestamp'?: string;
2050
- }
2051
1694
  /**
2052
1695
  * CRM Contact
2053
1696
  * @export
@@ -3771,7 +3414,7 @@ export interface ItemDTO {
3771
3414
  * @type {Array<TcxSbcDTO>}
3772
3415
  * @memberof ItemDTO
3773
3416
  */
3774
- 'sbcs'?: Array<TcxSbcDTO>;
3417
+ 'sbcs'?: Array<TcxSbcDTO> | null;
3775
3418
  /**
3776
3419
  * Readonly
3777
3420
  * @type {boolean}
@@ -4159,196 +3802,63 @@ export interface OfflineInstancesEntity {
4159
3802
  'alerted'?: number;
4160
3803
  }
4161
3804
  /**
4162
- * Order Details
3805
+ * OrdersEntity
4163
3806
  * @export
4164
- * @interface OrderDetailsDTO
3807
+ * @interface OrderEntity
4165
3808
  */
4166
- export interface OrderDetailsDTO {
3809
+ export interface OrderEntity {
4167
3810
  /**
4168
- * ID
3811
+ * id
4169
3812
  * @type {number}
4170
- * @memberof OrderDetailsDTO
3813
+ * @memberof OrderEntity
4171
3814
  */
4172
3815
  'id'?: number;
4173
3816
  /**
4174
- * Reference
3817
+ * externalId
4175
3818
  * @type {string}
4176
- * @memberof OrderDetailsDTO
3819
+ * @memberof OrderEntity
4177
3820
  */
4178
- 'reference'?: string | null;
3821
+ 'reference'?: string;
4179
3822
  /**
4180
- * Invoice Number
3823
+ * sourceId
3824
+ * @type {number}
3825
+ * @memberof OrderEntity
3826
+ */
3827
+ 'sourceId'?: number;
3828
+ /**
3829
+ * sageInv
4181
3830
  * @type {string}
4182
- * @memberof OrderDetailsDTO
3831
+ * @memberof OrderEntity
4183
3832
  */
4184
3833
  'invoiceNumber'?: string;
4185
3834
  /**
4186
- * Invoice ID
3835
+ * invoiceId
4187
3836
  * @type {string}
4188
- * @memberof OrderDetailsDTO
3837
+ * @memberof OrderEntity
4189
3838
  */
4190
3839
  'invoiceId'?: string | null;
4191
3840
  /**
4192
- * Date Time
3841
+ * creditAccountId
3842
+ * @type {number}
3843
+ * @memberof OrderEntity
3844
+ */
3845
+ 'customerId'?: number;
3846
+ /**
3847
+ * orderDate
4193
3848
  * @type {string}
4194
- * @memberof OrderDetailsDTO
3849
+ * @memberof OrderEntity
4195
3850
  */
4196
3851
  'orderDate'?: string;
4197
3852
  /**
4198
- * Paid
4199
- * @type {boolean}
4200
- * @memberof OrderDetailsDTO
3853
+ * orderPostedDate
3854
+ * @type {string}
3855
+ * @memberof OrderEntity
4201
3856
  */
4202
- 'paid'?: boolean;
3857
+ 'orderPostedDate'?: string;
4203
3858
  /**
4204
- * Complete
4205
- * @type {boolean}
4206
- * @memberof OrderDetailsDTO
4207
- */
4208
- 'complete'?: boolean;
4209
- /**
4210
- * Quote
4211
- * @type {boolean}
4212
- * @memberof OrderDetailsDTO
4213
- */
4214
- 'quote'?: boolean;
4215
- /**
4216
- *
4217
- * @type {AccountSummaryDTO}
4218
- * @memberof OrderDetailsDTO
4219
- */
4220
- 'customer'?: AccountSummaryDTO;
4221
- /**
4222
- *
4223
- * @type {AddressModel}
4224
- * @memberof OrderDetailsDTO
4225
- */
4226
- 'shippingAddress'?: AddressModel;
4227
- /**
4228
- * Items
4229
- * @type {Array<ItemDTO>}
4230
- * @memberof OrderDetailsDTO
4231
- */
4232
- 'items'?: Array<ItemDTO>;
4233
- /**
4234
- * Carriage Charge
4235
- * @type {number}
4236
- * @memberof OrderDetailsDTO
4237
- */
4238
- 'carriageCharge'?: number;
4239
- /**
4240
- * Fulfillable
4241
- * @type {boolean}
4242
- * @memberof OrderDetailsDTO
4243
- */
4244
- 'fulfillable'?: boolean | null;
4245
- /**
4246
- * Provisioning URL
4247
- * @type {string}
4248
- * @memberof OrderDetailsDTO
4249
- */
4250
- 'provisioningUrl'?: string | null;
4251
- /**
4252
- *
4253
- * @type {ShippingServiceDTO}
4254
- * @memberof OrderDetailsDTO
4255
- */
4256
- 'shippingService'?: ShippingServiceDTO;
4257
- /**
4258
- * Readonly
4259
- * @type {boolean}
4260
- * @memberof OrderDetailsDTO
4261
- */
4262
- 'readonly'?: boolean;
4263
- /**
4264
- * Detailed Items
4265
- * @type {Array<OrderItemDTO>}
4266
- * @memberof OrderDetailsDTO
4267
- */
4268
- 'detailedItems'?: Array<OrderItemDTO>;
4269
- /**
4270
- * Batches
4271
- * @type {Array<BatchDTO>}
4272
- * @memberof OrderDetailsDTO
4273
- */
4274
- 'batches'?: Array<BatchDTO>;
4275
- /**
4276
- * Audit Log
4277
- * @type {Array<AuditLogEntity>}
4278
- * @memberof OrderDetailsDTO
4279
- */
4280
- 'logEntries'?: Array<AuditLogEntity>;
4281
- /**
4282
- * Card Payment Link
4283
- * @type {string}
4284
- * @memberof OrderDetailsDTO
4285
- */
4286
- 'paymentLink'?: string | null;
4287
- /**
4288
- * Credits
4289
- * @type {Array<CreditNoteModel>}
4290
- * @memberof OrderDetailsDTO
4291
- */
4292
- 'credits'?: Array<CreditNoteModel>;
4293
- }
4294
- /**
4295
- * OrdersEntity
4296
- * @export
4297
- * @interface OrderEntity
4298
- */
4299
- export interface OrderEntity {
4300
- /**
4301
- * id
4302
- * @type {number}
4303
- * @memberof OrderEntity
4304
- */
4305
- 'id'?: number;
4306
- /**
4307
- * externalId
4308
- * @type {string}
4309
- * @memberof OrderEntity
4310
- */
4311
- 'reference'?: string;
4312
- /**
4313
- * sourceId
4314
- * @type {number}
4315
- * @memberof OrderEntity
4316
- */
4317
- 'sourceId'?: number;
4318
- /**
4319
- * sageInv
4320
- * @type {string}
4321
- * @memberof OrderEntity
4322
- */
4323
- 'invoiceNumber'?: string;
4324
- /**
4325
- * invoiceId
4326
- * @type {string}
4327
- * @memberof OrderEntity
4328
- */
4329
- 'invoiceId'?: string | null;
4330
- /**
4331
- * creditAccountId
4332
- * @type {number}
4333
- * @memberof OrderEntity
4334
- */
4335
- 'customerId'?: number;
4336
- /**
4337
- * orderDate
4338
- * @type {string}
4339
- * @memberof OrderEntity
4340
- */
4341
- 'orderDate'?: string;
4342
- /**
4343
- * orderPostedDate
4344
- * @type {string}
4345
- * @memberof OrderEntity
4346
- */
4347
- 'orderPostedDate'?: string;
4348
- /**
4349
- * buyerEmail
4350
- * @type {string}
4351
- * @memberof OrderEntity
3859
+ * buyerEmail
3860
+ * @type {string}
3861
+ * @memberof OrderEntity
4352
3862
  */
4353
3863
  'buyerEmail'?: string;
4354
3864
  /**
@@ -4646,109 +4156,6 @@ export interface OrderEntity {
4646
4156
  */
4647
4157
  'fulfillable'?: boolean | null;
4648
4158
  }
4649
- /**
4650
- * Order Item Details
4651
- * @export
4652
- * @interface OrderItemDTO
4653
- */
4654
- export interface OrderItemDTO {
4655
- /**
4656
- * SKU
4657
- * @type {string}
4658
- * @memberof OrderItemDTO
4659
- */
4660
- 'sku'?: string;
4661
- /**
4662
- * Quantity
4663
- * @type {number}
4664
- * @memberof OrderItemDTO
4665
- */
4666
- 'quantity'?: number;
4667
- /**
4668
- * ID
4669
- * @type {number}
4670
- * @memberof OrderItemDTO
4671
- */
4672
- 'id'?: number | null;
4673
- /**
4674
- * Order ID
4675
- * @type {number}
4676
- * @memberof OrderItemDTO
4677
- */
4678
- 'orderId'?: number | null;
4679
- /**
4680
- * Title
4681
- * @type {string}
4682
- * @memberof OrderItemDTO
4683
- */
4684
- 'title'?: string;
4685
- /**
4686
- * Price
4687
- * @type {number}
4688
- * @memberof OrderItemDTO
4689
- */
4690
- 'price'?: number;
4691
- /**
4692
- * 3CX Licence Key
4693
- * @type {string}
4694
- * @memberof OrderItemDTO
4695
- */
4696
- 'licenceKey'?: string | null;
4697
- /**
4698
- * Date Time
4699
- * @type {string}
4700
- * @memberof OrderItemDTO
4701
- */
4702
- 'licenceExpiry'?: string;
4703
- /**
4704
- * Date Time
4705
- * @type {string}
4706
- * @memberof OrderItemDTO
4707
- */
4708
- 'processDate'?: string;
4709
- /**
4710
- * 3CX Hosting
4711
- * @type {boolean}
4712
- * @memberof OrderItemDTO
4713
- */
4714
- 'hosting'?: boolean | null;
4715
- /**
4716
- * Promo Item
4717
- * @type {boolean}
4718
- * @memberof OrderItemDTO
4719
- */
4720
- 'promoItem'?: boolean;
4721
- /**
4722
- * Refunded
4723
- * @type {number}
4724
- * @memberof OrderItemDTO
4725
- */
4726
- 'refunded'?: number | null;
4727
- /**
4728
- * SBCs
4729
- * @type {Array<TcxSbcDTO>}
4730
- * @memberof OrderItemDTO
4731
- */
4732
- 'sbcs'?: Array<TcxSbcDTO>;
4733
- /**
4734
- * Readonly
4735
- * @type {boolean}
4736
- * @memberof OrderItemDTO
4737
- */
4738
- 'readonly'?: boolean;
4739
- /**
4740
- * 3CX Sales Code
4741
- * @type {string}
4742
- * @memberof OrderItemDTO
4743
- */
4744
- 'tcxSalesCode'?: string | null;
4745
- /**
4746
- * Suppliers
4747
- * @type {Array<SupplierModel>}
4748
- * @memberof OrderItemDTO
4749
- */
4750
- 'suppliers'?: Array<SupplierModel>;
4751
- }
4752
4159
  /**
4753
4160
  * EdTechPro Order Request
4754
4161
  * @export
@@ -5166,152 +4573,61 @@ export interface OrderedItemEntity {
5166
4573
  'returnedStock'?: number;
5167
4574
  }
5168
4575
  /**
5169
- * Ordered Item Model
4576
+ *
5170
4577
  * @export
5171
- * @interface OrderedItemModel
4578
+ * @interface PatchSetTcxWizardCnameRequest
5172
4579
  */
5173
- export interface OrderedItemModel {
4580
+ export interface PatchSetTcxWizardCnameRequest {
5174
4581
  /**
5175
- * id
5176
- * @type {number}
5177
- * @memberof OrderedItemModel
4582
+ * CNAME
4583
+ * @type {string}
4584
+ * @memberof PatchSetTcxWizardCnameRequest
5178
4585
  */
5179
- 'id'?: number;
4586
+ 'cname'?: string;
4587
+ }
4588
+ /**
4589
+ *
4590
+ * @export
4591
+ * @interface PatchUpdateAccountContactPasswordRequest
4592
+ */
4593
+ export interface PatchUpdateAccountContactPasswordRequest {
5180
4594
  /**
5181
- * itemId
5182
- * @type {number}
5183
- * @memberof OrderedItemModel
4595
+ * Password
4596
+ * @type {string}
4597
+ * @memberof PatchUpdateAccountContactPasswordRequest
5184
4598
  */
5185
- 'itemId'?: number;
4599
+ 'password'?: string;
4600
+ }
4601
+ /**
4602
+ * Customer Account
4603
+ * @export
4604
+ * @interface PortalAccountModel
4605
+ */
4606
+ export interface PortalAccountModel {
5186
4607
  /**
5187
- * orderedQuantity
4608
+ * ID
5188
4609
  * @type {number}
5189
- * @memberof OrderedItemModel
4610
+ * @memberof PortalAccountModel
5190
4611
  */
5191
- 'orderedQuantity'?: number;
4612
+ 'id'?: number;
5192
4613
  /**
5193
- * itemStatus
5194
- * @type {number}
5195
- * @memberof OrderedItemModel
4614
+ * Contact Name
4615
+ * @type {string}
4616
+ * @memberof PortalAccountModel
5196
4617
  */
5197
- 'itemStatus'?: number;
4618
+ 'name'?: string;
5198
4619
  /**
5199
- * supplierId
5200
- * @type {number}
5201
- * @memberof OrderedItemModel
4620
+ * Email
4621
+ * @type {string}
4622
+ * @memberof PortalAccountModel
5202
4623
  */
5203
- 'supplierId'?: number;
4624
+ 'email'?: string;
5204
4625
  /**
5205
- * supplierItemId
5206
- * @type {number}
5207
- * @memberof OrderedItemModel
4626
+ * Phone Number
4627
+ * @type {string}
4628
+ * @memberof PortalAccountModel
5208
4629
  */
5209
- 'supplierItemId'?: number;
5210
- /**
5211
- * supplierPrice
5212
- * @type {number}
5213
- * @memberof OrderedItemModel
5214
- */
5215
- 'supplierPrice'?: number;
5216
- /**
5217
- * statusDate
5218
- * @type {string}
5219
- * @memberof OrderedItemModel
5220
- */
5221
- 'statusDate'?: string;
5222
- /**
5223
- * statusAuthor
5224
- * @type {number}
5225
- * @memberof OrderedItemModel
5226
- */
5227
- 'statusAuthor'?: number;
5228
- /**
5229
- * supplierPaid
5230
- * @type {number}
5231
- * @memberof OrderedItemModel
5232
- */
5233
- 'supplierPaid'?: number;
5234
- /**
5235
- * supplierCreditDue
5236
- * @type {number}
5237
- * @memberof OrderedItemModel
5238
- */
5239
- 'supplierCreditDue'?: number;
5240
- /**
5241
- * supplierCreditReceived
5242
- * @type {number}
5243
- * @memberof OrderedItemModel
5244
- */
5245
- 'supplierCreditReceived'?: number;
5246
- /**
5247
- * supplierSku
5248
- * @type {string}
5249
- * @memberof OrderedItemModel
5250
- */
5251
- 'supplierSku'?: string;
5252
- /**
5253
- * returnedStock
5254
- * @type {number}
5255
- * @memberof OrderedItemModel
5256
- */
5257
- 'returnedStock'?: number;
5258
- }
5259
- /**
5260
- *
5261
- * @export
5262
- * @interface PatchSetTcxWizardCnameRequest
5263
- */
5264
- export interface PatchSetTcxWizardCnameRequest {
5265
- /**
5266
- * CNAME
5267
- * @type {string}
5268
- * @memberof PatchSetTcxWizardCnameRequest
5269
- */
5270
- 'cname'?: string;
5271
- }
5272
- /**
5273
- *
5274
- * @export
5275
- * @interface PatchUpdateAccountContactPasswordRequest
5276
- */
5277
- export interface PatchUpdateAccountContactPasswordRequest {
5278
- /**
5279
- * Password
5280
- * @type {string}
5281
- * @memberof PatchUpdateAccountContactPasswordRequest
5282
- */
5283
- 'password'?: string;
5284
- }
5285
- /**
5286
- * Customer Account
5287
- * @export
5288
- * @interface PortalAccountModel
5289
- */
5290
- export interface PortalAccountModel {
5291
- /**
5292
- * ID
5293
- * @type {number}
5294
- * @memberof PortalAccountModel
5295
- */
5296
- 'id'?: number;
5297
- /**
5298
- * Contact Name
5299
- * @type {string}
5300
- * @memberof PortalAccountModel
5301
- */
5302
- 'name'?: string;
5303
- /**
5304
- * Email
5305
- * @type {string}
5306
- * @memberof PortalAccountModel
5307
- */
5308
- 'email'?: string;
5309
- /**
5310
- * Phone Number
5311
- * @type {string}
5312
- * @memberof PortalAccountModel
5313
- */
5314
- 'phone'?: string;
4630
+ 'phone'?: string;
5315
4631
  /**
5316
4632
  * Company Name
5317
4633
  * @type {string}
@@ -5482,19 +4798,6 @@ export interface PortalLoginModel {
5482
4798
  */
5483
4799
  'redirect_uri'?: string;
5484
4800
  }
5485
- /**
5486
- *
5487
- * @export
5488
- * @interface PostAddOrderNoteRequest
5489
- */
5490
- export interface PostAddOrderNoteRequest {
5491
- /**
5492
- * Order Note
5493
- * @type {string}
5494
- * @memberof PostAddOrderNoteRequest
5495
- */
5496
- 'note'?: string;
5497
- }
5498
4801
  /**
5499
4802
  *
5500
4803
  * @export
@@ -5577,19 +4880,6 @@ export interface PostGetProductRequest {
5577
4880
  */
5578
4881
  'hosting'?: boolean | null;
5579
4882
  }
5580
- /**
5581
- *
5582
- * @export
5583
- * @interface PostSplitOrderRequest
5584
- */
5585
- export interface PostSplitOrderRequest {
5586
- /**
5587
- * Item Ids
5588
- * @type {Array<number>}
5589
- * @memberof PostSplitOrderRequest
5590
- */
5591
- 'itemIds'?: Array<number>;
5592
- }
5593
4883
  /**
5594
4884
  * Price & Stock List
5595
4885
  * @export
@@ -5627,43 +4917,6 @@ export interface PriceListItemModel {
5627
4917
  */
5628
4918
  'stock'?: number | null;
5629
4919
  }
5630
- /**
5631
- * PrintersEntity
5632
- * @export
5633
- * @interface PrinterEntity
5634
- */
5635
- export interface PrinterEntity {
5636
- /**
5637
- * id
5638
- * @type {number}
5639
- * @memberof PrinterEntity
5640
- */
5641
- 'id'?: number;
5642
- /**
5643
- * brand
5644
- * @type {string}
5645
- * @memberof PrinterEntity
5646
- */
5647
- 'brand'?: string;
5648
- /**
5649
- * model
5650
- * @type {string}
5651
- * @memberof PrinterEntity
5652
- */
5653
- 'model'?: string;
5654
- /**
5655
- * sn
5656
- * @type {string}
5657
- * @memberof PrinterEntity
5658
- */
5659
- 'sn'?: string;
5660
- /**
5661
- * location
5662
- * @type {string}
5663
- * @memberof PrinterEntity
5664
- */
5665
- 'location'?: string;
5666
- }
5667
4920
  /**
5668
4921
  * PrizesEntity
5669
4922
  * @export
@@ -6051,38 +5304,6 @@ export interface ProvisioningRequestEntity {
6051
5304
  */
6052
5305
  'auth'?: string;
6053
5306
  }
6054
- /**
6055
- *
6056
- * @export
6057
- * @interface PutAllocateItemsRequest
6058
- */
6059
- export interface PutAllocateItemsRequest {
6060
- /**
6061
- * Items
6062
- * @type {Array<PutAllocateItemsRequestItemsInner>}
6063
- * @memberof PutAllocateItemsRequest
6064
- */
6065
- 'items'?: Array<PutAllocateItemsRequestItemsInner>;
6066
- }
6067
- /**
6068
- *
6069
- * @export
6070
- * @interface PutAllocateItemsRequestItemsInner
6071
- */
6072
- export interface PutAllocateItemsRequestItemsInner {
6073
- /**
6074
- * Item ID
6075
- * @type {number}
6076
- * @memberof PutAllocateItemsRequestItemsInner
6077
- */
6078
- 'itemId'?: number;
6079
- /**
6080
- * Quantity To Allocate
6081
- * @type {number}
6082
- * @memberof PutAllocateItemsRequestItemsInner
6083
- */
6084
- 'quantity'?: number;
6085
- }
6086
5307
  /**
6087
5308
  * Azure Recordings Backup
6088
5309
  * @export
@@ -6411,58 +5632,6 @@ export interface ShipmentAddressEntity {
6411
5632
  */
6412
5633
  'shipPhoneNumber'?: string;
6413
5634
  }
6414
- /**
6415
- * Shipment
6416
- * @export
6417
- * @interface ShipmentDTO
6418
- */
6419
- export interface ShipmentDTO {
6420
- /**
6421
- * Courier
6422
- * @type {string}
6423
- * @memberof ShipmentDTO
6424
- */
6425
- 'courier'?: ShipmentDTOCourierEnum | null;
6426
- /**
6427
- * Courier Reference
6428
- * @type {string}
6429
- * @memberof ShipmentDTO
6430
- */
6431
- 'reference'?: string | null;
6432
- /**
6433
- * Date Time
6434
- * @type {string}
6435
- * @memberof ShipmentDTO
6436
- */
6437
- 'requestedDate'?: string;
6438
- /**
6439
- * Scanned Items
6440
- * @type {Array<ScannedItemModel>}
6441
- * @memberof ShipmentDTO
6442
- */
6443
- 'scannedItems'?: Array<ScannedItemModel>;
6444
- /**
6445
- * Items
6446
- * @type {Array<ShipmentItemModel>}
6447
- * @memberof ShipmentDTO
6448
- */
6449
- 'items'?: Array<ShipmentItemModel>;
6450
- /**
6451
- *
6452
- * @type {AddressModel}
6453
- * @memberof ShipmentDTO
6454
- */
6455
- 'address'?: AddressModel;
6456
- }
6457
-
6458
- export const ShipmentDTOCourierEnum = {
6459
- Dpd: 'DPD',
6460
- ChorltonPallet: 'Chorlton Pallet',
6461
- Pops: 'POPS'
6462
- } as const;
6463
-
6464
- export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
6465
-
6466
5635
  /**
6467
5636
  * ShipmentsEntity
6468
5637
  * @export
@@ -6542,25 +5711,6 @@ export interface ShipmentEntity {
6542
5711
  */
6543
5712
  'provId'?: number;
6544
5713
  }
6545
- /**
6546
- * Shipment Item
6547
- * @export
6548
- * @interface ShipmentItemDTO
6549
- */
6550
- export interface ShipmentItemDTO {
6551
- /**
6552
- * Item ID
6553
- * @type {number}
6554
- * @memberof ShipmentItemDTO
6555
- */
6556
- 'itemId'?: number;
6557
- /**
6558
- * Quantity
6559
- * @type {number}
6560
- * @memberof ShipmentItemDTO
6561
- */
6562
- 'quantity'?: number;
6563
- }
6564
5714
  /**
6565
5715
  * ShipmentItemsEntity
6566
5716
  * @export
@@ -6599,263 +5749,61 @@ export interface ShipmentItemEntity {
6599
5749
  'itemId'?: string;
6600
5750
  }
6601
5751
  /**
6602
- * Shipment Item
5752
+ *
6603
5753
  * @export
6604
- * @interface ShipmentItemModel
5754
+ * @interface ShippingConsignmentModel
6605
5755
  */
6606
- export interface ShipmentItemModel {
6607
- /**
6608
- * id
6609
- * @type {number}
6610
- * @memberof ShipmentItemModel
6611
- */
6612
- 'id'?: number;
5756
+ export interface ShippingConsignmentModel {
6613
5757
  /**
6614
- * shipmentId
6615
- * @type {number}
6616
- * @memberof ShipmentItemModel
5758
+ *
5759
+ * @type {ShippingServiceModel}
5760
+ * @memberof ShippingConsignmentModel
6617
5761
  */
6618
- 'shipmentId'?: number;
5762
+ 'service'?: ShippingServiceModel;
6619
5763
  /**
6620
- * batchId
6621
- * @type {number}
6622
- * @memberof ShipmentItemModel
5764
+ * ID/Number
5765
+ * @type {string}
5766
+ * @memberof ShippingConsignmentModel
6623
5767
  */
6624
- 'batchId'?: number;
5768
+ 'id'?: string;
6625
5769
  /**
6626
- * quantity
6627
- * @type {number}
6628
- * @memberof ShipmentItemModel
5770
+ * Tracking Number
5771
+ * @type {string}
5772
+ * @memberof ShippingConsignmentModel
6629
5773
  */
6630
- 'quantity'?: number;
5774
+ 'trackingNumber'?: string;
6631
5775
  /**
6632
- * item
6633
- * @type {string}
6634
- * @memberof ShipmentItemModel
5776
+ * Parcels
5777
+ * @type {Array<string>}
5778
+ * @memberof ShippingConsignmentModel
6635
5779
  */
6636
- 'itemId'?: string;
5780
+ 'parcelIds'?: Array<string>;
6637
5781
  }
6638
5782
  /**
6639
- * Shipment
5783
+ * Shipping Information
6640
5784
  * @export
6641
- * @interface ShipmentModel
5785
+ * @interface ShippingInformationDTO
6642
5786
  */
6643
- export interface ShipmentModel {
5787
+ export interface ShippingInformationDTO {
6644
5788
  /**
6645
- * id
6646
- * @type {number}
6647
- * @memberof ShipmentModel
5789
+ * Items
5790
+ * @type {Array<BasicItemDTO>}
5791
+ * @memberof ShippingInformationDTO
6648
5792
  */
6649
- 'id'?: number;
5793
+ 'items'?: Array<BasicItemDTO>;
6650
5794
  /**
6651
- * batchId
6652
- * @type {number}
6653
- * @memberof ShipmentModel
5795
+ * Destination Post Code
5796
+ * @type {string}
5797
+ * @memberof ShippingInformationDTO
6654
5798
  */
6655
- 'batchId'?: number;
5799
+ 'postalCode'?: string;
6656
5800
  /**
6657
- * courier
5801
+ * Destination ISO
6658
5802
  * @type {string}
6659
- * @memberof ShipmentModel
6660
- */
6661
- 'courier'?: string;
6662
- /**
6663
- * courierService
6664
- * @type {string}
6665
- * @memberof ShipmentModel
6666
- */
6667
- 'courierService'?: string;
6668
- /**
6669
- * courierServiceDesc
6670
- * @type {string}
6671
- * @memberof ShipmentModel
6672
- */
6673
- 'courierServiceDesc'?: string;
6674
- /**
6675
- * courierReference
6676
- * @type {string}
6677
- * @memberof ShipmentModel
6678
- */
6679
- 'courierReference'?: string;
6680
- /**
6681
- * courierTracking
6682
- * @type {string}
6683
- * @memberof ShipmentModel
6684
- */
6685
- 'courierTracking'?: string;
6686
- /**
6687
- * courierBoxes
6688
- * @type {number}
6689
- * @memberof ShipmentModel
6690
- */
6691
- 'courierBoxes'?: number;
6692
- /**
6693
- * mac
6694
- * @type {string}
6695
- * @memberof ShipmentModel
6696
- */
6697
- 'scannedData'?: string;
6698
- /**
6699
- * date
6700
- * @type {string}
6701
- * @memberof ShipmentModel
6702
- */
6703
- 'dateShipped'?: string;
6704
- /**
6705
- * requestDate
6706
- * @type {string}
6707
- * @memberof ShipmentModel
6708
- */
6709
- 'requestDate'?: string;
6710
- /**
6711
- * provId
6712
- * @type {number}
6713
- * @memberof ShipmentModel
6714
- */
6715
- 'provId'?: number;
6716
- }
6717
- /**
6718
- * Shipment Request
6719
- * @export
6720
- * @interface ShipmentRequestDTO
6721
- */
6722
- export interface ShipmentRequestDTO {
6723
- /**
6724
- * Courier
6725
- * @type {string}
6726
- * @memberof ShipmentRequestDTO
6727
- */
6728
- 'courier'?: ShipmentRequestDTOCourierEnum;
6729
- /**
6730
- *
6731
- * @type {AddressModel}
6732
- * @memberof ShipmentRequestDTO
6733
- */
6734
- 'address'?: AddressModel | null;
6735
- /**
6736
- * Scanned Lines
6737
- * @type {Array<string>}
6738
- * @memberof ShipmentRequestDTO
6739
- */
6740
- 'scannedLines'?: Array<string>;
6741
- /**
6742
- * Service
6743
- * @type {string}
6744
- * @memberof ShipmentRequestDTO
6745
- */
6746
- 'service'?: string;
6747
- /**
6748
- * Date Time
6749
- * @type {string}
6750
- * @memberof ShipmentRequestDTO
6751
- */
6752
- 'shipDate'?: string;
6753
- /**
6754
- * Items
6755
- * @type {Array<ShipmentItemDTO>}
6756
- * @memberof ShipmentRequestDTO
6757
- */
6758
- 'items'?: Array<ShipmentItemDTO>;
6759
- }
6760
-
6761
- export const ShipmentRequestDTOCourierEnum = {
6762
- Dpd: 'DPD',
6763
- ChorltonPallet: 'Chorlton Pallet',
6764
- Pops: 'POPS'
6765
- } as const;
6766
-
6767
- export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
6768
-
6769
- /**
6770
- *
6771
- * @export
6772
- * @interface ShippingConsignmentModel
6773
- */
6774
- export interface ShippingConsignmentModel {
6775
- /**
6776
- *
6777
- * @type {ShippingServiceModel}
6778
- * @memberof ShippingConsignmentModel
6779
- */
6780
- 'service'?: ShippingServiceModel;
6781
- /**
6782
- * ID/Number
6783
- * @type {string}
6784
- * @memberof ShippingConsignmentModel
6785
- */
6786
- 'id'?: string;
6787
- /**
6788
- * Tracking Number
6789
- * @type {string}
6790
- * @memberof ShippingConsignmentModel
6791
- */
6792
- 'trackingNumber'?: string;
6793
- /**
6794
- * Parcels
6795
- * @type {Array<string>}
6796
- * @memberof ShippingConsignmentModel
6797
- */
6798
- 'parcelIds'?: Array<string>;
6799
- }
6800
- /**
6801
- * Shipping Information
6802
- * @export
6803
- * @interface ShippingInformationDTO
6804
- */
6805
- export interface ShippingInformationDTO {
6806
- /**
6807
- * Items
6808
- * @type {Array<BasicItemDTO>}
6809
- * @memberof ShippingInformationDTO
6810
- */
6811
- 'items'?: Array<BasicItemDTO>;
6812
- /**
6813
- * Destination Post Code
6814
- * @type {string}
6815
- * @memberof ShippingInformationDTO
6816
- */
6817
- 'postalCode'?: string;
6818
- /**
6819
- * Destination ISO
6820
- * @type {string}
6821
- * @memberof ShippingInformationDTO
5803
+ * @memberof ShippingInformationDTO
6822
5804
  */
6823
5805
  'iso'?: string;
6824
5806
  }
6825
- /**
6826
- *
6827
- * @export
6828
- * @interface ShippingRequestDTO
6829
- */
6830
- export interface ShippingRequestDTO {
6831
- /**
6832
- * Courier
6833
- * @type {string}
6834
- * @memberof ShippingRequestDTO
6835
- */
6836
- 'courier'?: ShippingRequestDTOCourierEnum;
6837
- /**
6838
- * Courier Service
6839
- * @type {string}
6840
- * @memberof ShippingRequestDTO
6841
- */
6842
- 'service'?: string;
6843
- /**
6844
- * Boxes
6845
- * @type {number}
6846
- * @memberof ShippingRequestDTO
6847
- */
6848
- 'boxes'?: number;
6849
- }
6850
-
6851
- export const ShippingRequestDTOCourierEnum = {
6852
- Dpd: 'DPD',
6853
- ChorltonPallet: 'Chorlton Pallet',
6854
- Pops: 'POPS'
6855
- } as const;
6856
-
6857
- export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
6858
-
6859
5807
  /**
6860
5808
  * Shipping Service
6861
5809
  * @export
@@ -8486,67 +7434,6 @@ export interface SupplierItemEntity {
8486
7434
  */
8487
7435
  'supplierSku'?: string;
8488
7436
  }
8489
- /**
8490
- * Supplier
8491
- * @export
8492
- * @interface SupplierModel
8493
- */
8494
- export interface SupplierModel {
8495
- /**
8496
- * id
8497
- * @type {number}
8498
- * @memberof SupplierModel
8499
- */
8500
- 'id'?: number;
8501
- /**
8502
- * name
8503
- * @type {string}
8504
- * @memberof SupplierModel
8505
- */
8506
- 'name'?: string;
8507
- /**
8508
- * nameShort
8509
- * @type {string}
8510
- * @memberof SupplierModel
8511
- */
8512
- 'shortName'?: string;
8513
- /**
8514
- * email
8515
- * @type {string}
8516
- * @memberof SupplierModel
8517
- */
8518
- 'email'?: string;
8519
- /**
8520
- * phone
8521
- * @type {string}
8522
- * @memberof SupplierModel
8523
- */
8524
- 'phone'?: string;
8525
- /**
8526
- * defaultCourier
8527
- * @type {string}
8528
- * @memberof SupplierModel
8529
- */
8530
- 'defaultCourier'?: string;
8531
- /**
8532
- * defaultCarriage
8533
- * @type {number}
8534
- * @memberof SupplierModel
8535
- */
8536
- 'defaultCarriage'?: number;
8537
- /**
8538
- * account
8539
- * @type {string}
8540
- * @memberof SupplierModel
8541
- */
8542
- 'accountNumber'?: string;
8543
- /**
8544
- * internalAccount
8545
- * @type {string}
8546
- * @memberof SupplierModel
8547
- */
8548
- 'xeroAccountNumber'?: string;
8549
- }
8550
7437
  /**
8551
7438
  * 3CX Wizard Restore From Backup
8552
7439
  * @export
@@ -18152,48 +17039,6 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
18152
17039
  */
18153
17040
  export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
18154
17041
  return {
18155
- /**
18156
- * Delete Shipment (Admin)
18157
- * @summary Delete Shipment (Admin)
18158
- * @param {number} id Order ID
18159
- * @param {number} batchId Batch ID
18160
- * @param {number} shipmentId Shipment ID
18161
- * @param {*} [options] Override http request option.
18162
- * @throws {RequiredError}
18163
- */
18164
- deleteCreateShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18165
- // verify required parameter 'id' is not null or undefined
18166
- assertParamExists('deleteCreateShipment', 'id', id)
18167
- // verify required parameter 'batchId' is not null or undefined
18168
- assertParamExists('deleteCreateShipment', 'batchId', batchId)
18169
- // verify required parameter 'shipmentId' is not null or undefined
18170
- assertParamExists('deleteCreateShipment', 'shipmentId', shipmentId)
18171
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18172
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18173
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18174
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18175
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18176
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18177
- let baseOptions;
18178
- if (configuration) {
18179
- baseOptions = configuration.baseOptions;
18180
- }
18181
-
18182
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
18183
- const localVarHeaderParameter = {} as any;
18184
- const localVarQueryParameter = {} as any;
18185
-
18186
-
18187
-
18188
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18189
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18190
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18191
-
18192
- return {
18193
- url: toPathString(localVarUrlObj),
18194
- options: localVarRequestOptions,
18195
- };
18196
- },
18197
17042
  /**
18198
17043
  * Delete Orders (Beta)
18199
17044
  * @summary Delete Orders (Beta)
@@ -18263,16 +17108,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18263
17108
  };
18264
17109
  },
18265
17110
  /**
18266
- * Get Order Details (Admin)
18267
- * @summary Get Order Details (Admin)
17111
+ * Get Editable Order (Beta)
17112
+ * @summary Get Editable Order (Beta)
18268
17113
  * @param {number} id Order ID
18269
17114
  * @param {*} [options] Override http request option.
18270
17115
  * @throws {RequiredError}
18271
17116
  */
18272
- getGetAdminOrderDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17117
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18273
17118
  // verify required parameter 'id' is not null or undefined
18274
- assertParamExists('getGetAdminOrderDetails', 'id', id)
18275
- const localVarPath = `/admin/orders/{id}/details`
17119
+ assertParamExists('getGetEditableOrder', 'id', id)
17120
+ const localVarPath = `/orders/{id}/views/editable`
18276
17121
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18277
17122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18278
17123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18297,88 +17142,20 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18297
17142
  };
18298
17143
  },
18299
17144
  /**
18300
- * Get Editable Order (Beta)
18301
- * @summary Get Editable Order (Beta)
18302
- * @param {number} id Order ID
17145
+ * Get Orders (Beta)
17146
+ * @summary Get Orders (Beta)
17147
+ * @param {number} [pageSize] Number Of Results
17148
+ * @param {number} [page] Page Number
17149
+ * @param {string} [search] Search
17150
+ * @param {boolean | null} [fulfillable] Fulfillable
17151
+ * @param {GetGetOrdersStatusEnum} [status] Status
17152
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
17153
+ * @param {number | null} [customerId] Customer ID
18303
17154
  * @param {*} [options] Override http request option.
18304
17155
  * @throws {RequiredError}
18305
17156
  */
18306
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18307
- // verify required parameter 'id' is not null or undefined
18308
- assertParamExists('getGetEditableOrder', 'id', id)
18309
- const localVarPath = `/orders/{id}/views/editable`
18310
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18311
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18312
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18313
- let baseOptions;
18314
- if (configuration) {
18315
- baseOptions = configuration.baseOptions;
18316
- }
18317
-
18318
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18319
- const localVarHeaderParameter = {} as any;
18320
- const localVarQueryParameter = {} as any;
18321
-
18322
-
18323
-
18324
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18325
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18326
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18327
-
18328
- return {
18329
- url: toPathString(localVarUrlObj),
18330
- options: localVarRequestOptions,
18331
- };
18332
- },
18333
- /**
18334
- * Download Order PDF
18335
- * @summary Download Order PDF
18336
- * @param {number} id Order ID
18337
- * @param {*} [options] Override http request option.
18338
- * @throws {RequiredError}
18339
- */
18340
- getGetOrderPdf: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18341
- // verify required parameter 'id' is not null or undefined
18342
- assertParamExists('getGetOrderPdf', 'id', id)
18343
- const localVarPath = `/orders/{id}/pdf`
18344
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18345
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18346
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18347
- let baseOptions;
18348
- if (configuration) {
18349
- baseOptions = configuration.baseOptions;
18350
- }
18351
-
18352
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18353
- const localVarHeaderParameter = {} as any;
18354
- const localVarQueryParameter = {} as any;
18355
-
18356
-
18357
-
18358
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18359
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18360
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18361
-
18362
- return {
18363
- url: toPathString(localVarUrlObj),
18364
- options: localVarRequestOptions,
18365
- };
18366
- },
18367
- /**
18368
- * Get Orders (Beta)
18369
- * @summary Get Orders (Beta)
18370
- * @param {number} [pageSize] Number Of Results
18371
- * @param {number} [page] Page Number
18372
- * @param {string} [search] Search
18373
- * @param {boolean | null} [fulfillable] Fulfillable
18374
- * @param {GetGetOrdersStatusEnum} [status] Status
18375
- * @param {GetGetOrdersFilterEnum} [filter] Filter
18376
- * @param {number | null} [customerId] Customer ID
18377
- * @param {*} [options] Override http request option.
18378
- * @throws {RequiredError}
18379
- */
18380
- getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18381
- const localVarPath = `/orders`;
17157
+ getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17158
+ const localVarPath = `/orders`;
18382
17159
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18383
17160
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18384
17161
  let baseOptions;
@@ -18429,44 +17206,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18429
17206
  options: localVarRequestOptions,
18430
17207
  };
18431
17208
  },
18432
- /**
18433
- * Add Order Note
18434
- * @summary Add Order Note
18435
- * @param {number} id Order ID
18436
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18437
- * @param {*} [options] Override http request option.
18438
- * @throws {RequiredError}
18439
- */
18440
- postAddOrderNote: async (id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18441
- // verify required parameter 'id' is not null or undefined
18442
- assertParamExists('postAddOrderNote', 'id', id)
18443
- const localVarPath = `/admin/orders/{id}/notes`
18444
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18445
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18446
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18447
- let baseOptions;
18448
- if (configuration) {
18449
- baseOptions = configuration.baseOptions;
18450
- }
18451
-
18452
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18453
- const localVarHeaderParameter = {} as any;
18454
- const localVarQueryParameter = {} as any;
18455
-
18456
-
18457
-
18458
- localVarHeaderParameter['Content-Type'] = 'application/json';
18459
-
18460
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18461
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18462
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18463
- localVarRequestOptions.data = serializeDataIfNeeded(postAddOrderNoteRequest, localVarRequestOptions, configuration)
18464
-
18465
- return {
18466
- url: toPathString(localVarUrlObj),
18467
- options: localVarRequestOptions,
18468
- };
18469
- },
18470
17209
  /**
18471
17210
  * Create An Order (Admin)
18472
17211
  * @summary Create An Order (Admin)
@@ -18506,90 +17245,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18506
17245
  options: localVarRequestOptions,
18507
17246
  };
18508
17247
  },
18509
- /**
18510
- * Create Shipping Consignment
18511
- * @summary Create Shipping Consignment
18512
- * @param {number} id Order ID
18513
- * @param {number} shipmentId Shipment ID
18514
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18515
- * @param {*} [options] Override http request option.
18516
- * @throws {RequiredError}
18517
- */
18518
- postCreateConsignment: async (id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18519
- // verify required parameter 'id' is not null or undefined
18520
- assertParamExists('postCreateConsignment', 'id', id)
18521
- // verify required parameter 'shipmentId' is not null or undefined
18522
- assertParamExists('postCreateConsignment', 'shipmentId', shipmentId)
18523
- const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/consignment`
18524
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18525
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18526
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18527
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18528
- let baseOptions;
18529
- if (configuration) {
18530
- baseOptions = configuration.baseOptions;
18531
- }
18532
-
18533
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18534
- const localVarHeaderParameter = {} as any;
18535
- const localVarQueryParameter = {} as any;
18536
-
18537
-
18538
-
18539
- localVarHeaderParameter['Content-Type'] = 'application/json';
18540
-
18541
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18542
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18543
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18544
- localVarRequestOptions.data = serializeDataIfNeeded(shippingRequestDTO, localVarRequestOptions, configuration)
18545
-
18546
- return {
18547
- url: toPathString(localVarUrlObj),
18548
- options: localVarRequestOptions,
18549
- };
18550
- },
18551
- /**
18552
- * Create Shipment (Admin)
18553
- * @summary Create Shipment (Admin)
18554
- * @param {number} id Order ID
18555
- * @param {number} batchId Batch ID
18556
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18557
- * @param {*} [options] Override http request option.
18558
- * @throws {RequiredError}
18559
- */
18560
- postCreateShipment: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18561
- // verify required parameter 'id' is not null or undefined
18562
- assertParamExists('postCreateShipment', 'id', id)
18563
- // verify required parameter 'batchId' is not null or undefined
18564
- assertParamExists('postCreateShipment', 'batchId', batchId)
18565
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18566
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18567
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18568
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18569
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18570
- let baseOptions;
18571
- if (configuration) {
18572
- baseOptions = configuration.baseOptions;
18573
- }
18574
-
18575
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18576
- const localVarHeaderParameter = {} as any;
18577
- const localVarQueryParameter = {} as any;
18578
-
18579
-
18580
-
18581
- localVarHeaderParameter['Content-Type'] = 'application/json';
18582
-
18583
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18584
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18585
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18586
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18587
-
18588
- return {
18589
- url: toPathString(localVarUrlObj),
18590
- options: localVarRequestOptions,
18591
- };
18592
- },
18593
17248
  /**
18594
17249
  * Create An Order (Beta)
18595
17250
  * @summary Create An Order (Beta)
@@ -18630,17 +17285,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18630
17285
  };
18631
17286
  },
18632
17287
  /**
18633
- * Issue Credit (Admin)
18634
- * @summary Issue Credit (Admin)
17288
+ * Update An Order (Admin)
17289
+ * @summary Update An Order (Admin)
18635
17290
  * @param {number} id Order ID
18636
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
17291
+ * @param {boolean} [readonly] Readonly Order
17292
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
18637
17293
  * @param {*} [options] Override http request option.
18638
17294
  * @throws {RequiredError}
18639
17295
  */
18640
- postIssueCredit: async (id: number, creditNoteDTO?: CreditNoteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17296
+ putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18641
17297
  // verify required parameter 'id' is not null or undefined
18642
- assertParamExists('postIssueCredit', 'id', id)
18643
- const localVarPath = `/admin/orders/{id}/credit`
17298
+ assertParamExists('putUpdateAdminOrder', 'id', id)
17299
+ const localVarPath = `/admin/orders/{id}`
18644
17300
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18645
17301
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18646
17302
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18649,63 +17305,22 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18649
17305
  baseOptions = configuration.baseOptions;
18650
17306
  }
18651
17307
 
18652
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18653
- const localVarHeaderParameter = {} as any;
18654
- const localVarQueryParameter = {} as any;
18655
-
18656
-
18657
-
18658
- localVarHeaderParameter['Content-Type'] = 'application/json';
18659
-
18660
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18661
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18662
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18663
- localVarRequestOptions.data = serializeDataIfNeeded(creditNoteDTO, localVarRequestOptions, configuration)
18664
-
18665
- return {
18666
- url: toPathString(localVarUrlObj),
18667
- options: localVarRequestOptions,
18668
- };
18669
- },
18670
- /**
18671
- * Print Shipment Label
18672
- * @summary Print Shipment Label
18673
- * @param {number} id Order ID
18674
- * @param {number} shipmentId Shipment ID
18675
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18676
- * @param {*} [options] Override http request option.
18677
- * @throws {RequiredError}
18678
- */
18679
- postPrintShippingLabel: async (id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18680
- // verify required parameter 'id' is not null or undefined
18681
- assertParamExists('postPrintShippingLabel', 'id', id)
18682
- // verify required parameter 'shipmentId' is not null or undefined
18683
- assertParamExists('postPrintShippingLabel', 'shipmentId', shipmentId)
18684
- // verify required parameter 'printer' is not null or undefined
18685
- assertParamExists('postPrintShippingLabel', 'printer', printer)
18686
- const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/label/print`
18687
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18688
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18689
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18690
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18691
- let baseOptions;
18692
- if (configuration) {
18693
- baseOptions = configuration.baseOptions;
18694
- }
18695
-
18696
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17308
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18697
17309
  const localVarHeaderParameter = {} as any;
18698
17310
  const localVarQueryParameter = {} as any;
18699
17311
 
18700
- if (printer !== undefined) {
18701
- localVarQueryParameter['printer'] = printer;
17312
+ if (readonly !== undefined) {
17313
+ localVarQueryParameter['readonly'] = readonly;
18702
17314
  }
18703
17315
 
18704
17316
 
18705
17317
 
17318
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17319
+
18706
17320
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18707
17321
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18708
17322
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17323
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18709
17324
 
18710
17325
  return {
18711
17326
  url: toPathString(localVarUrlObj),
@@ -18713,19 +17328,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18713
17328
  };
18714
17329
  },
18715
17330
  /**
18716
- * Send Order Email
18717
- * @summary Send Order Email
17331
+ * Update An Order (Beta)
17332
+ * @summary Update An Order (Beta)
18718
17333
  * @param {number} id Order ID
18719
- * @param {string} email Email Address
17334
+ * @param {boolean} [readonly] Readonly Order
17335
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18720
17336
  * @param {*} [options] Override http request option.
18721
17337
  * @throws {RequiredError}
18722
17338
  */
18723
- postSendOrderEmail: async (id: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17339
+ putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18724
17340
  // verify required parameter 'id' is not null or undefined
18725
- assertParamExists('postSendOrderEmail', 'id', id)
18726
- // verify required parameter 'email' is not null or undefined
18727
- assertParamExists('postSendOrderEmail', 'email', email)
18728
- const localVarPath = `/admin/orders/{id}/email/send`
17341
+ assertParamExists('putUpdateOrder', 'id', id)
17342
+ const localVarPath = `/orders/{id}`
18729
17343
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18730
17344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18731
17345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18734,559 +17348,122 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18734
17348
  baseOptions = configuration.baseOptions;
18735
17349
  }
18736
17350
 
18737
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17351
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18738
17352
  const localVarHeaderParameter = {} as any;
18739
17353
  const localVarQueryParameter = {} as any;
18740
17354
 
18741
- if (email !== undefined) {
18742
- localVarQueryParameter['email'] = email;
18743
- }
18744
-
18745
-
18746
-
18747
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18748
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18749
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18750
-
18751
- return {
18752
- url: toPathString(localVarUrlObj),
18753
- options: localVarRequestOptions,
18754
- };
18755
- },
18756
- /**
18757
- * Send Supplier Email
18758
- * @summary Send Supplier Email
18759
- * @param {number} id Order ID
18760
- * @param {number} batchId Batch ID
18761
- * @param {*} [options] Override http request option.
18762
- * @throws {RequiredError}
18763
- */
18764
- postSendSupplierEmail: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18765
- // verify required parameter 'id' is not null or undefined
18766
- assertParamExists('postSendSupplierEmail', 'id', id)
18767
- // verify required parameter 'batchId' is not null or undefined
18768
- assertParamExists('postSendSupplierEmail', 'batchId', batchId)
18769
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/email/send`
18770
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18771
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18772
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18773
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18774
- let baseOptions;
18775
- if (configuration) {
18776
- baseOptions = configuration.baseOptions;
18777
- }
18778
-
18779
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18780
- const localVarHeaderParameter = {} as any;
18781
- const localVarQueryParameter = {} as any;
18782
-
18783
-
18784
-
18785
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18786
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18787
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18788
-
18789
- return {
18790
- url: toPathString(localVarUrlObj),
18791
- options: localVarRequestOptions,
18792
- };
18793
- },
18794
- /**
18795
- * Split Order
18796
- * @summary Split Order
18797
- * @param {number} id Order ID
18798
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
18799
- * @param {*} [options] Override http request option.
18800
- * @throws {RequiredError}
18801
- */
18802
- postSplitOrder: async (id: number, postSplitOrderRequest?: PostSplitOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18803
- // verify required parameter 'id' is not null or undefined
18804
- assertParamExists('postSplitOrder', 'id', id)
18805
- const localVarPath = `/admin/orders/{id}/split`
18806
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18807
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18808
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18809
- let baseOptions;
18810
- if (configuration) {
18811
- baseOptions = configuration.baseOptions;
18812
- }
18813
-
18814
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18815
- const localVarHeaderParameter = {} as any;
18816
- const localVarQueryParameter = {} as any;
18817
-
18818
-
18819
-
18820
- localVarHeaderParameter['Content-Type'] = 'application/json';
18821
-
18822
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18823
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18824
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18825
- localVarRequestOptions.data = serializeDataIfNeeded(postSplitOrderRequest, localVarRequestOptions, configuration)
18826
-
18827
- return {
18828
- url: toPathString(localVarUrlObj),
18829
- options: localVarRequestOptions,
18830
- };
18831
- },
18832
- /**
18833
- * Allocate Items To Supplier
18834
- * @summary Allocate Items To Supplier
18835
- * @param {number} id Order ID
18836
- * @param {number} supplierId Supplier ID
18837
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
18838
- * @param {*} [options] Override http request option.
18839
- * @throws {RequiredError}
18840
- */
18841
- putAllocateItems: async (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18842
- // verify required parameter 'id' is not null or undefined
18843
- assertParamExists('putAllocateItems', 'id', id)
18844
- // verify required parameter 'supplierId' is not null or undefined
18845
- assertParamExists('putAllocateItems', 'supplierId', supplierId)
18846
- const localVarPath = `/admin/orders/{id}/items/allocate`
18847
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18848
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18849
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18850
- let baseOptions;
18851
- if (configuration) {
18852
- baseOptions = configuration.baseOptions;
18853
- }
18854
-
18855
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18856
- const localVarHeaderParameter = {} as any;
18857
- const localVarQueryParameter = {} as any;
18858
-
18859
- if (supplierId !== undefined) {
18860
- localVarQueryParameter['supplierId'] = supplierId;
18861
- }
18862
-
18863
-
18864
-
18865
- localVarHeaderParameter['Content-Type'] = 'application/json';
18866
-
18867
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18868
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18869
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18870
- localVarRequestOptions.data = serializeDataIfNeeded(putAllocateItemsRequest, localVarRequestOptions, configuration)
18871
-
18872
- return {
18873
- url: toPathString(localVarUrlObj),
18874
- options: localVarRequestOptions,
18875
- };
18876
- },
18877
- /**
18878
- * Update Shipment (Admin)
18879
- * @summary Update Shipment (Admin)
18880
- * @param {number} id Order ID
18881
- * @param {number} batchId Batch ID
18882
- * @param {number} shipmentId Shipment ID
18883
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18884
- * @param {*} [options] Override http request option.
18885
- * @throws {RequiredError}
18886
- */
18887
- putCreateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18888
- // verify required parameter 'id' is not null or undefined
18889
- assertParamExists('putCreateShipment', 'id', id)
18890
- // verify required parameter 'batchId' is not null or undefined
18891
- assertParamExists('putCreateShipment', 'batchId', batchId)
18892
- // verify required parameter 'shipmentId' is not null or undefined
18893
- assertParamExists('putCreateShipment', 'shipmentId', shipmentId)
18894
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18895
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18896
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18897
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18898
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18899
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18900
- let baseOptions;
18901
- if (configuration) {
18902
- baseOptions = configuration.baseOptions;
18903
- }
18904
-
18905
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18906
- const localVarHeaderParameter = {} as any;
18907
- const localVarQueryParameter = {} as any;
18908
-
18909
-
18910
-
18911
- localVarHeaderParameter['Content-Type'] = 'application/json';
18912
-
18913
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18914
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18915
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18916
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18917
-
18918
- return {
18919
- url: toPathString(localVarUrlObj),
18920
- options: localVarRequestOptions,
18921
- };
18922
- },
18923
- /**
18924
- * Update An Order (Admin)
18925
- * @summary Update An Order (Admin)
18926
- * @param {number} id Order ID
18927
- * @param {boolean} [readonly] Readonly Order
18928
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
18929
- * @param {*} [options] Override http request option.
18930
- * @throws {RequiredError}
18931
- */
18932
- putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18933
- // verify required parameter 'id' is not null or undefined
18934
- assertParamExists('putUpdateAdminOrder', 'id', id)
18935
- const localVarPath = `/admin/orders/{id}`
18936
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18937
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18938
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18939
- let baseOptions;
18940
- if (configuration) {
18941
- baseOptions = configuration.baseOptions;
18942
- }
18943
-
18944
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18945
- const localVarHeaderParameter = {} as any;
18946
- const localVarQueryParameter = {} as any;
18947
-
18948
- if (readonly !== undefined) {
18949
- localVarQueryParameter['readonly'] = readonly;
18950
- }
18951
-
18952
-
18953
-
18954
- localVarHeaderParameter['Content-Type'] = 'application/json';
18955
-
18956
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18957
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18958
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18959
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18960
-
18961
- return {
18962
- url: toPathString(localVarUrlObj),
18963
- options: localVarRequestOptions,
18964
- };
18965
- },
18966
- /**
18967
- * Update An Order (Beta)
18968
- * @summary Update An Order (Beta)
18969
- * @param {number} id Order ID
18970
- * @param {boolean} [readonly] Readonly Order
18971
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18972
- * @param {*} [options] Override http request option.
18973
- * @throws {RequiredError}
18974
- */
18975
- putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18976
- // verify required parameter 'id' is not null or undefined
18977
- assertParamExists('putUpdateOrder', 'id', id)
18978
- const localVarPath = `/orders/{id}`
18979
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18980
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18981
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18982
- let baseOptions;
18983
- if (configuration) {
18984
- baseOptions = configuration.baseOptions;
18985
- }
18986
-
18987
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18988
- const localVarHeaderParameter = {} as any;
18989
- const localVarQueryParameter = {} as any;
18990
-
18991
- if (readonly !== undefined) {
18992
- localVarQueryParameter['readonly'] = readonly;
17355
+ if (readonly !== undefined) {
17356
+ localVarQueryParameter['readonly'] = readonly;
18993
17357
  }
18994
17358
 
18995
17359
 
18996
17360
 
18997
17361
  localVarHeaderParameter['Content-Type'] = 'application/json';
18998
-
18999
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19000
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19001
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19002
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
19003
-
19004
- return {
19005
- url: toPathString(localVarUrlObj),
19006
- options: localVarRequestOptions,
19007
- };
19008
- },
19009
- }
19010
- };
19011
-
19012
- /**
19013
- * OrdersApi - functional programming interface
19014
- * @export
19015
- */
19016
- export const OrdersApiFp = function(configuration?: Configuration) {
19017
- const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
19018
- return {
19019
- /**
19020
- * Delete Shipment (Admin)
19021
- * @summary Delete Shipment (Admin)
19022
- * @param {number} id Order ID
19023
- * @param {number} batchId Batch ID
19024
- * @param {number} shipmentId Shipment ID
19025
- * @param {*} [options] Override http request option.
19026
- * @throws {RequiredError}
19027
- */
19028
- async deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19029
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCreateShipment(id, batchId, shipmentId, options);
19030
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19031
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteCreateShipment']?.[localVarOperationServerIndex]?.url;
19032
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19033
- },
19034
- /**
19035
- * Delete Orders (Beta)
19036
- * @summary Delete Orders (Beta)
19037
- * @param {number} id Order ID
19038
- * @param {*} [options] Override http request option.
19039
- * @throws {RequiredError}
19040
- */
19041
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19042
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19043
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19044
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19045
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19046
- },
19047
- /**
19048
- * Get Editable Order (Admin)
19049
- * @summary Get Editable Order (Admin)
19050
- * @param {number} id Order ID
19051
- * @param {*} [options] Override http request option.
19052
- * @throws {RequiredError}
19053
- */
19054
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
19055
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19056
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19057
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19058
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19059
- },
19060
- /**
19061
- * Get Order Details (Admin)
19062
- * @summary Get Order Details (Admin)
19063
- * @param {number} id Order ID
19064
- * @param {*} [options] Override http request option.
19065
- * @throws {RequiredError}
19066
- */
19067
- async getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
19068
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminOrderDetails(id, options);
19069
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19070
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
19071
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19072
- },
19073
- /**
19074
- * Get Editable Order (Beta)
19075
- * @summary Get Editable Order (Beta)
19076
- * @param {number} id Order ID
19077
- * @param {*} [options] Override http request option.
19078
- * @throws {RequiredError}
19079
- */
19080
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
19081
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19082
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19083
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19084
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19085
- },
19086
- /**
19087
- * Download Order PDF
19088
- * @summary Download Order PDF
19089
- * @param {number} id Order ID
19090
- * @param {*} [options] Override http request option.
19091
- * @throws {RequiredError}
19092
- */
19093
- async getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19094
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderPdf(id, options);
19095
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19096
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
19097
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19098
- },
19099
- /**
19100
- * Get Orders (Beta)
19101
- * @summary Get Orders (Beta)
19102
- * @param {number} [pageSize] Number Of Results
19103
- * @param {number} [page] Page Number
19104
- * @param {string} [search] Search
19105
- * @param {boolean | null} [fulfillable] Fulfillable
19106
- * @param {GetGetOrdersStatusEnum} [status] Status
19107
- * @param {GetGetOrdersFilterEnum} [filter] Filter
19108
- * @param {number | null} [customerId] Customer ID
19109
- * @param {*} [options] Override http request option.
19110
- * @throws {RequiredError}
19111
- */
19112
- async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
19113
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19114
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19115
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19116
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19117
- },
19118
- /**
19119
- * Add Order Note
19120
- * @summary Add Order Note
19121
- * @param {number} id Order ID
19122
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19123
- * @param {*} [options] Override http request option.
19124
- * @throws {RequiredError}
19125
- */
19126
- async postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19127
- const localVarAxiosArgs = await localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options);
19128
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19129
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postAddOrderNote']?.[localVarOperationServerIndex]?.url;
19130
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19131
- },
19132
- /**
19133
- * Create An Order (Admin)
19134
- * @summary Create An Order (Admin)
19135
- * @param {boolean} [readonly] Readonly Order
19136
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19137
- * @param {*} [options] Override http request option.
19138
- * @throws {RequiredError}
19139
- */
19140
- async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19141
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19142
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19143
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19144
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19145
- },
19146
- /**
19147
- * Create Shipping Consignment
19148
- * @summary Create Shipping Consignment
19149
- * @param {number} id Order ID
19150
- * @param {number} shipmentId Shipment ID
19151
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19152
- * @param {*} [options] Override http request option.
19153
- * @throws {RequiredError}
19154
- */
19155
- async postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19156
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options);
19157
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19158
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateConsignment']?.[localVarOperationServerIndex]?.url;
19159
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19160
- },
19161
- /**
19162
- * Create Shipment (Admin)
19163
- * @summary Create Shipment (Admin)
19164
- * @param {number} id Order ID
19165
- * @param {number} batchId Batch ID
19166
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19167
- * @param {*} [options] Override http request option.
19168
- * @throws {RequiredError}
19169
- */
19170
- async postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19171
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options);
19172
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19173
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
19174
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19175
- },
19176
- /**
19177
- * Create An Order (Beta)
19178
- * @summary Create An Order (Beta)
19179
- * @param {boolean} [readonly] Readonly Order
19180
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19181
- * @param {*} [options] Override http request option.
19182
- * @throws {RequiredError}
19183
- */
19184
- async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19185
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19186
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19187
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19188
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19189
- },
19190
- /**
19191
- * Issue Credit (Admin)
19192
- * @summary Issue Credit (Admin)
19193
- * @param {number} id Order ID
19194
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19195
- * @param {*} [options] Override http request option.
19196
- * @throws {RequiredError}
19197
- */
19198
- async postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditNoteModel>> {
19199
- const localVarAxiosArgs = await localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options);
19200
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19201
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postIssueCredit']?.[localVarOperationServerIndex]?.url;
19202
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17362
+
17363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17365
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17366
+ localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
17367
+
17368
+ return {
17369
+ url: toPathString(localVarUrlObj),
17370
+ options: localVarRequestOptions,
17371
+ };
19203
17372
  },
17373
+ }
17374
+ };
17375
+
17376
+ /**
17377
+ * OrdersApi - functional programming interface
17378
+ * @export
17379
+ */
17380
+ export const OrdersApiFp = function(configuration?: Configuration) {
17381
+ const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
17382
+ return {
19204
17383
  /**
19205
- * Print Shipment Label
19206
- * @summary Print Shipment Label
17384
+ * Delete Orders (Beta)
17385
+ * @summary Delete Orders (Beta)
19207
17386
  * @param {number} id Order ID
19208
- * @param {number} shipmentId Shipment ID
19209
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19210
17387
  * @param {*} [options] Override http request option.
19211
17388
  * @throws {RequiredError}
19212
17389
  */
19213
- async postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19214
- const localVarAxiosArgs = await localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options);
17390
+ async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19215
17392
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19216
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17393
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19217
17394
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19218
17395
  },
19219
17396
  /**
19220
- * Send Order Email
19221
- * @summary Send Order Email
17397
+ * Get Editable Order (Admin)
17398
+ * @summary Get Editable Order (Admin)
19222
17399
  * @param {number} id Order ID
19223
- * @param {string} email Email Address
19224
17400
  * @param {*} [options] Override http request option.
19225
17401
  * @throws {RequiredError}
19226
17402
  */
19227
- async postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19228
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSendOrderEmail(id, email, options);
17403
+ async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
17404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19229
17405
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19230
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendOrderEmail']?.[localVarOperationServerIndex]?.url;
17406
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19231
17407
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19232
17408
  },
19233
17409
  /**
19234
- * Send Supplier Email
19235
- * @summary Send Supplier Email
17410
+ * Get Editable Order (Beta)
17411
+ * @summary Get Editable Order (Beta)
19236
17412
  * @param {number} id Order ID
19237
- * @param {number} batchId Batch ID
19238
17413
  * @param {*} [options] Override http request option.
19239
17414
  * @throws {RequiredError}
19240
17415
  */
19241
- async postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19242
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options);
17416
+ async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
17417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19243
17418
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19244
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendSupplierEmail']?.[localVarOperationServerIndex]?.url;
17419
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19245
17420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19246
17421
  },
19247
17422
  /**
19248
- * Split Order
19249
- * @summary Split Order
19250
- * @param {number} id Order ID
19251
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17423
+ * Get Orders (Beta)
17424
+ * @summary Get Orders (Beta)
17425
+ * @param {number} [pageSize] Number Of Results
17426
+ * @param {number} [page] Page Number
17427
+ * @param {string} [search] Search
17428
+ * @param {boolean | null} [fulfillable] Fulfillable
17429
+ * @param {GetGetOrdersStatusEnum} [status] Status
17430
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
17431
+ * @param {number | null} [customerId] Customer ID
19252
17432
  * @param {*} [options] Override http request option.
19253
17433
  * @throws {RequiredError}
19254
17434
  */
19255
- async postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19256
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options);
17435
+ async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
17436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19257
17437
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19258
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSplitOrder']?.[localVarOperationServerIndex]?.url;
17438
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19259
17439
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19260
17440
  },
19261
17441
  /**
19262
- * Allocate Items To Supplier
19263
- * @summary Allocate Items To Supplier
19264
- * @param {number} id Order ID
19265
- * @param {number} supplierId Supplier ID
19266
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17442
+ * Create An Order (Admin)
17443
+ * @summary Create An Order (Admin)
17444
+ * @param {boolean} [readonly] Readonly Order
17445
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19267
17446
  * @param {*} [options] Override http request option.
19268
17447
  * @throws {RequiredError}
19269
17448
  */
19270
- async putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19271
- const localVarAxiosArgs = await localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options);
17449
+ async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
17450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19272
17451
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19273
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
17452
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19274
17453
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19275
17454
  },
19276
17455
  /**
19277
- * Update Shipment (Admin)
19278
- * @summary Update Shipment (Admin)
19279
- * @param {number} id Order ID
19280
- * @param {number} batchId Batch ID
19281
- * @param {number} shipmentId Shipment ID
19282
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17456
+ * Create An Order (Beta)
17457
+ * @summary Create An Order (Beta)
17458
+ * @param {boolean} [readonly] Readonly Order
17459
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19283
17460
  * @param {*} [options] Override http request option.
19284
17461
  * @throws {RequiredError}
19285
17462
  */
19286
- async putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19287
- const localVarAxiosArgs = await localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
17463
+ async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
17464
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19288
17465
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19289
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putCreateShipment']?.[localVarOperationServerIndex]?.url;
17466
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19290
17467
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19291
17468
  },
19292
17469
  /**
@@ -19329,18 +17506,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
19329
17506
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19330
17507
  const localVarFp = OrdersApiFp(configuration)
19331
17508
  return {
19332
- /**
19333
- * Delete Shipment (Admin)
19334
- * @summary Delete Shipment (Admin)
19335
- * @param {number} id Order ID
19336
- * @param {number} batchId Batch ID
19337
- * @param {number} shipmentId Shipment ID
19338
- * @param {*} [options] Override http request option.
19339
- * @throws {RequiredError}
19340
- */
19341
- deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19342
- return localVarFp.deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
19343
- },
19344
17509
  /**
19345
17510
  * Delete Orders (Beta)
19346
17511
  * @summary Delete Orders (Beta)
@@ -19361,16 +17526,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19361
17526
  getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
19362
17527
  return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
19363
17528
  },
19364
- /**
19365
- * Get Order Details (Admin)
19366
- * @summary Get Order Details (Admin)
19367
- * @param {number} id Order ID
19368
- * @param {*} [options] Override http request option.
19369
- * @throws {RequiredError}
19370
- */
19371
- getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
19372
- return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
19373
- },
19374
17529
  /**
19375
17530
  * Get Editable Order (Beta)
19376
17531
  * @summary Get Editable Order (Beta)
@@ -19381,16 +17536,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19381
17536
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
19382
17537
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
19383
17538
  },
19384
- /**
19385
- * Download Order PDF
19386
- * @summary Download Order PDF
19387
- * @param {number} id Order ID
19388
- * @param {*} [options] Override http request option.
19389
- * @throws {RequiredError}
19390
- */
19391
- getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19392
- return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
19393
- },
19394
17539
  /**
19395
17540
  * Get Orders (Beta)
19396
17541
  * @summary Get Orders (Beta)
@@ -19407,17 +17552,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19407
17552
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
19408
17553
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
19409
17554
  },
19410
- /**
19411
- * Add Order Note
19412
- * @summary Add Order Note
19413
- * @param {number} id Order ID
19414
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19415
- * @param {*} [options] Override http request option.
19416
- * @throws {RequiredError}
19417
- */
19418
- postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19419
- return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(axios, basePath));
19420
- },
19421
17555
  /**
19422
17556
  * Create An Order (Admin)
19423
17557
  * @summary Create An Order (Admin)
@@ -19429,30 +17563,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19429
17563
  postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19430
17564
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
19431
17565
  },
19432
- /**
19433
- * Create Shipping Consignment
19434
- * @summary Create Shipping Consignment
19435
- * @param {number} id Order ID
19436
- * @param {number} shipmentId Shipment ID
19437
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19438
- * @param {*} [options] Override http request option.
19439
- * @throws {RequiredError}
19440
- */
19441
- postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19442
- return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(axios, basePath));
19443
- },
19444
- /**
19445
- * Create Shipment (Admin)
19446
- * @summary Create Shipment (Admin)
19447
- * @param {number} id Order ID
19448
- * @param {number} batchId Batch ID
19449
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19450
- * @param {*} [options] Override http request option.
19451
- * @throws {RequiredError}
19452
- */
19453
- postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19454
- return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19455
- },
19456
17566
  /**
19457
17567
  * Create An Order (Beta)
19458
17568
  * @summary Create An Order (Beta)
@@ -19464,87 +17574,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19464
17574
  postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19465
17575
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
19466
17576
  },
19467
- /**
19468
- * Issue Credit (Admin)
19469
- * @summary Issue Credit (Admin)
19470
- * @param {number} id Order ID
19471
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19472
- * @param {*} [options] Override http request option.
19473
- * @throws {RequiredError}
19474
- */
19475
- postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): AxiosPromise<CreditNoteModel> {
19476
- return localVarFp.postIssueCredit(id, creditNoteDTO, options).then((request) => request(axios, basePath));
19477
- },
19478
- /**
19479
- * Print Shipment Label
19480
- * @summary Print Shipment Label
19481
- * @param {number} id Order ID
19482
- * @param {number} shipmentId Shipment ID
19483
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19484
- * @param {*} [options] Override http request option.
19485
- * @throws {RequiredError}
19486
- */
19487
- postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19488
- return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
19489
- },
19490
- /**
19491
- * Send Order Email
19492
- * @summary Send Order Email
19493
- * @param {number} id Order ID
19494
- * @param {string} email Email Address
19495
- * @param {*} [options] Override http request option.
19496
- * @throws {RequiredError}
19497
- */
19498
- postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19499
- return localVarFp.postSendOrderEmail(id, email, options).then((request) => request(axios, basePath));
19500
- },
19501
- /**
19502
- * Send Supplier Email
19503
- * @summary Send Supplier Email
19504
- * @param {number} id Order ID
19505
- * @param {number} batchId Batch ID
19506
- * @param {*} [options] Override http request option.
19507
- * @throws {RequiredError}
19508
- */
19509
- postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19510
- return localVarFp.postSendSupplierEmail(id, batchId, options).then((request) => request(axios, basePath));
19511
- },
19512
- /**
19513
- * Split Order
19514
- * @summary Split Order
19515
- * @param {number} id Order ID
19516
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19517
- * @param {*} [options] Override http request option.
19518
- * @throws {RequiredError}
19519
- */
19520
- postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19521
- return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(axios, basePath));
19522
- },
19523
- /**
19524
- * Allocate Items To Supplier
19525
- * @summary Allocate Items To Supplier
19526
- * @param {number} id Order ID
19527
- * @param {number} supplierId Supplier ID
19528
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19529
- * @param {*} [options] Override http request option.
19530
- * @throws {RequiredError}
19531
- */
19532
- putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19533
- return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
19534
- },
19535
- /**
19536
- * Update Shipment (Admin)
19537
- * @summary Update Shipment (Admin)
19538
- * @param {number} id Order ID
19539
- * @param {number} batchId Batch ID
19540
- * @param {number} shipmentId Shipment ID
19541
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19542
- * @param {*} [options] Override http request option.
19543
- * @throws {RequiredError}
19544
- */
19545
- putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19546
- return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19547
- },
19548
17577
  /**
19549
17578
  * Update An Order (Admin)
19550
17579
  * @summary Update An Order (Admin)
@@ -19579,20 +17608,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19579
17608
  * @extends {BaseAPI}
19580
17609
  */
19581
17610
  export class OrdersApi extends BaseAPI {
19582
- /**
19583
- * Delete Shipment (Admin)
19584
- * @summary Delete Shipment (Admin)
19585
- * @param {number} id Order ID
19586
- * @param {number} batchId Batch ID
19587
- * @param {number} shipmentId Shipment ID
19588
- * @param {*} [options] Override http request option.
19589
- * @throws {RequiredError}
19590
- * @memberof OrdersApi
19591
- */
19592
- public deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
19593
- return OrdersApiFp(this.configuration).deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
19594
- }
19595
-
19596
17611
  /**
19597
17612
  * Delete Orders (Beta)
19598
17613
  * @summary Delete Orders (Beta)
@@ -19617,18 +17632,6 @@ export class OrdersApi extends BaseAPI {
19617
17632
  return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
19618
17633
  }
19619
17634
 
19620
- /**
19621
- * Get Order Details (Admin)
19622
- * @summary Get Order Details (Admin)
19623
- * @param {number} id Order ID
19624
- * @param {*} [options] Override http request option.
19625
- * @throws {RequiredError}
19626
- * @memberof OrdersApi
19627
- */
19628
- public getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig) {
19629
- return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
19630
- }
19631
-
19632
17635
  /**
19633
17636
  * Get Editable Order (Beta)
19634
17637
  * @summary Get Editable Order (Beta)
@@ -19641,18 +17644,6 @@ export class OrdersApi extends BaseAPI {
19641
17644
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
19642
17645
  }
19643
17646
 
19644
- /**
19645
- * Download Order PDF
19646
- * @summary Download Order PDF
19647
- * @param {number} id Order ID
19648
- * @param {*} [options] Override http request option.
19649
- * @throws {RequiredError}
19650
- * @memberof OrdersApi
19651
- */
19652
- public getGetOrderPdf(id: number, options?: RawAxiosRequestConfig) {
19653
- return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
19654
- }
19655
-
19656
17647
  /**
19657
17648
  * Get Orders (Beta)
19658
17649
  * @summary Get Orders (Beta)
@@ -19671,19 +17662,6 @@ export class OrdersApi extends BaseAPI {
19671
17662
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
19672
17663
  }
19673
17664
 
19674
- /**
19675
- * Add Order Note
19676
- * @summary Add Order Note
19677
- * @param {number} id Order ID
19678
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19679
- * @param {*} [options] Override http request option.
19680
- * @throws {RequiredError}
19681
- * @memberof OrdersApi
19682
- */
19683
- public postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig) {
19684
- return OrdersApiFp(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(this.axios, this.basePath));
19685
- }
19686
-
19687
17665
  /**
19688
17666
  * Create An Order (Admin)
19689
17667
  * @summary Create An Order (Admin)
@@ -19697,34 +17675,6 @@ export class OrdersApi extends BaseAPI {
19697
17675
  return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
19698
17676
  }
19699
17677
 
19700
- /**
19701
- * Create Shipping Consignment
19702
- * @summary Create Shipping Consignment
19703
- * @param {number} id Order ID
19704
- * @param {number} shipmentId Shipment ID
19705
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19706
- * @param {*} [options] Override http request option.
19707
- * @throws {RequiredError}
19708
- * @memberof OrdersApi
19709
- */
19710
- public postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig) {
19711
- return OrdersApiFp(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(this.axios, this.basePath));
19712
- }
19713
-
19714
- /**
19715
- * Create Shipment (Admin)
19716
- * @summary Create Shipment (Admin)
19717
- * @param {number} id Order ID
19718
- * @param {number} batchId Batch ID
19719
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19720
- * @param {*} [options] Override http request option.
19721
- * @throws {RequiredError}
19722
- * @memberof OrdersApi
19723
- */
19724
- public postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19725
- return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19726
- }
19727
-
19728
17678
  /**
19729
17679
  * Create An Order (Beta)
19730
17680
  * @summary Create An Order (Beta)
@@ -19738,101 +17688,6 @@ export class OrdersApi extends BaseAPI {
19738
17688
  return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
19739
17689
  }
19740
17690
 
19741
- /**
19742
- * Issue Credit (Admin)
19743
- * @summary Issue Credit (Admin)
19744
- * @param {number} id Order ID
19745
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19746
- * @param {*} [options] Override http request option.
19747
- * @throws {RequiredError}
19748
- * @memberof OrdersApi
19749
- */
19750
- public postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig) {
19751
- return OrdersApiFp(this.configuration).postIssueCredit(id, creditNoteDTO, options).then((request) => request(this.axios, this.basePath));
19752
- }
19753
-
19754
- /**
19755
- * Print Shipment Label
19756
- * @summary Print Shipment Label
19757
- * @param {number} id Order ID
19758
- * @param {number} shipmentId Shipment ID
19759
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19760
- * @param {*} [options] Override http request option.
19761
- * @throws {RequiredError}
19762
- * @memberof OrdersApi
19763
- */
19764
- public postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig) {
19765
- return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
19766
- }
19767
-
19768
- /**
19769
- * Send Order Email
19770
- * @summary Send Order Email
19771
- * @param {number} id Order ID
19772
- * @param {string} email Email Address
19773
- * @param {*} [options] Override http request option.
19774
- * @throws {RequiredError}
19775
- * @memberof OrdersApi
19776
- */
19777
- public postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig) {
19778
- return OrdersApiFp(this.configuration).postSendOrderEmail(id, email, options).then((request) => request(this.axios, this.basePath));
19779
- }
19780
-
19781
- /**
19782
- * Send Supplier Email
19783
- * @summary Send Supplier Email
19784
- * @param {number} id Order ID
19785
- * @param {number} batchId Batch ID
19786
- * @param {*} [options] Override http request option.
19787
- * @throws {RequiredError}
19788
- * @memberof OrdersApi
19789
- */
19790
- public postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19791
- return OrdersApiFp(this.configuration).postSendSupplierEmail(id, batchId, options).then((request) => request(this.axios, this.basePath));
19792
- }
19793
-
19794
- /**
19795
- * Split Order
19796
- * @summary Split Order
19797
- * @param {number} id Order ID
19798
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19799
- * @param {*} [options] Override http request option.
19800
- * @throws {RequiredError}
19801
- * @memberof OrdersApi
19802
- */
19803
- public postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig) {
19804
- return OrdersApiFp(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(this.axios, this.basePath));
19805
- }
19806
-
19807
- /**
19808
- * Allocate Items To Supplier
19809
- * @summary Allocate Items To Supplier
19810
- * @param {number} id Order ID
19811
- * @param {number} supplierId Supplier ID
19812
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19813
- * @param {*} [options] Override http request option.
19814
- * @throws {RequiredError}
19815
- * @memberof OrdersApi
19816
- */
19817
- public putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) {
19818
- return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
19819
- }
19820
-
19821
- /**
19822
- * Update Shipment (Admin)
19823
- * @summary Update Shipment (Admin)
19824
- * @param {number} id Order ID
19825
- * @param {number} batchId Batch ID
19826
- * @param {number} shipmentId Shipment ID
19827
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19828
- * @param {*} [options] Override http request option.
19829
- * @throws {RequiredError}
19830
- * @memberof OrdersApi
19831
- */
19832
- public putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19833
- return OrdersApiFp(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19834
- }
19835
-
19836
17691
  /**
19837
17692
  * Update An Order (Admin)
19838
17693
  * @summary Update An Order (Admin)
@@ -19882,15 +17737,6 @@ export const GetGetOrdersFilterEnum = {
19882
17737
  BackOrders: 'BACK_ORDERS'
19883
17738
  } as const;
19884
17739
  export type GetGetOrdersFilterEnum = typeof GetGetOrdersFilterEnum[keyof typeof GetGetOrdersFilterEnum];
19885
- /**
19886
- * @export
19887
- */
19888
- export const PostPrintShippingLabelPrinterEnum = {
19889
- NUMBER_1: 1,
19890
- NUMBER_2: 2,
19891
- NUMBER_3: 3
19892
- } as const;
19893
- export type PostPrintShippingLabelPrinterEnum = typeof PostPrintShippingLabelPrinterEnum[keyof typeof PostPrintShippingLabelPrinterEnum];
19894
17740
 
19895
17741
 
19896
17742
  /**