yellowgrid-api-ts 3.2.60 → 3.2.61-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 +2464 -213
  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 +1771 -106
  9. package/dist/api.js +1492 -106
  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 +861 -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,21 @@ 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
18219
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17080
18220
  * @param {*} [options] Override http request option.
17081
18221
  * @throws {RequiredError}
17082
18222
  */
17083
- getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18223
+ deleteDeleteBatch: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17084
18224
  // 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)));
18225
+ assertParamExists('deleteDeleteBatch', 'id', id)
18226
+ // verify required parameter 'batchId' is not null or undefined
18227
+ assertParamExists('deleteDeleteBatch', 'batchId', batchId)
18228
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}`
18229
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18230
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
17088
18231
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17089
18232
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17090
18233
  let baseOptions;
@@ -17092,15 +18235,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17092
18235
  baseOptions = configuration.baseOptions;
17093
18236
  }
17094
18237
 
17095
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18238
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
17096
18239
  const localVarHeaderParameter = {} as any;
17097
18240
  const localVarQueryParameter = {} as any;
17098
18241
 
17099
18242
 
17100
18243
 
18244
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18245
+
17101
18246
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17102
18247
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17103
18248
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18249
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
17104
18250
 
17105
18251
  return {
17106
18252
  url: toPathString(localVarUrlObj),
@@ -17108,16 +18254,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17108
18254
  };
17109
18255
  },
17110
18256
  /**
17111
- * Get Editable Order (Beta)
17112
- * @summary Get Editable Order (Beta)
18257
+ * Delete Orders (Beta)
18258
+ * @summary Delete Orders (Beta)
17113
18259
  * @param {number} id Order ID
17114
18260
  * @param {*} [options] Override http request option.
17115
18261
  * @throws {RequiredError}
17116
18262
  */
17117
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18263
+ deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17118
18264
  // verify required parameter 'id' is not null or undefined
17119
- assertParamExists('getGetEditableOrder', 'id', id)
17120
- const localVarPath = `/orders/{id}/views/editable`
18265
+ assertParamExists('deleteUpdateOrder', 'id', id)
18266
+ const localVarPath = `/orders/{id}`
17121
18267
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17122
18268
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17123
18269
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -17126,7 +18272,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17126
18272
  baseOptions = configuration.baseOptions;
17127
18273
  }
17128
18274
 
17129
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18275
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
17130
18276
  const localVarHeaderParameter = {} as any;
17131
18277
  const localVarQueryParameter = {} as any;
17132
18278
 
@@ -17142,20 +18288,17 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17142
18288
  };
17143
18289
  },
17144
18290
  /**
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
18291
+ * Get Editable Order (Admin)
18292
+ * @summary Get Editable Order (Admin)
18293
+ * @param {number} id Order ID
17154
18294
  * @param {*} [options] Override http request option.
17155
18295
  * @throws {RequiredError}
17156
18296
  */
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`;
18297
+ getGetAdminEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18298
+ // verify required parameter 'id' is not null or undefined
18299
+ assertParamExists('getGetAdminEditableOrder', 'id', id)
18300
+ const localVarPath = `/admin/orders/{id}/views/editable`
18301
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17159
18302
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17160
18303
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17161
18304
  let baseOptions;
@@ -17167,34 +18310,535 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17167
18310
  const localVarHeaderParameter = {} as any;
17168
18311
  const localVarQueryParameter = {} as any;
17169
18312
 
17170
- if (pageSize !== undefined) {
17171
- localVarQueryParameter['pageSize'] = pageSize;
17172
- }
18313
+
18314
+
18315
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18316
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18317
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18318
+
18319
+ return {
18320
+ url: toPathString(localVarUrlObj),
18321
+ options: localVarRequestOptions,
18322
+ };
18323
+ },
18324
+ /**
18325
+ * Get Order Details (Admin)
18326
+ * @summary Get Order Details (Admin)
18327
+ * @param {number} id Order ID
18328
+ * @param {*} [options] Override http request option.
18329
+ * @throws {RequiredError}
18330
+ */
18331
+ getGetAdminOrderDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18332
+ // verify required parameter 'id' is not null or undefined
18333
+ assertParamExists('getGetAdminOrderDetails', 'id', id)
18334
+ const localVarPath = `/admin/orders/{id}/details`
18335
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18337
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18338
+ let baseOptions;
18339
+ if (configuration) {
18340
+ baseOptions = configuration.baseOptions;
18341
+ }
18342
+
18343
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18344
+ const localVarHeaderParameter = {} as any;
18345
+ const localVarQueryParameter = {} as any;
18346
+
18347
+
18348
+
18349
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18350
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18351
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18352
+
18353
+ return {
18354
+ url: toPathString(localVarUrlObj),
18355
+ options: localVarRequestOptions,
18356
+ };
18357
+ },
18358
+ /**
18359
+ * Get Editable Order (Beta)
18360
+ * @summary Get Editable Order (Beta)
18361
+ * @param {number} id Order ID
18362
+ * @param {*} [options] Override http request option.
18363
+ * @throws {RequiredError}
18364
+ */
18365
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18366
+ // verify required parameter 'id' is not null or undefined
18367
+ assertParamExists('getGetEditableOrder', 'id', id)
18368
+ const localVarPath = `/orders/{id}/views/editable`
18369
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18371
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18372
+ let baseOptions;
18373
+ if (configuration) {
18374
+ baseOptions = configuration.baseOptions;
18375
+ }
18376
+
18377
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18378
+ const localVarHeaderParameter = {} as any;
18379
+ const localVarQueryParameter = {} as any;
18380
+
18381
+
18382
+
18383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18385
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18386
+
18387
+ return {
18388
+ url: toPathString(localVarUrlObj),
18389
+ options: localVarRequestOptions,
18390
+ };
18391
+ },
18392
+ /**
18393
+ * Download Order PDF
18394
+ * @summary Download Order PDF
18395
+ * @param {number} id Order ID
18396
+ * @param {*} [options] Override http request option.
18397
+ * @throws {RequiredError}
18398
+ */
18399
+ getGetOrderPdf: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18400
+ // verify required parameter 'id' is not null or undefined
18401
+ assertParamExists('getGetOrderPdf', 'id', id)
18402
+ const localVarPath = `/orders/{id}/pdf`
18403
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18405
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18406
+ let baseOptions;
18407
+ if (configuration) {
18408
+ baseOptions = configuration.baseOptions;
18409
+ }
18410
+
18411
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18412
+ const localVarHeaderParameter = {} as any;
18413
+ const localVarQueryParameter = {} as any;
18414
+
18415
+
18416
+
18417
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18419
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18420
+
18421
+ return {
18422
+ url: toPathString(localVarUrlObj),
18423
+ options: localVarRequestOptions,
18424
+ };
18425
+ },
18426
+ /**
18427
+ * Get Orders (Beta)
18428
+ * @summary Get Orders (Beta)
18429
+ * @param {number} [pageSize] Number Of Results
18430
+ * @param {number} [page] Page Number
18431
+ * @param {string} [search] Search
18432
+ * @param {boolean | null} [fulfillable] Fulfillable
18433
+ * @param {GetGetOrdersStatusEnum} [status] Status
18434
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
18435
+ * @param {number | null} [customerId] Customer ID
18436
+ * @param {*} [options] Override http request option.
18437
+ * @throws {RequiredError}
18438
+ */
18439
+ getGetOrders: async (pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18440
+ const localVarPath = `/orders`;
18441
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18442
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18443
+ let baseOptions;
18444
+ if (configuration) {
18445
+ baseOptions = configuration.baseOptions;
18446
+ }
18447
+
18448
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18449
+ const localVarHeaderParameter = {} as any;
18450
+ const localVarQueryParameter = {} as any;
18451
+
18452
+ if (pageSize !== undefined) {
18453
+ localVarQueryParameter['pageSize'] = pageSize;
18454
+ }
17173
18455
 
17174
18456
  if (page !== undefined) {
17175
18457
  localVarQueryParameter['page'] = page;
17176
18458
  }
17177
18459
 
17178
- if (search !== undefined) {
17179
- localVarQueryParameter['search'] = search;
17180
- }
18460
+ if (search !== undefined) {
18461
+ localVarQueryParameter['search'] = search;
18462
+ }
18463
+
18464
+ if (fulfillable !== undefined) {
18465
+ localVarQueryParameter['fulfillable'] = fulfillable;
18466
+ }
18467
+
18468
+ if (status !== undefined) {
18469
+ localVarQueryParameter['status'] = status;
18470
+ }
18471
+
18472
+ if (filter !== undefined) {
18473
+ localVarQueryParameter['filter'] = filter;
18474
+ }
18475
+
18476
+ if (customerId !== undefined) {
18477
+ localVarQueryParameter['customerId'] = customerId;
18478
+ }
18479
+
18480
+
18481
+
18482
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18484
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18485
+
18486
+ return {
18487
+ url: toPathString(localVarUrlObj),
18488
+ options: localVarRequestOptions,
18489
+ };
18490
+ },
18491
+ /**
18492
+ * Add Order Note
18493
+ * @summary Add Order Note
18494
+ * @param {number} id Order ID
18495
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18496
+ * @param {*} [options] Override http request option.
18497
+ * @throws {RequiredError}
18498
+ */
18499
+ postAddOrderNote: async (id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18500
+ // verify required parameter 'id' is not null or undefined
18501
+ assertParamExists('postAddOrderNote', 'id', id)
18502
+ const localVarPath = `/admin/orders/{id}/notes`
18503
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18506
+ let baseOptions;
18507
+ if (configuration) {
18508
+ baseOptions = configuration.baseOptions;
18509
+ }
18510
+
18511
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18512
+ const localVarHeaderParameter = {} as any;
18513
+ const localVarQueryParameter = {} as any;
18514
+
18515
+
18516
+
18517
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18518
+
18519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18521
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18522
+ localVarRequestOptions.data = serializeDataIfNeeded(postAddOrderNoteRequest, localVarRequestOptions, configuration)
18523
+
18524
+ return {
18525
+ url: toPathString(localVarUrlObj),
18526
+ options: localVarRequestOptions,
18527
+ };
18528
+ },
18529
+ /**
18530
+ * Create An Order (Admin)
18531
+ * @summary Create An Order (Admin)
18532
+ * @param {boolean} [readonly] Readonly Order
18533
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
18534
+ * @param {*} [options] Override http request option.
18535
+ * @throws {RequiredError}
18536
+ */
18537
+ postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18538
+ const localVarPath = `/admin/orders`;
18539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18541
+ let baseOptions;
18542
+ if (configuration) {
18543
+ baseOptions = configuration.baseOptions;
18544
+ }
18545
+
18546
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18547
+ const localVarHeaderParameter = {} as any;
18548
+ const localVarQueryParameter = {} as any;
18549
+
18550
+ if (readonly !== undefined) {
18551
+ localVarQueryParameter['readonly'] = readonly;
18552
+ }
18553
+
18554
+
18555
+
18556
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18557
+
18558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18560
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18561
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18562
+
18563
+ return {
18564
+ url: toPathString(localVarUrlObj),
18565
+ options: localVarRequestOptions,
18566
+ };
18567
+ },
18568
+ /**
18569
+ * Create Shipping Consignment
18570
+ * @summary Create Shipping Consignment
18571
+ * @param {number} id Order ID
18572
+ * @param {number} shipmentId Shipment ID
18573
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18574
+ * @param {*} [options] Override http request option.
18575
+ * @throws {RequiredError}
18576
+ */
18577
+ postCreateConsignment: async (id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18578
+ // verify required parameter 'id' is not null or undefined
18579
+ assertParamExists('postCreateConsignment', 'id', id)
18580
+ // verify required parameter 'shipmentId' is not null or undefined
18581
+ assertParamExists('postCreateConsignment', 'shipmentId', shipmentId)
18582
+ const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/consignment`
18583
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18584
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18587
+ let baseOptions;
18588
+ if (configuration) {
18589
+ baseOptions = configuration.baseOptions;
18590
+ }
18591
+
18592
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18593
+ const localVarHeaderParameter = {} as any;
18594
+ const localVarQueryParameter = {} as any;
18595
+
18596
+
18597
+
18598
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18599
+
18600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18602
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18603
+ localVarRequestOptions.data = serializeDataIfNeeded(shippingRequestDTO, localVarRequestOptions, configuration)
18604
+
18605
+ return {
18606
+ url: toPathString(localVarUrlObj),
18607
+ options: localVarRequestOptions,
18608
+ };
18609
+ },
18610
+ /**
18611
+ * Create Shipment (Admin)
18612
+ * @summary Create Shipment (Admin)
18613
+ * @param {number} id Order ID
18614
+ * @param {number} batchId Batch ID
18615
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18616
+ * @param {*} [options] Override http request option.
18617
+ * @throws {RequiredError}
18618
+ */
18619
+ postCreateShipment: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18620
+ // verify required parameter 'id' is not null or undefined
18621
+ assertParamExists('postCreateShipment', 'id', id)
18622
+ // verify required parameter 'batchId' is not null or undefined
18623
+ assertParamExists('postCreateShipment', 'batchId', batchId)
18624
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18625
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18626
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18627
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18628
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18629
+ let baseOptions;
18630
+ if (configuration) {
18631
+ baseOptions = configuration.baseOptions;
18632
+ }
18633
+
18634
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18635
+ const localVarHeaderParameter = {} as any;
18636
+ const localVarQueryParameter = {} as any;
18637
+
18638
+
18639
+
18640
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18641
+
18642
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18644
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18645
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18646
+
18647
+ return {
18648
+ url: toPathString(localVarUrlObj),
18649
+ options: localVarRequestOptions,
18650
+ };
18651
+ },
18652
+ /**
18653
+ * Create An Order (Beta)
18654
+ * @summary Create An Order (Beta)
18655
+ * @param {boolean} [readonly] Readonly Order
18656
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18657
+ * @param {*} [options] Override http request option.
18658
+ * @throws {RequiredError}
18659
+ */
18660
+ postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18661
+ const localVarPath = `/orders`;
18662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18663
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18664
+ let baseOptions;
18665
+ if (configuration) {
18666
+ baseOptions = configuration.baseOptions;
18667
+ }
18668
+
18669
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18670
+ const localVarHeaderParameter = {} as any;
18671
+ const localVarQueryParameter = {} as any;
18672
+
18673
+ if (readonly !== undefined) {
18674
+ localVarQueryParameter['readonly'] = readonly;
18675
+ }
18676
+
18677
+
18678
+
18679
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18680
+
18681
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18682
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18683
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18684
+ localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
18685
+
18686
+ return {
18687
+ url: toPathString(localVarUrlObj),
18688
+ options: localVarRequestOptions,
18689
+ };
18690
+ },
18691
+ /**
18692
+ * Issue Credit (Admin)
18693
+ * @summary Issue Credit (Admin)
18694
+ * @param {number} id Order ID
18695
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
18696
+ * @param {*} [options] Override http request option.
18697
+ * @throws {RequiredError}
18698
+ */
18699
+ postIssueCredit: async (id: number, creditNoteDTO?: CreditNoteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18700
+ // verify required parameter 'id' is not null or undefined
18701
+ assertParamExists('postIssueCredit', 'id', id)
18702
+ const localVarPath = `/admin/orders/{id}/credit`
18703
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18706
+ let baseOptions;
18707
+ if (configuration) {
18708
+ baseOptions = configuration.baseOptions;
18709
+ }
18710
+
18711
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18712
+ const localVarHeaderParameter = {} as any;
18713
+ const localVarQueryParameter = {} as any;
18714
+
18715
+
18716
+
18717
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18718
+
18719
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18720
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18721
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18722
+ localVarRequestOptions.data = serializeDataIfNeeded(creditNoteDTO, localVarRequestOptions, configuration)
18723
+
18724
+ return {
18725
+ url: toPathString(localVarUrlObj),
18726
+ options: localVarRequestOptions,
18727
+ };
18728
+ },
18729
+ /**
18730
+ * Print Shipment Label
18731
+ * @summary Print Shipment Label
18732
+ * @param {number} id Order ID
18733
+ * @param {number} shipmentId Shipment ID
18734
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18735
+ * @param {*} [options] Override http request option.
18736
+ * @throws {RequiredError}
18737
+ */
18738
+ postPrintShippingLabel: async (id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18739
+ // verify required parameter 'id' is not null or undefined
18740
+ assertParamExists('postPrintShippingLabel', 'id', id)
18741
+ // verify required parameter 'shipmentId' is not null or undefined
18742
+ assertParamExists('postPrintShippingLabel', 'shipmentId', shipmentId)
18743
+ // verify required parameter 'printer' is not null or undefined
18744
+ assertParamExists('postPrintShippingLabel', 'printer', printer)
18745
+ const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/label/print`
18746
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18747
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18748
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18749
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18750
+ let baseOptions;
18751
+ if (configuration) {
18752
+ baseOptions = configuration.baseOptions;
18753
+ }
18754
+
18755
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18756
+ const localVarHeaderParameter = {} as any;
18757
+ const localVarQueryParameter = {} as any;
18758
+
18759
+ if (printer !== undefined) {
18760
+ localVarQueryParameter['printer'] = printer;
18761
+ }
18762
+
18763
+
18764
+
18765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18767
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18768
+
18769
+ return {
18770
+ url: toPathString(localVarUrlObj),
18771
+ options: localVarRequestOptions,
18772
+ };
18773
+ },
18774
+ /**
18775
+ * Send Order Email
18776
+ * @summary Send Order Email
18777
+ * @param {number} id Order ID
18778
+ * @param {string} email Email Address
18779
+ * @param {*} [options] Override http request option.
18780
+ * @throws {RequiredError}
18781
+ */
18782
+ postSendOrderEmail: async (id: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18783
+ // verify required parameter 'id' is not null or undefined
18784
+ assertParamExists('postSendOrderEmail', 'id', id)
18785
+ // verify required parameter 'email' is not null or undefined
18786
+ assertParamExists('postSendOrderEmail', 'email', email)
18787
+ const localVarPath = `/admin/orders/{id}/email/send`
18788
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18790
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18791
+ let baseOptions;
18792
+ if (configuration) {
18793
+ baseOptions = configuration.baseOptions;
18794
+ }
18795
+
18796
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18797
+ const localVarHeaderParameter = {} as any;
18798
+ const localVarQueryParameter = {} as any;
17181
18799
 
17182
- if (fulfillable !== undefined) {
17183
- localVarQueryParameter['fulfillable'] = fulfillable;
18800
+ if (email !== undefined) {
18801
+ localVarQueryParameter['email'] = email;
17184
18802
  }
17185
18803
 
17186
- if (status !== undefined) {
17187
- localVarQueryParameter['status'] = status;
17188
- }
17189
18804
 
17190
- if (filter !== undefined) {
17191
- localVarQueryParameter['filter'] = filter;
17192
- }
18805
+
18806
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18807
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18808
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17193
18809
 
17194
- if (customerId !== undefined) {
17195
- localVarQueryParameter['customerId'] = customerId;
18810
+ return {
18811
+ url: toPathString(localVarUrlObj),
18812
+ options: localVarRequestOptions,
18813
+ };
18814
+ },
18815
+ /**
18816
+ * Send Supplier Email
18817
+ * @summary Send Supplier Email
18818
+ * @param {number} id Order ID
18819
+ * @param {number} batchId Batch ID
18820
+ * @param {*} [options] Override http request option.
18821
+ * @throws {RequiredError}
18822
+ */
18823
+ postSendSupplierEmail: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18824
+ // verify required parameter 'id' is not null or undefined
18825
+ assertParamExists('postSendSupplierEmail', 'id', id)
18826
+ // verify required parameter 'batchId' is not null or undefined
18827
+ assertParamExists('postSendSupplierEmail', 'batchId', batchId)
18828
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/email/send`
18829
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18830
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18831
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18832
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18833
+ let baseOptions;
18834
+ if (configuration) {
18835
+ baseOptions = configuration.baseOptions;
17196
18836
  }
17197
18837
 
18838
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18839
+ const localVarHeaderParameter = {} as any;
18840
+ const localVarQueryParameter = {} as any;
18841
+
17198
18842
 
17199
18843
 
17200
18844
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -17207,15 +18851,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17207
18851
  };
17208
18852
  },
17209
18853
  /**
17210
- * Create An Order (Admin)
17211
- * @summary Create An Order (Admin)
17212
- * @param {boolean} [readonly] Readonly Order
17213
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
18854
+ * Split Order
18855
+ * @summary Split Order
18856
+ * @param {number} id Order ID
18857
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17214
18858
  * @param {*} [options] Override http request option.
17215
18859
  * @throws {RequiredError}
17216
18860
  */
17217
- postCreateAdminOrder: async (readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17218
- const localVarPath = `/admin/orders`;
18861
+ postSplitOrder: async (id: number, postSplitOrderRequest?: PostSplitOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18862
+ // verify required parameter 'id' is not null or undefined
18863
+ assertParamExists('postSplitOrder', 'id', id)
18864
+ const localVarPath = `/admin/orders/{id}/split`
18865
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17219
18866
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17220
18867
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17221
18868
  let baseOptions;
@@ -17227,10 +18874,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17227
18874
  const localVarHeaderParameter = {} as any;
17228
18875
  const localVarQueryParameter = {} as any;
17229
18876
 
17230
- if (readonly !== undefined) {
17231
- localVarQueryParameter['readonly'] = readonly;
17232
- }
17233
-
17234
18877
 
17235
18878
 
17236
18879
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -17238,7 +18881,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17238
18881
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17239
18882
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17240
18883
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17241
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18884
+ localVarRequestOptions.data = serializeDataIfNeeded(postSplitOrderRequest, localVarRequestOptions, configuration)
17242
18885
 
17243
18886
  return {
17244
18887
  url: toPathString(localVarUrlObj),
@@ -17246,15 +18889,21 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17246
18889
  };
17247
18890
  },
17248
18891
  /**
17249
- * Create An Order (Beta)
17250
- * @summary Create An Order (Beta)
17251
- * @param {boolean} [readonly] Readonly Order
17252
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18892
+ * Allocate Items To Supplier
18893
+ * @summary Allocate Items To Supplier
18894
+ * @param {number} id Order ID
18895
+ * @param {number} supplierId Supplier ID
18896
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17253
18897
  * @param {*} [options] Override http request option.
17254
18898
  * @throws {RequiredError}
17255
18899
  */
17256
- postGetOrders: async (readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17257
- const localVarPath = `/orders`;
18900
+ putAllocateItems: async (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18901
+ // verify required parameter 'id' is not null or undefined
18902
+ assertParamExists('putAllocateItems', 'id', id)
18903
+ // verify required parameter 'supplierId' is not null or undefined
18904
+ assertParamExists('putAllocateItems', 'supplierId', supplierId)
18905
+ const localVarPath = `/admin/orders/{id}/items/allocate`
18906
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
17258
18907
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
17259
18908
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17260
18909
  let baseOptions;
@@ -17262,12 +18911,12 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17262
18911
  baseOptions = configuration.baseOptions;
17263
18912
  }
17264
18913
 
17265
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18914
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
17266
18915
  const localVarHeaderParameter = {} as any;
17267
18916
  const localVarQueryParameter = {} as any;
17268
18917
 
17269
- if (readonly !== undefined) {
17270
- localVarQueryParameter['readonly'] = readonly;
18918
+ if (supplierId !== undefined) {
18919
+ localVarQueryParameter['supplierId'] = supplierId;
17271
18920
  }
17272
18921
 
17273
18922
 
@@ -17277,7 +18926,53 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
17277
18926
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17278
18927
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17279
18928
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17280
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
18929
+ localVarRequestOptions.data = serializeDataIfNeeded(putAllocateItemsRequest, localVarRequestOptions, configuration)
18930
+
18931
+ return {
18932
+ url: toPathString(localVarUrlObj),
18933
+ options: localVarRequestOptions,
18934
+ };
18935
+ },
18936
+ /**
18937
+ * Update Shipment (Admin)
18938
+ * @summary Update Shipment (Admin)
18939
+ * @param {number} id Order ID
18940
+ * @param {number} batchId Batch ID
18941
+ * @param {number} shipmentId Shipment ID
18942
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18943
+ * @param {*} [options] Override http request option.
18944
+ * @throws {RequiredError}
18945
+ */
18946
+ putCreateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18947
+ // verify required parameter 'id' is not null or undefined
18948
+ assertParamExists('putCreateShipment', 'id', id)
18949
+ // verify required parameter 'batchId' is not null or undefined
18950
+ assertParamExists('putCreateShipment', 'batchId', batchId)
18951
+ // verify required parameter 'shipmentId' is not null or undefined
18952
+ assertParamExists('putCreateShipment', 'shipmentId', shipmentId)
18953
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18954
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18955
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18956
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18957
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18958
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18959
+ let baseOptions;
18960
+ if (configuration) {
18961
+ baseOptions = configuration.baseOptions;
18962
+ }
18963
+
18964
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18965
+ const localVarHeaderParameter = {} as any;
18966
+ const localVarQueryParameter = {} as any;
18967
+
18968
+
18969
+
18970
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18971
+
18972
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18974
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18975
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
17281
18976
 
17282
18977
  return {
17283
18978
  url: toPathString(localVarUrlObj),
@@ -17381,89 +19076,290 @@ export const OrdersApiFp = function(configuration?: Configuration) {
17381
19076
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
17382
19077
  return {
17383
19078
  /**
17384
- * Delete Orders (Beta)
17385
- * @summary Delete Orders (Beta)
19079
+ * Delete Shipment (Admin)
19080
+ * @summary Delete Shipment (Admin)
19081
+ * @param {number} id Order ID
19082
+ * @param {number} batchId Batch ID
19083
+ * @param {number} shipmentId Shipment ID
19084
+ * @param {*} [options] Override http request option.
19085
+ * @throws {RequiredError}
19086
+ */
19087
+ async deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19088
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCreateShipment(id, batchId, shipmentId, options);
19089
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19090
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteCreateShipment']?.[localVarOperationServerIndex]?.url;
19091
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19092
+ },
19093
+ /**
19094
+ * Delete Batch (Admin)
19095
+ * @param {number} id Order ID
19096
+ * @param {number} batchId Batch ID
19097
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19098
+ * @param {*} [options] Override http request option.
19099
+ * @throws {RequiredError}
19100
+ */
19101
+ async deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19102
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options);
19103
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19104
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteBatch']?.[localVarOperationServerIndex]?.url;
19105
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19106
+ },
19107
+ /**
19108
+ * Delete Orders (Beta)
19109
+ * @summary Delete Orders (Beta)
19110
+ * @param {number} id Order ID
19111
+ * @param {*} [options] Override http request option.
19112
+ * @throws {RequiredError}
19113
+ */
19114
+ async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19115
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19116
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19117
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19118
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19119
+ },
19120
+ /**
19121
+ * Get Editable Order (Admin)
19122
+ * @summary Get Editable Order (Admin)
19123
+ * @param {number} id Order ID
19124
+ * @param {*} [options] Override http request option.
19125
+ * @throws {RequiredError}
19126
+ */
19127
+ async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
19128
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19129
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19130
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19131
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19132
+ },
19133
+ /**
19134
+ * Get Order Details (Admin)
19135
+ * @summary Get Order Details (Admin)
19136
+ * @param {number} id Order ID
19137
+ * @param {*} [options] Override http request option.
19138
+ * @throws {RequiredError}
19139
+ */
19140
+ async getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
19141
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminOrderDetails(id, options);
19142
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19143
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
19144
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19145
+ },
19146
+ /**
19147
+ * Get Editable Order (Beta)
19148
+ * @summary Get Editable Order (Beta)
19149
+ * @param {number} id Order ID
19150
+ * @param {*} [options] Override http request option.
19151
+ * @throws {RequiredError}
19152
+ */
19153
+ async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
19154
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19155
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19156
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19157
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19158
+ },
19159
+ /**
19160
+ * Download Order PDF
19161
+ * @summary Download Order PDF
19162
+ * @param {number} id Order ID
19163
+ * @param {*} [options] Override http request option.
19164
+ * @throws {RequiredError}
19165
+ */
19166
+ async getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19167
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderPdf(id, options);
19168
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19169
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
19170
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19171
+ },
19172
+ /**
19173
+ * Get Orders (Beta)
19174
+ * @summary Get Orders (Beta)
19175
+ * @param {number} [pageSize] Number Of Results
19176
+ * @param {number} [page] Page Number
19177
+ * @param {string} [search] Search
19178
+ * @param {boolean | null} [fulfillable] Fulfillable
19179
+ * @param {GetGetOrdersStatusEnum} [status] Status
19180
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
19181
+ * @param {number | null} [customerId] Customer ID
19182
+ * @param {*} [options] Override http request option.
19183
+ * @throws {RequiredError}
19184
+ */
19185
+ 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>> {
19186
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19187
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19188
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19189
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19190
+ },
19191
+ /**
19192
+ * Add Order Note
19193
+ * @summary Add Order Note
19194
+ * @param {number} id Order ID
19195
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19196
+ * @param {*} [options] Override http request option.
19197
+ * @throws {RequiredError}
19198
+ */
19199
+ async postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19200
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options);
19201
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19202
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postAddOrderNote']?.[localVarOperationServerIndex]?.url;
19203
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19204
+ },
19205
+ /**
19206
+ * Create An Order (Admin)
19207
+ * @summary Create An Order (Admin)
19208
+ * @param {boolean} [readonly] Readonly Order
19209
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19210
+ * @param {*} [options] Override http request option.
19211
+ * @throws {RequiredError}
19212
+ */
19213
+ async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19214
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19215
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19216
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19217
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19218
+ },
19219
+ /**
19220
+ * Create Shipping Consignment
19221
+ * @summary Create Shipping Consignment
19222
+ * @param {number} id Order ID
19223
+ * @param {number} shipmentId Shipment ID
19224
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19225
+ * @param {*} [options] Override http request option.
19226
+ * @throws {RequiredError}
19227
+ */
19228
+ async postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19229
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options);
19230
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19231
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateConsignment']?.[localVarOperationServerIndex]?.url;
19232
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19233
+ },
19234
+ /**
19235
+ * Create Shipment (Admin)
19236
+ * @summary Create Shipment (Admin)
19237
+ * @param {number} id Order ID
19238
+ * @param {number} batchId Batch ID
19239
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19240
+ * @param {*} [options] Override http request option.
19241
+ * @throws {RequiredError}
19242
+ */
19243
+ async postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options);
19245
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19246
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
19247
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19248
+ },
19249
+ /**
19250
+ * Create An Order (Beta)
19251
+ * @summary Create An Order (Beta)
19252
+ * @param {boolean} [readonly] Readonly Order
19253
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19254
+ * @param {*} [options] Override http request option.
19255
+ * @throws {RequiredError}
19256
+ */
19257
+ async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19259
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19260
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19261
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19262
+ },
19263
+ /**
19264
+ * Issue Credit (Admin)
19265
+ * @summary Issue Credit (Admin)
19266
+ * @param {number} id Order ID
19267
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19268
+ * @param {*} [options] Override http request option.
19269
+ * @throws {RequiredError}
19270
+ */
19271
+ async postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditNoteModel>> {
19272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options);
19273
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19274
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postIssueCredit']?.[localVarOperationServerIndex]?.url;
19275
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19276
+ },
19277
+ /**
19278
+ * Print Shipment Label
19279
+ * @summary Print Shipment Label
17386
19280
  * @param {number} id Order ID
19281
+ * @param {number} shipmentId Shipment ID
19282
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
17387
19283
  * @param {*} [options] Override http request option.
17388
19284
  * @throws {RequiredError}
17389
19285
  */
17390
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17391
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19286
+ async postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19287
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options);
17392
19288
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17393
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19289
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17394
19290
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17395
19291
  },
17396
19292
  /**
17397
- * Get Editable Order (Admin)
17398
- * @summary Get Editable Order (Admin)
19293
+ * Send Order Email
19294
+ * @summary Send Order Email
17399
19295
  * @param {number} id Order ID
19296
+ * @param {string} email Email Address
17400
19297
  * @param {*} [options] Override http request option.
17401
19298
  * @throws {RequiredError}
17402
19299
  */
17403
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
17404
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19300
+ async postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendOrderEmail(id, email, options);
17405
19302
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17406
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19303
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendOrderEmail']?.[localVarOperationServerIndex]?.url;
17407
19304
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17408
19305
  },
17409
19306
  /**
17410
- * Get Editable Order (Beta)
17411
- * @summary Get Editable Order (Beta)
19307
+ * Send Supplier Email
19308
+ * @summary Send Supplier Email
17412
19309
  * @param {number} id Order ID
19310
+ * @param {number} batchId Batch ID
17413
19311
  * @param {*} [options] Override http request option.
17414
19312
  * @throws {RequiredError}
17415
19313
  */
17416
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
17417
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19314
+ async postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19315
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options);
17418
19316
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17419
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19317
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendSupplierEmail']?.[localVarOperationServerIndex]?.url;
17420
19318
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17421
19319
  },
17422
19320
  /**
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
19321
+ * Split Order
19322
+ * @summary Split Order
19323
+ * @param {number} id Order ID
19324
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17432
19325
  * @param {*} [options] Override http request option.
17433
19326
  * @throws {RequiredError}
17434
19327
  */
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);
19328
+ async postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19329
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options);
17437
19330
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17438
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19331
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSplitOrder']?.[localVarOperationServerIndex]?.url;
17439
19332
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17440
19333
  },
17441
19334
  /**
17442
- * Create An Order (Admin)
17443
- * @summary Create An Order (Admin)
17444
- * @param {boolean} [readonly] Readonly Order
17445
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19335
+ * Allocate Items To Supplier
19336
+ * @summary Allocate Items To Supplier
19337
+ * @param {number} id Order ID
19338
+ * @param {number} supplierId Supplier ID
19339
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17446
19340
  * @param {*} [options] Override http request option.
17447
19341
  * @throws {RequiredError}
17448
19342
  */
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);
19343
+ async putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19344
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options);
17451
19345
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17452
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19346
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
17453
19347
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17454
19348
  },
17455
19349
  /**
17456
- * Create An Order (Beta)
17457
- * @summary Create An Order (Beta)
17458
- * @param {boolean} [readonly] Readonly Order
17459
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19350
+ * Update Shipment (Admin)
19351
+ * @summary Update Shipment (Admin)
19352
+ * @param {number} id Order ID
19353
+ * @param {number} batchId Batch ID
19354
+ * @param {number} shipmentId Shipment ID
19355
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17460
19356
  * @param {*} [options] Override http request option.
17461
19357
  * @throws {RequiredError}
17462
19358
  */
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);
19359
+ async putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
17465
19361
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17466
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19362
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putCreateShipment']?.[localVarOperationServerIndex]?.url;
17467
19363
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17468
19364
  },
17469
19365
  /**
@@ -17506,6 +19402,29 @@ export const OrdersApiFp = function(configuration?: Configuration) {
17506
19402
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17507
19403
  const localVarFp = OrdersApiFp(configuration)
17508
19404
  return {
19405
+ /**
19406
+ * Delete Shipment (Admin)
19407
+ * @summary Delete Shipment (Admin)
19408
+ * @param {number} id Order ID
19409
+ * @param {number} batchId Batch ID
19410
+ * @param {number} shipmentId Shipment ID
19411
+ * @param {*} [options] Override http request option.
19412
+ * @throws {RequiredError}
19413
+ */
19414
+ deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19415
+ return localVarFp.deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
19416
+ },
19417
+ /**
19418
+ * Delete Batch (Admin)
19419
+ * @param {number} id Order ID
19420
+ * @param {number} batchId Batch ID
19421
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19422
+ * @param {*} [options] Override http request option.
19423
+ * @throws {RequiredError}
19424
+ */
19425
+ deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19426
+ return localVarFp.deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19427
+ },
17509
19428
  /**
17510
19429
  * Delete Orders (Beta)
17511
19430
  * @summary Delete Orders (Beta)
@@ -17526,6 +19445,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17526
19445
  getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
17527
19446
  return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
17528
19447
  },
19448
+ /**
19449
+ * Get Order Details (Admin)
19450
+ * @summary Get Order Details (Admin)
19451
+ * @param {number} id Order ID
19452
+ * @param {*} [options] Override http request option.
19453
+ * @throws {RequiredError}
19454
+ */
19455
+ getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
19456
+ return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
19457
+ },
17529
19458
  /**
17530
19459
  * Get Editable Order (Beta)
17531
19460
  * @summary Get Editable Order (Beta)
@@ -17536,6 +19465,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17536
19465
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
17537
19466
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
17538
19467
  },
19468
+ /**
19469
+ * Download Order PDF
19470
+ * @summary Download Order PDF
19471
+ * @param {number} id Order ID
19472
+ * @param {*} [options] Override http request option.
19473
+ * @throws {RequiredError}
19474
+ */
19475
+ getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19476
+ return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
19477
+ },
17539
19478
  /**
17540
19479
  * Get Orders (Beta)
17541
19480
  * @summary Get Orders (Beta)
@@ -17552,6 +19491,17 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17552
19491
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
17553
19492
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
17554
19493
  },
19494
+ /**
19495
+ * Add Order Note
19496
+ * @summary Add Order Note
19497
+ * @param {number} id Order ID
19498
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19499
+ * @param {*} [options] Override http request option.
19500
+ * @throws {RequiredError}
19501
+ */
19502
+ postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19503
+ return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(axios, basePath));
19504
+ },
17555
19505
  /**
17556
19506
  * Create An Order (Admin)
17557
19507
  * @summary Create An Order (Admin)
@@ -17563,6 +19513,30 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17563
19513
  postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
17564
19514
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
17565
19515
  },
19516
+ /**
19517
+ * Create Shipping Consignment
19518
+ * @summary Create Shipping Consignment
19519
+ * @param {number} id Order ID
19520
+ * @param {number} shipmentId Shipment ID
19521
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19522
+ * @param {*} [options] Override http request option.
19523
+ * @throws {RequiredError}
19524
+ */
19525
+ postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19526
+ return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(axios, basePath));
19527
+ },
19528
+ /**
19529
+ * Create Shipment (Admin)
19530
+ * @summary Create Shipment (Admin)
19531
+ * @param {number} id Order ID
19532
+ * @param {number} batchId Batch ID
19533
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19534
+ * @param {*} [options] Override http request option.
19535
+ * @throws {RequiredError}
19536
+ */
19537
+ postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19538
+ return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19539
+ },
17566
19540
  /**
17567
19541
  * Create An Order (Beta)
17568
19542
  * @summary Create An Order (Beta)
@@ -17574,6 +19548,87 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17574
19548
  postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
17575
19549
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
17576
19550
  },
19551
+ /**
19552
+ * Issue Credit (Admin)
19553
+ * @summary Issue Credit (Admin)
19554
+ * @param {number} id Order ID
19555
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19556
+ * @param {*} [options] Override http request option.
19557
+ * @throws {RequiredError}
19558
+ */
19559
+ postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): AxiosPromise<CreditNoteModel> {
19560
+ return localVarFp.postIssueCredit(id, creditNoteDTO, options).then((request) => request(axios, basePath));
19561
+ },
19562
+ /**
19563
+ * Print Shipment Label
19564
+ * @summary Print Shipment Label
19565
+ * @param {number} id Order ID
19566
+ * @param {number} shipmentId Shipment ID
19567
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19568
+ * @param {*} [options] Override http request option.
19569
+ * @throws {RequiredError}
19570
+ */
19571
+ postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19572
+ return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
19573
+ },
19574
+ /**
19575
+ * Send Order Email
19576
+ * @summary Send Order Email
19577
+ * @param {number} id Order ID
19578
+ * @param {string} email Email Address
19579
+ * @param {*} [options] Override http request option.
19580
+ * @throws {RequiredError}
19581
+ */
19582
+ postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19583
+ return localVarFp.postSendOrderEmail(id, email, options).then((request) => request(axios, basePath));
19584
+ },
19585
+ /**
19586
+ * Send Supplier Email
19587
+ * @summary Send Supplier Email
19588
+ * @param {number} id Order ID
19589
+ * @param {number} batchId Batch ID
19590
+ * @param {*} [options] Override http request option.
19591
+ * @throws {RequiredError}
19592
+ */
19593
+ postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19594
+ return localVarFp.postSendSupplierEmail(id, batchId, options).then((request) => request(axios, basePath));
19595
+ },
19596
+ /**
19597
+ * Split Order
19598
+ * @summary Split Order
19599
+ * @param {number} id Order ID
19600
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19601
+ * @param {*} [options] Override http request option.
19602
+ * @throws {RequiredError}
19603
+ */
19604
+ postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19605
+ return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(axios, basePath));
19606
+ },
19607
+ /**
19608
+ * Allocate Items To Supplier
19609
+ * @summary Allocate Items To Supplier
19610
+ * @param {number} id Order ID
19611
+ * @param {number} supplierId Supplier ID
19612
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19613
+ * @param {*} [options] Override http request option.
19614
+ * @throws {RequiredError}
19615
+ */
19616
+ putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19617
+ return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
19618
+ },
19619
+ /**
19620
+ * Update Shipment (Admin)
19621
+ * @summary Update Shipment (Admin)
19622
+ * @param {number} id Order ID
19623
+ * @param {number} batchId Batch ID
19624
+ * @param {number} shipmentId Shipment ID
19625
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19626
+ * @param {*} [options] Override http request option.
19627
+ * @throws {RequiredError}
19628
+ */
19629
+ putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19630
+ return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19631
+ },
17577
19632
  /**
17578
19633
  * Update An Order (Admin)
17579
19634
  * @summary Update An Order (Admin)
@@ -17608,6 +19663,33 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
17608
19663
  * @extends {BaseAPI}
17609
19664
  */
17610
19665
  export class OrdersApi extends BaseAPI {
19666
+ /**
19667
+ * Delete Shipment (Admin)
19668
+ * @summary Delete Shipment (Admin)
19669
+ * @param {number} id Order ID
19670
+ * @param {number} batchId Batch ID
19671
+ * @param {number} shipmentId Shipment ID
19672
+ * @param {*} [options] Override http request option.
19673
+ * @throws {RequiredError}
19674
+ * @memberof OrdersApi
19675
+ */
19676
+ public deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
19677
+ return OrdersApiFp(this.configuration).deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
19678
+ }
19679
+
19680
+ /**
19681
+ * Delete Batch (Admin)
19682
+ * @param {number} id Order ID
19683
+ * @param {number} batchId Batch ID
19684
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19685
+ * @param {*} [options] Override http request option.
19686
+ * @throws {RequiredError}
19687
+ * @memberof OrdersApi
19688
+ */
19689
+ public deleteDeleteBatch(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19690
+ return OrdersApiFp(this.configuration).deleteDeleteBatch(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19691
+ }
19692
+
17611
19693
  /**
17612
19694
  * Delete Orders (Beta)
17613
19695
  * @summary Delete Orders (Beta)
@@ -17632,6 +19714,18 @@ export class OrdersApi extends BaseAPI {
17632
19714
  return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
17633
19715
  }
17634
19716
 
19717
+ /**
19718
+ * Get Order Details (Admin)
19719
+ * @summary Get Order Details (Admin)
19720
+ * @param {number} id Order ID
19721
+ * @param {*} [options] Override http request option.
19722
+ * @throws {RequiredError}
19723
+ * @memberof OrdersApi
19724
+ */
19725
+ public getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig) {
19726
+ return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
19727
+ }
19728
+
17635
19729
  /**
17636
19730
  * Get Editable Order (Beta)
17637
19731
  * @summary Get Editable Order (Beta)
@@ -17644,6 +19738,18 @@ export class OrdersApi extends BaseAPI {
17644
19738
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
17645
19739
  }
17646
19740
 
19741
+ /**
19742
+ * Download Order PDF
19743
+ * @summary Download Order PDF
19744
+ * @param {number} id Order ID
19745
+ * @param {*} [options] Override http request option.
19746
+ * @throws {RequiredError}
19747
+ * @memberof OrdersApi
19748
+ */
19749
+ public getGetOrderPdf(id: number, options?: RawAxiosRequestConfig) {
19750
+ return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
19751
+ }
19752
+
17647
19753
  /**
17648
19754
  * Get Orders (Beta)
17649
19755
  * @summary Get Orders (Beta)
@@ -17662,6 +19768,19 @@ export class OrdersApi extends BaseAPI {
17662
19768
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
17663
19769
  }
17664
19770
 
19771
+ /**
19772
+ * Add Order Note
19773
+ * @summary Add Order Note
19774
+ * @param {number} id Order ID
19775
+ * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19776
+ * @param {*} [options] Override http request option.
19777
+ * @throws {RequiredError}
19778
+ * @memberof OrdersApi
19779
+ */
19780
+ public postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig) {
19781
+ return OrdersApiFp(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(this.axios, this.basePath));
19782
+ }
19783
+
17665
19784
  /**
17666
19785
  * Create An Order (Admin)
17667
19786
  * @summary Create An Order (Admin)
@@ -17675,6 +19794,34 @@ export class OrdersApi extends BaseAPI {
17675
19794
  return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
17676
19795
  }
17677
19796
 
19797
+ /**
19798
+ * Create Shipping Consignment
19799
+ * @summary Create Shipping Consignment
19800
+ * @param {number} id Order ID
19801
+ * @param {number} shipmentId Shipment ID
19802
+ * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19803
+ * @param {*} [options] Override http request option.
19804
+ * @throws {RequiredError}
19805
+ * @memberof OrdersApi
19806
+ */
19807
+ public postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig) {
19808
+ return OrdersApiFp(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(this.axios, this.basePath));
19809
+ }
19810
+
19811
+ /**
19812
+ * Create Shipment (Admin)
19813
+ * @summary Create Shipment (Admin)
19814
+ * @param {number} id Order ID
19815
+ * @param {number} batchId Batch ID
19816
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19817
+ * @param {*} [options] Override http request option.
19818
+ * @throws {RequiredError}
19819
+ * @memberof OrdersApi
19820
+ */
19821
+ public postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19822
+ return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19823
+ }
19824
+
17678
19825
  /**
17679
19826
  * Create An Order (Beta)
17680
19827
  * @summary Create An Order (Beta)
@@ -17688,6 +19835,101 @@ export class OrdersApi extends BaseAPI {
17688
19835
  return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
17689
19836
  }
17690
19837
 
19838
+ /**
19839
+ * Issue Credit (Admin)
19840
+ * @summary Issue Credit (Admin)
19841
+ * @param {number} id Order ID
19842
+ * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19843
+ * @param {*} [options] Override http request option.
19844
+ * @throws {RequiredError}
19845
+ * @memberof OrdersApi
19846
+ */
19847
+ public postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig) {
19848
+ return OrdersApiFp(this.configuration).postIssueCredit(id, creditNoteDTO, options).then((request) => request(this.axios, this.basePath));
19849
+ }
19850
+
19851
+ /**
19852
+ * Print Shipment Label
19853
+ * @summary Print Shipment Label
19854
+ * @param {number} id Order ID
19855
+ * @param {number} shipmentId Shipment ID
19856
+ * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19857
+ * @param {*} [options] Override http request option.
19858
+ * @throws {RequiredError}
19859
+ * @memberof OrdersApi
19860
+ */
19861
+ public postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig) {
19862
+ return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
19863
+ }
19864
+
19865
+ /**
19866
+ * Send Order Email
19867
+ * @summary Send Order Email
19868
+ * @param {number} id Order ID
19869
+ * @param {string} email Email Address
19870
+ * @param {*} [options] Override http request option.
19871
+ * @throws {RequiredError}
19872
+ * @memberof OrdersApi
19873
+ */
19874
+ public postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig) {
19875
+ return OrdersApiFp(this.configuration).postSendOrderEmail(id, email, options).then((request) => request(this.axios, this.basePath));
19876
+ }
19877
+
19878
+ /**
19879
+ * Send Supplier Email
19880
+ * @summary Send Supplier Email
19881
+ * @param {number} id Order ID
19882
+ * @param {number} batchId Batch ID
19883
+ * @param {*} [options] Override http request option.
19884
+ * @throws {RequiredError}
19885
+ * @memberof OrdersApi
19886
+ */
19887
+ public postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19888
+ return OrdersApiFp(this.configuration).postSendSupplierEmail(id, batchId, options).then((request) => request(this.axios, this.basePath));
19889
+ }
19890
+
19891
+ /**
19892
+ * Split Order
19893
+ * @summary Split Order
19894
+ * @param {number} id Order ID
19895
+ * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19896
+ * @param {*} [options] Override http request option.
19897
+ * @throws {RequiredError}
19898
+ * @memberof OrdersApi
19899
+ */
19900
+ public postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig) {
19901
+ return OrdersApiFp(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(this.axios, this.basePath));
19902
+ }
19903
+
19904
+ /**
19905
+ * Allocate Items To Supplier
19906
+ * @summary Allocate Items To Supplier
19907
+ * @param {number} id Order ID
19908
+ * @param {number} supplierId Supplier ID
19909
+ * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19910
+ * @param {*} [options] Override http request option.
19911
+ * @throws {RequiredError}
19912
+ * @memberof OrdersApi
19913
+ */
19914
+ public putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) {
19915
+ return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
19916
+ }
19917
+
19918
+ /**
19919
+ * Update Shipment (Admin)
19920
+ * @summary Update Shipment (Admin)
19921
+ * @param {number} id Order ID
19922
+ * @param {number} batchId Batch ID
19923
+ * @param {number} shipmentId Shipment ID
19924
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19925
+ * @param {*} [options] Override http request option.
19926
+ * @throws {RequiredError}
19927
+ * @memberof OrdersApi
19928
+ */
19929
+ public putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19930
+ return OrdersApiFp(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19931
+ }
19932
+
17691
19933
  /**
17692
19934
  * Update An Order (Admin)
17693
19935
  * @summary Update An Order (Admin)
@@ -17737,6 +19979,15 @@ export const GetGetOrdersFilterEnum = {
17737
19979
  BackOrders: 'BACK_ORDERS'
17738
19980
  } as const;
17739
19981
  export type GetGetOrdersFilterEnum = typeof GetGetOrdersFilterEnum[keyof typeof GetGetOrdersFilterEnum];
19982
+ /**
19983
+ * @export
19984
+ */
19985
+ export const PostPrintShippingLabelPrinterEnum = {
19986
+ NUMBER_1: 1,
19987
+ NUMBER_2: 2,
19988
+ NUMBER_3: 3
19989
+ } as const;
19990
+ export type PostPrintShippingLabelPrinterEnum = typeof PostPrintShippingLabelPrinterEnum[keyof typeof PostPrintShippingLabelPrinterEnum];
17740
19991
 
17741
19992
 
17742
19993
  /**