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

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 +207 -2373
  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 +105 -1727
  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 -63
  33. package/docs/OrderItemDTO.md +0 -53
  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,202 +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
- * Customer Email
4295
- * @type {string}
4296
- * @memberof OrderDetailsDTO
4297
- */
4298
- 'customerEmail'?: string;
4299
- }
4300
- /**
4301
- * OrdersEntity
4302
- * @export
4303
- * @interface OrderEntity
4304
- */
4305
- export interface OrderEntity {
4306
- /**
4307
- * id
4308
- * @type {number}
4309
- * @memberof OrderEntity
4310
- */
4311
- 'id'?: number;
4312
- /**
4313
- * externalId
4314
- * @type {string}
4315
- * @memberof OrderEntity
4316
- */
4317
- 'reference'?: string;
4318
- /**
4319
- * sourceId
4320
- * @type {number}
4321
- * @memberof OrderEntity
4322
- */
4323
- 'sourceId'?: number;
4324
- /**
4325
- * sageInv
4326
- * @type {string}
4327
- * @memberof OrderEntity
4328
- */
4329
- 'invoiceNumber'?: string;
4330
- /**
4331
- * invoiceId
4332
- * @type {string}
4333
- * @memberof OrderEntity
4334
- */
4335
- 'invoiceId'?: string | null;
4336
- /**
4337
- * creditAccountId
4338
- * @type {number}
4339
- * @memberof OrderEntity
4340
- */
4341
- 'customerId'?: number;
4342
- /**
4343
- * orderDate
4344
- * @type {string}
4345
- * @memberof OrderEntity
4346
- */
4347
- 'orderDate'?: string;
4348
- /**
4349
- * orderPostedDate
4350
- * @type {string}
4351
- * @memberof OrderEntity
4352
- */
4353
- 'orderPostedDate'?: string;
4354
- /**
4355
- * buyerEmail
4356
- * @type {string}
4357
- * @memberof OrderEntity
3859
+ * buyerEmail
3860
+ * @type {string}
3861
+ * @memberof OrderEntity
4358
3862
  */
4359
3863
  'buyerEmail'?: string;
4360
3864
  /**
@@ -4652,115 +4156,6 @@ export interface OrderEntity {
4652
4156
  */
4653
4157
  'fulfillable'?: boolean | null;
4654
4158
  }
4655
- /**
4656
- * Order Item Details
4657
- * @export
4658
- * @interface OrderItemDTO
4659
- */
4660
- export interface OrderItemDTO {
4661
- /**
4662
- * SKU
4663
- * @type {string}
4664
- * @memberof OrderItemDTO
4665
- */
4666
- 'sku'?: string;
4667
- /**
4668
- * Quantity
4669
- * @type {number}
4670
- * @memberof OrderItemDTO
4671
- */
4672
- 'quantity'?: number;
4673
- /**
4674
- * ID
4675
- * @type {number}
4676
- * @memberof OrderItemDTO
4677
- */
4678
- 'id'?: number | null;
4679
- /**
4680
- * Order ID
4681
- * @type {number}
4682
- * @memberof OrderItemDTO
4683
- */
4684
- 'orderId'?: number | null;
4685
- /**
4686
- * Title
4687
- * @type {string}
4688
- * @memberof OrderItemDTO
4689
- */
4690
- 'title'?: string;
4691
- /**
4692
- * Price
4693
- * @type {number}
4694
- * @memberof OrderItemDTO
4695
- */
4696
- 'price'?: number;
4697
- /**
4698
- * 3CX Licence Key
4699
- * @type {string}
4700
- * @memberof OrderItemDTO
4701
- */
4702
- 'licenceKey'?: string | null;
4703
- /**
4704
- * Date Time
4705
- * @type {string}
4706
- * @memberof OrderItemDTO
4707
- */
4708
- 'licenceExpiry'?: string;
4709
- /**
4710
- * Date Time
4711
- * @type {string}
4712
- * @memberof OrderItemDTO
4713
- */
4714
- 'processDate'?: string;
4715
- /**
4716
- * 3CX Hosting
4717
- * @type {boolean}
4718
- * @memberof OrderItemDTO
4719
- */
4720
- 'hosting'?: boolean | null;
4721
- /**
4722
- * Promo Item
4723
- * @type {boolean}
4724
- * @memberof OrderItemDTO
4725
- */
4726
- 'promoItem'?: boolean;
4727
- /**
4728
- * Refunded
4729
- * @type {number}
4730
- * @memberof OrderItemDTO
4731
- */
4732
- 'refunded'?: number | null;
4733
- /**
4734
- * SBCs
4735
- * @type {Array<TcxSbcDTO>}
4736
- * @memberof OrderItemDTO
4737
- */
4738
- 'sbcs'?: Array<TcxSbcDTO>;
4739
- /**
4740
- * Readonly
4741
- * @type {boolean}
4742
- * @memberof OrderItemDTO
4743
- */
4744
- 'readonly'?: boolean;
4745
- /**
4746
- * 3CX Sales Code
4747
- * @type {string}
4748
- * @memberof OrderItemDTO
4749
- */
4750
- 'tcxSalesCode'?: string | null;
4751
- /**
4752
- * Suppliers
4753
- * @type {Array<SupplierModel>}
4754
- * @memberof OrderItemDTO
4755
- */
4756
- 'suppliers'?: Array<SupplierModel>;
4757
- /**
4758
- * Allocated
4759
- * @type {number}
4760
- * @memberof OrderItemDTO
4761
- */
4762
- 'allocated'?: number | null;
4763
- }
4764
4159
  /**
4765
4160
  * EdTechPro Order Request
4766
4161
  * @export
@@ -5178,146 +4573,55 @@ export interface OrderedItemEntity {
5178
4573
  'returnedStock'?: number;
5179
4574
  }
5180
4575
  /**
5181
- * Ordered Item Model
4576
+ *
5182
4577
  * @export
5183
- * @interface OrderedItemModel
4578
+ * @interface PatchSetTcxWizardCnameRequest
5184
4579
  */
5185
- export interface OrderedItemModel {
4580
+ export interface PatchSetTcxWizardCnameRequest {
5186
4581
  /**
5187
- * id
5188
- * @type {number}
5189
- * @memberof OrderedItemModel
4582
+ * CNAME
4583
+ * @type {string}
4584
+ * @memberof PatchSetTcxWizardCnameRequest
5190
4585
  */
5191
- 'id'?: number;
4586
+ 'cname'?: string;
4587
+ }
4588
+ /**
4589
+ *
4590
+ * @export
4591
+ * @interface PatchUpdateAccountContactPasswordRequest
4592
+ */
4593
+ export interface PatchUpdateAccountContactPasswordRequest {
5192
4594
  /**
5193
- * itemId
5194
- * @type {number}
5195
- * @memberof OrderedItemModel
4595
+ * Password
4596
+ * @type {string}
4597
+ * @memberof PatchUpdateAccountContactPasswordRequest
5196
4598
  */
5197
- 'itemId'?: number;
4599
+ 'password'?: string;
4600
+ }
4601
+ /**
4602
+ * Customer Account
4603
+ * @export
4604
+ * @interface PortalAccountModel
4605
+ */
4606
+ export interface PortalAccountModel {
5198
4607
  /**
5199
- * orderedQuantity
4608
+ * ID
5200
4609
  * @type {number}
5201
- * @memberof OrderedItemModel
4610
+ * @memberof PortalAccountModel
5202
4611
  */
5203
- 'orderedQuantity'?: number;
4612
+ 'id'?: number;
5204
4613
  /**
5205
- * itemStatus
5206
- * @type {number}
5207
- * @memberof OrderedItemModel
4614
+ * Contact Name
4615
+ * @type {string}
4616
+ * @memberof PortalAccountModel
5208
4617
  */
5209
- 'itemStatus'?: number;
4618
+ 'name'?: string;
5210
4619
  /**
5211
- * supplierId
5212
- * @type {number}
5213
- * @memberof OrderedItemModel
4620
+ * Email
4621
+ * @type {string}
4622
+ * @memberof PortalAccountModel
5214
4623
  */
5215
- 'supplierId'?: number;
5216
- /**
5217
- * supplierItemId
5218
- * @type {number}
5219
- * @memberof OrderedItemModel
5220
- */
5221
- 'supplierItemId'?: number;
5222
- /**
5223
- * supplierPrice
5224
- * @type {number}
5225
- * @memberof OrderedItemModel
5226
- */
5227
- 'supplierPrice'?: number;
5228
- /**
5229
- * statusDate
5230
- * @type {string}
5231
- * @memberof OrderedItemModel
5232
- */
5233
- 'statusDate'?: string;
5234
- /**
5235
- * statusAuthor
5236
- * @type {number}
5237
- * @memberof OrderedItemModel
5238
- */
5239
- 'statusAuthor'?: number;
5240
- /**
5241
- * supplierPaid
5242
- * @type {number}
5243
- * @memberof OrderedItemModel
5244
- */
5245
- 'supplierPaid'?: number;
5246
- /**
5247
- * supplierCreditDue
5248
- * @type {number}
5249
- * @memberof OrderedItemModel
5250
- */
5251
- 'supplierCreditDue'?: number;
5252
- /**
5253
- * supplierCreditReceived
5254
- * @type {number}
5255
- * @memberof OrderedItemModel
5256
- */
5257
- 'supplierCreditReceived'?: number;
5258
- /**
5259
- * supplierSku
5260
- * @type {string}
5261
- * @memberof OrderedItemModel
5262
- */
5263
- 'supplierSku'?: string;
5264
- /**
5265
- * returnedStock
5266
- * @type {number}
5267
- * @memberof OrderedItemModel
5268
- */
5269
- 'returnedStock'?: number;
5270
- }
5271
- /**
5272
- *
5273
- * @export
5274
- * @interface PatchSetTcxWizardCnameRequest
5275
- */
5276
- export interface PatchSetTcxWizardCnameRequest {
5277
- /**
5278
- * CNAME
5279
- * @type {string}
5280
- * @memberof PatchSetTcxWizardCnameRequest
5281
- */
5282
- 'cname'?: string;
5283
- }
5284
- /**
5285
- *
5286
- * @export
5287
- * @interface PatchUpdateAccountContactPasswordRequest
5288
- */
5289
- export interface PatchUpdateAccountContactPasswordRequest {
5290
- /**
5291
- * Password
5292
- * @type {string}
5293
- * @memberof PatchUpdateAccountContactPasswordRequest
5294
- */
5295
- 'password'?: string;
5296
- }
5297
- /**
5298
- * Customer Account
5299
- * @export
5300
- * @interface PortalAccountModel
5301
- */
5302
- export interface PortalAccountModel {
5303
- /**
5304
- * ID
5305
- * @type {number}
5306
- * @memberof PortalAccountModel
5307
- */
5308
- 'id'?: number;
5309
- /**
5310
- * Contact Name
5311
- * @type {string}
5312
- * @memberof PortalAccountModel
5313
- */
5314
- 'name'?: string;
5315
- /**
5316
- * Email
5317
- * @type {string}
5318
- * @memberof PortalAccountModel
5319
- */
5320
- 'email'?: string;
4624
+ 'email'?: string;
5321
4625
  /**
5322
4626
  * Phone Number
5323
4627
  * @type {string}
@@ -5494,19 +4798,6 @@ export interface PortalLoginModel {
5494
4798
  */
5495
4799
  'redirect_uri'?: string;
5496
4800
  }
5497
- /**
5498
- *
5499
- * @export
5500
- * @interface PostAddOrderNoteRequest
5501
- */
5502
- export interface PostAddOrderNoteRequest {
5503
- /**
5504
- * Order Note
5505
- * @type {string}
5506
- * @memberof PostAddOrderNoteRequest
5507
- */
5508
- 'note'?: string;
5509
- }
5510
4801
  /**
5511
4802
  *
5512
4803
  * @export
@@ -5589,19 +4880,6 @@ export interface PostGetProductRequest {
5589
4880
  */
5590
4881
  'hosting'?: boolean | null;
5591
4882
  }
5592
- /**
5593
- *
5594
- * @export
5595
- * @interface PostSplitOrderRequest
5596
- */
5597
- export interface PostSplitOrderRequest {
5598
- /**
5599
- * Item Ids
5600
- * @type {Array<number>}
5601
- * @memberof PostSplitOrderRequest
5602
- */
5603
- 'itemIds'?: Array<number>;
5604
- }
5605
4883
  /**
5606
4884
  * Price & Stock List
5607
4885
  * @export
@@ -5639,43 +4917,6 @@ export interface PriceListItemModel {
5639
4917
  */
5640
4918
  'stock'?: number | null;
5641
4919
  }
5642
- /**
5643
- * PrintersEntity
5644
- * @export
5645
- * @interface PrinterEntity
5646
- */
5647
- export interface PrinterEntity {
5648
- /**
5649
- * id
5650
- * @type {number}
5651
- * @memberof PrinterEntity
5652
- */
5653
- 'id'?: number;
5654
- /**
5655
- * brand
5656
- * @type {string}
5657
- * @memberof PrinterEntity
5658
- */
5659
- 'brand'?: string;
5660
- /**
5661
- * model
5662
- * @type {string}
5663
- * @memberof PrinterEntity
5664
- */
5665
- 'model'?: string;
5666
- /**
5667
- * sn
5668
- * @type {string}
5669
- * @memberof PrinterEntity
5670
- */
5671
- 'sn'?: string;
5672
- /**
5673
- * location
5674
- * @type {string}
5675
- * @memberof PrinterEntity
5676
- */
5677
- 'location'?: string;
5678
- }
5679
4920
  /**
5680
4921
  * PrizesEntity
5681
4922
  * @export
@@ -6063,38 +5304,6 @@ export interface ProvisioningRequestEntity {
6063
5304
  */
6064
5305
  'auth'?: string;
6065
5306
  }
6066
- /**
6067
- *
6068
- * @export
6069
- * @interface PutAllocateItemsRequest
6070
- */
6071
- export interface PutAllocateItemsRequest {
6072
- /**
6073
- * Items
6074
- * @type {Array<PutAllocateItemsRequestItemsInner>}
6075
- * @memberof PutAllocateItemsRequest
6076
- */
6077
- 'items'?: Array<PutAllocateItemsRequestItemsInner>;
6078
- }
6079
- /**
6080
- *
6081
- * @export
6082
- * @interface PutAllocateItemsRequestItemsInner
6083
- */
6084
- export interface PutAllocateItemsRequestItemsInner {
6085
- /**
6086
- * Item ID
6087
- * @type {number}
6088
- * @memberof PutAllocateItemsRequestItemsInner
6089
- */
6090
- 'itemId'?: number;
6091
- /**
6092
- * Quantity To Allocate
6093
- * @type {number}
6094
- * @memberof PutAllocateItemsRequestItemsInner
6095
- */
6096
- 'quantity'?: number;
6097
- }
6098
5307
  /**
6099
5308
  * Azure Recordings Backup
6100
5309
  * @export
@@ -6423,58 +5632,6 @@ export interface ShipmentAddressEntity {
6423
5632
  */
6424
5633
  'shipPhoneNumber'?: string;
6425
5634
  }
6426
- /**
6427
- * Shipment
6428
- * @export
6429
- * @interface ShipmentDTO
6430
- */
6431
- export interface ShipmentDTO {
6432
- /**
6433
- * Courier
6434
- * @type {string}
6435
- * @memberof ShipmentDTO
6436
- */
6437
- 'courier'?: ShipmentDTOCourierEnum | null;
6438
- /**
6439
- * Courier Reference
6440
- * @type {string}
6441
- * @memberof ShipmentDTO
6442
- */
6443
- 'reference'?: string | null;
6444
- /**
6445
- * Date Time
6446
- * @type {string}
6447
- * @memberof ShipmentDTO
6448
- */
6449
- 'requestedDate'?: string;
6450
- /**
6451
- * Scanned Items
6452
- * @type {Array<ScannedItemModel>}
6453
- * @memberof ShipmentDTO
6454
- */
6455
- 'scannedItems'?: Array<ScannedItemModel>;
6456
- /**
6457
- * Items
6458
- * @type {Array<ShipmentItemModel>}
6459
- * @memberof ShipmentDTO
6460
- */
6461
- 'items'?: Array<ShipmentItemModel>;
6462
- /**
6463
- *
6464
- * @type {AddressModel}
6465
- * @memberof ShipmentDTO
6466
- */
6467
- 'address'?: AddressModel;
6468
- }
6469
-
6470
- export const ShipmentDTOCourierEnum = {
6471
- Dpd: 'DPD',
6472
- ChorltonPallet: 'Chorlton Pallet',
6473
- Pops: 'POPS'
6474
- } as const;
6475
-
6476
- export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
6477
-
6478
5635
  /**
6479
5636
  * ShipmentsEntity
6480
5637
  * @export
@@ -6554,25 +5711,6 @@ export interface ShipmentEntity {
6554
5711
  */
6555
5712
  'provId'?: number;
6556
5713
  }
6557
- /**
6558
- * Shipment Item
6559
- * @export
6560
- * @interface ShipmentItemDTO
6561
- */
6562
- export interface ShipmentItemDTO {
6563
- /**
6564
- * Item ID
6565
- * @type {number}
6566
- * @memberof ShipmentItemDTO
6567
- */
6568
- 'itemId'?: number;
6569
- /**
6570
- * Quantity
6571
- * @type {number}
6572
- * @memberof ShipmentItemDTO
6573
- */
6574
- 'quantity'?: number;
6575
- }
6576
5714
  /**
6577
5715
  * ShipmentItemsEntity
6578
5716
  * @export
@@ -6611,263 +5749,61 @@ export interface ShipmentItemEntity {
6611
5749
  'itemId'?: string;
6612
5750
  }
6613
5751
  /**
6614
- * Shipment Item
5752
+ *
6615
5753
  * @export
6616
- * @interface ShipmentItemModel
5754
+ * @interface ShippingConsignmentModel
6617
5755
  */
6618
- export interface ShipmentItemModel {
6619
- /**
6620
- * id
6621
- * @type {number}
6622
- * @memberof ShipmentItemModel
6623
- */
6624
- 'id'?: number;
5756
+ export interface ShippingConsignmentModel {
6625
5757
  /**
6626
- * shipmentId
6627
- * @type {number}
6628
- * @memberof ShipmentItemModel
5758
+ *
5759
+ * @type {ShippingServiceModel}
5760
+ * @memberof ShippingConsignmentModel
6629
5761
  */
6630
- 'shipmentId'?: number;
5762
+ 'service'?: ShippingServiceModel;
6631
5763
  /**
6632
- * batchId
6633
- * @type {number}
6634
- * @memberof ShipmentItemModel
5764
+ * ID/Number
5765
+ * @type {string}
5766
+ * @memberof ShippingConsignmentModel
6635
5767
  */
6636
- 'batchId'?: number;
5768
+ 'id'?: string;
6637
5769
  /**
6638
- * quantity
6639
- * @type {number}
6640
- * @memberof ShipmentItemModel
5770
+ * Tracking Number
5771
+ * @type {string}
5772
+ * @memberof ShippingConsignmentModel
6641
5773
  */
6642
- 'quantity'?: number;
5774
+ 'trackingNumber'?: string;
6643
5775
  /**
6644
- * item
6645
- * @type {string}
6646
- * @memberof ShipmentItemModel
5776
+ * Parcels
5777
+ * @type {Array<string>}
5778
+ * @memberof ShippingConsignmentModel
6647
5779
  */
6648
- 'itemId'?: string;
5780
+ 'parcelIds'?: Array<string>;
6649
5781
  }
6650
5782
  /**
6651
- * Shipment
5783
+ * Shipping Information
6652
5784
  * @export
6653
- * @interface ShipmentModel
5785
+ * @interface ShippingInformationDTO
6654
5786
  */
6655
- export interface ShipmentModel {
6656
- /**
6657
- * id
6658
- * @type {number}
6659
- * @memberof ShipmentModel
6660
- */
6661
- 'id'?: number;
5787
+ export interface ShippingInformationDTO {
6662
5788
  /**
6663
- * batchId
6664
- * @type {number}
6665
- * @memberof ShipmentModel
5789
+ * Items
5790
+ * @type {Array<BasicItemDTO>}
5791
+ * @memberof ShippingInformationDTO
6666
5792
  */
6667
- 'batchId'?: number;
5793
+ 'items'?: Array<BasicItemDTO>;
6668
5794
  /**
6669
- * courier
5795
+ * Destination Post Code
6670
5796
  * @type {string}
6671
- * @memberof ShipmentModel
5797
+ * @memberof ShippingInformationDTO
6672
5798
  */
6673
- 'courier'?: string;
5799
+ 'postalCode'?: string;
6674
5800
  /**
6675
- * courierService
5801
+ * Destination ISO
6676
5802
  * @type {string}
6677
- * @memberof ShipmentModel
6678
- */
6679
- 'courierService'?: string;
6680
- /**
6681
- * courierServiceDesc
6682
- * @type {string}
6683
- * @memberof ShipmentModel
6684
- */
6685
- 'courierServiceDesc'?: string;
6686
- /**
6687
- * courierReference
6688
- * @type {string}
6689
- * @memberof ShipmentModel
6690
- */
6691
- 'courierReference'?: string;
6692
- /**
6693
- * courierTracking
6694
- * @type {string}
6695
- * @memberof ShipmentModel
6696
- */
6697
- 'courierTracking'?: string;
6698
- /**
6699
- * courierBoxes
6700
- * @type {number}
6701
- * @memberof ShipmentModel
6702
- */
6703
- 'courierBoxes'?: number;
6704
- /**
6705
- * mac
6706
- * @type {string}
6707
- * @memberof ShipmentModel
6708
- */
6709
- 'scannedData'?: string;
6710
- /**
6711
- * date
6712
- * @type {string}
6713
- * @memberof ShipmentModel
6714
- */
6715
- 'dateShipped'?: string;
6716
- /**
6717
- * requestDate
6718
- * @type {string}
6719
- * @memberof ShipmentModel
6720
- */
6721
- 'requestDate'?: string;
6722
- /**
6723
- * provId
6724
- * @type {number}
6725
- * @memberof ShipmentModel
6726
- */
6727
- 'provId'?: number;
6728
- }
6729
- /**
6730
- * Shipment Request
6731
- * @export
6732
- * @interface ShipmentRequestDTO
6733
- */
6734
- export interface ShipmentRequestDTO {
6735
- /**
6736
- * Courier
6737
- * @type {string}
6738
- * @memberof ShipmentRequestDTO
6739
- */
6740
- 'courier'?: ShipmentRequestDTOCourierEnum;
6741
- /**
6742
- *
6743
- * @type {AddressModel}
6744
- * @memberof ShipmentRequestDTO
6745
- */
6746
- 'address'?: AddressModel | null;
6747
- /**
6748
- * Scanned Lines
6749
- * @type {Array<string>}
6750
- * @memberof ShipmentRequestDTO
6751
- */
6752
- 'scannedLines'?: Array<string>;
6753
- /**
6754
- * Service
6755
- * @type {string}
6756
- * @memberof ShipmentRequestDTO
6757
- */
6758
- 'service'?: string;
6759
- /**
6760
- * Date Time
6761
- * @type {string}
6762
- * @memberof ShipmentRequestDTO
6763
- */
6764
- 'shipDate'?: string;
6765
- /**
6766
- * Items
6767
- * @type {Array<ShipmentItemDTO>}
6768
- * @memberof ShipmentRequestDTO
6769
- */
6770
- 'items'?: Array<ShipmentItemDTO>;
6771
- }
6772
-
6773
- export const ShipmentRequestDTOCourierEnum = {
6774
- Dpd: 'DPD',
6775
- ChorltonPallet: 'Chorlton Pallet',
6776
- Pops: 'POPS'
6777
- } as const;
6778
-
6779
- export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
6780
-
6781
- /**
6782
- *
6783
- * @export
6784
- * @interface ShippingConsignmentModel
6785
- */
6786
- export interface ShippingConsignmentModel {
6787
- /**
6788
- *
6789
- * @type {ShippingServiceModel}
6790
- * @memberof ShippingConsignmentModel
6791
- */
6792
- 'service'?: ShippingServiceModel;
6793
- /**
6794
- * ID/Number
6795
- * @type {string}
6796
- * @memberof ShippingConsignmentModel
6797
- */
6798
- 'id'?: string;
6799
- /**
6800
- * Tracking Number
6801
- * @type {string}
6802
- * @memberof ShippingConsignmentModel
6803
- */
6804
- 'trackingNumber'?: string;
6805
- /**
6806
- * Parcels
6807
- * @type {Array<string>}
6808
- * @memberof ShippingConsignmentModel
6809
- */
6810
- 'parcelIds'?: Array<string>;
6811
- }
6812
- /**
6813
- * Shipping Information
6814
- * @export
6815
- * @interface ShippingInformationDTO
6816
- */
6817
- export interface ShippingInformationDTO {
6818
- /**
6819
- * Items
6820
- * @type {Array<BasicItemDTO>}
6821
- * @memberof ShippingInformationDTO
6822
- */
6823
- 'items'?: Array<BasicItemDTO>;
6824
- /**
6825
- * Destination Post Code
6826
- * @type {string}
6827
- * @memberof ShippingInformationDTO
6828
- */
6829
- 'postalCode'?: string;
6830
- /**
6831
- * Destination ISO
6832
- * @type {string}
6833
- * @memberof ShippingInformationDTO
5803
+ * @memberof ShippingInformationDTO
6834
5804
  */
6835
5805
  'iso'?: string;
6836
5806
  }
6837
- /**
6838
- *
6839
- * @export
6840
- * @interface ShippingRequestDTO
6841
- */
6842
- export interface ShippingRequestDTO {
6843
- /**
6844
- * Courier
6845
- * @type {string}
6846
- * @memberof ShippingRequestDTO
6847
- */
6848
- 'courier'?: ShippingRequestDTOCourierEnum;
6849
- /**
6850
- * Courier Service
6851
- * @type {string}
6852
- * @memberof ShippingRequestDTO
6853
- */
6854
- 'service'?: string;
6855
- /**
6856
- * Boxes
6857
- * @type {number}
6858
- * @memberof ShippingRequestDTO
6859
- */
6860
- 'boxes'?: number;
6861
- }
6862
-
6863
- export const ShippingRequestDTOCourierEnum = {
6864
- Dpd: 'DPD',
6865
- ChorltonPallet: 'Chorlton Pallet',
6866
- Pops: 'POPS'
6867
- } as const;
6868
-
6869
- export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
6870
-
6871
5807
  /**
6872
5808
  * Shipping Service
6873
5809
  * @export
@@ -8498,67 +7434,6 @@ export interface SupplierItemEntity {
8498
7434
  */
8499
7435
  'supplierSku'?: string;
8500
7436
  }
8501
- /**
8502
- * Supplier
8503
- * @export
8504
- * @interface SupplierModel
8505
- */
8506
- export interface SupplierModel {
8507
- /**
8508
- * id
8509
- * @type {number}
8510
- * @memberof SupplierModel
8511
- */
8512
- 'id'?: number;
8513
- /**
8514
- * name
8515
- * @type {string}
8516
- * @memberof SupplierModel
8517
- */
8518
- 'name'?: string;
8519
- /**
8520
- * nameShort
8521
- * @type {string}
8522
- * @memberof SupplierModel
8523
- */
8524
- 'shortName'?: string;
8525
- /**
8526
- * email
8527
- * @type {string}
8528
- * @memberof SupplierModel
8529
- */
8530
- 'email'?: string;
8531
- /**
8532
- * phone
8533
- * @type {string}
8534
- * @memberof SupplierModel
8535
- */
8536
- 'phone'?: string;
8537
- /**
8538
- * defaultCourier
8539
- * @type {string}
8540
- * @memberof SupplierModel
8541
- */
8542
- 'defaultCourier'?: string;
8543
- /**
8544
- * defaultCarriage
8545
- * @type {number}
8546
- * @memberof SupplierModel
8547
- */
8548
- 'defaultCarriage'?: number;
8549
- /**
8550
- * account
8551
- * @type {string}
8552
- * @memberof SupplierModel
8553
- */
8554
- 'accountNumber'?: string;
8555
- /**
8556
- * internalAccount
8557
- * @type {string}
8558
- * @memberof SupplierModel
8559
- */
8560
- 'xeroAccountNumber'?: string;
8561
- }
8562
7437
  /**
8563
7438
  * 3CX Wizard Restore From Backup
8564
7439
  * @export
@@ -18164,48 +17039,6 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
18164
17039
  */
18165
17040
  export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
18166
17041
  return {
18167
- /**
18168
- * Delete Shipment (Admin)
18169
- * @summary Delete Shipment (Admin)
18170
- * @param {number} id Order ID
18171
- * @param {number} batchId Batch ID
18172
- * @param {number} shipmentId Shipment ID
18173
- * @param {*} [options] Override http request option.
18174
- * @throws {RequiredError}
18175
- */
18176
- deleteCreateShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18177
- // verify required parameter 'id' is not null or undefined
18178
- assertParamExists('deleteCreateShipment', 'id', id)
18179
- // verify required parameter 'batchId' is not null or undefined
18180
- assertParamExists('deleteCreateShipment', 'batchId', batchId)
18181
- // verify required parameter 'shipmentId' is not null or undefined
18182
- assertParamExists('deleteCreateShipment', 'shipmentId', shipmentId)
18183
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18184
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18185
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18186
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18187
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18188
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18189
- let baseOptions;
18190
- if (configuration) {
18191
- baseOptions = configuration.baseOptions;
18192
- }
18193
-
18194
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
18195
- const localVarHeaderParameter = {} as any;
18196
- const localVarQueryParameter = {} as any;
18197
-
18198
-
18199
-
18200
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18201
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18202
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18203
-
18204
- return {
18205
- url: toPathString(localVarUrlObj),
18206
- options: localVarRequestOptions,
18207
- };
18208
- },
18209
17042
  /**
18210
17043
  * Delete Orders (Beta)
18211
17044
  * @summary Delete Orders (Beta)
@@ -18275,16 +17108,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18275
17108
  };
18276
17109
  },
18277
17110
  /**
18278
- * Get Order Details (Admin)
18279
- * @summary Get Order Details (Admin)
17111
+ * Get Editable Order (Beta)
17112
+ * @summary Get Editable Order (Beta)
18280
17113
  * @param {number} id Order ID
18281
17114
  * @param {*} [options] Override http request option.
18282
17115
  * @throws {RequiredError}
18283
17116
  */
18284
- getGetAdminOrderDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17117
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18285
17118
  // verify required parameter 'id' is not null or undefined
18286
- assertParamExists('getGetAdminOrderDetails', 'id', id)
18287
- const localVarPath = `/admin/orders/{id}/details`
17119
+ assertParamExists('getGetEditableOrder', 'id', id)
17120
+ const localVarPath = `/orders/{id}/views/editable`
18288
17121
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18289
17122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18290
17123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18309,17 +17142,20 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18309
17142
  };
18310
17143
  },
18311
17144
  /**
18312
- * Get Editable Order (Beta)
18313
- * @summary Get Editable Order (Beta)
18314
- * @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
18315
17154
  * @param {*} [options] Override http request option.
18316
17155
  * @throws {RequiredError}
18317
17156
  */
18318
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18319
- // verify required parameter 'id' is not null or undefined
18320
- assertParamExists('getGetEditableOrder', 'id', id)
18321
- const localVarPath = `/orders/{id}/views/editable`
18322
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
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`;
18323
17159
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18324
17160
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18325
17161
  let baseOptions;
@@ -18331,80 +17167,9 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18331
17167
  const localVarHeaderParameter = {} as any;
18332
17168
  const localVarQueryParameter = {} as any;
18333
17169
 
18334
-
18335
-
18336
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18337
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18338
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18339
-
18340
- return {
18341
- url: toPathString(localVarUrlObj),
18342
- options: localVarRequestOptions,
18343
- };
18344
- },
18345
- /**
18346
- * Download Order PDF
18347
- * @summary Download Order PDF
18348
- * @param {number} id Order ID
18349
- * @param {*} [options] Override http request option.
18350
- * @throws {RequiredError}
18351
- */
18352
- getGetOrderPdf: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18353
- // verify required parameter 'id' is not null or undefined
18354
- assertParamExists('getGetOrderPdf', 'id', id)
18355
- const localVarPath = `/orders/{id}/pdf`
18356
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18357
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18358
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18359
- let baseOptions;
18360
- if (configuration) {
18361
- baseOptions = configuration.baseOptions;
18362
- }
18363
-
18364
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18365
- const localVarHeaderParameter = {} as any;
18366
- const localVarQueryParameter = {} as any;
18367
-
18368
-
18369
-
18370
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18371
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18372
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18373
-
18374
- return {
18375
- url: toPathString(localVarUrlObj),
18376
- options: localVarRequestOptions,
18377
- };
18378
- },
18379
- /**
18380
- * Get Orders (Beta)
18381
- * @summary Get Orders (Beta)
18382
- * @param {number} [pageSize] Number Of Results
18383
- * @param {number} [page] Page Number
18384
- * @param {string} [search] Search
18385
- * @param {boolean | null} [fulfillable] Fulfillable
18386
- * @param {GetGetOrdersStatusEnum} [status] Status
18387
- * @param {GetGetOrdersFilterEnum} [filter] Filter
18388
- * @param {number | null} [customerId] Customer ID
18389
- * @param {*} [options] Override http request option.
18390
- * @throws {RequiredError}
18391
- */
18392
- getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18393
- const localVarPath = `/orders`;
18394
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18395
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18396
- let baseOptions;
18397
- if (configuration) {
18398
- baseOptions = configuration.baseOptions;
18399
- }
18400
-
18401
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18402
- const localVarHeaderParameter = {} as any;
18403
- const localVarQueryParameter = {} as any;
18404
-
18405
- if (pageSize !== undefined) {
18406
- localVarQueryParameter['pageSize'] = pageSize;
18407
- }
17170
+ if (pageSize !== undefined) {
17171
+ localVarQueryParameter['pageSize'] = pageSize;
17172
+ }
18408
17173
 
18409
17174
  if (page !== undefined) {
18410
17175
  localVarQueryParameter['page'] = page;
@@ -18441,44 +17206,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18441
17206
  options: localVarRequestOptions,
18442
17207
  };
18443
17208
  },
18444
- /**
18445
- * Add Order Note
18446
- * @summary Add Order Note
18447
- * @param {number} id Order ID
18448
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18449
- * @param {*} [options] Override http request option.
18450
- * @throws {RequiredError}
18451
- */
18452
- postAddOrderNote: async (id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18453
- // verify required parameter 'id' is not null or undefined
18454
- assertParamExists('postAddOrderNote', 'id', id)
18455
- const localVarPath = `/admin/orders/{id}/notes`
18456
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18457
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18458
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18459
- let baseOptions;
18460
- if (configuration) {
18461
- baseOptions = configuration.baseOptions;
18462
- }
18463
-
18464
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18465
- const localVarHeaderParameter = {} as any;
18466
- const localVarQueryParameter = {} as any;
18467
-
18468
-
18469
-
18470
- localVarHeaderParameter['Content-Type'] = 'application/json';
18471
-
18472
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18473
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18474
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18475
- localVarRequestOptions.data = serializeDataIfNeeded(postAddOrderNoteRequest, localVarRequestOptions, configuration)
18476
-
18477
- return {
18478
- url: toPathString(localVarUrlObj),
18479
- options: localVarRequestOptions,
18480
- };
18481
- },
18482
17209
  /**
18483
17210
  * Create An Order (Admin)
18484
17211
  * @summary Create An Order (Admin)
@@ -18518,90 +17245,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18518
17245
  options: localVarRequestOptions,
18519
17246
  };
18520
17247
  },
18521
- /**
18522
- * Create Shipping Consignment
18523
- * @summary Create Shipping Consignment
18524
- * @param {number} id Order ID
18525
- * @param {number} shipmentId Shipment ID
18526
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18527
- * @param {*} [options] Override http request option.
18528
- * @throws {RequiredError}
18529
- */
18530
- postCreateConsignment: async (id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18531
- // verify required parameter 'id' is not null or undefined
18532
- assertParamExists('postCreateConsignment', 'id', id)
18533
- // verify required parameter 'shipmentId' is not null or undefined
18534
- assertParamExists('postCreateConsignment', 'shipmentId', shipmentId)
18535
- const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/consignment`
18536
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18537
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18538
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18539
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18540
- let baseOptions;
18541
- if (configuration) {
18542
- baseOptions = configuration.baseOptions;
18543
- }
18544
-
18545
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18546
- const localVarHeaderParameter = {} as any;
18547
- const localVarQueryParameter = {} as any;
18548
-
18549
-
18550
-
18551
- localVarHeaderParameter['Content-Type'] = 'application/json';
18552
-
18553
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18554
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18555
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18556
- localVarRequestOptions.data = serializeDataIfNeeded(shippingRequestDTO, localVarRequestOptions, configuration)
18557
-
18558
- return {
18559
- url: toPathString(localVarUrlObj),
18560
- options: localVarRequestOptions,
18561
- };
18562
- },
18563
- /**
18564
- * Create Shipment (Admin)
18565
- * @summary Create Shipment (Admin)
18566
- * @param {number} id Order ID
18567
- * @param {number} batchId Batch ID
18568
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18569
- * @param {*} [options] Override http request option.
18570
- * @throws {RequiredError}
18571
- */
18572
- postCreateShipment: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18573
- // verify required parameter 'id' is not null or undefined
18574
- assertParamExists('postCreateShipment', 'id', id)
18575
- // verify required parameter 'batchId' is not null or undefined
18576
- assertParamExists('postCreateShipment', 'batchId', batchId)
18577
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18578
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18579
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18580
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18581
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18582
- let baseOptions;
18583
- if (configuration) {
18584
- baseOptions = configuration.baseOptions;
18585
- }
18586
-
18587
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18588
- const localVarHeaderParameter = {} as any;
18589
- const localVarQueryParameter = {} as any;
18590
-
18591
-
18592
-
18593
- localVarHeaderParameter['Content-Type'] = 'application/json';
18594
-
18595
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18596
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18597
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18598
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18599
-
18600
- return {
18601
- url: toPathString(localVarUrlObj),
18602
- options: localVarRequestOptions,
18603
- };
18604
- },
18605
17248
  /**
18606
17249
  * Create An Order (Beta)
18607
17250
  * @summary Create An Order (Beta)
@@ -18642,17 +17285,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18642
17285
  };
18643
17286
  },
18644
17287
  /**
18645
- * Issue Credit (Admin)
18646
- * @summary Issue Credit (Admin)
17288
+ * Update An Order (Admin)
17289
+ * @summary Update An Order (Admin)
18647
17290
  * @param {number} id Order ID
18648
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
17291
+ * @param {boolean} [readonly] Readonly Order
17292
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
18649
17293
  * @param {*} [options] Override http request option.
18650
17294
  * @throws {RequiredError}
18651
17295
  */
18652
- postIssueCredit: async (id: number, creditNoteDTO?: CreditNoteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17296
+ putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18653
17297
  // verify required parameter 'id' is not null or undefined
18654
- assertParamExists('postIssueCredit', 'id', id)
18655
- const localVarPath = `/admin/orders/{id}/credit`
17298
+ assertParamExists('putUpdateAdminOrder', 'id', id)
17299
+ const localVarPath = `/admin/orders/{id}`
18656
17300
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18657
17301
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18658
17302
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18661,63 +17305,22 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18661
17305
  baseOptions = configuration.baseOptions;
18662
17306
  }
18663
17307
 
18664
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18665
- const localVarHeaderParameter = {} as any;
18666
- const localVarQueryParameter = {} as any;
18667
-
18668
-
18669
-
18670
- localVarHeaderParameter['Content-Type'] = 'application/json';
18671
-
18672
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18673
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18674
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18675
- localVarRequestOptions.data = serializeDataIfNeeded(creditNoteDTO, localVarRequestOptions, configuration)
18676
-
18677
- return {
18678
- url: toPathString(localVarUrlObj),
18679
- options: localVarRequestOptions,
18680
- };
18681
- },
18682
- /**
18683
- * Print Shipment Label
18684
- * @summary Print Shipment Label
18685
- * @param {number} id Order ID
18686
- * @param {number} shipmentId Shipment ID
18687
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18688
- * @param {*} [options] Override http request option.
18689
- * @throws {RequiredError}
18690
- */
18691
- postPrintShippingLabel: async (id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18692
- // verify required parameter 'id' is not null or undefined
18693
- assertParamExists('postPrintShippingLabel', 'id', id)
18694
- // verify required parameter 'shipmentId' is not null or undefined
18695
- assertParamExists('postPrintShippingLabel', 'shipmentId', shipmentId)
18696
- // verify required parameter 'printer' is not null or undefined
18697
- assertParamExists('postPrintShippingLabel', 'printer', printer)
18698
- const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/label/print`
18699
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18700
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18701
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18702
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18703
- let baseOptions;
18704
- if (configuration) {
18705
- baseOptions = configuration.baseOptions;
18706
- }
18707
-
18708
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17308
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18709
17309
  const localVarHeaderParameter = {} as any;
18710
17310
  const localVarQueryParameter = {} as any;
18711
17311
 
18712
- if (printer !== undefined) {
18713
- localVarQueryParameter['printer'] = printer;
17312
+ if (readonly !== undefined) {
17313
+ localVarQueryParameter['readonly'] = readonly;
18714
17314
  }
18715
17315
 
18716
17316
 
18717
17317
 
17318
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17319
+
18718
17320
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18719
17321
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18720
17322
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17323
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18721
17324
 
18722
17325
  return {
18723
17326
  url: toPathString(localVarUrlObj),
@@ -18725,19 +17328,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18725
17328
  };
18726
17329
  },
18727
17330
  /**
18728
- * Send Order Email
18729
- * @summary Send Order Email
17331
+ * Update An Order (Beta)
17332
+ * @summary Update An Order (Beta)
18730
17333
  * @param {number} id Order ID
18731
- * @param {string} email Email Address
17334
+ * @param {boolean} [readonly] Readonly Order
17335
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18732
17336
  * @param {*} [options] Override http request option.
18733
17337
  * @throws {RequiredError}
18734
17338
  */
18735
- postSendOrderEmail: async (id: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17339
+ putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18736
17340
  // verify required parameter 'id' is not null or undefined
18737
- assertParamExists('postSendOrderEmail', 'id', id)
18738
- // verify required parameter 'email' is not null or undefined
18739
- assertParamExists('postSendOrderEmail', 'email', email)
18740
- const localVarPath = `/admin/orders/{id}/email/send`
17341
+ assertParamExists('putUpdateOrder', 'id', id)
17342
+ const localVarPath = `/orders/{id}`
18741
17343
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18742
17344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18743
17345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18746,559 +17348,122 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18746
17348
  baseOptions = configuration.baseOptions;
18747
17349
  }
18748
17350
 
18749
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17351
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18750
17352
  const localVarHeaderParameter = {} as any;
18751
17353
  const localVarQueryParameter = {} as any;
18752
17354
 
18753
- if (email !== undefined) {
18754
- localVarQueryParameter['email'] = email;
18755
- }
18756
-
18757
-
18758
-
18759
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18760
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18761
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18762
-
18763
- return {
18764
- url: toPathString(localVarUrlObj),
18765
- options: localVarRequestOptions,
18766
- };
18767
- },
18768
- /**
18769
- * Send Supplier Email
18770
- * @summary Send Supplier Email
18771
- * @param {number} id Order ID
18772
- * @param {number} batchId Batch ID
18773
- * @param {*} [options] Override http request option.
18774
- * @throws {RequiredError}
18775
- */
18776
- postSendSupplierEmail: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18777
- // verify required parameter 'id' is not null or undefined
18778
- assertParamExists('postSendSupplierEmail', 'id', id)
18779
- // verify required parameter 'batchId' is not null or undefined
18780
- assertParamExists('postSendSupplierEmail', 'batchId', batchId)
18781
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/email/send`
18782
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18783
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18784
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18785
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18786
- let baseOptions;
18787
- if (configuration) {
18788
- baseOptions = configuration.baseOptions;
18789
- }
18790
-
18791
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18792
- const localVarHeaderParameter = {} as any;
18793
- const localVarQueryParameter = {} as any;
18794
-
18795
-
18796
-
18797
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18798
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18799
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18800
-
18801
- return {
18802
- url: toPathString(localVarUrlObj),
18803
- options: localVarRequestOptions,
18804
- };
18805
- },
18806
- /**
18807
- * Split Order
18808
- * @summary Split Order
18809
- * @param {number} id Order ID
18810
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
18811
- * @param {*} [options] Override http request option.
18812
- * @throws {RequiredError}
18813
- */
18814
- postSplitOrder: async (id: number, postSplitOrderRequest?: PostSplitOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18815
- // verify required parameter 'id' is not null or undefined
18816
- assertParamExists('postSplitOrder', 'id', id)
18817
- const localVarPath = `/admin/orders/{id}/split`
18818
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18819
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18820
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18821
- let baseOptions;
18822
- if (configuration) {
18823
- baseOptions = configuration.baseOptions;
18824
- }
18825
-
18826
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18827
- const localVarHeaderParameter = {} as any;
18828
- const localVarQueryParameter = {} as any;
18829
-
18830
-
18831
-
18832
- localVarHeaderParameter['Content-Type'] = 'application/json';
18833
-
18834
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18835
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18836
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18837
- localVarRequestOptions.data = serializeDataIfNeeded(postSplitOrderRequest, localVarRequestOptions, configuration)
18838
-
18839
- return {
18840
- url: toPathString(localVarUrlObj),
18841
- options: localVarRequestOptions,
18842
- };
18843
- },
18844
- /**
18845
- * Allocate Items To Supplier
18846
- * @summary Allocate Items To Supplier
18847
- * @param {number} id Order ID
18848
- * @param {number} supplierId Supplier ID
18849
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
18850
- * @param {*} [options] Override http request option.
18851
- * @throws {RequiredError}
18852
- */
18853
- putAllocateItems: async (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18854
- // verify required parameter 'id' is not null or undefined
18855
- assertParamExists('putAllocateItems', 'id', id)
18856
- // verify required parameter 'supplierId' is not null or undefined
18857
- assertParamExists('putAllocateItems', 'supplierId', supplierId)
18858
- const localVarPath = `/admin/orders/{id}/items/allocate`
18859
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18860
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18861
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18862
- let baseOptions;
18863
- if (configuration) {
18864
- baseOptions = configuration.baseOptions;
18865
- }
18866
-
18867
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18868
- const localVarHeaderParameter = {} as any;
18869
- const localVarQueryParameter = {} as any;
18870
-
18871
- if (supplierId !== undefined) {
18872
- localVarQueryParameter['supplierId'] = supplierId;
18873
- }
18874
-
18875
-
18876
-
18877
- localVarHeaderParameter['Content-Type'] = 'application/json';
18878
-
18879
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18880
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18881
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18882
- localVarRequestOptions.data = serializeDataIfNeeded(putAllocateItemsRequest, localVarRequestOptions, configuration)
18883
-
18884
- return {
18885
- url: toPathString(localVarUrlObj),
18886
- options: localVarRequestOptions,
18887
- };
18888
- },
18889
- /**
18890
- * Update Shipment (Admin)
18891
- * @summary Update Shipment (Admin)
18892
- * @param {number} id Order ID
18893
- * @param {number} batchId Batch ID
18894
- * @param {number} shipmentId Shipment ID
18895
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18896
- * @param {*} [options] Override http request option.
18897
- * @throws {RequiredError}
18898
- */
18899
- putCreateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18900
- // verify required parameter 'id' is not null or undefined
18901
- assertParamExists('putCreateShipment', 'id', id)
18902
- // verify required parameter 'batchId' is not null or undefined
18903
- assertParamExists('putCreateShipment', 'batchId', batchId)
18904
- // verify required parameter 'shipmentId' is not null or undefined
18905
- assertParamExists('putCreateShipment', 'shipmentId', shipmentId)
18906
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18907
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18908
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18909
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18910
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18911
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18912
- let baseOptions;
18913
- if (configuration) {
18914
- baseOptions = configuration.baseOptions;
18915
- }
18916
-
18917
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18918
- const localVarHeaderParameter = {} as any;
18919
- const localVarQueryParameter = {} as any;
18920
-
18921
-
18922
-
18923
- localVarHeaderParameter['Content-Type'] = 'application/json';
18924
-
18925
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18926
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18927
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18928
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18929
-
18930
- return {
18931
- url: toPathString(localVarUrlObj),
18932
- options: localVarRequestOptions,
18933
- };
18934
- },
18935
- /**
18936
- * Update An Order (Admin)
18937
- * @summary Update An Order (Admin)
18938
- * @param {number} id Order ID
18939
- * @param {boolean} [readonly] Readonly Order
18940
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
18941
- * @param {*} [options] Override http request option.
18942
- * @throws {RequiredError}
18943
- */
18944
- putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18945
- // verify required parameter 'id' is not null or undefined
18946
- assertParamExists('putUpdateAdminOrder', 'id', id)
18947
- const localVarPath = `/admin/orders/{id}`
18948
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18949
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18950
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18951
- let baseOptions;
18952
- if (configuration) {
18953
- baseOptions = configuration.baseOptions;
18954
- }
18955
-
18956
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18957
- const localVarHeaderParameter = {} as any;
18958
- const localVarQueryParameter = {} as any;
18959
-
18960
- if (readonly !== undefined) {
18961
- localVarQueryParameter['readonly'] = readonly;
18962
- }
18963
-
18964
-
18965
-
18966
- localVarHeaderParameter['Content-Type'] = 'application/json';
18967
-
18968
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18969
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18970
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18971
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18972
-
18973
- return {
18974
- url: toPathString(localVarUrlObj),
18975
- options: localVarRequestOptions,
18976
- };
18977
- },
18978
- /**
18979
- * Update An Order (Beta)
18980
- * @summary Update An Order (Beta)
18981
- * @param {number} id Order ID
18982
- * @param {boolean} [readonly] Readonly Order
18983
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18984
- * @param {*} [options] Override http request option.
18985
- * @throws {RequiredError}
18986
- */
18987
- putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18988
- // verify required parameter 'id' is not null or undefined
18989
- assertParamExists('putUpdateOrder', 'id', id)
18990
- const localVarPath = `/orders/{id}`
18991
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18992
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18993
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18994
- let baseOptions;
18995
- if (configuration) {
18996
- baseOptions = configuration.baseOptions;
18997
- }
18998
-
18999
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19000
- const localVarHeaderParameter = {} as any;
19001
- const localVarQueryParameter = {} as any;
19002
-
19003
- if (readonly !== undefined) {
19004
- localVarQueryParameter['readonly'] = readonly;
17355
+ if (readonly !== undefined) {
17356
+ localVarQueryParameter['readonly'] = readonly;
19005
17357
  }
19006
17358
 
19007
17359
 
19008
17360
 
19009
17361
  localVarHeaderParameter['Content-Type'] = 'application/json';
19010
-
19011
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19012
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19013
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19014
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
19015
-
19016
- return {
19017
- url: toPathString(localVarUrlObj),
19018
- options: localVarRequestOptions,
19019
- };
19020
- },
19021
- }
19022
- };
19023
-
19024
- /**
19025
- * OrdersApi - functional programming interface
19026
- * @export
19027
- */
19028
- export const OrdersApiFp = function(configuration?: Configuration) {
19029
- const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
19030
- return {
19031
- /**
19032
- * Delete Shipment (Admin)
19033
- * @summary Delete Shipment (Admin)
19034
- * @param {number} id Order ID
19035
- * @param {number} batchId Batch ID
19036
- * @param {number} shipmentId Shipment ID
19037
- * @param {*} [options] Override http request option.
19038
- * @throws {RequiredError}
19039
- */
19040
- async deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19041
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCreateShipment(id, batchId, shipmentId, options);
19042
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19043
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteCreateShipment']?.[localVarOperationServerIndex]?.url;
19044
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19045
- },
19046
- /**
19047
- * Delete Orders (Beta)
19048
- * @summary Delete Orders (Beta)
19049
- * @param {number} id Order ID
19050
- * @param {*} [options] Override http request option.
19051
- * @throws {RequiredError}
19052
- */
19053
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19054
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19055
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19056
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19057
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19058
- },
19059
- /**
19060
- * Get Editable Order (Admin)
19061
- * @summary Get Editable Order (Admin)
19062
- * @param {number} id Order ID
19063
- * @param {*} [options] Override http request option.
19064
- * @throws {RequiredError}
19065
- */
19066
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
19067
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19068
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19069
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19070
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19071
- },
19072
- /**
19073
- * Get Order Details (Admin)
19074
- * @summary Get Order Details (Admin)
19075
- * @param {number} id Order ID
19076
- * @param {*} [options] Override http request option.
19077
- * @throws {RequiredError}
19078
- */
19079
- async getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
19080
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminOrderDetails(id, options);
19081
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19082
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
19083
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19084
- },
19085
- /**
19086
- * Get Editable Order (Beta)
19087
- * @summary Get Editable Order (Beta)
19088
- * @param {number} id Order ID
19089
- * @param {*} [options] Override http request option.
19090
- * @throws {RequiredError}
19091
- */
19092
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
19093
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19094
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19095
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19096
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19097
- },
19098
- /**
19099
- * Download Order PDF
19100
- * @summary Download Order PDF
19101
- * @param {number} id Order ID
19102
- * @param {*} [options] Override http request option.
19103
- * @throws {RequiredError}
19104
- */
19105
- async getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19106
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderPdf(id, options);
19107
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19108
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
19109
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19110
- },
19111
- /**
19112
- * Get Orders (Beta)
19113
- * @summary Get Orders (Beta)
19114
- * @param {number} [pageSize] Number Of Results
19115
- * @param {number} [page] Page Number
19116
- * @param {string} [search] Search
19117
- * @param {boolean | null} [fulfillable] Fulfillable
19118
- * @param {GetGetOrdersStatusEnum} [status] Status
19119
- * @param {GetGetOrdersFilterEnum} [filter] Filter
19120
- * @param {number | null} [customerId] Customer ID
19121
- * @param {*} [options] Override http request option.
19122
- * @throws {RequiredError}
19123
- */
19124
- 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>> {
19125
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19126
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19127
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19128
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19129
- },
19130
- /**
19131
- * Add Order Note
19132
- * @summary Add Order Note
19133
- * @param {number} id Order ID
19134
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19135
- * @param {*} [options] Override http request option.
19136
- * @throws {RequiredError}
19137
- */
19138
- async postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19139
- const localVarAxiosArgs = await localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options);
19140
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19141
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postAddOrderNote']?.[localVarOperationServerIndex]?.url;
19142
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19143
- },
19144
- /**
19145
- * Create An Order (Admin)
19146
- * @summary Create An Order (Admin)
19147
- * @param {boolean} [readonly] Readonly Order
19148
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19149
- * @param {*} [options] Override http request option.
19150
- * @throws {RequiredError}
19151
- */
19152
- async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19153
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19154
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19155
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19156
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19157
- },
19158
- /**
19159
- * Create Shipping Consignment
19160
- * @summary Create Shipping Consignment
19161
- * @param {number} id Order ID
19162
- * @param {number} shipmentId Shipment ID
19163
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19164
- * @param {*} [options] Override http request option.
19165
- * @throws {RequiredError}
19166
- */
19167
- async postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19168
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options);
19169
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19170
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateConsignment']?.[localVarOperationServerIndex]?.url;
19171
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19172
- },
19173
- /**
19174
- * Create Shipment (Admin)
19175
- * @summary Create Shipment (Admin)
19176
- * @param {number} id Order ID
19177
- * @param {number} batchId Batch ID
19178
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19179
- * @param {*} [options] Override http request option.
19180
- * @throws {RequiredError}
19181
- */
19182
- async postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19183
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options);
19184
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19185
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
19186
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19187
- },
19188
- /**
19189
- * Create An Order (Beta)
19190
- * @summary Create An Order (Beta)
19191
- * @param {boolean} [readonly] Readonly Order
19192
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19193
- * @param {*} [options] Override http request option.
19194
- * @throws {RequiredError}
19195
- */
19196
- async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19197
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19198
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19199
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19200
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19201
- },
19202
- /**
19203
- * Issue Credit (Admin)
19204
- * @summary Issue Credit (Admin)
19205
- * @param {number} id Order ID
19206
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19207
- * @param {*} [options] Override http request option.
19208
- * @throws {RequiredError}
19209
- */
19210
- async postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditNoteModel>> {
19211
- const localVarAxiosArgs = await localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options);
19212
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19213
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postIssueCredit']?.[localVarOperationServerIndex]?.url;
19214
- 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
+ };
19215
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 {
19216
17383
  /**
19217
- * Print Shipment Label
19218
- * @summary Print Shipment Label
17384
+ * Delete Orders (Beta)
17385
+ * @summary Delete Orders (Beta)
19219
17386
  * @param {number} id Order ID
19220
- * @param {number} shipmentId Shipment ID
19221
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19222
17387
  * @param {*} [options] Override http request option.
19223
17388
  * @throws {RequiredError}
19224
17389
  */
19225
- async postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19226
- 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);
19227
17392
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19228
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17393
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19229
17394
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19230
17395
  },
19231
17396
  /**
19232
- * Send Order Email
19233
- * @summary Send Order Email
17397
+ * Get Editable Order (Admin)
17398
+ * @summary Get Editable Order (Admin)
19234
17399
  * @param {number} id Order ID
19235
- * @param {string} email Email Address
19236
17400
  * @param {*} [options] Override http request option.
19237
17401
  * @throws {RequiredError}
19238
17402
  */
19239
- async postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19240
- 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);
19241
17405
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19242
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendOrderEmail']?.[localVarOperationServerIndex]?.url;
17406
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19243
17407
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19244
17408
  },
19245
17409
  /**
19246
- * Send Supplier Email
19247
- * @summary Send Supplier Email
17410
+ * Get Editable Order (Beta)
17411
+ * @summary Get Editable Order (Beta)
19248
17412
  * @param {number} id Order ID
19249
- * @param {number} batchId Batch ID
19250
17413
  * @param {*} [options] Override http request option.
19251
17414
  * @throws {RequiredError}
19252
17415
  */
19253
- async postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19254
- 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);
19255
17418
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19256
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendSupplierEmail']?.[localVarOperationServerIndex]?.url;
17419
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19257
17420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19258
17421
  },
19259
17422
  /**
19260
- * Split Order
19261
- * @summary Split Order
19262
- * @param {number} id Order ID
19263
- * @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
19264
17432
  * @param {*} [options] Override http request option.
19265
17433
  * @throws {RequiredError}
19266
17434
  */
19267
- async postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19268
- 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);
19269
17437
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19270
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSplitOrder']?.[localVarOperationServerIndex]?.url;
17438
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19271
17439
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19272
17440
  },
19273
17441
  /**
19274
- * Allocate Items To Supplier
19275
- * @summary Allocate Items To Supplier
19276
- * @param {number} id Order ID
19277
- * @param {number} supplierId Supplier ID
19278
- * @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
19279
17446
  * @param {*} [options] Override http request option.
19280
17447
  * @throws {RequiredError}
19281
17448
  */
19282
- async putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19283
- 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);
19284
17451
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19285
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
17452
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19286
17453
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19287
17454
  },
19288
17455
  /**
19289
- * Update Shipment (Admin)
19290
- * @summary Update Shipment (Admin)
19291
- * @param {number} id Order ID
19292
- * @param {number} batchId Batch ID
19293
- * @param {number} shipmentId Shipment ID
19294
- * @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
19295
17460
  * @param {*} [options] Override http request option.
19296
17461
  * @throws {RequiredError}
19297
17462
  */
19298
- async putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19299
- 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);
19300
17465
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19301
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putCreateShipment']?.[localVarOperationServerIndex]?.url;
17466
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19302
17467
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19303
17468
  },
19304
17469
  /**
@@ -19341,18 +17506,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
19341
17506
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19342
17507
  const localVarFp = OrdersApiFp(configuration)
19343
17508
  return {
19344
- /**
19345
- * Delete Shipment (Admin)
19346
- * @summary Delete Shipment (Admin)
19347
- * @param {number} id Order ID
19348
- * @param {number} batchId Batch ID
19349
- * @param {number} shipmentId Shipment ID
19350
- * @param {*} [options] Override http request option.
19351
- * @throws {RequiredError}
19352
- */
19353
- deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19354
- return localVarFp.deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
19355
- },
19356
17509
  /**
19357
17510
  * Delete Orders (Beta)
19358
17511
  * @summary Delete Orders (Beta)
@@ -19373,16 +17526,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19373
17526
  getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
19374
17527
  return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
19375
17528
  },
19376
- /**
19377
- * Get Order Details (Admin)
19378
- * @summary Get Order Details (Admin)
19379
- * @param {number} id Order ID
19380
- * @param {*} [options] Override http request option.
19381
- * @throws {RequiredError}
19382
- */
19383
- getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
19384
- return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
19385
- },
19386
17529
  /**
19387
17530
  * Get Editable Order (Beta)
19388
17531
  * @summary Get Editable Order (Beta)
@@ -19393,16 +17536,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19393
17536
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
19394
17537
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
19395
17538
  },
19396
- /**
19397
- * Download Order PDF
19398
- * @summary Download Order PDF
19399
- * @param {number} id Order ID
19400
- * @param {*} [options] Override http request option.
19401
- * @throws {RequiredError}
19402
- */
19403
- getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19404
- return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
19405
- },
19406
17539
  /**
19407
17540
  * Get Orders (Beta)
19408
17541
  * @summary Get Orders (Beta)
@@ -19419,17 +17552,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19419
17552
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
19420
17553
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
19421
17554
  },
19422
- /**
19423
- * Add Order Note
19424
- * @summary Add Order Note
19425
- * @param {number} id Order ID
19426
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19427
- * @param {*} [options] Override http request option.
19428
- * @throws {RequiredError}
19429
- */
19430
- postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19431
- return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(axios, basePath));
19432
- },
19433
17555
  /**
19434
17556
  * Create An Order (Admin)
19435
17557
  * @summary Create An Order (Admin)
@@ -19441,30 +17563,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19441
17563
  postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19442
17564
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
19443
17565
  },
19444
- /**
19445
- * Create Shipping Consignment
19446
- * @summary Create Shipping Consignment
19447
- * @param {number} id Order ID
19448
- * @param {number} shipmentId Shipment ID
19449
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19450
- * @param {*} [options] Override http request option.
19451
- * @throws {RequiredError}
19452
- */
19453
- postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19454
- return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(axios, basePath));
19455
- },
19456
- /**
19457
- * Create Shipment (Admin)
19458
- * @summary Create Shipment (Admin)
19459
- * @param {number} id Order ID
19460
- * @param {number} batchId Batch ID
19461
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19462
- * @param {*} [options] Override http request option.
19463
- * @throws {RequiredError}
19464
- */
19465
- postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19466
- return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19467
- },
19468
17566
  /**
19469
17567
  * Create An Order (Beta)
19470
17568
  * @summary Create An Order (Beta)
@@ -19476,87 +17574,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19476
17574
  postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19477
17575
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
19478
17576
  },
19479
- /**
19480
- * Issue Credit (Admin)
19481
- * @summary Issue Credit (Admin)
19482
- * @param {number} id Order ID
19483
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19484
- * @param {*} [options] Override http request option.
19485
- * @throws {RequiredError}
19486
- */
19487
- postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): AxiosPromise<CreditNoteModel> {
19488
- return localVarFp.postIssueCredit(id, creditNoteDTO, options).then((request) => request(axios, basePath));
19489
- },
19490
- /**
19491
- * Print Shipment Label
19492
- * @summary Print Shipment Label
19493
- * @param {number} id Order ID
19494
- * @param {number} shipmentId Shipment ID
19495
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19496
- * @param {*} [options] Override http request option.
19497
- * @throws {RequiredError}
19498
- */
19499
- postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19500
- return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
19501
- },
19502
- /**
19503
- * Send Order Email
19504
- * @summary Send Order Email
19505
- * @param {number} id Order ID
19506
- * @param {string} email Email Address
19507
- * @param {*} [options] Override http request option.
19508
- * @throws {RequiredError}
19509
- */
19510
- postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19511
- return localVarFp.postSendOrderEmail(id, email, options).then((request) => request(axios, basePath));
19512
- },
19513
- /**
19514
- * Send Supplier Email
19515
- * @summary Send Supplier Email
19516
- * @param {number} id Order ID
19517
- * @param {number} batchId Batch ID
19518
- * @param {*} [options] Override http request option.
19519
- * @throws {RequiredError}
19520
- */
19521
- postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19522
- return localVarFp.postSendSupplierEmail(id, batchId, options).then((request) => request(axios, basePath));
19523
- },
19524
- /**
19525
- * Split Order
19526
- * @summary Split Order
19527
- * @param {number} id Order ID
19528
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19529
- * @param {*} [options] Override http request option.
19530
- * @throws {RequiredError}
19531
- */
19532
- postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19533
- return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(axios, basePath));
19534
- },
19535
- /**
19536
- * Allocate Items To Supplier
19537
- * @summary Allocate Items To Supplier
19538
- * @param {number} id Order ID
19539
- * @param {number} supplierId Supplier ID
19540
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19541
- * @param {*} [options] Override http request option.
19542
- * @throws {RequiredError}
19543
- */
19544
- putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19545
- return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
19546
- },
19547
- /**
19548
- * Update Shipment (Admin)
19549
- * @summary Update Shipment (Admin)
19550
- * @param {number} id Order ID
19551
- * @param {number} batchId Batch ID
19552
- * @param {number} shipmentId Shipment ID
19553
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19554
- * @param {*} [options] Override http request option.
19555
- * @throws {RequiredError}
19556
- */
19557
- putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19558
- return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19559
- },
19560
17577
  /**
19561
17578
  * Update An Order (Admin)
19562
17579
  * @summary Update An Order (Admin)
@@ -19591,20 +17608,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19591
17608
  * @extends {BaseAPI}
19592
17609
  */
19593
17610
  export class OrdersApi extends BaseAPI {
19594
- /**
19595
- * Delete Shipment (Admin)
19596
- * @summary Delete Shipment (Admin)
19597
- * @param {number} id Order ID
19598
- * @param {number} batchId Batch ID
19599
- * @param {number} shipmentId Shipment ID
19600
- * @param {*} [options] Override http request option.
19601
- * @throws {RequiredError}
19602
- * @memberof OrdersApi
19603
- */
19604
- public deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
19605
- return OrdersApiFp(this.configuration).deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
19606
- }
19607
-
19608
17611
  /**
19609
17612
  * Delete Orders (Beta)
19610
17613
  * @summary Delete Orders (Beta)
@@ -19629,18 +17632,6 @@ export class OrdersApi extends BaseAPI {
19629
17632
  return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
19630
17633
  }
19631
17634
 
19632
- /**
19633
- * Get Order Details (Admin)
19634
- * @summary Get Order Details (Admin)
19635
- * @param {number} id Order ID
19636
- * @param {*} [options] Override http request option.
19637
- * @throws {RequiredError}
19638
- * @memberof OrdersApi
19639
- */
19640
- public getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig) {
19641
- return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
19642
- }
19643
-
19644
17635
  /**
19645
17636
  * Get Editable Order (Beta)
19646
17637
  * @summary Get Editable Order (Beta)
@@ -19653,18 +17644,6 @@ export class OrdersApi extends BaseAPI {
19653
17644
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
19654
17645
  }
19655
17646
 
19656
- /**
19657
- * Download Order PDF
19658
- * @summary Download Order PDF
19659
- * @param {number} id Order ID
19660
- * @param {*} [options] Override http request option.
19661
- * @throws {RequiredError}
19662
- * @memberof OrdersApi
19663
- */
19664
- public getGetOrderPdf(id: number, options?: RawAxiosRequestConfig) {
19665
- return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
19666
- }
19667
-
19668
17647
  /**
19669
17648
  * Get Orders (Beta)
19670
17649
  * @summary Get Orders (Beta)
@@ -19683,19 +17662,6 @@ export class OrdersApi extends BaseAPI {
19683
17662
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
19684
17663
  }
19685
17664
 
19686
- /**
19687
- * Add Order Note
19688
- * @summary Add Order Note
19689
- * @param {number} id Order ID
19690
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19691
- * @param {*} [options] Override http request option.
19692
- * @throws {RequiredError}
19693
- * @memberof OrdersApi
19694
- */
19695
- public postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig) {
19696
- return OrdersApiFp(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(this.axios, this.basePath));
19697
- }
19698
-
19699
17665
  /**
19700
17666
  * Create An Order (Admin)
19701
17667
  * @summary Create An Order (Admin)
@@ -19709,34 +17675,6 @@ export class OrdersApi extends BaseAPI {
19709
17675
  return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
19710
17676
  }
19711
17677
 
19712
- /**
19713
- * Create Shipping Consignment
19714
- * @summary Create Shipping Consignment
19715
- * @param {number} id Order ID
19716
- * @param {number} shipmentId Shipment ID
19717
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19718
- * @param {*} [options] Override http request option.
19719
- * @throws {RequiredError}
19720
- * @memberof OrdersApi
19721
- */
19722
- public postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig) {
19723
- return OrdersApiFp(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(this.axios, this.basePath));
19724
- }
19725
-
19726
- /**
19727
- * Create Shipment (Admin)
19728
- * @summary Create Shipment (Admin)
19729
- * @param {number} id Order ID
19730
- * @param {number} batchId Batch ID
19731
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19732
- * @param {*} [options] Override http request option.
19733
- * @throws {RequiredError}
19734
- * @memberof OrdersApi
19735
- */
19736
- public postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19737
- return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19738
- }
19739
-
19740
17678
  /**
19741
17679
  * Create An Order (Beta)
19742
17680
  * @summary Create An Order (Beta)
@@ -19750,101 +17688,6 @@ export class OrdersApi extends BaseAPI {
19750
17688
  return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
19751
17689
  }
19752
17690
 
19753
- /**
19754
- * Issue Credit (Admin)
19755
- * @summary Issue Credit (Admin)
19756
- * @param {number} id Order ID
19757
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19758
- * @param {*} [options] Override http request option.
19759
- * @throws {RequiredError}
19760
- * @memberof OrdersApi
19761
- */
19762
- public postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig) {
19763
- return OrdersApiFp(this.configuration).postIssueCredit(id, creditNoteDTO, options).then((request) => request(this.axios, this.basePath));
19764
- }
19765
-
19766
- /**
19767
- * Print Shipment Label
19768
- * @summary Print Shipment Label
19769
- * @param {number} id Order ID
19770
- * @param {number} shipmentId Shipment ID
19771
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19772
- * @param {*} [options] Override http request option.
19773
- * @throws {RequiredError}
19774
- * @memberof OrdersApi
19775
- */
19776
- public postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig) {
19777
- return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
19778
- }
19779
-
19780
- /**
19781
- * Send Order Email
19782
- * @summary Send Order Email
19783
- * @param {number} id Order ID
19784
- * @param {string} email Email Address
19785
- * @param {*} [options] Override http request option.
19786
- * @throws {RequiredError}
19787
- * @memberof OrdersApi
19788
- */
19789
- public postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig) {
19790
- return OrdersApiFp(this.configuration).postSendOrderEmail(id, email, options).then((request) => request(this.axios, this.basePath));
19791
- }
19792
-
19793
- /**
19794
- * Send Supplier Email
19795
- * @summary Send Supplier Email
19796
- * @param {number} id Order ID
19797
- * @param {number} batchId Batch ID
19798
- * @param {*} [options] Override http request option.
19799
- * @throws {RequiredError}
19800
- * @memberof OrdersApi
19801
- */
19802
- public postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19803
- return OrdersApiFp(this.configuration).postSendSupplierEmail(id, batchId, options).then((request) => request(this.axios, this.basePath));
19804
- }
19805
-
19806
- /**
19807
- * Split Order
19808
- * @summary Split Order
19809
- * @param {number} id Order ID
19810
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19811
- * @param {*} [options] Override http request option.
19812
- * @throws {RequiredError}
19813
- * @memberof OrdersApi
19814
- */
19815
- public postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig) {
19816
- return OrdersApiFp(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(this.axios, this.basePath));
19817
- }
19818
-
19819
- /**
19820
- * Allocate Items To Supplier
19821
- * @summary Allocate Items To Supplier
19822
- * @param {number} id Order ID
19823
- * @param {number} supplierId Supplier ID
19824
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19825
- * @param {*} [options] Override http request option.
19826
- * @throws {RequiredError}
19827
- * @memberof OrdersApi
19828
- */
19829
- public putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) {
19830
- return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
19831
- }
19832
-
19833
- /**
19834
- * Update Shipment (Admin)
19835
- * @summary Update Shipment (Admin)
19836
- * @param {number} id Order ID
19837
- * @param {number} batchId Batch ID
19838
- * @param {number} shipmentId Shipment ID
19839
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19840
- * @param {*} [options] Override http request option.
19841
- * @throws {RequiredError}
19842
- * @memberof OrdersApi
19843
- */
19844
- public putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19845
- return OrdersApiFp(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19846
- }
19847
-
19848
17691
  /**
19849
17692
  * Update An Order (Admin)
19850
17693
  * @summary Update An Order (Admin)
@@ -19894,15 +17737,6 @@ export const GetGetOrdersFilterEnum = {
19894
17737
  BackOrders: 'BACK_ORDERS'
19895
17738
  } as const;
19896
17739
  export type GetGetOrdersFilterEnum = typeof GetGetOrdersFilterEnum[keyof typeof GetGetOrdersFilterEnum];
19897
- /**
19898
- * @export
19899
- */
19900
- export const PostPrintShippingLabelPrinterEnum = {
19901
- NUMBER_1: 1,
19902
- NUMBER_2: 2,
19903
- NUMBER_3: 3
19904
- } as const;
19905
- export type PostPrintShippingLabelPrinterEnum = typeof PostPrintShippingLabelPrinterEnum[keyof typeof PostPrintShippingLabelPrinterEnum];
19906
17740
 
19907
17741
 
19908
17742
  /**