yellowgrid-api-ts 3.2.60 → 3.2.62-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.openapi-generator/FILES +249 -229
  2. package/README.md +36 -1
  3. package/api.ts +2459 -215
  4. package/base.ts +2 -2
  5. package/common.ts +1 -1
  6. package/config.json +3 -3
  7. package/configuration.ts +1 -1
  8. package/dist/api.d.ts +1767 -106
  9. package/dist/api.js +1487 -107
  10. package/dist/base.d.ts +1 -1
  11. package/dist/base.js +2 -2
  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/dist/models/CourierEnum.d.ts +18 -0
  19. package/dist/models/CourierEnum.js +20 -0
  20. package/dist/models/PrinterEnum.d.ts +18 -0
  21. package/dist/models/PrinterEnum.js +20 -0
  22. package/docs/AccountsApi.md +1 -1
  23. package/docs/BatchDTO.md +59 -0
  24. package/docs/CRMApi.md +1 -1
  25. package/docs/Class3CXApi.md +1 -1
  26. package/docs/Class3CXInstallationWizardApi.md +1 -1
  27. package/docs/Class3CXInstallationsApi.md +1 -1
  28. package/docs/Class3CXIntegrationsApi.md +1 -1
  29. package/docs/Class3CXMultiTenantApi.md +1 -1
  30. package/docs/CreditNoteDTO.md +21 -0
  31. package/docs/CreditNoteEntity.md +29 -0
  32. package/docs/CreditNoteItemDTO.md +25 -0
  33. package/docs/CreditNoteItemEntity.md +29 -0
  34. package/docs/CreditNoteModel.md +29 -0
  35. package/docs/MyPBXToolsApi.md +1 -1
  36. package/docs/OAuth20Api.md +1 -1
  37. package/docs/OrderDetailsDTO.md +63 -0
  38. package/docs/OrderItemDTO.md +53 -0
  39. package/docs/OrderedItemModel.md +47 -0
  40. package/docs/OrdersApi.md +857 -23
  41. package/docs/PostAddOrderNoteRequest.md +20 -0
  42. package/docs/PostSplitOrderRequest.md +20 -0
  43. package/docs/PricingApi.md +1 -1
  44. package/docs/PrinterEntity.md +29 -0
  45. package/docs/ProductsApi.md +1 -1
  46. package/docs/ProvisioningApi.md +1 -1
  47. package/docs/PutAllocateItemsRequest.md +20 -0
  48. package/docs/PutAllocateItemsRequestItemsInner.md +22 -0
  49. package/docs/SIPTrunksApi.md +1 -1
  50. package/docs/SMSApi.md +1 -1
  51. package/docs/ServicesApi.md +1 -1
  52. package/docs/ShipmentDTO.md +31 -0
  53. package/docs/ShipmentItemDTO.md +23 -0
  54. package/docs/ShipmentItemModel.md +29 -0
  55. package/docs/ShipmentModel.md +43 -0
  56. package/docs/ShipmentRequestDTO.md +31 -0
  57. package/docs/ShippingApi.md +1 -1
  58. package/docs/ShippingRequestDTO.md +24 -0
  59. package/docs/StockManagementApi.md +1 -1
  60. package/docs/SupplierModel.md +37 -0
  61. package/docs/SystemApi.md +1 -1
  62. package/docs/TicketsApi.md +1 -1
  63. package/docs/WebhooksApi.md +1 -1
  64. package/getEnums.php +31 -31
  65. package/hs_err_pid58424.log +247 -0
  66. package/index.ts +1 -1
  67. package/models/CourierEnum.ts +19 -0
  68. package/models/PrinterEnum.ts +19 -0
  69. package/package.json +1 -1
package/api.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Yellowgrid
5
- * Welcome to the Yellowgrid API documentation. 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: `https://bitbucket.org` 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: `https://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'?: string;
1032
+ 'action'?: AuditLogEntityActionEnum;
1033
1033
  /**
1034
1034
  * type
1035
1035
  * @type {string}
1036
1036
  * @memberof AuditLogEntity
1037
1037
  */
1038
- 'type'?: string;
1038
+ 'type'?: AuditLogEntityTypeEnum;
1039
1039
  /**
1040
1040
  * identifier
1041
1041
  * @type {string}
@@ -1073,6 +1073,93 @@ 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
+
1076
1163
  /**
1077
1164
  * OAuth Auth Code Response
1078
1165
  * @export
@@ -1136,6 +1223,133 @@ export interface BasicProductDTO {
1136
1223
  */
1137
1224
  'title'?: string;
1138
1225
  }
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
+ *
1348
+ * @type {SupplierModel}
1349
+ * @memberof BatchDTO
1350
+ */
1351
+ 'supplier'?: SupplierModel;
1352
+ }
1139
1353
  /**
1140
1354
  * BatchesEntity
1141
1355
  * @export
@@ -1691,6 +1905,155 @@ export interface CreditAccountEntity {
1691
1905
  */
1692
1906
  'prizePromo'?: boolean;
1693
1907
  }
1908
+ /**
1909
+ * Credit Note
1910
+ * @export
1911
+ * @interface CreditNoteDTO
1912
+ */
1913
+ export interface CreditNoteDTO {
1914
+ /**
1915
+ * Items
1916
+ * @type {Array<CreditNoteItemDTO>}
1917
+ * @memberof CreditNoteDTO
1918
+ */
1919
+ 'items'?: Array<CreditNoteItemDTO>;
1920
+ }
1921
+ /**
1922
+ * CreditNotesEntity
1923
+ * @export
1924
+ * @interface CreditNoteEntity
1925
+ */
1926
+ export interface CreditNoteEntity {
1927
+ /**
1928
+ * id
1929
+ * @type {number}
1930
+ * @memberof CreditNoteEntity
1931
+ */
1932
+ 'id'?: number;
1933
+ /**
1934
+ * orderId
1935
+ * @type {number}
1936
+ * @memberof CreditNoteEntity
1937
+ */
1938
+ 'orderId'?: number;
1939
+ /**
1940
+ * transactionId
1941
+ * @type {string}
1942
+ * @memberof CreditNoteEntity
1943
+ */
1944
+ 'transactionId'?: string;
1945
+ /**
1946
+ * amount
1947
+ * @type {number}
1948
+ * @memberof CreditNoteEntity
1949
+ */
1950
+ 'amount'?: number;
1951
+ /**
1952
+ * timestamp
1953
+ * @type {string}
1954
+ * @memberof CreditNoteEntity
1955
+ */
1956
+ 'timestamp'?: string;
1957
+ }
1958
+ /**
1959
+ * Credit Note Item
1960
+ * @export
1961
+ * @interface CreditNoteItemDTO
1962
+ */
1963
+ export interface CreditNoteItemDTO {
1964
+ /**
1965
+ * Item ID
1966
+ * @type {number}
1967
+ * @memberof CreditNoteItemDTO
1968
+ */
1969
+ 'itemId'?: number;
1970
+ /**
1971
+ * Quantity
1972
+ * @type {number}
1973
+ * @memberof CreditNoteItemDTO
1974
+ */
1975
+ 'quantity'?: number | null;
1976
+ /**
1977
+ * Amount
1978
+ * @type {number}
1979
+ * @memberof CreditNoteItemDTO
1980
+ */
1981
+ 'amount'?: number | null;
1982
+ }
1983
+ /**
1984
+ * CreditNotesItemsEntity
1985
+ * @export
1986
+ * @interface CreditNoteItemEntity
1987
+ */
1988
+ export interface CreditNoteItemEntity {
1989
+ /**
1990
+ * id
1991
+ * @type {number}
1992
+ * @memberof CreditNoteItemEntity
1993
+ */
1994
+ 'id'?: number;
1995
+ /**
1996
+ * creditNoteId
1997
+ * @type {number}
1998
+ * @memberof CreditNoteItemEntity
1999
+ */
2000
+ 'creditNoteId'?: number;
2001
+ /**
2002
+ * orderId
2003
+ * @type {number}
2004
+ * @memberof CreditNoteItemEntity
2005
+ */
2006
+ 'orderId'?: number;
2007
+ /**
2008
+ * itemId
2009
+ * @type {number}
2010
+ * @memberof CreditNoteItemEntity
2011
+ */
2012
+ 'itemId'?: number;
2013
+ /**
2014
+ * amount
2015
+ * @type {number}
2016
+ * @memberof CreditNoteItemEntity
2017
+ */
2018
+ 'amount'?: number;
2019
+ }
2020
+ /**
2021
+ * Credit Note Model
2022
+ * @export
2023
+ * @interface CreditNoteModel
2024
+ */
2025
+ export interface CreditNoteModel {
2026
+ /**
2027
+ * id
2028
+ * @type {number}
2029
+ * @memberof CreditNoteModel
2030
+ */
2031
+ 'id'?: number;
2032
+ /**
2033
+ * orderId
2034
+ * @type {number}
2035
+ * @memberof CreditNoteModel
2036
+ */
2037
+ 'orderId'?: number;
2038
+ /**
2039
+ * transactionId
2040
+ * @type {string}
2041
+ * @memberof CreditNoteModel
2042
+ */
2043
+ 'transactionId'?: string;
2044
+ /**
2045
+ * amount
2046
+ * @type {number}
2047
+ * @memberof CreditNoteModel
2048
+ */
2049
+ 'amount'?: number;
2050
+ /**
2051
+ * timestamp
2052
+ * @type {string}
2053
+ * @memberof CreditNoteModel
2054
+ */
2055
+ 'timestamp'?: string;
2056
+ }
1694
2057
  /**
1695
2058
  * CRM Contact
1696
2059
  * @export
@@ -3414,7 +3777,7 @@ export interface ItemDTO {
3414
3777
  * @type {Array<TcxSbcDTO>}
3415
3778
  * @memberof ItemDTO
3416
3779
  */
3417
- 'sbcs'?: Array<TcxSbcDTO> | null;
3780
+ 'sbcs'?: Array<TcxSbcDTO>;
3418
3781
  /**
3419
3782
  * Readonly
3420
3783
  * @type {boolean}
@@ -3802,62 +4165,201 @@ export interface OfflineInstancesEntity {
3802
4165
  'alerted'?: number;
3803
4166
  }
3804
4167
  /**
3805
- * OrdersEntity
4168
+ * Order Details
3806
4169
  * @export
3807
- * @interface OrderEntity
4170
+ * @interface OrderDetailsDTO
3808
4171
  */
3809
- export interface OrderEntity {
4172
+ export interface OrderDetailsDTO {
3810
4173
  /**
3811
- * id
4174
+ * ID
3812
4175
  * @type {number}
3813
- * @memberof OrderEntity
4176
+ * @memberof OrderDetailsDTO
3814
4177
  */
3815
4178
  'id'?: number;
3816
4179
  /**
3817
- * externalId
4180
+ * Reference
3818
4181
  * @type {string}
3819
- * @memberof OrderEntity
4182
+ * @memberof OrderDetailsDTO
3820
4183
  */
3821
- 'reference'?: string;
3822
- /**
3823
- * sourceId
3824
- * @type {number}
3825
- * @memberof OrderEntity
3826
- */
3827
- 'sourceId'?: number;
4184
+ 'reference'?: string | null;
3828
4185
  /**
3829
- * sageInv
4186
+ * Invoice Number
3830
4187
  * @type {string}
3831
- * @memberof OrderEntity
4188
+ * @memberof OrderDetailsDTO
3832
4189
  */
3833
4190
  'invoiceNumber'?: string;
3834
4191
  /**
3835
- * invoiceId
4192
+ * Invoice ID
3836
4193
  * @type {string}
3837
- * @memberof OrderEntity
4194
+ * @memberof OrderDetailsDTO
3838
4195
  */
3839
4196
  'invoiceId'?: string | null;
3840
4197
  /**
3841
- * creditAccountId
3842
- * @type {number}
3843
- * @memberof OrderEntity
3844
- */
3845
- 'customerId'?: number;
3846
- /**
3847
- * orderDate
4198
+ * Date Time
3848
4199
  * @type {string}
3849
- * @memberof OrderEntity
4200
+ * @memberof OrderDetailsDTO
3850
4201
  */
3851
4202
  'orderDate'?: string;
3852
4203
  /**
3853
- * orderPostedDate
3854
- * @type {string}
3855
- * @memberof OrderEntity
4204
+ * Paid
4205
+ * @type {boolean}
4206
+ * @memberof OrderDetailsDTO
3856
4207
  */
3857
- 'orderPostedDate'?: string;
4208
+ 'paid'?: boolean;
3858
4209
  /**
3859
- * buyerEmail
3860
- * @type {string}
4210
+ * Complete
4211
+ * @type {boolean}
4212
+ * @memberof OrderDetailsDTO
4213
+ */
4214
+ 'complete'?: boolean;
4215
+ /**
4216
+ * Quote
4217
+ * @type {boolean}
4218
+ * @memberof OrderDetailsDTO
4219
+ */
4220
+ 'quote'?: boolean;
4221
+ /**
4222
+ *
4223
+ * @type {AccountSummaryDTO}
4224
+ * @memberof OrderDetailsDTO
4225
+ */
4226
+ 'customer'?: AccountSummaryDTO;
4227
+ /**
4228
+ *
4229
+ * @type {AddressModel}
4230
+ * @memberof OrderDetailsDTO
4231
+ */
4232
+ 'shippingAddress'?: AddressModel;
4233
+ /**
4234
+ * Items
4235
+ * @type {Array<ItemDTO>}
4236
+ * @memberof OrderDetailsDTO
4237
+ */
4238
+ 'items'?: Array<ItemDTO>;
4239
+ /**
4240
+ * Carriage Charge
4241
+ * @type {number}
4242
+ * @memberof OrderDetailsDTO
4243
+ */
4244
+ 'carriageCharge'?: number;
4245
+ /**
4246
+ * Fulfillable
4247
+ * @type {boolean}
4248
+ * @memberof OrderDetailsDTO
4249
+ */
4250
+ 'fulfillable'?: boolean | null;
4251
+ /**
4252
+ * Provisioning URL
4253
+ * @type {string}
4254
+ * @memberof OrderDetailsDTO
4255
+ */
4256
+ 'provisioningUrl'?: string | null;
4257
+ /**
4258
+ *
4259
+ * @type {ShippingServiceDTO}
4260
+ * @memberof OrderDetailsDTO
4261
+ */
4262
+ 'shippingService'?: ShippingServiceDTO;
4263
+ /**
4264
+ * Readonly
4265
+ * @type {boolean}
4266
+ * @memberof OrderDetailsDTO
4267
+ */
4268
+ 'readonly'?: boolean;
4269
+ /**
4270
+ * Detailed Items
4271
+ * @type {Array<OrderItemDTO>}
4272
+ * @memberof OrderDetailsDTO
4273
+ */
4274
+ 'detailedItems'?: Array<OrderItemDTO>;
4275
+ /**
4276
+ * Batches
4277
+ * @type {Array<BatchDTO>}
4278
+ * @memberof OrderDetailsDTO
4279
+ */
4280
+ 'batches'?: Array<BatchDTO>;
4281
+ /**
4282
+ * Audit Log
4283
+ * @type {Array<AuditLogEntity>}
4284
+ * @memberof OrderDetailsDTO
4285
+ */
4286
+ 'logEntries'?: Array<AuditLogEntity>;
4287
+ /**
4288
+ * Card Payment Link
4289
+ * @type {string}
4290
+ * @memberof OrderDetailsDTO
4291
+ */
4292
+ 'paymentLink'?: string | null;
4293
+ /**
4294
+ * Credits
4295
+ * @type {Array<CreditNoteModel>}
4296
+ * @memberof OrderDetailsDTO
4297
+ */
4298
+ 'credits'?: Array<CreditNoteModel>;
4299
+ /**
4300
+ * Customer Email
4301
+ * @type {string}
4302
+ * @memberof OrderDetailsDTO
4303
+ */
4304
+ 'customerEmail'?: string;
4305
+ }
4306
+ /**
4307
+ * OrdersEntity
4308
+ * @export
4309
+ * @interface OrderEntity
4310
+ */
4311
+ export interface OrderEntity {
4312
+ /**
4313
+ * id
4314
+ * @type {number}
4315
+ * @memberof OrderEntity
4316
+ */
4317
+ 'id'?: number;
4318
+ /**
4319
+ * externalId
4320
+ * @type {string}
4321
+ * @memberof OrderEntity
4322
+ */
4323
+ 'reference'?: string;
4324
+ /**
4325
+ * sourceId
4326
+ * @type {number}
4327
+ * @memberof OrderEntity
4328
+ */
4329
+ 'sourceId'?: number;
4330
+ /**
4331
+ * sageInv
4332
+ * @type {string}
4333
+ * @memberof OrderEntity
4334
+ */
4335
+ 'invoiceNumber'?: string;
4336
+ /**
4337
+ * invoiceId
4338
+ * @type {string}
4339
+ * @memberof OrderEntity
4340
+ */
4341
+ 'invoiceId'?: string | null;
4342
+ /**
4343
+ * creditAccountId
4344
+ * @type {number}
4345
+ * @memberof OrderEntity
4346
+ */
4347
+ 'customerId'?: number;
4348
+ /**
4349
+ * orderDate
4350
+ * @type {string}
4351
+ * @memberof OrderEntity
4352
+ */
4353
+ 'orderDate'?: string;
4354
+ /**
4355
+ * orderPostedDate
4356
+ * @type {string}
4357
+ * @memberof OrderEntity
4358
+ */
4359
+ 'orderPostedDate'?: string;
4360
+ /**
4361
+ * buyerEmail
4362
+ * @type {string}
3861
4363
  * @memberof OrderEntity
3862
4364
  */
3863
4365
  'buyerEmail'?: string;
@@ -4156,6 +4658,115 @@ export interface OrderEntity {
4156
4658
  */
4157
4659
  'fulfillable'?: boolean | null;
4158
4660
  }
4661
+ /**
4662
+ * Order Item Details
4663
+ * @export
4664
+ * @interface OrderItemDTO
4665
+ */
4666
+ export interface OrderItemDTO {
4667
+ /**
4668
+ * SKU
4669
+ * @type {string}
4670
+ * @memberof OrderItemDTO
4671
+ */
4672
+ 'sku'?: string;
4673
+ /**
4674
+ * Quantity
4675
+ * @type {number}
4676
+ * @memberof OrderItemDTO
4677
+ */
4678
+ 'quantity'?: number;
4679
+ /**
4680
+ * ID
4681
+ * @type {number}
4682
+ * @memberof OrderItemDTO
4683
+ */
4684
+ 'id'?: number | null;
4685
+ /**
4686
+ * Order ID
4687
+ * @type {number}
4688
+ * @memberof OrderItemDTO
4689
+ */
4690
+ 'orderId'?: number | null;
4691
+ /**
4692
+ * Title
4693
+ * @type {string}
4694
+ * @memberof OrderItemDTO
4695
+ */
4696
+ 'title'?: string;
4697
+ /**
4698
+ * Price
4699
+ * @type {number}
4700
+ * @memberof OrderItemDTO
4701
+ */
4702
+ 'price'?: number;
4703
+ /**
4704
+ * 3CX Licence Key
4705
+ * @type {string}
4706
+ * @memberof OrderItemDTO
4707
+ */
4708
+ 'licenceKey'?: string | null;
4709
+ /**
4710
+ * Date Time
4711
+ * @type {string}
4712
+ * @memberof OrderItemDTO
4713
+ */
4714
+ 'licenceExpiry'?: string;
4715
+ /**
4716
+ * Date Time
4717
+ * @type {string}
4718
+ * @memberof OrderItemDTO
4719
+ */
4720
+ 'processDate'?: string;
4721
+ /**
4722
+ * 3CX Hosting
4723
+ * @type {boolean}
4724
+ * @memberof OrderItemDTO
4725
+ */
4726
+ 'hosting'?: boolean | null;
4727
+ /**
4728
+ * Promo Item
4729
+ * @type {boolean}
4730
+ * @memberof OrderItemDTO
4731
+ */
4732
+ 'promoItem'?: boolean;
4733
+ /**
4734
+ * Refunded
4735
+ * @type {number}
4736
+ * @memberof OrderItemDTO
4737
+ */
4738
+ 'refunded'?: number | null;
4739
+ /**
4740
+ * SBCs
4741
+ * @type {Array<TcxSbcDTO>}
4742
+ * @memberof OrderItemDTO
4743
+ */
4744
+ 'sbcs'?: Array<TcxSbcDTO>;
4745
+ /**
4746
+ * Readonly
4747
+ * @type {boolean}
4748
+ * @memberof OrderItemDTO
4749
+ */
4750
+ 'readonly'?: boolean;
4751
+ /**
4752
+ * 3CX Sales Code
4753
+ * @type {string}
4754
+ * @memberof OrderItemDTO
4755
+ */
4756
+ 'tcxSalesCode'?: string | null;
4757
+ /**
4758
+ * Suppliers
4759
+ * @type {Array<SupplierModel>}
4760
+ * @memberof OrderItemDTO
4761
+ */
4762
+ 'suppliers'?: Array<SupplierModel>;
4763
+ /**
4764
+ * Allocated
4765
+ * @type {number}
4766
+ * @memberof OrderItemDTO
4767
+ */
4768
+ 'allocated'?: number | null;
4769
+ }
4159
4770
  /**
4160
4771
  * EdTechPro Order Request
4161
4772
  * @export
@@ -4573,57 +5184,148 @@ export interface OrderedItemEntity {
4573
5184
  'returnedStock'?: number;
4574
5185
  }
4575
5186
  /**
4576
- *
5187
+ * Ordered Item Model
4577
5188
  * @export
4578
- * @interface PatchSetTcxWizardCnameRequest
5189
+ * @interface OrderedItemModel
4579
5190
  */
4580
- export interface PatchSetTcxWizardCnameRequest {
5191
+ export interface OrderedItemModel {
4581
5192
  /**
4582
- * CNAME
4583
- * @type {string}
4584
- * @memberof PatchSetTcxWizardCnameRequest
5193
+ * id
5194
+ * @type {number}
5195
+ * @memberof OrderedItemModel
4585
5196
  */
4586
- 'cname'?: string;
4587
- }
4588
- /**
4589
- *
4590
- * @export
4591
- * @interface PatchUpdateAccountContactPasswordRequest
4592
- */
4593
- export interface PatchUpdateAccountContactPasswordRequest {
5197
+ 'id'?: number;
4594
5198
  /**
4595
- * Password
4596
- * @type {string}
4597
- * @memberof PatchUpdateAccountContactPasswordRequest
5199
+ * itemId
5200
+ * @type {number}
5201
+ * @memberof OrderedItemModel
4598
5202
  */
4599
- 'password'?: string;
4600
- }
4601
- /**
4602
- * Customer Account
4603
- * @export
4604
- * @interface PortalAccountModel
4605
- */
4606
- export interface PortalAccountModel {
5203
+ 'itemId'?: number;
4607
5204
  /**
4608
- * ID
5205
+ * orderedQuantity
4609
5206
  * @type {number}
4610
- * @memberof PortalAccountModel
5207
+ * @memberof OrderedItemModel
4611
5208
  */
4612
- 'id'?: number;
5209
+ 'orderedQuantity'?: number;
4613
5210
  /**
4614
- * Contact Name
4615
- * @type {string}
4616
- * @memberof PortalAccountModel
5211
+ * itemStatus
5212
+ * @type {number}
5213
+ * @memberof OrderedItemModel
4617
5214
  */
4618
- 'name'?: string;
5215
+ 'itemStatus'?: number;
4619
5216
  /**
4620
- * Email
4621
- * @type {string}
4622
- * @memberof PortalAccountModel
5217
+ * supplierId
5218
+ * @type {number}
5219
+ * @memberof OrderedItemModel
4623
5220
  */
4624
- 'email'?: string;
5221
+ 'supplierId'?: number;
4625
5222
  /**
4626
- * Phone Number
5223
+ * supplierItemId
5224
+ * @type {number}
5225
+ * @memberof OrderedItemModel
5226
+ */
5227
+ 'supplierItemId'?: number;
5228
+ /**
5229
+ * supplierPrice
5230
+ * @type {number}
5231
+ * @memberof OrderedItemModel
5232
+ */
5233
+ 'supplierPrice'?: number;
5234
+ /**
5235
+ * statusDate
5236
+ * @type {string}
5237
+ * @memberof OrderedItemModel
5238
+ */
5239
+ 'statusDate'?: string;
5240
+ /**
5241
+ * statusAuthor
5242
+ * @type {number}
5243
+ * @memberof OrderedItemModel
5244
+ */
5245
+ 'statusAuthor'?: number;
5246
+ /**
5247
+ * supplierPaid
5248
+ * @type {number}
5249
+ * @memberof OrderedItemModel
5250
+ */
5251
+ 'supplierPaid'?: number;
5252
+ /**
5253
+ * supplierCreditDue
5254
+ * @type {number}
5255
+ * @memberof OrderedItemModel
5256
+ */
5257
+ 'supplierCreditDue'?: number;
5258
+ /**
5259
+ * supplierCreditReceived
5260
+ * @type {number}
5261
+ * @memberof OrderedItemModel
5262
+ */
5263
+ 'supplierCreditReceived'?: number;
5264
+ /**
5265
+ * supplierSku
5266
+ * @type {string}
5267
+ * @memberof OrderedItemModel
5268
+ */
5269
+ 'supplierSku'?: string;
5270
+ /**
5271
+ * returnedStock
5272
+ * @type {number}
5273
+ * @memberof OrderedItemModel
5274
+ */
5275
+ 'returnedStock'?: number;
5276
+ }
5277
+ /**
5278
+ *
5279
+ * @export
5280
+ * @interface PatchSetTcxWizardCnameRequest
5281
+ */
5282
+ export interface PatchSetTcxWizardCnameRequest {
5283
+ /**
5284
+ * CNAME
5285
+ * @type {string}
5286
+ * @memberof PatchSetTcxWizardCnameRequest
5287
+ */
5288
+ 'cname'?: string;
5289
+ }
5290
+ /**
5291
+ *
5292
+ * @export
5293
+ * @interface PatchUpdateAccountContactPasswordRequest
5294
+ */
5295
+ export interface PatchUpdateAccountContactPasswordRequest {
5296
+ /**
5297
+ * Password
5298
+ * @type {string}
5299
+ * @memberof PatchUpdateAccountContactPasswordRequest
5300
+ */
5301
+ 'password'?: string;
5302
+ }
5303
+ /**
5304
+ * Customer Account
5305
+ * @export
5306
+ * @interface PortalAccountModel
5307
+ */
5308
+ export interface PortalAccountModel {
5309
+ /**
5310
+ * ID
5311
+ * @type {number}
5312
+ * @memberof PortalAccountModel
5313
+ */
5314
+ 'id'?: number;
5315
+ /**
5316
+ * Contact Name
5317
+ * @type {string}
5318
+ * @memberof PortalAccountModel
5319
+ */
5320
+ 'name'?: string;
5321
+ /**
5322
+ * Email
5323
+ * @type {string}
5324
+ * @memberof PortalAccountModel
5325
+ */
5326
+ 'email'?: string;
5327
+ /**
5328
+ * Phone Number
4627
5329
  * @type {string}
4628
5330
  * @memberof PortalAccountModel
4629
5331
  */
@@ -4798,6 +5500,19 @@ export interface PortalLoginModel {
4798
5500
  */
4799
5501
  'redirect_uri'?: string;
4800
5502
  }
5503
+ /**
5504
+ *
5505
+ * @export
5506
+ * @interface PostAddOrderNoteRequest
5507
+ */
5508
+ export interface PostAddOrderNoteRequest {
5509
+ /**
5510
+ * Order Note
5511
+ * @type {string}
5512
+ * @memberof PostAddOrderNoteRequest
5513
+ */
5514
+ 'note'?: string;
5515
+ }
4801
5516
  /**
4802
5517
  *
4803
5518
  * @export
@@ -4880,6 +5595,19 @@ export interface PostGetProductRequest {
4880
5595
  */
4881
5596
  'hosting'?: boolean | null;
4882
5597
  }
5598
+ /**
5599
+ *
5600
+ * @export
5601
+ * @interface PostSplitOrderRequest
5602
+ */
5603
+ export interface PostSplitOrderRequest {
5604
+ /**
5605
+ * Item Ids
5606
+ * @type {Array<number>}
5607
+ * @memberof PostSplitOrderRequest
5608
+ */
5609
+ 'itemIds'?: Array<number>;
5610
+ }
4883
5611
  /**
4884
5612
  * Price & Stock List
4885
5613
  * @export
@@ -4917,6 +5645,43 @@ export interface PriceListItemModel {
4917
5645
  */
4918
5646
  'stock'?: number | null;
4919
5647
  }
5648
+ /**
5649
+ * PrintersEntity
5650
+ * @export
5651
+ * @interface PrinterEntity
5652
+ */
5653
+ export interface PrinterEntity {
5654
+ /**
5655
+ * id
5656
+ * @type {number}
5657
+ * @memberof PrinterEntity
5658
+ */
5659
+ 'id'?: number;
5660
+ /**
5661
+ * brand
5662
+ * @type {string}
5663
+ * @memberof PrinterEntity
5664
+ */
5665
+ 'brand'?: string;
5666
+ /**
5667
+ * model
5668
+ * @type {string}
5669
+ * @memberof PrinterEntity
5670
+ */
5671
+ 'model'?: string;
5672
+ /**
5673
+ * sn
5674
+ * @type {string}
5675
+ * @memberof PrinterEntity
5676
+ */
5677
+ 'sn'?: string;
5678
+ /**
5679
+ * location
5680
+ * @type {string}
5681
+ * @memberof PrinterEntity
5682
+ */
5683
+ 'location'?: string;
5684
+ }
4920
5685
  /**
4921
5686
  * PrizesEntity
4922
5687
  * @export
@@ -5304,6 +6069,38 @@ export interface ProvisioningRequestEntity {
5304
6069
  */
5305
6070
  'auth'?: string;
5306
6071
  }
6072
+ /**
6073
+ *
6074
+ * @export
6075
+ * @interface PutAllocateItemsRequest
6076
+ */
6077
+ export interface PutAllocateItemsRequest {
6078
+ /**
6079
+ * Items
6080
+ * @type {Array<PutAllocateItemsRequestItemsInner>}
6081
+ * @memberof PutAllocateItemsRequest
6082
+ */
6083
+ 'items'?: Array<PutAllocateItemsRequestItemsInner>;
6084
+ }
6085
+ /**
6086
+ *
6087
+ * @export
6088
+ * @interface PutAllocateItemsRequestItemsInner
6089
+ */
6090
+ export interface PutAllocateItemsRequestItemsInner {
6091
+ /**
6092
+ * Item ID
6093
+ * @type {number}
6094
+ * @memberof PutAllocateItemsRequestItemsInner
6095
+ */
6096
+ 'itemId'?: number;
6097
+ /**
6098
+ * Quantity To Allocate
6099
+ * @type {number}
6100
+ * @memberof PutAllocateItemsRequestItemsInner
6101
+ */
6102
+ 'quantity'?: number;
6103
+ }
5307
6104
  /**
5308
6105
  * Azure Recordings Backup
5309
6106
  * @export
@@ -5632,6 +6429,58 @@ export interface ShipmentAddressEntity {
5632
6429
  */
5633
6430
  'shipPhoneNumber'?: string;
5634
6431
  }
6432
+ /**
6433
+ * Shipment
6434
+ * @export
6435
+ * @interface ShipmentDTO
6436
+ */
6437
+ export interface ShipmentDTO {
6438
+ /**
6439
+ * Courier
6440
+ * @type {string}
6441
+ * @memberof ShipmentDTO
6442
+ */
6443
+ 'courier'?: ShipmentDTOCourierEnum | null;
6444
+ /**
6445
+ * Courier Reference
6446
+ * @type {string}
6447
+ * @memberof ShipmentDTO
6448
+ */
6449
+ 'reference'?: string | null;
6450
+ /**
6451
+ * Date Time
6452
+ * @type {string}
6453
+ * @memberof ShipmentDTO
6454
+ */
6455
+ 'requestedDate'?: string;
6456
+ /**
6457
+ * Scanned Items
6458
+ * @type {Array<ScannedItemModel>}
6459
+ * @memberof ShipmentDTO
6460
+ */
6461
+ 'scannedItems'?: Array<ScannedItemModel>;
6462
+ /**
6463
+ * Items
6464
+ * @type {Array<ShipmentItemModel>}
6465
+ * @memberof ShipmentDTO
6466
+ */
6467
+ 'items'?: Array<ShipmentItemModel>;
6468
+ /**
6469
+ *
6470
+ * @type {AddressModel}
6471
+ * @memberof ShipmentDTO
6472
+ */
6473
+ 'address'?: AddressModel;
6474
+ }
6475
+
6476
+ export const ShipmentDTOCourierEnum = {
6477
+ Dpd: 'DPD',
6478
+ ChorltonPallet: 'Chorlton Pallet',
6479
+ Pops: 'POPS'
6480
+ } as const;
6481
+
6482
+ export type ShipmentDTOCourierEnum = typeof ShipmentDTOCourierEnum[keyof typeof ShipmentDTOCourierEnum];
6483
+
5635
6484
  /**
5636
6485
  * ShipmentsEntity
5637
6486
  * @export
@@ -5711,6 +6560,25 @@ export interface ShipmentEntity {
5711
6560
  */
5712
6561
  'provId'?: number;
5713
6562
  }
6563
+ /**
6564
+ * Shipment Item
6565
+ * @export
6566
+ * @interface ShipmentItemDTO
6567
+ */
6568
+ export interface ShipmentItemDTO {
6569
+ /**
6570
+ * Item ID
6571
+ * @type {number}
6572
+ * @memberof ShipmentItemDTO
6573
+ */
6574
+ 'itemId'?: number;
6575
+ /**
6576
+ * Quantity
6577
+ * @type {number}
6578
+ * @memberof ShipmentItemDTO
6579
+ */
6580
+ 'quantity'?: number;
6581
+ }
5714
6582
  /**
5715
6583
  * ShipmentItemsEntity
5716
6584
  * @export
@@ -5749,61 +6617,263 @@ export interface ShipmentItemEntity {
5749
6617
  'itemId'?: string;
5750
6618
  }
5751
6619
  /**
5752
- *
6620
+ * Shipment Item
5753
6621
  * @export
5754
- * @interface ShippingConsignmentModel
6622
+ * @interface ShipmentItemModel
5755
6623
  */
5756
- export interface ShippingConsignmentModel {
6624
+ export interface ShipmentItemModel {
5757
6625
  /**
5758
- *
5759
- * @type {ShippingServiceModel}
5760
- * @memberof ShippingConsignmentModel
6626
+ * id
6627
+ * @type {number}
6628
+ * @memberof ShipmentItemModel
5761
6629
  */
5762
- 'service'?: ShippingServiceModel;
6630
+ 'id'?: number;
5763
6631
  /**
5764
- * ID/Number
5765
- * @type {string}
5766
- * @memberof ShippingConsignmentModel
6632
+ * shipmentId
6633
+ * @type {number}
6634
+ * @memberof ShipmentItemModel
5767
6635
  */
5768
- 'id'?: string;
6636
+ 'shipmentId'?: number;
5769
6637
  /**
5770
- * Tracking Number
5771
- * @type {string}
5772
- * @memberof ShippingConsignmentModel
6638
+ * batchId
6639
+ * @type {number}
6640
+ * @memberof ShipmentItemModel
5773
6641
  */
5774
- 'trackingNumber'?: string;
6642
+ 'batchId'?: number;
5775
6643
  /**
5776
- * Parcels
5777
- * @type {Array<string>}
5778
- * @memberof ShippingConsignmentModel
6644
+ * quantity
6645
+ * @type {number}
6646
+ * @memberof ShipmentItemModel
5779
6647
  */
5780
- 'parcelIds'?: Array<string>;
6648
+ 'quantity'?: number;
6649
+ /**
6650
+ * item
6651
+ * @type {string}
6652
+ * @memberof ShipmentItemModel
6653
+ */
6654
+ 'itemId'?: string;
5781
6655
  }
5782
6656
  /**
5783
- * Shipping Information
6657
+ * Shipment
5784
6658
  * @export
5785
- * @interface ShippingInformationDTO
6659
+ * @interface ShipmentModel
5786
6660
  */
5787
- export interface ShippingInformationDTO {
6661
+ export interface ShipmentModel {
5788
6662
  /**
5789
- * Items
5790
- * @type {Array<BasicItemDTO>}
5791
- * @memberof ShippingInformationDTO
6663
+ * id
6664
+ * @type {number}
6665
+ * @memberof ShipmentModel
5792
6666
  */
5793
- 'items'?: Array<BasicItemDTO>;
6667
+ 'id'?: number;
5794
6668
  /**
5795
- * Destination Post Code
5796
- * @type {string}
5797
- * @memberof ShippingInformationDTO
6669
+ * batchId
6670
+ * @type {number}
6671
+ * @memberof ShipmentModel
5798
6672
  */
5799
- 'postalCode'?: string;
6673
+ 'batchId'?: number;
5800
6674
  /**
5801
- * Destination ISO
6675
+ * courier
5802
6676
  * @type {string}
5803
- * @memberof ShippingInformationDTO
6677
+ * @memberof ShipmentModel
6678
+ */
6679
+ 'courier'?: string;
6680
+ /**
6681
+ * courierService
6682
+ * @type {string}
6683
+ * @memberof ShipmentModel
6684
+ */
6685
+ 'courierService'?: string;
6686
+ /**
6687
+ * courierServiceDesc
6688
+ * @type {string}
6689
+ * @memberof ShipmentModel
6690
+ */
6691
+ 'courierServiceDesc'?: string;
6692
+ /**
6693
+ * courierReference
6694
+ * @type {string}
6695
+ * @memberof ShipmentModel
6696
+ */
6697
+ 'courierReference'?: string;
6698
+ /**
6699
+ * courierTracking
6700
+ * @type {string}
6701
+ * @memberof ShipmentModel
6702
+ */
6703
+ 'courierTracking'?: string;
6704
+ /**
6705
+ * courierBoxes
6706
+ * @type {number}
6707
+ * @memberof ShipmentModel
6708
+ */
6709
+ 'courierBoxes'?: number;
6710
+ /**
6711
+ * mac
6712
+ * @type {string}
6713
+ * @memberof ShipmentModel
6714
+ */
6715
+ 'scannedData'?: string;
6716
+ /**
6717
+ * date
6718
+ * @type {string}
6719
+ * @memberof ShipmentModel
6720
+ */
6721
+ 'dateShipped'?: string;
6722
+ /**
6723
+ * requestDate
6724
+ * @type {string}
6725
+ * @memberof ShipmentModel
6726
+ */
6727
+ 'requestDate'?: string;
6728
+ /**
6729
+ * provId
6730
+ * @type {number}
6731
+ * @memberof ShipmentModel
6732
+ */
6733
+ 'provId'?: number;
6734
+ }
6735
+ /**
6736
+ * Shipment Request
6737
+ * @export
6738
+ * @interface ShipmentRequestDTO
6739
+ */
6740
+ export interface ShipmentRequestDTO {
6741
+ /**
6742
+ * Courier
6743
+ * @type {string}
6744
+ * @memberof ShipmentRequestDTO
6745
+ */
6746
+ 'courier'?: ShipmentRequestDTOCourierEnum;
6747
+ /**
6748
+ *
6749
+ * @type {AddressModel}
6750
+ * @memberof ShipmentRequestDTO
6751
+ */
6752
+ 'address'?: AddressModel | null;
6753
+ /**
6754
+ * Scanned Lines
6755
+ * @type {Array<string>}
6756
+ * @memberof ShipmentRequestDTO
6757
+ */
6758
+ 'scannedLines'?: Array<string>;
6759
+ /**
6760
+ * Service
6761
+ * @type {string}
6762
+ * @memberof ShipmentRequestDTO
6763
+ */
6764
+ 'service'?: string;
6765
+ /**
6766
+ * Date Time
6767
+ * @type {string}
6768
+ * @memberof ShipmentRequestDTO
6769
+ */
6770
+ 'shipDate'?: string;
6771
+ /**
6772
+ * Items
6773
+ * @type {Array<ShipmentItemDTO>}
6774
+ * @memberof ShipmentRequestDTO
6775
+ */
6776
+ 'items'?: Array<ShipmentItemDTO>;
6777
+ }
6778
+
6779
+ export const ShipmentRequestDTOCourierEnum = {
6780
+ Dpd: 'DPD',
6781
+ ChorltonPallet: 'Chorlton Pallet',
6782
+ Pops: 'POPS'
6783
+ } as const;
6784
+
6785
+ export type ShipmentRequestDTOCourierEnum = typeof ShipmentRequestDTOCourierEnum[keyof typeof ShipmentRequestDTOCourierEnum];
6786
+
6787
+ /**
6788
+ *
6789
+ * @export
6790
+ * @interface ShippingConsignmentModel
6791
+ */
6792
+ export interface ShippingConsignmentModel {
6793
+ /**
6794
+ *
6795
+ * @type {ShippingServiceModel}
6796
+ * @memberof ShippingConsignmentModel
6797
+ */
6798
+ 'service'?: ShippingServiceModel;
6799
+ /**
6800
+ * ID/Number
6801
+ * @type {string}
6802
+ * @memberof ShippingConsignmentModel
6803
+ */
6804
+ 'id'?: string;
6805
+ /**
6806
+ * Tracking Number
6807
+ * @type {string}
6808
+ * @memberof ShippingConsignmentModel
6809
+ */
6810
+ 'trackingNumber'?: string;
6811
+ /**
6812
+ * Parcels
6813
+ * @type {Array<string>}
6814
+ * @memberof ShippingConsignmentModel
6815
+ */
6816
+ 'parcelIds'?: Array<string>;
6817
+ }
6818
+ /**
6819
+ * Shipping Information
6820
+ * @export
6821
+ * @interface ShippingInformationDTO
6822
+ */
6823
+ export interface ShippingInformationDTO {
6824
+ /**
6825
+ * Items
6826
+ * @type {Array<BasicItemDTO>}
6827
+ * @memberof ShippingInformationDTO
6828
+ */
6829
+ 'items'?: Array<BasicItemDTO>;
6830
+ /**
6831
+ * Destination Post Code
6832
+ * @type {string}
6833
+ * @memberof ShippingInformationDTO
6834
+ */
6835
+ 'postalCode'?: string;
6836
+ /**
6837
+ * Destination ISO
6838
+ * @type {string}
6839
+ * @memberof ShippingInformationDTO
5804
6840
  */
5805
6841
  'iso'?: string;
5806
6842
  }
6843
+ /**
6844
+ *
6845
+ * @export
6846
+ * @interface ShippingRequestDTO
6847
+ */
6848
+ export interface ShippingRequestDTO {
6849
+ /**
6850
+ * Courier
6851
+ * @type {string}
6852
+ * @memberof ShippingRequestDTO
6853
+ */
6854
+ 'courier'?: ShippingRequestDTOCourierEnum;
6855
+ /**
6856
+ * Courier Service
6857
+ * @type {string}
6858
+ * @memberof ShippingRequestDTO
6859
+ */
6860
+ 'service'?: string;
6861
+ /**
6862
+ * Boxes
6863
+ * @type {number}
6864
+ * @memberof ShippingRequestDTO
6865
+ */
6866
+ 'boxes'?: number;
6867
+ }
6868
+
6869
+ export const ShippingRequestDTOCourierEnum = {
6870
+ Dpd: 'DPD',
6871
+ ChorltonPallet: 'Chorlton Pallet',
6872
+ Pops: 'POPS'
6873
+ } as const;
6874
+
6875
+ export type ShippingRequestDTOCourierEnum = typeof ShippingRequestDTOCourierEnum[keyof typeof ShippingRequestDTOCourierEnum];
6876
+
5807
6877
  /**
5808
6878
  * Shipping Service
5809
6879
  * @export
@@ -7434,6 +8504,67 @@ export interface SupplierItemEntity {
7434
8504
  */
7435
8505
  'supplierSku'?: string;
7436
8506
  }
8507
+ /**
8508
+ * Supplier
8509
+ * @export
8510
+ * @interface SupplierModel
8511
+ */
8512
+ export interface SupplierModel {
8513
+ /**
8514
+ * id
8515
+ * @type {number}
8516
+ * @memberof SupplierModel
8517
+ */
8518
+ 'id'?: number;
8519
+ /**
8520
+ * name
8521
+ * @type {string}
8522
+ * @memberof SupplierModel
8523
+ */
8524
+ 'name'?: string;
8525
+ /**
8526
+ * nameShort
8527
+ * @type {string}
8528
+ * @memberof SupplierModel
8529
+ */
8530
+ 'shortName'?: string;
8531
+ /**
8532
+ * email
8533
+ * @type {string}
8534
+ * @memberof SupplierModel
8535
+ */
8536
+ 'email'?: string;
8537
+ /**
8538
+ * phone
8539
+ * @type {string}
8540
+ * @memberof SupplierModel
8541
+ */
8542
+ 'phone'?: string;
8543
+ /**
8544
+ * defaultCourier
8545
+ * @type {string}
8546
+ * @memberof SupplierModel
8547
+ */
8548
+ 'defaultCourier'?: string;
8549
+ /**
8550
+ * defaultCarriage
8551
+ * @type {number}
8552
+ * @memberof SupplierModel
8553
+ */
8554
+ 'defaultCarriage'?: number;
8555
+ /**
8556
+ * account
8557
+ * @type {string}
8558
+ * @memberof SupplierModel
8559
+ */
8560
+ 'accountNumber'?: string;
8561
+ /**
8562
+ * internalAccount
8563
+ * @type {string}
8564
+ * @memberof SupplierModel
8565
+ */
8566
+ 'xeroAccountNumber'?: string;
8567
+ }
7437
8568
  /**
7438
8569
  * 3CX Wizard Restore From Backup
7439
8570
  * @export
@@ -17040,17 +18171,25 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
17040
18171
  export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
17041
18172
  return {
17042
18173
  /**
17043
- * Delete Orders (Beta)
17044
- * @summary Delete Orders (Beta)
18174
+ * Delete Shipment (Admin)
18175
+ * @summary Delete Shipment (Admin)
17045
18176
  * @param {number} id Order ID
18177
+ * @param {number} batchId Batch ID
18178
+ * @param {number} shipmentId Shipment ID
17046
18179
  * @param {*} [options] Override http request option.
17047
18180
  * @throws {RequiredError}
17048
18181
  */
17049
- deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18182
+ deleteCreateShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17050
18183
  // verify required parameter 'id' is not null or undefined
17051
- assertParamExists('deleteUpdateOrder', 'id', id)
17052
- const localVarPath = `/orders/{id}`
17053
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18184
+ assertParamExists('deleteCreateShipment', 'id', id)
18185
+ // verify required parameter 'batchId' is not null or undefined
18186
+ assertParamExists('deleteCreateShipment', 'batchId', batchId)
18187
+ // verify required parameter 'shipmentId' is not null or undefined
18188
+ assertParamExists('deleteCreateShipment', 'shipmentId', shipmentId)
18189
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18190
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18191
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18192
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
17054
18193
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17055
18194
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17056
18195
  let baseOptions;
@@ -17074,17 +18213,20 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17074
18213
  };
17075
18214
  },
17076
18215
  /**
17077
- * Get Editable Order (Admin)
17078
- * @summary Get Editable Order (Admin)
18216
+ * Delete Batch (Admin)
17079
18217
  * @param {number} id Order ID
18218
+ * @param {number} batchId Batch ID
17080
18219
  * @param {*} [options] Override http request option.
17081
18220
  * @throws {RequiredError}
17082
18221
  */
17083
- getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18222
+ deleteDeleteBatch: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17084
18223
  // verify required parameter 'id' is not null or undefined
17085
- assertParamExists('getGetAdminEditableOrder', 'id', id)
17086
- const localVarPath = `/admin/orders/{id}/views/editable`
17087
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18224
+ assertParamExists('deleteDeleteBatch', 'id', id)
18225
+ // verify required parameter 'batchId' is not null or undefined
18226
+ assertParamExists('deleteDeleteBatch', 'batchId', batchId)
18227
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}`
18228
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18229
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
17088
18230
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17089
18231
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17090
18232
  let baseOptions;
@@ -17092,7 +18234,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17092
18234
  baseOptions = configuration.baseOptions;
17093
18235
  }
17094
18236
 
17095
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18237
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
17096
18238
  const localVarHeaderParameter = {} as any;
17097
18239
  const localVarQueryParameter = {} as any;
17098
18240
 
@@ -17108,16 +18250,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17108
18250
  };
17109
18251
  },
17110
18252
  /**
17111
- * Get Editable Order (Beta)
17112
- * @summary Get Editable Order (Beta)
18253
+ * Delete Orders (Beta)
18254
+ * @summary Delete Orders (Beta)
17113
18255
  * @param {number} id Order ID
17114
18256
  * @param {*} [options] Override http request option.
17115
18257
  * @throws {RequiredError}
17116
18258
  */
17117
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18259
+ deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17118
18260
  // verify required parameter 'id' is not null or undefined
17119
- assertParamExists('getGetEditableOrder', 'id', id)
17120
- const localVarPath = `/orders/{id}/views/editable`
18261
+ assertParamExists('deleteUpdateOrder', 'id', id)
18262
+ const localVarPath = `/orders/{id}`
17121
18263
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17122
18264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17123
18265
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -17126,7 +18268,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17126
18268
  baseOptions = configuration.baseOptions;
17127
18269
  }
17128
18270
 
17129
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18271
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
17130
18272
  const localVarHeaderParameter = {} as any;
17131
18273
  const localVarQueryParameter = {} as any;
17132
18274
 
@@ -17142,20 +18284,17 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17142
18284
  };
17143
18285
  },
17144
18286
  /**
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
18287
+ * Get Editable Order (Admin)
18288
+ * @summary Get Editable Order (Admin)
18289
+ * @param {number} id Order ID
17154
18290
  * @param {*} [options] Override http request option.
17155
18291
  * @throws {RequiredError}
17156
18292
  */
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`;
18293
+ getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18294
+ // verify required parameter 'id' is not null or undefined
18295
+ assertParamExists('getGetAdminEditableOrder', 'id', id)
18296
+ const localVarPath = `/admin/orders/{id}/views/editable`
18297
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17159
18298
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17160
18299
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17161
18300
  let baseOptions;
@@ -17167,34 +18306,535 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17167
18306
  const localVarHeaderParameter = {} as any;
17168
18307
  const localVarQueryParameter = {} as any;
17169
18308
 
17170
- if (pageSize !== undefined) {
17171
- localVarQueryParameter['pageSize'] = pageSize;
17172
- }
17173
18309
 
17174
- if (page !== undefined) {
17175
- localVarQueryParameter['page'] = page;
18310
+
18311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18313
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18314
+
18315
+ return {
18316
+ url: toPathString(localVarUrlObj),
18317
+ options: localVarRequestOptions,
18318
+ };
18319
+ },
18320
+ /**
18321
+ * Get Order Details (Admin)
18322
+ * @summary Get Order Details (Admin)
18323
+ * @param {number} id Order ID
18324
+ * @param {*} [options] Override http request option.
18325
+ * @throws {RequiredError}
18326
+ */
18327
+ getGetAdminOrderDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18328
+ // verify required parameter 'id' is not null or undefined
18329
+ assertParamExists('getGetAdminOrderDetails', 'id', id)
18330
+ const localVarPath = `/admin/orders/{id}/details`
18331
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18332
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18334
+ let baseOptions;
18335
+ if (configuration) {
18336
+ baseOptions = configuration.baseOptions;
18337
+ }
18338
+
18339
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18340
+ const localVarHeaderParameter = {} as any;
18341
+ const localVarQueryParameter = {} as any;
18342
+
18343
+
18344
+
18345
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18347
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18348
+
18349
+ return {
18350
+ url: toPathString(localVarUrlObj),
18351
+ options: localVarRequestOptions,
18352
+ };
18353
+ },
18354
+ /**
18355
+ * Get Editable Order (Beta)
18356
+ * @summary Get Editable Order (Beta)
18357
+ * @param {number} id Order ID
18358
+ * @param {*} [options] Override http request option.
18359
+ * @throws {RequiredError}
18360
+ */
18361
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18362
+ // verify required parameter 'id' is not null or undefined
18363
+ assertParamExists('getGetEditableOrder', 'id', id)
18364
+ const localVarPath = `/orders/{id}/views/editable`
18365
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18367
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18368
+ let baseOptions;
18369
+ if (configuration) {
18370
+ baseOptions = configuration.baseOptions;
18371
+ }
18372
+
18373
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18374
+ const localVarHeaderParameter = {} as any;
18375
+ const localVarQueryParameter = {} as any;
18376
+
18377
+
18378
+
18379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18381
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18382
+
18383
+ return {
18384
+ url: toPathString(localVarUrlObj),
18385
+ options: localVarRequestOptions,
18386
+ };
18387
+ },
18388
+ /**
18389
+ * Download Order PDF
18390
+ * @summary Download Order PDF
18391
+ * @param {number} id Order ID
18392
+ * @param {*} [options] Override http request option.
18393
+ * @throws {RequiredError}
18394
+ */
18395
+ getGetOrderPdf: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18396
+ // verify required parameter 'id' is not null or undefined
18397
+ assertParamExists('getGetOrderPdf', 'id', id)
18398
+ const localVarPath = `/orders/{id}/pdf`
18399
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18400
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18401
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18402
+ let baseOptions;
18403
+ if (configuration) {
18404
+ baseOptions = configuration.baseOptions;
18405
+ }
18406
+
18407
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18408
+ const localVarHeaderParameter = {} as any;
18409
+ const localVarQueryParameter = {} as any;
18410
+
18411
+
18412
+
18413
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18414
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18415
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18416
+
18417
+ return {
18418
+ url: toPathString(localVarUrlObj),
18419
+ options: localVarRequestOptions,
18420
+ };
18421
+ },
18422
+ /**
18423
+ * Get Orders (Beta)
18424
+ * @summary Get Orders (Beta)
18425
+ * @param {number} [pageSize] Number Of Results
18426
+ * @param {number} [page] Page Number
18427
+ * @param {string} [search] Search
18428
+ * @param {boolean | null} [fulfillable] Fulfillable
18429
+ * @param {GetGetOrdersStatusEnum} [status] Status
18430
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
18431
+ * @param {number | null} [customerId] Customer ID
18432
+ * @param {*} [options] Override http request option.
18433
+ * @throws {RequiredError}
18434
+ */
18435
+ getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18436
+ const localVarPath = `/orders`;
18437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18439
+ let baseOptions;
18440
+ if (configuration) {
18441
+ baseOptions = configuration.baseOptions;
18442
+ }
18443
+
18444
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18445
+ const localVarHeaderParameter = {} as any;
18446
+ const localVarQueryParameter = {} as any;
18447
+
18448
+ if (pageSize !== undefined) {
18449
+ localVarQueryParameter['pageSize'] = pageSize;
18450
+ }
18451
+
18452
+ if (page !== undefined) {
18453
+ localVarQueryParameter['page'] = page;
18454
+ }
18455
+
18456
+ if (search !== undefined) {
18457
+ localVarQueryParameter['search'] = search;
18458
+ }
18459
+
18460
+ if (fulfillable !== undefined) {
18461
+ localVarQueryParameter['fulfillable'] = fulfillable;
18462
+ }
18463
+
18464
+ if (status !== undefined) {
18465
+ localVarQueryParameter['status'] = status;
18466
+ }
18467
+
18468
+ if (filter !== undefined) {
18469
+ localVarQueryParameter['filter'] = filter;
18470
+ }
18471
+
18472
+ if (customerId !== undefined) {
18473
+ localVarQueryParameter['customerId'] = customerId;
18474
+ }
18475
+
18476
+
18477
+
18478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18480
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18481
+
18482
+ return {
18483
+ url: toPathString(localVarUrlObj),
18484
+ options: localVarRequestOptions,
18485
+ };
18486
+ },
18487
+ /**
18488
+ * Add Order Note
18489
+ * @summary Add Order Note
18490
+ * @param {number} id Order ID
18491
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18492
+ * @param {*} [options] Override http request option.
18493
+ * @throws {RequiredError}
18494
+ */
18495
+ postAddOrderNote: async (id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18496
+ // verify required parameter 'id' is not null or undefined
18497
+ assertParamExists('postAddOrderNote', 'id', id)
18498
+ const localVarPath = `/admin/orders/{id}/notes`
18499
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18500
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18501
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18502
+ let baseOptions;
18503
+ if (configuration) {
18504
+ baseOptions = configuration.baseOptions;
18505
+ }
18506
+
18507
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18508
+ const localVarHeaderParameter = {} as any;
18509
+ const localVarQueryParameter = {} as any;
18510
+
18511
+
18512
+
18513
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18514
+
18515
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18516
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18517
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18518
+ localVarRequestOptions.data = serializeDataIfNeeded(postAddOrderNoteRequest, localVarRequestOptions, configuration)
18519
+
18520
+ return {
18521
+ url: toPathString(localVarUrlObj),
18522
+ options: localVarRequestOptions,
18523
+ };
18524
+ },
18525
+ /**
18526
+ * Create An Order (Admin)
18527
+ * @summary Create An Order (Admin)
18528
+ * @param {boolean} [readonly] Readonly Order
18529
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
18530
+ * @param {*} [options] Override http request option.
18531
+ * @throws {RequiredError}
18532
+ */
18533
+ postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18534
+ const localVarPath = `/admin/orders`;
18535
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18536
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18537
+ let baseOptions;
18538
+ if (configuration) {
18539
+ baseOptions = configuration.baseOptions;
18540
+ }
18541
+
18542
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18543
+ const localVarHeaderParameter = {} as any;
18544
+ const localVarQueryParameter = {} as any;
18545
+
18546
+ if (readonly !== undefined) {
18547
+ localVarQueryParameter['readonly'] = readonly;
18548
+ }
18549
+
18550
+
18551
+
18552
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18553
+
18554
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18556
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18557
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18558
+
18559
+ return {
18560
+ url: toPathString(localVarUrlObj),
18561
+ options: localVarRequestOptions,
18562
+ };
18563
+ },
18564
+ /**
18565
+ * Create Shipping Consignment
18566
+ * @summary Create Shipping Consignment
18567
+ * @param {number} id Order ID
18568
+ * @param {number} shipmentId Shipment ID
18569
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18570
+ * @param {*} [options] Override http request option.
18571
+ * @throws {RequiredError}
18572
+ */
18573
+ postCreateConsignment: async (id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18574
+ // verify required parameter 'id' is not null or undefined
18575
+ assertParamExists('postCreateConsignment', 'id', id)
18576
+ // verify required parameter 'shipmentId' is not null or undefined
18577
+ assertParamExists('postCreateConsignment', 'shipmentId', shipmentId)
18578
+ const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/consignment`
18579
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18580
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18581
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18582
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18583
+ let baseOptions;
18584
+ if (configuration) {
18585
+ baseOptions = configuration.baseOptions;
18586
+ }
18587
+
18588
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18589
+ const localVarHeaderParameter = {} as any;
18590
+ const localVarQueryParameter = {} as any;
18591
+
18592
+
18593
+
18594
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18595
+
18596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18598
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18599
+ localVarRequestOptions.data = serializeDataIfNeeded(shippingRequestDTO, localVarRequestOptions, configuration)
18600
+
18601
+ return {
18602
+ url: toPathString(localVarUrlObj),
18603
+ options: localVarRequestOptions,
18604
+ };
18605
+ },
18606
+ /**
18607
+ * Create Shipment (Admin)
18608
+ * @summary Create Shipment (Admin)
18609
+ * @param {number} id Order ID
18610
+ * @param {number} batchId Batch ID
18611
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18612
+ * @param {*} [options] Override http request option.
18613
+ * @throws {RequiredError}
18614
+ */
18615
+ postCreateShipment: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18616
+ // verify required parameter 'id' is not null or undefined
18617
+ assertParamExists('postCreateShipment', 'id', id)
18618
+ // verify required parameter 'batchId' is not null or undefined
18619
+ assertParamExists('postCreateShipment', 'batchId', batchId)
18620
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18621
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18622
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18623
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18624
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18625
+ let baseOptions;
18626
+ if (configuration) {
18627
+ baseOptions = configuration.baseOptions;
18628
+ }
18629
+
18630
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18631
+ const localVarHeaderParameter = {} as any;
18632
+ const localVarQueryParameter = {} as any;
18633
+
18634
+
18635
+
18636
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18637
+
18638
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18639
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18640
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18641
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18642
+
18643
+ return {
18644
+ url: toPathString(localVarUrlObj),
18645
+ options: localVarRequestOptions,
18646
+ };
18647
+ },
18648
+ /**
18649
+ * Create An Order (Beta)
18650
+ * @summary Create An Order (Beta)
18651
+ * @param {boolean} [readonly] Readonly Order
18652
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18653
+ * @param {*} [options] Override http request option.
18654
+ * @throws {RequiredError}
18655
+ */
18656
+ postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18657
+ const localVarPath = `/orders`;
18658
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18659
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18660
+ let baseOptions;
18661
+ if (configuration) {
18662
+ baseOptions = configuration.baseOptions;
18663
+ }
18664
+
18665
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18666
+ const localVarHeaderParameter = {} as any;
18667
+ const localVarQueryParameter = {} as any;
18668
+
18669
+ if (readonly !== undefined) {
18670
+ localVarQueryParameter['readonly'] = readonly;
18671
+ }
18672
+
18673
+
18674
+
18675
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18676
+
18677
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18678
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18679
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18680
+ localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
18681
+
18682
+ return {
18683
+ url: toPathString(localVarUrlObj),
18684
+ options: localVarRequestOptions,
18685
+ };
18686
+ },
18687
+ /**
18688
+ * Issue Credit (Admin)
18689
+ * @summary Issue Credit (Admin)
18690
+ * @param {number} id Order ID
18691
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
18692
+ * @param {*} [options] Override http request option.
18693
+ * @throws {RequiredError}
18694
+ */
18695
+ postIssueCredit: async (id: number, creditNoteDTO?: CreditNoteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18696
+ // verify required parameter 'id' is not null or undefined
18697
+ assertParamExists('postIssueCredit', 'id', id)
18698
+ const localVarPath = `/admin/orders/{id}/credit`
18699
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18702
+ let baseOptions;
18703
+ if (configuration) {
18704
+ baseOptions = configuration.baseOptions;
18705
+ }
18706
+
18707
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18708
+ const localVarHeaderParameter = {} as any;
18709
+ const localVarQueryParameter = {} as any;
18710
+
18711
+
18712
+
18713
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18714
+
18715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18717
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18718
+ localVarRequestOptions.data = serializeDataIfNeeded(creditNoteDTO, localVarRequestOptions, configuration)
18719
+
18720
+ return {
18721
+ url: toPathString(localVarUrlObj),
18722
+ options: localVarRequestOptions,
18723
+ };
18724
+ },
18725
+ /**
18726
+ * Print Shipment Label
18727
+ * @summary Print Shipment Label
18728
+ * @param {number} id Order ID
18729
+ * @param {number} shipmentId Shipment ID
18730
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18731
+ * @param {*} [options] Override http request option.
18732
+ * @throws {RequiredError}
18733
+ */
18734
+ postPrintShippingLabel: async (id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18735
+ // verify required parameter 'id' is not null or undefined
18736
+ assertParamExists('postPrintShippingLabel', 'id', id)
18737
+ // verify required parameter 'shipmentId' is not null or undefined
18738
+ assertParamExists('postPrintShippingLabel', 'shipmentId', shipmentId)
18739
+ // verify required parameter 'printer' is not null or undefined
18740
+ assertParamExists('postPrintShippingLabel', 'printer', printer)
18741
+ const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/label/print`
18742
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18743
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18746
+ let baseOptions;
18747
+ if (configuration) {
18748
+ baseOptions = configuration.baseOptions;
18749
+ }
18750
+
18751
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18752
+ const localVarHeaderParameter = {} as any;
18753
+ const localVarQueryParameter = {} as any;
18754
+
18755
+ if (printer !== undefined) {
18756
+ localVarQueryParameter['printer'] = printer;
18757
+ }
18758
+
18759
+
18760
+
18761
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18762
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18763
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18764
+
18765
+ return {
18766
+ url: toPathString(localVarUrlObj),
18767
+ options: localVarRequestOptions,
18768
+ };
18769
+ },
18770
+ /**
18771
+ * Send Order Email
18772
+ * @summary Send Order Email
18773
+ * @param {number} id Order ID
18774
+ * @param {string} email Email Address
18775
+ * @param {*} [options] Override http request option.
18776
+ * @throws {RequiredError}
18777
+ */
18778
+ postSendOrderEmail: async (id: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18779
+ // verify required parameter 'id' is not null or undefined
18780
+ assertParamExists('postSendOrderEmail', 'id', id)
18781
+ // verify required parameter 'email' is not null or undefined
18782
+ assertParamExists('postSendOrderEmail', 'email', email)
18783
+ const localVarPath = `/admin/orders/{id}/email/send`
18784
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18785
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18786
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18787
+ let baseOptions;
18788
+ if (configuration) {
18789
+ baseOptions = configuration.baseOptions;
17176
18790
  }
17177
18791
 
17178
- if (search !== undefined) {
17179
- localVarQueryParameter['search'] = search;
17180
- }
18792
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18793
+ const localVarHeaderParameter = {} as any;
18794
+ const localVarQueryParameter = {} as any;
17181
18795
 
17182
- if (fulfillable !== undefined) {
17183
- localVarQueryParameter['fulfillable'] = fulfillable;
18796
+ if (email !== undefined) {
18797
+ localVarQueryParameter['email'] = email;
17184
18798
  }
17185
18799
 
17186
- if (status !== undefined) {
17187
- localVarQueryParameter['status'] = status;
17188
- }
17189
18800
 
17190
- if (filter !== undefined) {
17191
- localVarQueryParameter['filter'] = filter;
17192
- }
18801
+
18802
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18803
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18804
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17193
18805
 
17194
- if (customerId !== undefined) {
17195
- localVarQueryParameter['customerId'] = customerId;
18806
+ return {
18807
+ url: toPathString(localVarUrlObj),
18808
+ options: localVarRequestOptions,
18809
+ };
18810
+ },
18811
+ /**
18812
+ * Send Supplier Email
18813
+ * @summary Send Supplier Email
18814
+ * @param {number} id Order ID
18815
+ * @param {number} batchId Batch ID
18816
+ * @param {*} [options] Override http request option.
18817
+ * @throws {RequiredError}
18818
+ */
18819
+ postSendSupplierEmail: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18820
+ // verify required parameter 'id' is not null or undefined
18821
+ assertParamExists('postSendSupplierEmail', 'id', id)
18822
+ // verify required parameter 'batchId' is not null or undefined
18823
+ assertParamExists('postSendSupplierEmail', 'batchId', batchId)
18824
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/email/send`
18825
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18826
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18827
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18828
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18829
+ let baseOptions;
18830
+ if (configuration) {
18831
+ baseOptions = configuration.baseOptions;
17196
18832
  }
17197
18833
 
18834
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18835
+ const localVarHeaderParameter = {} as any;
18836
+ const localVarQueryParameter = {} as any;
18837
+
17198
18838
 
17199
18839
 
17200
18840
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -17207,15 +18847,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17207
18847
  };
17208
18848
  },
17209
18849
  /**
17210
- * Create An Order (Admin)
17211
- * @summary Create An Order (Admin)
17212
- * @param {boolean} [readonly] Readonly Order
17213
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
18850
+ * Split Order
18851
+ * @summary Split Order
18852
+ * @param {number} id Order ID
18853
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17214
18854
  * @param {*} [options] Override http request option.
17215
18855
  * @throws {RequiredError}
17216
18856
  */
17217
- postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17218
- const localVarPath = `/admin/orders`;
18857
+ postSplitOrder: async (id: number, postSplitOrderRequest?: PostSplitOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18858
+ // verify required parameter 'id' is not null or undefined
18859
+ assertParamExists('postSplitOrder', 'id', id)
18860
+ const localVarPath = `/admin/orders/{id}/split`
18861
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17219
18862
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17220
18863
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17221
18864
  let baseOptions;
@@ -17227,10 +18870,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17227
18870
  const localVarHeaderParameter = {} as any;
17228
18871
  const localVarQueryParameter = {} as any;
17229
18872
 
17230
- if (readonly !== undefined) {
17231
- localVarQueryParameter['readonly'] = readonly;
17232
- }
17233
-
17234
18873
 
17235
18874
 
17236
18875
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -17238,7 +18877,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17238
18877
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17239
18878
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17240
18879
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17241
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18880
+ localVarRequestOptions.data = serializeDataIfNeeded(postSplitOrderRequest, localVarRequestOptions, configuration)
17242
18881
 
17243
18882
  return {
17244
18883
  url: toPathString(localVarUrlObj),
@@ -17246,15 +18885,21 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17246
18885
  };
17247
18886
  },
17248
18887
  /**
17249
- * Create An Order (Beta)
17250
- * @summary Create An Order (Beta)
17251
- * @param {boolean} [readonly] Readonly Order
17252
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18888
+ * Allocate Items To Supplier
18889
+ * @summary Allocate Items To Supplier
18890
+ * @param {number} id Order ID
18891
+ * @param {number} supplierId Supplier ID
18892
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17253
18893
  * @param {*} [options] Override http request option.
17254
18894
  * @throws {RequiredError}
17255
18895
  */
17256
- postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17257
- const localVarPath = `/orders`;
18896
+ putAllocateItems: async (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18897
+ // verify required parameter 'id' is not null or undefined
18898
+ assertParamExists('putAllocateItems', 'id', id)
18899
+ // verify required parameter 'supplierId' is not null or undefined
18900
+ assertParamExists('putAllocateItems', 'supplierId', supplierId)
18901
+ const localVarPath = `/admin/orders/{id}/items/allocate`
18902
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17258
18903
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17259
18904
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17260
18905
  let baseOptions;
@@ -17262,12 +18907,12 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17262
18907
  baseOptions = configuration.baseOptions;
17263
18908
  }
17264
18909
 
17265
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18910
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17266
18911
  const localVarHeaderParameter = {} as any;
17267
18912
  const localVarQueryParameter = {} as any;
17268
18913
 
17269
- if (readonly !== undefined) {
17270
- localVarQueryParameter['readonly'] = readonly;
18914
+ if (supplierId !== undefined) {
18915
+ localVarQueryParameter['supplierId'] = supplierId;
17271
18916
  }
17272
18917
 
17273
18918
 
@@ -17277,7 +18922,53 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17277
18922
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17278
18923
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17279
18924
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17280
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
18925
+ localVarRequestOptions.data = serializeDataIfNeeded(putAllocateItemsRequest, localVarRequestOptions, configuration)
18926
+
18927
+ return {
18928
+ url: toPathString(localVarUrlObj),
18929
+ options: localVarRequestOptions,
18930
+ };
18931
+ },
18932
+ /**
18933
+ * Update Shipment (Admin)
18934
+ * @summary Update Shipment (Admin)
18935
+ * @param {number} id Order ID
18936
+ * @param {number} batchId Batch ID
18937
+ * @param {number} shipmentId Shipment ID
18938
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18939
+ * @param {*} [options] Override http request option.
18940
+ * @throws {RequiredError}
18941
+ */
18942
+ putCreateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18943
+ // verify required parameter 'id' is not null or undefined
18944
+ assertParamExists('putCreateShipment', 'id', id)
18945
+ // verify required parameter 'batchId' is not null or undefined
18946
+ assertParamExists('putCreateShipment', 'batchId', batchId)
18947
+ // verify required parameter 'shipmentId' is not null or undefined
18948
+ assertParamExists('putCreateShipment', 'shipmentId', shipmentId)
18949
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18950
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18951
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18952
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18953
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18954
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18955
+ let baseOptions;
18956
+ if (configuration) {
18957
+ baseOptions = configuration.baseOptions;
18958
+ }
18959
+
18960
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18961
+ const localVarHeaderParameter = {} as any;
18962
+ const localVarQueryParameter = {} as any;
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(shipmentRequestDTO, localVarRequestOptions, configuration)
17281
18972
 
17282
18973
  return {
17283
18974
  url: toPathString(localVarUrlObj),
@@ -17381,89 +19072,289 @@ export const OrdersApiFp = function(configuration?: Configuration) {
17381
19072
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
17382
19073
  return {
17383
19074
  /**
17384
- * Delete Orders (Beta)
17385
- * @summary Delete Orders (Beta)
19075
+ * Delete Shipment (Admin)
19076
+ * @summary Delete Shipment (Admin)
19077
+ * @param {number} id Order ID
19078
+ * @param {number} batchId Batch ID
19079
+ * @param {number} shipmentId Shipment ID
19080
+ * @param {*} [options] Override http request option.
19081
+ * @throws {RequiredError}
19082
+ */
19083
+ async deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCreateShipment(id, batchId, shipmentId, options);
19085
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19086
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteCreateShipment']?.[localVarOperationServerIndex]?.url;
19087
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19088
+ },
19089
+ /**
19090
+ * Delete Batch (Admin)
19091
+ * @param {number} id Order ID
19092
+ * @param {number} batchId Batch ID
19093
+ * @param {*} [options] Override http request option.
19094
+ * @throws {RequiredError}
19095
+ */
19096
+ async deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, options);
19098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19099
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteBatch']?.[localVarOperationServerIndex]?.url;
19100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19101
+ },
19102
+ /**
19103
+ * Delete Orders (Beta)
19104
+ * @summary Delete Orders (Beta)
19105
+ * @param {number} id Order ID
19106
+ * @param {*} [options] Override http request option.
19107
+ * @throws {RequiredError}
19108
+ */
19109
+ async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19110
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19111
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19112
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19113
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19114
+ },
19115
+ /**
19116
+ * Get Editable Order (Admin)
19117
+ * @summary Get Editable Order (Admin)
19118
+ * @param {number} id Order ID
19119
+ * @param {*} [options] Override http request option.
19120
+ * @throws {RequiredError}
19121
+ */
19122
+ async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
19123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19124
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19125
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19127
+ },
19128
+ /**
19129
+ * Get Order Details (Admin)
19130
+ * @summary Get Order Details (Admin)
19131
+ * @param {number} id Order ID
19132
+ * @param {*} [options] Override http request option.
19133
+ * @throws {RequiredError}
19134
+ */
19135
+ async getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
19136
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminOrderDetails(id, options);
19137
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19138
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
19139
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19140
+ },
19141
+ /**
19142
+ * Get Editable Order (Beta)
19143
+ * @summary Get Editable Order (Beta)
19144
+ * @param {number} id Order ID
19145
+ * @param {*} [options] Override http request option.
19146
+ * @throws {RequiredError}
19147
+ */
19148
+ async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
19149
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19150
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19151
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19152
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19153
+ },
19154
+ /**
19155
+ * Download Order PDF
19156
+ * @summary Download Order PDF
19157
+ * @param {number} id Order ID
19158
+ * @param {*} [options] Override http request option.
19159
+ * @throws {RequiredError}
19160
+ */
19161
+ async getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderPdf(id, options);
19163
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19164
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
19165
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19166
+ },
19167
+ /**
19168
+ * Get Orders (Beta)
19169
+ * @summary Get Orders (Beta)
19170
+ * @param {number} [pageSize] Number Of Results
19171
+ * @param {number} [page] Page Number
19172
+ * @param {string} [search] Search
19173
+ * @param {boolean | null} [fulfillable] Fulfillable
19174
+ * @param {GetGetOrdersStatusEnum} [status] Status
19175
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
19176
+ * @param {number | null} [customerId] Customer ID
19177
+ * @param {*} [options] Override http request option.
19178
+ * @throws {RequiredError}
19179
+ */
19180
+ 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>> {
19181
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19182
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19183
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19184
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19185
+ },
19186
+ /**
19187
+ * Add Order Note
19188
+ * @summary Add Order Note
19189
+ * @param {number} id Order ID
19190
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19191
+ * @param {*} [options] Override http request option.
19192
+ * @throws {RequiredError}
19193
+ */
19194
+ async postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options);
19196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19197
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postAddOrderNote']?.[localVarOperationServerIndex]?.url;
19198
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19199
+ },
19200
+ /**
19201
+ * Create An Order (Admin)
19202
+ * @summary Create An Order (Admin)
19203
+ * @param {boolean} [readonly] Readonly Order
19204
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19205
+ * @param {*} [options] Override http request option.
19206
+ * @throws {RequiredError}
19207
+ */
19208
+ async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19209
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19210
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19211
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19212
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19213
+ },
19214
+ /**
19215
+ * Create Shipping Consignment
19216
+ * @summary Create Shipping Consignment
19217
+ * @param {number} id Order ID
19218
+ * @param {number} shipmentId Shipment ID
19219
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19220
+ * @param {*} [options] Override http request option.
19221
+ * @throws {RequiredError}
19222
+ */
19223
+ async postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19224
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options);
19225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19226
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateConsignment']?.[localVarOperationServerIndex]?.url;
19227
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19228
+ },
19229
+ /**
19230
+ * Create Shipment (Admin)
19231
+ * @summary Create Shipment (Admin)
19232
+ * @param {number} id Order ID
19233
+ * @param {number} batchId Batch ID
19234
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19235
+ * @param {*} [options] Override http request option.
19236
+ * @throws {RequiredError}
19237
+ */
19238
+ async postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options);
19240
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19241
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
19242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19243
+ },
19244
+ /**
19245
+ * Create An Order (Beta)
19246
+ * @summary Create An Order (Beta)
19247
+ * @param {boolean} [readonly] Readonly Order
19248
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19249
+ * @param {*} [options] Override http request option.
19250
+ * @throws {RequiredError}
19251
+ */
19252
+ async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19254
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19255
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19256
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19257
+ },
19258
+ /**
19259
+ * Issue Credit (Admin)
19260
+ * @summary Issue Credit (Admin)
19261
+ * @param {number} id Order ID
19262
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19263
+ * @param {*} [options] Override http request option.
19264
+ * @throws {RequiredError}
19265
+ */
19266
+ async postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditNoteModel>> {
19267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options);
19268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19269
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postIssueCredit']?.[localVarOperationServerIndex]?.url;
19270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19271
+ },
19272
+ /**
19273
+ * Print Shipment Label
19274
+ * @summary Print Shipment Label
17386
19275
  * @param {number} id Order ID
19276
+ * @param {number} shipmentId Shipment ID
19277
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
17387
19278
  * @param {*} [options] Override http request option.
17388
19279
  * @throws {RequiredError}
17389
19280
  */
17390
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17391
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19281
+ async postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options);
17392
19283
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17393
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19284
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17394
19285
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17395
19286
  },
17396
19287
  /**
17397
- * Get Editable Order (Admin)
17398
- * @summary Get Editable Order (Admin)
19288
+ * Send Order Email
19289
+ * @summary Send Order Email
17399
19290
  * @param {number} id Order ID
19291
+ * @param {string} email Email Address
17400
19292
  * @param {*} [options] Override http request option.
17401
19293
  * @throws {RequiredError}
17402
19294
  */
17403
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
17404
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19295
+ async postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19296
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendOrderEmail(id, email, options);
17405
19297
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17406
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19298
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendOrderEmail']?.[localVarOperationServerIndex]?.url;
17407
19299
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17408
19300
  },
17409
19301
  /**
17410
- * Get Editable Order (Beta)
17411
- * @summary Get Editable Order (Beta)
19302
+ * Send Supplier Email
19303
+ * @summary Send Supplier Email
17412
19304
  * @param {number} id Order ID
19305
+ * @param {number} batchId Batch ID
17413
19306
  * @param {*} [options] Override http request option.
17414
19307
  * @throws {RequiredError}
17415
19308
  */
17416
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
17417
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19309
+ async postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19310
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options);
17418
19311
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17419
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19312
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendSupplierEmail']?.[localVarOperationServerIndex]?.url;
17420
19313
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17421
19314
  },
17422
19315
  /**
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
19316
+ * Split Order
19317
+ * @summary Split Order
19318
+ * @param {number} id Order ID
19319
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17432
19320
  * @param {*} [options] Override http request option.
17433
19321
  * @throws {RequiredError}
17434
19322
  */
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);
19323
+ async postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19324
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options);
17437
19325
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17438
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19326
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSplitOrder']?.[localVarOperationServerIndex]?.url;
17439
19327
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17440
19328
  },
17441
19329
  /**
17442
- * Create An Order (Admin)
17443
- * @summary Create An Order (Admin)
17444
- * @param {boolean} [readonly] Readonly Order
17445
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19330
+ * Allocate Items To Supplier
19331
+ * @summary Allocate Items To Supplier
19332
+ * @param {number} id Order ID
19333
+ * @param {number} supplierId Supplier ID
19334
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17446
19335
  * @param {*} [options] Override http request option.
17447
19336
  * @throws {RequiredError}
17448
19337
  */
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);
19338
+ async putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options);
17451
19340
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17452
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19341
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
17453
19342
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17454
19343
  },
17455
19344
  /**
17456
- * Create An Order (Beta)
17457
- * @summary Create An Order (Beta)
17458
- * @param {boolean} [readonly] Readonly Order
17459
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19345
+ * Update Shipment (Admin)
19346
+ * @summary Update Shipment (Admin)
19347
+ * @param {number} id Order ID
19348
+ * @param {number} batchId Batch ID
19349
+ * @param {number} shipmentId Shipment ID
19350
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17460
19351
  * @param {*} [options] Override http request option.
17461
19352
  * @throws {RequiredError}
17462
19353
  */
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);
19354
+ async putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19355
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
17465
19356
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17466
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19357
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putCreateShipment']?.[localVarOperationServerIndex]?.url;
17467
19358
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17468
19359
  },
17469
19360
  /**
@@ -17506,6 +19397,28 @@ export const OrdersApiFp = function(configuration?: Configuration) {
17506
19397
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17507
19398
  const localVarFp = OrdersApiFp(configuration)
17508
19399
  return {
19400
+ /**
19401
+ * Delete Shipment (Admin)
19402
+ * @summary Delete Shipment (Admin)
19403
+ * @param {number} id Order ID
19404
+ * @param {number} batchId Batch ID
19405
+ * @param {number} shipmentId Shipment ID
19406
+ * @param {*} [options] Override http request option.
19407
+ * @throws {RequiredError}
19408
+ */
19409
+ deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19410
+ return localVarFp.deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
19411
+ },
19412
+ /**
19413
+ * Delete Batch (Admin)
19414
+ * @param {number} id Order ID
19415
+ * @param {number} batchId Batch ID
19416
+ * @param {*} [options] Override http request option.
19417
+ * @throws {RequiredError}
19418
+ */
19419
+ deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19420
+ return localVarFp.deleteDeleteBatch(id, batchId, options).then((request) => request(axios, basePath));
19421
+ },
17509
19422
  /**
17510
19423
  * Delete Orders (Beta)
17511
19424
  * @summary Delete Orders (Beta)
@@ -17526,6 +19439,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17526
19439
  getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
17527
19440
  return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
17528
19441
  },
19442
+ /**
19443
+ * Get Order Details (Admin)
19444
+ * @summary Get Order Details (Admin)
19445
+ * @param {number} id Order ID
19446
+ * @param {*} [options] Override http request option.
19447
+ * @throws {RequiredError}
19448
+ */
19449
+ getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
19450
+ return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
19451
+ },
17529
19452
  /**
17530
19453
  * Get Editable Order (Beta)
17531
19454
  * @summary Get Editable Order (Beta)
@@ -17536,6 +19459,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17536
19459
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
17537
19460
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
17538
19461
  },
19462
+ /**
19463
+ * Download Order PDF
19464
+ * @summary Download Order PDF
19465
+ * @param {number} id Order ID
19466
+ * @param {*} [options] Override http request option.
19467
+ * @throws {RequiredError}
19468
+ */
19469
+ getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19470
+ return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
19471
+ },
17539
19472
  /**
17540
19473
  * Get Orders (Beta)
17541
19474
  * @summary Get Orders (Beta)
@@ -17552,6 +19485,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17552
19485
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
17553
19486
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
17554
19487
  },
19488
+ /**
19489
+ * Add Order Note
19490
+ * @summary Add Order Note
19491
+ * @param {number} id Order ID
19492
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19493
+ * @param {*} [options] Override http request option.
19494
+ * @throws {RequiredError}
19495
+ */
19496
+ postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19497
+ return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(axios, basePath));
19498
+ },
17555
19499
  /**
17556
19500
  * Create An Order (Admin)
17557
19501
  * @summary Create An Order (Admin)
@@ -17563,6 +19507,30 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17563
19507
  postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
17564
19508
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
17565
19509
  },
19510
+ /**
19511
+ * Create Shipping Consignment
19512
+ * @summary Create Shipping Consignment
19513
+ * @param {number} id Order ID
19514
+ * @param {number} shipmentId Shipment ID
19515
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19516
+ * @param {*} [options] Override http request option.
19517
+ * @throws {RequiredError}
19518
+ */
19519
+ postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19520
+ return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(axios, basePath));
19521
+ },
19522
+ /**
19523
+ * Create Shipment (Admin)
19524
+ * @summary Create Shipment (Admin)
19525
+ * @param {number} id Order ID
19526
+ * @param {number} batchId Batch ID
19527
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19528
+ * @param {*} [options] Override http request option.
19529
+ * @throws {RequiredError}
19530
+ */
19531
+ postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19532
+ return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19533
+ },
17566
19534
  /**
17567
19535
  * Create An Order (Beta)
17568
19536
  * @summary Create An Order (Beta)
@@ -17574,6 +19542,87 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17574
19542
  postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
17575
19543
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
17576
19544
  },
19545
+ /**
19546
+ * Issue Credit (Admin)
19547
+ * @summary Issue Credit (Admin)
19548
+ * @param {number} id Order ID
19549
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19550
+ * @param {*} [options] Override http request option.
19551
+ * @throws {RequiredError}
19552
+ */
19553
+ postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): AxiosPromise<CreditNoteModel> {
19554
+ return localVarFp.postIssueCredit(id, creditNoteDTO, options).then((request) => request(axios, basePath));
19555
+ },
19556
+ /**
19557
+ * Print Shipment Label
19558
+ * @summary Print Shipment Label
19559
+ * @param {number} id Order ID
19560
+ * @param {number} shipmentId Shipment ID
19561
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19562
+ * @param {*} [options] Override http request option.
19563
+ * @throws {RequiredError}
19564
+ */
19565
+ postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19566
+ return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
19567
+ },
19568
+ /**
19569
+ * Send Order Email
19570
+ * @summary Send Order Email
19571
+ * @param {number} id Order ID
19572
+ * @param {string} email Email Address
19573
+ * @param {*} [options] Override http request option.
19574
+ * @throws {RequiredError}
19575
+ */
19576
+ postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19577
+ return localVarFp.postSendOrderEmail(id, email, options).then((request) => request(axios, basePath));
19578
+ },
19579
+ /**
19580
+ * Send Supplier Email
19581
+ * @summary Send Supplier Email
19582
+ * @param {number} id Order ID
19583
+ * @param {number} batchId Batch ID
19584
+ * @param {*} [options] Override http request option.
19585
+ * @throws {RequiredError}
19586
+ */
19587
+ postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19588
+ return localVarFp.postSendSupplierEmail(id, batchId, options).then((request) => request(axios, basePath));
19589
+ },
19590
+ /**
19591
+ * Split Order
19592
+ * @summary Split Order
19593
+ * @param {number} id Order ID
19594
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19595
+ * @param {*} [options] Override http request option.
19596
+ * @throws {RequiredError}
19597
+ */
19598
+ postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19599
+ return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(axios, basePath));
19600
+ },
19601
+ /**
19602
+ * Allocate Items To Supplier
19603
+ * @summary Allocate Items To Supplier
19604
+ * @param {number} id Order ID
19605
+ * @param {number} supplierId Supplier ID
19606
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19607
+ * @param {*} [options] Override http request option.
19608
+ * @throws {RequiredError}
19609
+ */
19610
+ putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19611
+ return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
19612
+ },
19613
+ /**
19614
+ * Update Shipment (Admin)
19615
+ * @summary Update Shipment (Admin)
19616
+ * @param {number} id Order ID
19617
+ * @param {number} batchId Batch ID
19618
+ * @param {number} shipmentId Shipment ID
19619
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19620
+ * @param {*} [options] Override http request option.
19621
+ * @throws {RequiredError}
19622
+ */
19623
+ putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19624
+ return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19625
+ },
17577
19626
  /**
17578
19627
  * Update An Order (Admin)
17579
19628
  * @summary Update An Order (Admin)
@@ -17608,6 +19657,32 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17608
19657
  * @extends {BaseAPI}
17609
19658
  */
17610
19659
  export class OrdersApi extends BaseAPI {
19660
+ /**
19661
+ * Delete Shipment (Admin)
19662
+ * @summary Delete Shipment (Admin)
19663
+ * @param {number} id Order ID
19664
+ * @param {number} batchId Batch ID
19665
+ * @param {number} shipmentId Shipment ID
19666
+ * @param {*} [options] Override http request option.
19667
+ * @throws {RequiredError}
19668
+ * @memberof OrdersApi
19669
+ */
19670
+ public deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
19671
+ return OrdersApiFp(this.configuration).deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
19672
+ }
19673
+
19674
+ /**
19675
+ * Delete Batch (Admin)
19676
+ * @param {number} id Order ID
19677
+ * @param {number} batchId Batch ID
19678
+ * @param {*} [options] Override http request option.
19679
+ * @throws {RequiredError}
19680
+ * @memberof OrdersApi
19681
+ */
19682
+ public deleteDeleteBatch(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19683
+ return OrdersApiFp(this.configuration).deleteDeleteBatch(id, batchId, options).then((request) => request(this.axios, this.basePath));
19684
+ }
19685
+
17611
19686
  /**
17612
19687
  * Delete Orders (Beta)
17613
19688
  * @summary Delete Orders (Beta)
@@ -17632,6 +19707,18 @@ export class OrdersApi extends BaseAPI {
17632
19707
  return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
17633
19708
  }
17634
19709
 
19710
+ /**
19711
+ * Get Order Details (Admin)
19712
+ * @summary Get Order Details (Admin)
19713
+ * @param {number} id Order ID
19714
+ * @param {*} [options] Override http request option.
19715
+ * @throws {RequiredError}
19716
+ * @memberof OrdersApi
19717
+ */
19718
+ public getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig) {
19719
+ return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
19720
+ }
19721
+
17635
19722
  /**
17636
19723
  * Get Editable Order (Beta)
17637
19724
  * @summary Get Editable Order (Beta)
@@ -17644,6 +19731,18 @@ export class OrdersApi extends BaseAPI {
17644
19731
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
17645
19732
  }
17646
19733
 
19734
+ /**
19735
+ * Download Order PDF
19736
+ * @summary Download Order PDF
19737
+ * @param {number} id Order ID
19738
+ * @param {*} [options] Override http request option.
19739
+ * @throws {RequiredError}
19740
+ * @memberof OrdersApi
19741
+ */
19742
+ public getGetOrderPdf(id: number, options?: RawAxiosRequestConfig) {
19743
+ return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
19744
+ }
19745
+
17647
19746
  /**
17648
19747
  * Get Orders (Beta)
17649
19748
  * @summary Get Orders (Beta)
@@ -17662,6 +19761,19 @@ export class OrdersApi extends BaseAPI {
17662
19761
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
17663
19762
  }
17664
19763
 
19764
+ /**
19765
+ * Add Order Note
19766
+ * @summary Add Order Note
19767
+ * @param {number} id Order ID
19768
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19769
+ * @param {*} [options] Override http request option.
19770
+ * @throws {RequiredError}
19771
+ * @memberof OrdersApi
19772
+ */
19773
+ public postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig) {
19774
+ return OrdersApiFp(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(this.axios, this.basePath));
19775
+ }
19776
+
17665
19777
  /**
17666
19778
  * Create An Order (Admin)
17667
19779
  * @summary Create An Order (Admin)
@@ -17675,6 +19787,34 @@ export class OrdersApi extends BaseAPI {
17675
19787
  return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
17676
19788
  }
17677
19789
 
19790
+ /**
19791
+ * Create Shipping Consignment
19792
+ * @summary Create Shipping Consignment
19793
+ * @param {number} id Order ID
19794
+ * @param {number} shipmentId Shipment ID
19795
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19796
+ * @param {*} [options] Override http request option.
19797
+ * @throws {RequiredError}
19798
+ * @memberof OrdersApi
19799
+ */
19800
+ public postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig) {
19801
+ return OrdersApiFp(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(this.axios, this.basePath));
19802
+ }
19803
+
19804
+ /**
19805
+ * Create Shipment (Admin)
19806
+ * @summary Create Shipment (Admin)
19807
+ * @param {number} id Order ID
19808
+ * @param {number} batchId Batch ID
19809
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19810
+ * @param {*} [options] Override http request option.
19811
+ * @throws {RequiredError}
19812
+ * @memberof OrdersApi
19813
+ */
19814
+ public postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19815
+ return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19816
+ }
19817
+
17678
19818
  /**
17679
19819
  * Create An Order (Beta)
17680
19820
  * @summary Create An Order (Beta)
@@ -17688,6 +19828,101 @@ export class OrdersApi extends BaseAPI {
17688
19828
  return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
17689
19829
  }
17690
19830
 
19831
+ /**
19832
+ * Issue Credit (Admin)
19833
+ * @summary Issue Credit (Admin)
19834
+ * @param {number} id Order ID
19835
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19836
+ * @param {*} [options] Override http request option.
19837
+ * @throws {RequiredError}
19838
+ * @memberof OrdersApi
19839
+ */
19840
+ public postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig) {
19841
+ return OrdersApiFp(this.configuration).postIssueCredit(id, creditNoteDTO, options).then((request) => request(this.axios, this.basePath));
19842
+ }
19843
+
19844
+ /**
19845
+ * Print Shipment Label
19846
+ * @summary Print Shipment Label
19847
+ * @param {number} id Order ID
19848
+ * @param {number} shipmentId Shipment ID
19849
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19850
+ * @param {*} [options] Override http request option.
19851
+ * @throws {RequiredError}
19852
+ * @memberof OrdersApi
19853
+ */
19854
+ public postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig) {
19855
+ return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
19856
+ }
19857
+
19858
+ /**
19859
+ * Send Order Email
19860
+ * @summary Send Order Email
19861
+ * @param {number} id Order ID
19862
+ * @param {string} email Email Address
19863
+ * @param {*} [options] Override http request option.
19864
+ * @throws {RequiredError}
19865
+ * @memberof OrdersApi
19866
+ */
19867
+ public postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig) {
19868
+ return OrdersApiFp(this.configuration).postSendOrderEmail(id, email, options).then((request) => request(this.axios, this.basePath));
19869
+ }
19870
+
19871
+ /**
19872
+ * Send Supplier Email
19873
+ * @summary Send Supplier Email
19874
+ * @param {number} id Order ID
19875
+ * @param {number} batchId Batch ID
19876
+ * @param {*} [options] Override http request option.
19877
+ * @throws {RequiredError}
19878
+ * @memberof OrdersApi
19879
+ */
19880
+ public postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19881
+ return OrdersApiFp(this.configuration).postSendSupplierEmail(id, batchId, options).then((request) => request(this.axios, this.basePath));
19882
+ }
19883
+
19884
+ /**
19885
+ * Split Order
19886
+ * @summary Split Order
19887
+ * @param {number} id Order ID
19888
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19889
+ * @param {*} [options] Override http request option.
19890
+ * @throws {RequiredError}
19891
+ * @memberof OrdersApi
19892
+ */
19893
+ public postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig) {
19894
+ return OrdersApiFp(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(this.axios, this.basePath));
19895
+ }
19896
+
19897
+ /**
19898
+ * Allocate Items To Supplier
19899
+ * @summary Allocate Items To Supplier
19900
+ * @param {number} id Order ID
19901
+ * @param {number} supplierId Supplier ID
19902
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19903
+ * @param {*} [options] Override http request option.
19904
+ * @throws {RequiredError}
19905
+ * @memberof OrdersApi
19906
+ */
19907
+ public putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) {
19908
+ return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
19909
+ }
19910
+
19911
+ /**
19912
+ * Update Shipment (Admin)
19913
+ * @summary Update Shipment (Admin)
19914
+ * @param {number} id Order ID
19915
+ * @param {number} batchId Batch ID
19916
+ * @param {number} shipmentId Shipment ID
19917
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19918
+ * @param {*} [options] Override http request option.
19919
+ * @throws {RequiredError}
19920
+ * @memberof OrdersApi
19921
+ */
19922
+ public putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19923
+ return OrdersApiFp(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19924
+ }
19925
+
17691
19926
  /**
17692
19927
  * Update An Order (Admin)
17693
19928
  * @summary Update An Order (Admin)
@@ -17737,6 +19972,15 @@ export const GetGetOrdersFilterEnum = {
17737
19972
  BackOrders: 'BACK_ORDERS'
17738
19973
  } as const;
17739
19974
  export type GetGetOrdersFilterEnum = typeof GetGetOrdersFilterEnum[keyof typeof GetGetOrdersFilterEnum];
19975
+ /**
19976
+ * @export
19977
+ */
19978
+ export const PostPrintShippingLabelPrinterEnum = {
19979
+ NUMBER_1: 1,
19980
+ NUMBER_2: 2,
19981
+ NUMBER_3: 3
19982
+ } as const;
19983
+ export type PostPrintShippingLabelPrinterEnum = typeof PostPrintShippingLabelPrinterEnum[keyof typeof PostPrintShippingLabelPrinterEnum];
17740
19984
 
17741
19985
 
17742
19986
  /**